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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # at-random
2
2
 
3
- at-random [--random-seed seed] [--from HH[:MM]] [--to [HH[:MM]] [at-args]
3
+ at-random [--random-seed seed] [--from HH[:MM]] [--to HH[:MM]] [at-args]
4
4
 
5
5
  Picks some time
6
6
  between `--from` and `--to`
@@ -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].to_i : argv.shift
17
+ @random_seed = (arg.length > 13 ? arg[14..-1] : argv.shift).to_i
18
18
  end
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module AtRandom
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: at-random
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: