Diff
1diff --git a/plugins/cloudapp/README.md b/plugins/cloudapp/README.md
2index fc9fc32bdb8bb2c62e719858c2b191ebefd867fb..ef304edc2a2c466b3425f846db283a5aab2853aa 100644
3--- a/plugins/cloudapp/README.md
4+++ b/plugins/cloudapp/README.md
5@@ -1,5 +1,7 @@
6 # CloudApp plugin
7
8+## The CloudApp API is deprecated, so the plugin will be removed shortly
9+
10 [CloudApp](https://www.getcloudapp.com) brings screen recording, screenshots, and GIF creation to the cloud, in an easy-to-use enterprise-level app. The CloudApp plugin allows you to upload a file to your CloadApp account from the command line.
11
12 To use it, add `cloudapp` to the plugins array of your `~/.zshrc` file:
13diff --git a/plugins/cloudapp/cloudapp.plugin.zsh b/plugins/cloudapp/cloudapp.plugin.zsh
14index 3b363c81b3d4426d6ae79e655a05e8a904a7c44f..a4d92a0805d8faab0c61f6b019f91f90391f1f4d 100644
15--- a/plugins/cloudapp/cloudapp.plugin.zsh
16+++ b/plugins/cloudapp/cloudapp.plugin.zsh
17@@ -1,6 +1,4 @@
18-alias cloudapp="${0:a:h}/cloudapp.rb"
19-
20-# Ensure only the owner can access the credentials file
21-if [[ -f ~/.cloudapp ]]; then
22- chmod 600 ~/.cloudapp
23-fi
24+print -Pn "%F{yellow}"
25+print "[oh-my-zsh] The CloudApp API no longer works, so the cloudapp plugin will"
26+print "[oh-my-zsh] be removed shortly. Please remove it from your plugins list."
27+print -Pn "%f"
28diff --git a/plugins/cloudapp/cloudapp.rb b/plugins/cloudapp/cloudapp.rb
29deleted file mode 100755
30index a11cfdb32be06a1fb1ea00933f306e2ff1e95715..0000000000000000000000000000000000000000
31--- a/plugins/cloudapp/cloudapp.rb
32+++ /dev/null
33@@ -1,60 +0,0 @@
34-#!/usr/bin/env ruby
35-#
36-# cloudapp
37-# Zach Holman / @holman
38-#
39-# Uploads a file from the command line to CloudApp, drops it into your
40-# clipboard (on a Mac, at least).
41-#
42-# Example:
43-#
44-# cloudapp drunk-blake.png
45-#
46-# This requires Aaron Russell's cloudapp_api gem:
47-#
48-# gem install cloudapp_api
49-#
50-# Requires you set your CloudApp credentials in ~/.cloudapp as a simple file of:
51-#
52-# email
53-# password
54-
55-require 'rubygems'
56-begin
57- require 'cloudapp_api'
58-rescue LoadError
59- puts "You need to install cloudapp_api: gem install cloudapp_api"
60- exit!(1)
61-end
62-
63-config_file = "#{ENV['HOME']}/.cloudapp"
64-unless File.exist?(config_file)
65- puts "You need to type your email and password (one per line) into "+
66- "`~/.cloudapp`"
67- exit!(1)
68-end
69-
70-email,password = File.read(config_file).split("\n")
71-
72-class HTTParty::Response
73- # Apparently HTTPOK.ok? IS NOT OKAY WTFFFFFFFFFFUUUUUUUUUUUUUU
74- # LETS MONKEY PATCH IT I FEEL OKAY ABOUT IT
75- def ok? ; true end
76-end
77-
78-if ARGV[0].nil?
79- puts "You need to specify a file to upload."
80- exit!(1)
81-end
82-
83-CloudApp.authenticate(email,password)
84-url = CloudApp::Item.create(:upload, {:file => ARGV[0]}).url
85-
86-# Say it for good measure.
87-puts "Uploaded to #{url}."
88-
89-# Get the embed link.
90-url = "#{url}/#{ARGV[0].split('/').last}"
91-
92-# Copy it to your (Mac's) clipboard.
93-`echo '#{url}' | tr -d "\n" | pbcopy`