cloudapp-cli 1.0.0.beta.2 → 1.0.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/bin/cloudapp +1 -5
- data/cloudapp-cli.gemspec +1 -1
- data/lib/cloudapp/cli.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/bin/cloudapp
CHANGED
@@ -27,6 +27,7 @@ def require_credentials
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def log(*args)
|
30
|
+
return unless File.exists?('log/curses.txt')
|
30
31
|
File.open('log/curses.txt', 'ab+') do |file|
|
31
32
|
file.puts args.inspect
|
32
33
|
end
|
@@ -133,7 +134,6 @@ def popup_window(parent, text)
|
|
133
134
|
yield
|
134
135
|
else
|
135
136
|
ch = wgetch win
|
136
|
-
log 'popup', ch
|
137
137
|
flushinp
|
138
138
|
ungetch ch
|
139
139
|
end
|
@@ -154,7 +154,6 @@ t = Copy thumbnail link
|
|
154
154
|
HELP
|
155
155
|
popup_window win, help
|
156
156
|
ch = wgetch win
|
157
|
-
log 'show_help', ch
|
158
157
|
ungetch ch unless ch == ??.ord
|
159
158
|
end
|
160
159
|
|
@@ -173,7 +172,6 @@ begin
|
|
173
172
|
selected_drop = select_drop win, 0, drops
|
174
173
|
|
175
174
|
while c = wgetch(win)
|
176
|
-
log 'wgetch', c
|
177
175
|
case c
|
178
176
|
when ?q.ord
|
179
177
|
break
|
@@ -216,8 +214,6 @@ begin
|
|
216
214
|
link = drops[selected_drop].thumbnail_url
|
217
215
|
copy link
|
218
216
|
popup_window win, 'Copied thumbnail link.'
|
219
|
-
else
|
220
|
-
log 'unknown key', c
|
221
217
|
end
|
222
218
|
|
223
219
|
delwin win
|
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.3'
|
17
17
|
s.date = '2012-08-18'
|
18
18
|
s.rubyforge_project = 'cloudapp-cli'
|
19
19
|
|
data/lib/cloudapp/cli.rb
CHANGED