slop 3.3.1 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES.md +5 -0
  2. data/lib/slop.rb +2 -2
  3. data/slop.gemspec +1 -1
  4. metadata +19 -9
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 3.3.2 (2012-06-26)
2
+ ------------------
3
+
4
+ * Ensure multiple options are not executed unless they exist (#70)
5
+
1
6
  3.3.1 (2012-05-31)
2
7
  ------------------
3
8
 
@@ -4,7 +4,7 @@ require 'slop/commands'
4
4
  class Slop
5
5
  include Enumerable
6
6
 
7
- VERSION = '3.3.1'
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'slop'
3
- s.version = '3.3.1'
3
+ s.version = '3.3.2'
4
4
  s.summary = 'Option gathering made easy'
5
5
  s.description = 'A simple DSL for gathering options and parsing the command line'
6
6
  s.author = 'Lee Jarvis'
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.1
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-05-31 00:00:00.000000000 Z
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: &70351938520120 !ruby/object:Gem::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: *70351938520120
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: &70351938541500 !ruby/object:Gem::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: *70351938541500
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: 4605818326398820360
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: 4605818326398820360
90
+ hash: -3236998902673647399
81
91
  requirements: []
82
92
  rubyforge_project:
83
- rubygems_version: 1.8.11
93
+ rubygems_version: 1.8.23
84
94
  signing_key:
85
95
  specification_version: 3
86
96
  summary: Option gathering made easy