friendly 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/friendly.gemspec +1 -1
- data/lib/friendly/uuid.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/friendly.gemspec
CHANGED
data/lib/friendly/uuid.rb
CHANGED
@@ -27,7 +27,7 @@ module Friendly
|
|
27
27
|
when 36 # Human-readable UUID representation; inverse of #to_guid
|
28
28
|
elements = bytes.split("-")
|
29
29
|
raise TypeError, "Expected #{bytes.inspect} to cast to a #{self.class} (malformed UUID representation)" if elements.size != 5
|
30
|
-
@bytes = elements.join.
|
30
|
+
@bytes = Array(elements.join).pack('H32')
|
31
31
|
else
|
32
32
|
raise TypeError, "Expected #{bytes.inspect} to cast to a #{self.class} (invalid bytecount)"
|
33
33
|
end
|