slop 4.4.2 → 4.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d27e2c3615ec37ec13f7a425eca0bd2095019f4
4
- data.tar.gz: e9bd705f261dd6c8f91e53e48c4eb0afaa47b809
3
+ metadata.gz: 8c63fac368765194fd91613b7972278df8ae6640
4
+ data.tar.gz: 2090a28f3ad52ac3d7f053237d31bf4b0c1af732
5
5
  SHA512:
6
- metadata.gz: fab6f8d628b08341f2d51f980a75654cb229e1a7a3412e0bc3fc3b19d39a0064adb7461a77a70fd491495e22ae766d464ea7850213320f64b41d72674e68080b
7
- data.tar.gz: cca338b3042a5614a673f14a88b50fa990143a31c4c57faeaee3427476468074249ccc803ab7e2a67ad8f9cf31fc6877c87c09c14898ee2725393691edb7bd91
6
+ metadata.gz: 706aae3b6e32a0d93f26f1e0ffc6ebbc60df899d1ce60fcb68fcb85fa4c5fa0242e581ea24fb8947c43efe7d88753062a05d4ec8d2896681028d5ec003070662
7
+ data.tar.gz: 3d81629d6cb5183e19b1a26f7bc582035bc4c7513775d9406a21e7f1783240a0bfbc4e10a2a87bc3c40fc6f282576490a588b9aa275eaec708023df86b6ec825
@@ -1,7 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- v4.4.2 (2017-06-29)
4
+ v4.4.3 (2017-05-02)
5
+ -------------------
6
+
7
+ Bug fixes:
8
+ * Ruby 2.0.0 support broken in v4.4.2
9
+
10
+ v4.4.2 (2017-04-29)
5
11
  -------------------
6
12
 
7
13
  Bug fixes:
@@ -6,7 +6,7 @@ require 'slop/types'
6
6
  require 'slop/error'
7
7
 
8
8
  module Slop
9
- VERSION = '4.4.2'
9
+ VERSION = '4.4.3'
10
10
 
11
11
  # Parse an array of options (defaults to ARGV). Accepts an
12
12
  # optional hash of configuration options and block.
@@ -145,7 +145,7 @@ module Slop
145
145
  options.find { |o| o.flags.include?(flag) }
146
146
  end
147
147
 
148
- private def partition(strings)
148
+ def partition(strings)
149
149
  if strings.include?("--")
150
150
  partition_idx = strings.index("--")
151
151
  [strings[0..partition_idx-1], strings[partition_idx+1..-1]]
@@ -7,7 +7,7 @@ describe Slop do
7
7
  end
8
8
 
9
9
  it "returns false if the option is not defined" do
10
- assert_equal false, Slop.option_defined?("Foo")
10
+ assert_equal false, Slop.option_defined?("FooBar")
11
11
  end
12
12
 
13
13
  it "returns true if the option is defined" 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.4.2
4
+ version: 4.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Jarvis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-29 00:00:00.000000000 Z
11
+ date: 2017-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake