dohroot 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dohroot/options.rb +1 -1
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45a2d45403712395606862d3c615a56412f16412
4
- data.tar.gz: 67e3a23c211b971fac5573da82d99305a52fc618
3
+ metadata.gz: 134be11cc6451f820f2bd9b92bef8cf3ce8d7ed1
4
+ data.tar.gz: d3f6d7e12364e4dad90e06ff9db5d5d8c0eb594c
5
5
  SHA512:
6
- metadata.gz: 996c1d7ef27e56d3026d7287da8c59a9c907c0b97188f77ae78f736c9bf2542f9f2d2f6e78e3c541b5c16c1d63e7ca3b61cf4c4c3309ca6de7fb3c19b254647b
7
- data.tar.gz: 4fcf6c89b245242726a5894ca40a79bd5fa1d732ca32240224aed8b9371e59ac53aa9343c0ad57233acb1ab98442ec03f8b677bd950b7897266561af2e74ca64
6
+ metadata.gz: 388da5ef30e7f153e726118ed36cee8b314a6cd1417737a18eab5b782bc44f62760839e08d42e73301a7b26f53a3218180fec1e0ce41e897bec742968f7351b9
7
+ data.tar.gz: 1aaf1d459bf0272c2874a333e14a7e5de69b5dbbc459cbc58bb47e424344795898ea2391afb812aa95658bce476f2c18ccd7d61ef02fad62a5c2bf8185f44dbd
@@ -80,7 +80,7 @@ class Options
80
80
  exception = ''
81
81
  exception << "Required options not specified: #{unset_vars.inspect}\n" unless unset_vars.size == 0
82
82
  exception << "Unknown options specified: #{varargs.inspect}\n" unless allow_unknown_options || (varargs.size == 0)
83
- exception << "You must specify #{allow_unknown_options} #{unknown_options_name}#{allow_unknown_options > 1 ? 's' : ''}" if allow_unknown_options.class == Fixnum && varargs.size != allow_unknown_options
83
+ exception << "You must specify #{allow_unknown_options} #{unknown_options_name}#{allow_unknown_options > 1 ? 's' : ''}" if allow_unknown_options.is_a?(Numeric) && varargs.size != allow_unknown_options
84
84
  if allow_unknown_options.class == Range
85
85
  if (allow_unknown_options.min == allow_unknown_options.max)
86
86
  if (varargs.size < allow_unknown_options.min)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dohroot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makani Mason
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-16 00:00:00.000000000 Z
12
+ date: 2017-06-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Implements the notion of dohroot that enables most other doh stuff.
15
15
  email:
@@ -19,6 +19,7 @@ extensions: []
19
19
  extra_rdoc_files:
20
20
  - MIT-LICENSE
21
21
  files:
22
+ - MIT-LICENSE
22
23
  - lib/dohroot.rb
23
24
  - lib/dohroot/findup.rb
24
25
  - lib/dohroot/main.rb
@@ -26,7 +27,6 @@ files:
26
27
  - lib/dohroot/pkg.rb
27
28
  - test/add_lib.rb
28
29
  - test/pkg.dt.rb
29
- - MIT-LICENSE
30
30
  homepage: https://github.com/atpsoft/dohroot
31
31
  licenses:
32
32
  - MIT
@@ -37,17 +37,17 @@ require_paths:
37
37
  - lib
38
38
  required_ruby_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 2.0.0
42
+ version: 2.2.0
43
43
  required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  requirements: []
49
49
  rubyforge_project:
50
- rubygems_version: 2.0.6
50
+ rubygems_version: 2.6.8
51
51
  signing_key:
52
52
  specification_version: 4
53
53
  summary: tiniest root of doh stuff