cloudapp 2.0.0.beta.6 → 2.0.0.beta.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudapp (2.0.0.beta.6)
4
+ cloudapp (2.0.0.beta.7)
5
5
  leadlight (~> 0.0.7)
6
6
  mime-types (~> 1.19)
7
7
  netrc (~> 0.7.7)
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.6'
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
@@ -1,3 +1,3 @@
1
1
  module CloudApp
2
- VERSION = '2.0.0.beta.6'
2
+ VERSION = '2.0.0.beta.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta.6
4
+ version: 2.0.0.beta.7
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: