cloudapp 2.0.0.beta.6 → 2.0.0.beta.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/Rakefile +3 -1
- data/bin/cloudapp +8 -0
- data/cloudapp.gemspec +1 -1
- data/lib/cloudapp.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -43,7 +43,9 @@ end
|
|
43
43
|
#
|
44
44
|
#############################################################################
|
45
45
|
|
46
|
-
|
46
|
+
require 'rspec/core/rake_task'
|
47
|
+
RSpec::Core::RakeTask.new(:spec)
|
48
|
+
task :default => :spec
|
47
49
|
|
48
50
|
#############################################################################
|
49
51
|
#
|
data/bin/cloudapp
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
require 'cloudapp'
|
3
4
|
require 'cloudapp/credentials'
|
4
5
|
require 'cloudapp/cli/prompt'
|
5
6
|
require 'cloudapp/service'
|
@@ -37,6 +38,11 @@ def next_file
|
|
37
38
|
ARGF.file rescue $!
|
38
39
|
end
|
39
40
|
|
41
|
+
def print_version
|
42
|
+
puts CloudApp::VERSION
|
43
|
+
exit
|
44
|
+
end
|
45
|
+
|
40
46
|
|
41
47
|
while not valid_token?
|
42
48
|
credentials = CloudApp::CLI::Prompt.new.ask_for_credentials
|
@@ -44,6 +50,8 @@ while not valid_token?
|
|
44
50
|
Credentials.save_token token
|
45
51
|
end
|
46
52
|
|
53
|
+
print_version if ARGV.delete('--version') || ARGV.delete('-v')
|
54
|
+
|
47
55
|
link = ARGV.delete('--direct') || ARGV.delete('-d') ? :embed : :canonical
|
48
56
|
|
49
57
|
case ARGV.shift
|
data/cloudapp.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'
|
16
|
-
s.version = '2.0.0.beta.
|
16
|
+
s.version = '2.0.0.beta.7'
|
17
17
|
s.date = '2012-12-23'
|
18
18
|
s.rubyforge_project = 'cloudapp'
|
19
19
|
|
data/lib/cloudapp.rb
CHANGED