kerplutz 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/History.txt +3 -0
- data/README.md +1 -0
- data/kerplutz.gemspec +1 -1
- data/lib/kerplutz/executable.rb +1 -1
- data/spec/kerplutz/executable_spec.rb +10 -3
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/History.txt
CHANGED
data/README.md
CHANGED
data/kerplutz.gemspec
CHANGED
data/lib/kerplutz/executable.rb
CHANGED
@@ -13,9 +13,16 @@ module Kerplutz
|
|
13
13
|
end
|
14
14
|
|
15
15
|
describe "#parse" do
|
16
|
-
it "extracts
|
17
|
-
subject.parse(["--foo"]).should == [{ :foo => true }, []]
|
18
|
-
|
16
|
+
it "extracts options on the base executable" do
|
17
|
+
subject.parse(["--foo"]).should == ["test", { :foo => true }, []]
|
18
|
+
end
|
19
|
+
|
20
|
+
it "extracts arguments to options on the base executable" do
|
21
|
+
subject.parse(["--foo", "bar"]).should == ["test", { :foo => "bar" }, []]
|
22
|
+
end
|
23
|
+
|
24
|
+
it "extracts arguments to subcommands" do
|
25
|
+
subject.parse(["foo", "bar", "baz"]).should == ["foo", { }, ["bar", "baz"]]
|
19
26
|
end
|
20
27
|
|
21
28
|
it "parses an unambiguous flag argument" do
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mike Sassak
|
@@ -121,7 +121,7 @@ rubyforge_project:
|
|
121
121
|
rubygems_version: 1.3.7
|
122
122
|
signing_key:
|
123
123
|
specification_version: 3
|
124
|
-
summary: kerplutz 0.1.
|
124
|
+
summary: kerplutz 0.1.2
|
125
125
|
test_files:
|
126
126
|
- features/kerplutz.feature
|
127
127
|
- features/step_definitions/kerplutz_steps.rb
|