uuidtools 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/uuidtools.rb +6 -0
- data/lib/uuidtools/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/lib/uuidtools.rb
CHANGED
@@ -587,6 +587,9 @@ module UUIDTools
|
|
587
587
|
|
588
588
|
def self.convert_int_to_byte_string(integer, size) #:nodoc:
|
589
589
|
byte_string = ""
|
590
|
+
if byte_string.respond_to?(:force_encoding)
|
591
|
+
byte_string.force_encoding(Encoding::ASCII_8BIT)
|
592
|
+
end
|
590
593
|
for i in 0..(size - 1)
|
591
594
|
byte_string << ((integer >> (((size - 1) - i) * 8)) & 0xFF)
|
592
595
|
end
|
@@ -594,6 +597,9 @@ module UUIDTools
|
|
594
597
|
end
|
595
598
|
|
596
599
|
def self.convert_byte_string_to_int(byte_string) #:nodoc:
|
600
|
+
if byte_string.respond_to?(:force_encoding)
|
601
|
+
byte_string.force_encoding(Encoding::ASCII_8BIT)
|
602
|
+
end
|
597
603
|
integer = 0
|
598
604
|
size = byte_string.size
|
599
605
|
for i in 0..(size - 1)
|
data/lib/uuidtools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uuidtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Aman
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-13 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|