redrum 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redrum.rb +2 -0
- data/lib/redrum/cli.rb +4 -0
- data/spec/redrum/cli_spec.rb +15 -0
- metadata +4 -4
data/lib/redrum.rb
CHANGED
data/lib/redrum/cli.rb
CHANGED
data/spec/redrum/cli_spec.rb
CHANGED
@@ -64,5 +64,20 @@ describe Redrum::CLI do
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
context "with -v, --version" do
|
68
|
+
before { no_warnings { ARGV = ["-v", "--version"] } }
|
69
|
+
|
70
|
+
it "returns false" do
|
71
|
+
Redrum::CLI.parse(@messenger).should == false
|
72
|
+
end
|
73
|
+
|
74
|
+
it "shows version information" do
|
75
|
+
Redrum::CLI.parse(@messenger)
|
76
|
+
@messenger.string.should include("Redrum v")
|
77
|
+
end
|
78
|
+
|
79
|
+
|
80
|
+
end
|
81
|
+
|
67
82
|
end
|
68
83
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redrum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- !binary |
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-10-
|
20
|
+
date: 2010-10-30 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|