uuid 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/CHANGELOG +3 -0
  2. data/MIT-LICENSE +1 -1
  3. data/lib/uuid.rb +2 -2
  4. data/uuid.gemspec +1 -1
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2.1.1 (2010-01-27)
2
+ * Fixed bug which caused UUID.new to fail if the state file was somehow extant but empty
3
+
1
4
  2.1.0 (2009-12-16)
2
5
  * Added uuid.validate -- easier to implement than explain why it's wrong.
3
6
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2005-2008 Assaf Arkin, Eric Hodel
1
+ Copyright (c) 2005-2010 Assaf Arkin, Eric Hodel
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Author:: Assaf Arkin assaf@labnotes.org
5
5
  # Eric Hodel drbrain@segment7.net
6
- # Copyright:: Copyright (c) 2005-2008 Assaf Arkin, Eric Hodel
6
+ # Copyright:: Copyright (c) 2005-2010 Assaf Arkin, Eric Hodel
7
7
  # License:: MIT and/or Creative Commons Attribution-ShareAlike
8
8
 
9
9
  require 'fileutils'
@@ -180,7 +180,7 @@ class UUID
180
180
  @last_clock = (Time.now.to_f * CLOCK_MULTIPLIER).to_i
181
181
  @mutex = Mutex.new
182
182
 
183
- if File.exist?(self.class.state_file) then
183
+ if File.size?(self.class.state_file) then
184
184
  next_sequence
185
185
  else
186
186
  @mac = Mac.addr.gsub(/:|-/, '').hex & 0x7FFFFFFFFFFF
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |spec|
2
2
  spec.name = 'uuid'
3
- spec.version = '2.1.0'
3
+ spec.version = '2.1.1'
4
4
  spec.summary = "UUID generator"
5
5
  spec.description = <<-EOF
6
6
  UUID generator for producing universally unique identifiers based on RFC 4122
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid
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
  - Assaf Arkin
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-12-16 00:00:00 -08:00
13
+ date: 2010-01-27 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency