rumm 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17789c880155b443214351f2e3aa605e6f122bd2
4
- data.tar.gz: 0a2498df57be7824d7d005a0c208d72372ebd2ba
3
+ metadata.gz: 10b34212a7fc30e4ae7b0728f52341bf99b7401b
4
+ data.tar.gz: 37affa8d2ae61dbb4b7cd360c9a4b028041e250d
5
5
  SHA512:
6
- metadata.gz: 42a46e003fd500fb1d10ddb9e8d542bcea7bb2c56650aabc47ce1475fc4cda66e7ffc8dec400d9814a765772c33e2733bc865b570d68e018167656e9fe0f5801
7
- data.tar.gz: 54085c49e9675b1844d991a32d8995a5b3111004e9f6bdd0660a7ff37fd4119b2eb7b060766f6a8972fa8dea04cff1323755bf0e6a610eeed9fd868984737284
6
+ metadata.gz: 5cdcec84fe5458cbd97182e573c45ecb823807f767e4a5052a9664b966c00e4545c938adae7ab2b633cf316726f934a1a6c03a3abb38fb0e8b5a20e3518e6059
7
+ data.tar.gz: 5d6b1e5dc106b1b6cceb5b421458856310870550e649971c72556c60d66602f8b3ddc2ac72ba87c557427cb17706b83af39af0f9630a47a22f84757254d96ee0
@@ -1,3 +1,6 @@
1
+ macro /(-v|--version)/ => "version"
2
+ match 'version' => proc {|cmd| cmd.output << "#{Rumm::VERSION}\n" }
3
+
1
4
  match 'login' => 'authentication#login'
2
5
  match 'logout' => 'authentication#logout'
3
6
 
@@ -1,3 +1,3 @@
1
1
  module Rumm
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = ">= 1.9.3"
22
22
 
23
- spec.add_dependency "mvcli", "~> 0.0.11"
23
+ spec.add_dependency "mvcli", "~> 0.0.13"
24
24
  spec.add_dependency "fog", "~> 1.12.0"
25
25
  spec.add_dependency "netrc"
26
26
  end
@@ -1,10 +1,11 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe "interactive learning" do
4
- Given { pending }
5
-
4
+ use_natural_assertions
6
5
  describe "the basic help system" do
6
+ Given { pending }
7
7
  Given {rumm "help"}
8
+
8
9
  # Rumm: A tasty tool for hackers and pirates
9
10
  # Rumm provides a command line interface for hacking with Rackspace. The
10
11
  # only thing you'll need to get started is a username and password from
@@ -129,10 +130,10 @@ describe "interactive learning" do
129
130
  # errors:
130
131
  # --nodes[1][address]: 'xxx' -> IPAddr::InvalidAddressError: invalid address
131
132
 
132
- Given {rumm "create loadbalancer --node 10.0.0.1:999999 --node xxx:80 --port -1"}
133
- Then {output.contains "--port: '-1' is not a valid port number (port >= 0 && port <= 65535)"}
134
- Then {output.contains "--node[0][port] '999999' is not a valid port number (port >= 0 && port <= 65535)" }
135
- Then {output =~ /--node\[1\]\[address\]: 'xxx' -> .+Error: .+/}
133
+ Given {rumm "create loadbalancer --node 10.0.0.1:999999 --node %%^:80 --port=-1"}
134
+ Then { stderr.match "port: port must be between 0 and 65,535" }
135
+ Then { stderr.match /nodes\[0\].port: port must be between 0 and 65,535/ }
136
+ Then { stderr.match /nodes\[1\].address:/}
136
137
  end
137
138
 
138
139
  #> Show all commands
@@ -149,6 +150,7 @@ describe "interactive learning" do
149
150
 
150
151
  #> show a single action / command>
151
152
  describe "help for a specific command" do
153
+ Given { pending }
152
154
  Given {rumm "help create server"}
153
155
 
154
156
  # Usage:
@@ -12,6 +12,10 @@ module Rumm::SpecHelper
12
12
  run_interactive "rumm #{command}"
13
13
  stop_process @interactive
14
14
  end
15
+
16
+ def stderr
17
+ all_stderr
18
+ end
15
19
  end
16
20
 
17
21
  RSpec.configure do |config|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.11
40
+ version: 0.0.13
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.11
47
+ version: 0.0.13
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: fog
50
50
  requirement: !ruby/object:Gem::Requirement