moses 0.1.6 → 0.1.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/VERSION +1 -1
- data/lib/moses.rb +1 -1
- data/moses.gemspec +1 -1
- data/spec/moses_spec.rb +14 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/lib/moses.rb
CHANGED
data/moses.gemspec
CHANGED
data/spec/moses_spec.rb
CHANGED
@@ -119,14 +119,27 @@ describe Moses do
|
|
119
119
|
end
|
120
120
|
|
121
121
|
describe "default_command" do
|
122
|
-
|
122
|
+
before do
|
123
123
|
class CustomDefaultCommandClass
|
124
124
|
include Moses
|
125
125
|
default_command :some_command
|
126
|
+
|
127
|
+
def some_command
|
128
|
+
end
|
126
129
|
end
|
127
130
|
@dc_app = CustomDefaultCommandClass.new
|
131
|
+
end
|
132
|
+
|
133
|
+
it "can be set with the class method" do
|
128
134
|
expect(@dc_app.default_command).to eq(:some_command)
|
129
135
|
end
|
136
|
+
|
137
|
+
it "doesn't overwrite the default command when passed arguments" do
|
138
|
+
ARGV = ['test']
|
139
|
+
@dc_app.run
|
140
|
+
expect(@dc_app.command).to be_nil
|
141
|
+
expect(@dc_app.args.first).to eq('test')
|
142
|
+
end
|
130
143
|
end
|
131
144
|
|
132
145
|
describe 'option commands' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash:
|
153
|
+
hash: -1695621889216618281
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|