ruby_xid 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_xid.rb +1 -2
- data/lib/xid/base32.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a7334953c44afa55db41bc336ffcdafa4c975c145d140e51e7250ff45913b8d
|
4
|
+
data.tar.gz: d5f23db03539479e6f9a042a5f675027d8a6d834cf3eb0e4d20cd6b95c046d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c57a517ae13022868f6031d35b105bbebd1524953f3024c31e2c909fce816960a6f110b936399e1d02c1e67d037b60b739a2e5950db8094672feccbcbb9b1e
|
7
|
+
data.tar.gz: 016c493065f0db6b4dde30ab330ec8eb4a963bfe0db75682d2e2774f083bce5c0e22b170ce72611e9ce3b2c53b642df1839ca39103141a85fd330f1774a6d6ec
|
data/lib/ruby_xid.rb
CHANGED
data/lib/xid/base32.rb
CHANGED
@@ -12,7 +12,6 @@ class Xid::Base32
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def b32encode(src)
|
15
|
-
src = src.chars.map(&:ord)
|
16
15
|
encode(src, ENCODE_HEX)
|
17
16
|
end
|
18
17
|
|
@@ -26,7 +25,7 @@ class Xid::Base32
|
|
26
25
|
dst = []
|
27
26
|
while src_str && !src_str.empty?
|
28
27
|
src_len = src_str.length
|
29
|
-
next_byte =
|
28
|
+
next_byte = Array.new(8, 0)
|
30
29
|
|
31
30
|
if src_len > 4
|
32
31
|
next_byte[7] = src_str[4] & 0x1f
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_xid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valarpiraichandran
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: a.valarpirai@gmail.com
|