at-random 1.1.0 → 1.1.1
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/README.md +1 -1
- data/lib/at-random/app.rb +1 -1
- data/lib/at-random/version.rb +1 -1
- data/spec/at-random/app_spec.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
data/lib/at-random/app.rb
CHANGED
@@ -14,7 +14,7 @@ module AtRandom
|
|
14
14
|
to_str = arg.length > 4 ? arg[5..-1] : argv.shift
|
15
15
|
@pick_time_opts[:to] = to_str
|
16
16
|
elsif arg =~ /--random-seed/
|
17
|
-
@random_seed = arg.length > 13 ? arg[14..-1]
|
17
|
+
@random_seed = (arg.length > 13 ? arg[14..-1] : argv.shift).to_i
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/lib/at-random/version.rb
CHANGED
data/spec/at-random/app_spec.rb
CHANGED
@@ -176,7 +176,7 @@ describe AtRandom::App do
|
|
176
176
|
describe '--random-seed' do
|
177
177
|
subject { '--random-seed' }
|
178
178
|
|
179
|
-
it_behaves_like 'parametrized argument', 1234 do
|
179
|
+
it_behaves_like 'parametrized argument', '1234' do
|
180
180
|
before { Kernel.expects(:srand).with(1234) }
|
181
181
|
end
|
182
182
|
|