uuid 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Rakefile +2 -3
- data/lib/uuid.rb +2 -2
- data/uuid.gemspec +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
2.3.1 (2010-05-07)
|
2
|
+
* Fix: Open state file in binary mode (http://github.com/assaf/uuid/issues#issue/8)
|
3
|
+
|
1
4
|
2.3.0 (2010-04-07)
|
2
5
|
* Added: UUID.generator returns the current UUID generator. Particularly useful for calling
|
3
6
|
next_sequence on the generator when forking a process.
|
data/Rakefile
CHANGED
@@ -23,7 +23,7 @@ end
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
desc "Push new release to
|
26
|
+
desc "Push new release to rubyforge and git tag"
|
27
27
|
task :push do
|
28
28
|
sh "git push"
|
29
29
|
puts "Tagging version #{spec.version} .."
|
@@ -37,6 +37,5 @@ end
|
|
37
37
|
desc "Install #{spec.name} locally"
|
38
38
|
task :install do
|
39
39
|
sh "gem build #{spec.name}.gemspec"
|
40
|
-
|
41
|
-
sh "#{sudo} gem install #{spec.name}-#{spec.version}.gem"
|
40
|
+
sh "gem install #{spec.name}-#{spec.version}.gem"
|
42
41
|
end
|
data/lib/uuid.rb
CHANGED
@@ -210,7 +210,7 @@ class UUID
|
|
210
210
|
@sequence = rand 0x10000
|
211
211
|
|
212
212
|
if state_file
|
213
|
-
open_lock '
|
213
|
+
open_lock 'wb' do |io|
|
214
214
|
write_state io
|
215
215
|
end
|
216
216
|
end
|
@@ -269,7 +269,7 @@ class UUID
|
|
269
269
|
# Updates the state file with a new sequence number.
|
270
270
|
def next_sequence
|
271
271
|
if self.class.state_file
|
272
|
-
open_lock '
|
272
|
+
open_lock 'rb+' do |io|
|
273
273
|
@mac, @sequence, @last_clock = read_state(io)
|
274
274
|
|
275
275
|
io.rewind
|
data/uuid.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 2.3.
|
8
|
+
- 1
|
9
|
+
version: 2.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Assaf Arkin
|
@@ -15,12 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-05-07 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: macaddr
|
23
|
-
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
requirements:
|
26
25
|
- - ~>
|
@@ -30,6 +29,7 @@ dependencies:
|
|
30
29
|
- 0
|
31
30
|
version: "1.0"
|
32
31
|
type: :runtime
|
32
|
+
prerelease: false
|
33
33
|
version_requirements: *id001
|
34
34
|
description: |
|
35
35
|
UUID generator for producing universally unique identifiers based on RFC 4122
|