slop 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +5 -0
- data/lib/slop.rb +2 -2
- data/slop.gemspec +1 -1
- metadata +19 -9
data/CHANGES.md
CHANGED
data/lib/slop.rb
CHANGED
@@ -4,7 +4,7 @@ require 'slop/commands'
|
|
4
4
|
class Slop
|
5
5
|
include Enumerable
|
6
6
|
|
7
|
-
VERSION = '3.3.
|
7
|
+
VERSION = '3.3.2'
|
8
8
|
|
9
9
|
# The main Error class, all Exception classes inherit from this class.
|
10
10
|
class Error < StandardError; end
|
@@ -491,7 +491,7 @@ class Slop
|
|
491
491
|
def execute_multiple_switches(option, argument, index)
|
492
492
|
execute_option(option, nil, index)
|
493
493
|
argument.split('').each do |key|
|
494
|
-
opt = fetch_option(key)
|
494
|
+
next unless opt = fetch_option(key)
|
495
495
|
opt.count += 1
|
496
496
|
execute_option(opt, nil, index, key)
|
497
497
|
end
|
data/slop.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: minitest
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
description: A simple DSL for gathering options and parsing the command line
|
37
47
|
email: lee@jarvis.co
|
38
48
|
executables: []
|
@@ -68,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
78
|
version: '0'
|
69
79
|
segments:
|
70
80
|
- 0
|
71
|
-
hash:
|
81
|
+
hash: -3236998902673647399
|
72
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
83
|
none: false
|
74
84
|
requirements:
|
@@ -77,10 +87,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
87
|
version: '0'
|
78
88
|
segments:
|
79
89
|
- 0
|
80
|
-
hash:
|
90
|
+
hash: -3236998902673647399
|
81
91
|
requirements: []
|
82
92
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.8.
|
93
|
+
rubygems_version: 1.8.23
|
84
94
|
signing_key:
|
85
95
|
specification_version: 3
|
86
96
|
summary: Option gathering made easy
|