cloudapp-cli 1.0.0.beta.4 → 1.0.0.beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +3 -1
- data/bin/cloudapp +6 -9
- data/cloudapp-cli.gemspec +2 -1
- data/lib/cloudapp/cli.rb +1 -1
- metadata +17 -1
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cloudapp-cli (1.0.0.beta.
|
4
|
+
cloudapp-cli (1.0.0.beta.5)
|
5
|
+
clipboard
|
5
6
|
cloudapp (~> 2.0.0.beta.1)
|
6
7
|
ffi-ncurses
|
7
8
|
highline
|
@@ -18,6 +19,7 @@ GEM
|
|
18
19
|
remote: http://rubygems.org/
|
19
20
|
specs:
|
20
21
|
addressable (2.3.2)
|
22
|
+
clipboard (1.0.1)
|
21
23
|
diff-lcs (1.1.3)
|
22
24
|
fail-fast (1.0.0)
|
23
25
|
faraday (0.8.4)
|
data/bin/cloudapp
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'cloudapp'
|
4
4
|
require 'cloudapp/cli'
|
5
|
+
require 'clipboard'
|
5
6
|
require 'highline'
|
6
7
|
require 'ffi-ncurses'
|
7
8
|
|
@@ -33,10 +34,6 @@ def log(*args)
|
|
33
34
|
end
|
34
35
|
|
35
36
|
|
36
|
-
def copy(link)
|
37
|
-
IO.popen('pbcopy', 'w') {|f| f << link }
|
38
|
-
end
|
39
|
-
|
40
37
|
def draw_drops_window(drops)
|
41
38
|
# 1 column wider than necessary to prevent wrapping also accounting for
|
42
39
|
# selection indicator.
|
@@ -200,19 +197,19 @@ begin
|
|
200
197
|
|
201
198
|
when ?c.ord, KEY_RETURN
|
202
199
|
link = drops[selected_drop].share_url
|
203
|
-
copy link
|
200
|
+
Clipboard.copy link
|
204
201
|
popup_window win, 'Copied share link.'
|
205
202
|
when ?C.ord
|
206
203
|
link = drops[selected_drop].embed_url
|
207
|
-
copy link
|
204
|
+
Clipboard.copy link
|
208
205
|
popup_window win, 'Copied embed link.'
|
209
|
-
when ?
|
206
|
+
when ?D.ord
|
210
207
|
link = drops[selected_drop].download_url
|
211
|
-
copy link
|
208
|
+
Clipboard.copy link
|
212
209
|
popup_window win, 'Copied download link.'
|
213
210
|
when ?t.ord
|
214
211
|
link = drops[selected_drop].thumbnail_url
|
215
|
-
copy link
|
212
|
+
Clipboard.copy link
|
216
213
|
popup_window win, 'Copied thumbnail link.'
|
217
214
|
end
|
218
215
|
|
data/cloudapp-cli.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'cloudapp-cli'
|
16
|
-
s.version = '1.0.0.beta.
|
16
|
+
s.version = '1.0.0.beta.5'
|
17
17
|
s.date = '2012-08-18'
|
18
18
|
s.rubyforge_project = 'cloudapp-cli'
|
19
19
|
|
@@ -44,6 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
## List your runtime dependencies here. Runtime dependencies are those
|
45
45
|
## that are needed for an end user to actually USE your code.
|
46
46
|
s.add_dependency 'cloudapp', '~> 2.0.0.beta.1'
|
47
|
+
s.add_dependency 'clipboard'
|
47
48
|
s.add_dependency 'ffi-ncurses'
|
48
49
|
s.add_dependency 'highline'
|
49
50
|
|
data/lib/cloudapp/cli.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudapp-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.5
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,6 +27,22 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 2.0.0.beta.1
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: clipboard
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
30
46
|
- !ruby/object:Gem::Dependency
|
31
47
|
name: ffi-ncurses
|
32
48
|
requirement: !ruby/object:Gem::Requirement
|