binascii 1.0.1 → 1.0.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: 16bf16d0e2998067e88943c9d4ecafa20154f34a1418a0986d7b88710743447d
4
- data.tar.gz: 5b67c17bf48d3878653dd7837ca84379272a312f483de9524c4b968762715b7a
3
+ metadata.gz: be51b138394cb05b82956ff7d91425cb07964d83d5451c6f0f0ccb9b18bc805e
4
+ data.tar.gz: a8e74ff71e7b7cd0e828181f50e362b53d00e03cb9f85f9458329b0cda43a090
5
5
  SHA512:
6
- metadata.gz: 99e887a56ac928a86add1c2c33aab53091994a28de28196c388d015eeb67f691b62480a02de3268202935908716d0b7e3299d1392c114f46011b6f9c79515431
7
- data.tar.gz: 9b443b8d7bf27e5483c46b8e6be8f95e13cea1ca3891f08f9b31dd5bffcf6aa570f4d066a1d361ef83d7bb8bd034bd3ab9c5650c099c271e82b4dd0b89b93df3
6
+ metadata.gz: 91d112825cb2931b70acbc320ed1c9f63b77b3259a2d2e5bcd603f2b6ec3c4e686cc079692a62139d5e6391dc32db26613d66f6a4b273b7c1c6274413179a466
7
+ data.tar.gz: ddf4f6ea7ab4a7923adecd47eae0e1c01e0e7c696780eed6594e995392a79c9926999ee81bbe6db5e4d4efaa5c9de56257258d238792fa119a0a5688a4429ad9
@@ -1,3 +1,6 @@
1
+ ## 1.0.2
2
+ * Fix hexlify and unhexlify to work with both uppercase and lowercase hex strings.
3
+
1
4
  ## 1.0.1
2
5
  * Fix issue causing `.b2a_base64` to error on empty strings.
3
6
 
@@ -3,11 +3,11 @@
3
3
  module Binascii
4
4
  module Hex
5
5
  A2B_LO = (('0'..'9').to_a + ('a'..'z').to_a + ('A'..'Z').to_a)
6
- .each_with_object({}).with_index { |(chr, ret), idx| ret[chr.ord] = idx }
6
+ .each_with_object({}) { |chr, ret| ret[chr.ord] = chr.to_i(16) }
7
7
  .freeze
8
8
 
9
9
  A2B_HI = A2B_LO
10
- .each_with_object({}) { |(ord, idx), ret| ret[ord] = idx + (0xF * idx) }
10
+ .each_with_object({}) { |(ord, idx), ret| ret[ord] = idx << 4 }
11
11
  .freeze
12
12
 
13
13
  B2A = (0...256).each_with_object({}) do |b, ret|
@@ -1,3 +1,3 @@
1
1
  module Binascii
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binascii
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-15 00:00:00.000000000 Z
11
+ date: 2019-07-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby version of Python's binascii module
14
14
  email: