shortuuid 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shortuuid.rb +1 -1
- data/lib/shortuuid/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5b102b6f8fd80fbd6e8d2d781ade1061c1bc129
|
4
|
+
data.tar.gz: 68a2030a24eca5c2d5dd97cc8e1ad2d58e6fa759
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b08481115bc685e1aa4fe2216e5888ebe0449f121b0472636b849da8facc1f22d4192a751f140c813de2b34e6d35c839671078d43dbc719fec87a5d50b9a106
|
7
|
+
data.tar.gz: d1eaa1cc544c23b27915104443101a2093c13a3712755814047d6af9414637b124e66059f5d9c0538001397d8dc3079bd2dfac34466f54e1f78314ab612395ed
|
data/lib/shortuuid.rb
CHANGED
@@ -25,7 +25,7 @@ module ShortUUID
|
|
25
25
|
def self.convert_alphabet_to_decimal(word, alphabet)
|
26
26
|
num = 0
|
27
27
|
radix = alphabet.length
|
28
|
-
word.chars.reverse.each_with_index do |char, index|
|
28
|
+
word.chars.to_a.reverse.each_with_index do |char, index|
|
29
29
|
num += alphabet.index(char) * (radix**index)
|
30
30
|
end
|
31
31
|
num
|
data/lib/shortuuid/version.rb
CHANGED