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 CHANGED
@@ -1,3 +1,5 @@
1
+ == UUIDTools 2.1.1
2
+ * fixed issue with Ruby 1.9 compatibility
1
3
  == UUIDTools 2.1.0
2
4
  * completely reworked the MAC address detection code
3
5
  * added additional parsing methods
@@ -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)
@@ -27,7 +27,7 @@ unless defined? UUID::VERSION
27
27
  module VERSION #:nodoc:
28
28
  MAJOR = 2
29
29
  MINOR = 1
30
- TINY = 0
30
+ TINY = 1
31
31
 
32
32
  STRING = [MAJOR, MINOR, TINY].join('.')
33
33
  end
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.0
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 00:00:00 -04:00
12
+ date: 2009-10-13 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency