rfc_facil 1.1.0 → 1.1.1

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: 8ddcd91907e54fbedb83d48cad24c38ba8c59e1c
4
- data.tar.gz: dd4cdbf389490837366b0d6dc9b0554337276ec4
3
+ metadata.gz: bdef0e7bfc0c4c253f581b99434173fc6e35e1d6
4
+ data.tar.gz: a7f0919ae60d0335756fc906cd9b182f3f7915c1
5
5
  SHA512:
6
- metadata.gz: 127540967b6c0738ff34cdedf0df692f495aa5c1e3735bf154be572afcd88f42e7170cd451d8e1c49e6576fa579c3847a14374ff85a5cf0829516e7fd66111c9
7
- data.tar.gz: fe01d19e1207fa619238cd7535d7ad520385b0b924c07cc61410e47632fcfb83bb2615283327782d494619b6676b60334ce0bb87503dcc78289546cd5c287c29
6
+ metadata.gz: a0dccb45f80671973c48773bacf398a1947e21767294d6bb1e5f19e8705d58f04523bcebfe5ecb64ae03a51b8a0cf0923c561d13545584387c7d7f6c043b596b
7
+ data.tar.gz: 1f1859a905a1ae54490cdb7456768983d279c49590699d6e97d58dc1a394ff920c7ef75526501cc89b4dee0848e07f7f6293f6e1a933ea51d89430b5e3c16d5e
@@ -22,9 +22,7 @@ module RfcFacil
22
22
  reminder = sum % 11
23
23
 
24
24
  return '0' if reminder == 0
25
- result = 11 - reminder
26
- return 'A' if result == 10
27
- result.to_s
25
+ (11 - reminder).to_s(16).upcase # from 1 to A (hex)
28
26
  end
29
27
 
30
28
  def map_digit(c)
@@ -1,3 +1,3 @@
1
1
  module RfcFacil
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfc_facil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Rangel