dohroot 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.
- checksums.yaml +4 -4
- data/lib/dohroot/options.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 134be11cc6451f820f2bd9b92bef8cf3ce8d7ed1
|
|
4
|
+
data.tar.gz: d3f6d7e12364e4dad90e06ff9db5d5d8c0eb594c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 388da5ef30e7f153e726118ed36cee8b314a6cd1417737a18eab5b782bc44f62760839e08d42e73301a7b26f53a3218180fec1e0ce41e897bec742968f7351b9
|
|
7
|
+
data.tar.gz: 1aaf1d459bf0272c2874a333e14a7e5de69b5dbbc459cbc58bb47e424344795898ea2391afb812aa95658bce476f2c18ccd7d61ef02fad62a5c2bf8185f44dbd
|
data/lib/dohroot/options.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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:
|
|
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.
|
|
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.
|
|
50
|
+
rubygems_version: 2.6.8
|
|
51
51
|
signing_key:
|
|
52
52
|
specification_version: 4
|
|
53
53
|
summary: tiniest root of doh stuff
|