tins 1.20.1 → 1.20.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b45beecb1aa668a60dbba0fd3de82977bfba124e7c61cb197436677efe5c289a
4
- data.tar.gz: 1a68ac6e0e0f8d90b5006a0dd0e2f366df2cbf771e1ac515590120399bfb693f
3
+ metadata.gz: 4b06b5b2ccaabbe326e8853a9c647783d1df0140af0c9cee8039d02b0f838ab9
4
+ data.tar.gz: 8589ce6bcddc044a74329107002a2c1826a5a2f7ece12c14940141036291be75
5
5
  SHA512:
6
- metadata.gz: eae6d13e3a93317e9210df3cfcb23da8bb3853bc50aaa85ee776047d078f3bfa3526e6b82618907238217d2ed6102e02e55af0b2220cae400dc8352c87695ac2
7
- data.tar.gz: 763fb5a20cc33b498a0e3ec62f09884804bf23b2c1d43a75585d934861f98d82f552a975bd68a9c10f1b4af57c5ed7b8d499dad8b6abdab287f4b5e27ba0db73
6
+ metadata.gz: 29c3286f5cf01256f0c52b5035be2620ac5131e57f1da68dcdfe1804f7633856f015cb0f00041025e0416ad3439a3b9a9f18759b5f4619f45c91155cc369f21f
7
+ data.tar.gz: 7151c9d260572739c63a22e813a5798803a76327de6eb1e7195c2ae8161fde3c090cfd30569528b523e7f3b5fb38c6af89bb17b72ec037c18d01623b5a727687
data/README.md CHANGED
@@ -13,6 +13,8 @@ Non yet.
13
13
  ## Changes
14
14
 
15
15
 
16
+ * 2018-11-14 Release 1.20.2
17
+ - Fix ~x options
16
18
  * 2018-11-14 Release 1.20.1
17
19
  - Add disabling boolean options in Tins::GO#go method.
18
20
  * 2018-11-14 Release 1.20.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.20.1
1
+ 1.20.2
@@ -86,7 +86,7 @@ module Tins
86
86
  end
87
87
  end && break
88
88
  end
89
- r.reject! { |a| /\A~(?<p>.)/ =~ a and (b[p] = false) or true }
89
+ r.reject! { |a| (b[p] = false) || true if /\A~(?<p>.)/ =~ a }
90
90
  args.replace r
91
91
  b.merge(v)
92
92
  end
@@ -1,6 +1,6 @@
1
1
  module Tins
2
2
  # Tins version
3
- VERSION = '1.20.1'
3
+ VERSION = '1.20.2'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -63,9 +63,9 @@ module Tins
63
63
  r = go('bv:', args = %w[ -v bar ], defaults: { ?b => true, ?v => 'foo' })
64
64
  assert_equal({ ?b => 1, 'v' => 'bar' }, r)
65
65
  assert_equal [], args
66
- r = go('bv:', args = %w[ ~b -v bar ], defaults: { ?b => true, ?v => 'foo' })
66
+ r = go('bv:', args = %w[ -v bar ~b baz ], defaults: { ?b => true, ?v => 'foo' })
67
67
  assert_equal({ ?b => false, 'v' => 'bar' }, r)
68
- assert_equal [], args
68
+ assert_equal %w[ baz ], args
69
69
  r = go('bv:', args = %w[ -b -v bar ], defaults: { ?b => 22, ?v => 'foo' })
70
70
  assert_equal({ ?b => 23, 'v' => 'bar' }, r)
71
71
  assert_equal [], args
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: tins 1.20.1 ruby lib
2
+ # stub: tins 1.20.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "tins".freeze
6
- s.version = "1.20.1"
6
+ s.version = "1.20.2"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tins
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank