slop 4.6.1 → 4.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/slop.rb +1 -1
- data/lib/slop/parser.rb +2 -2
- data/test/parser_test.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ebf99ce79c4681f07967df62008038b3b3ef878
|
4
|
+
data.tar.gz: e074639079cede3024fc00eac71218a744427678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28ea608999bd09c8c02a43d9f67d571590dfd8742d3dd6712b5a67d3259d80273cfe3e434285dba0b6c524481d38de2fb2db599c4cab8d52d080088ace093cfb
|
7
|
+
data.tar.gz: 2cbedaf601a63a4a5ae57e46ea832827c54ebde7c69319f8313c034f89b0482af0f767fd6a4f9adbcfd5834ca31d7f6a087e4e60240399cbe96a19a3019a6380
|
data/CHANGELOG.md
CHANGED
data/lib/slop.rb
CHANGED
data/lib/slop/parser.rb
CHANGED
data/test/parser_test.rb
CHANGED
@@ -21,6 +21,11 @@ describe Slop::Parser do
|
|
21
21
|
@result.parser.parse %w(--name=bob -p=123)
|
22
22
|
assert_equal "bob", @result[:name]
|
23
23
|
assert_equal 123, @result[:port]
|
24
|
+
|
25
|
+
@options.string "--foo"
|
26
|
+
@result.parser.parse %w(--foo = =)
|
27
|
+
assert_equal "=", @result[:foo]
|
28
|
+
assert_equal %w(=), @result.args
|
24
29
|
end
|
25
30
|
|
26
31
|
it "parses arg with leading -" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.6.
|
4
|
+
version: 4.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Jarvis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.5.2
|
90
|
+
rubygems_version: 2.5.2
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Simple Lightweight Option Parsing
|