uuid_it 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +2 -0
- data/lib/ruby-uuid/uuid.rb +2 -2
- metadata +7 -8
data/Changelog.md
CHANGED
data/lib/ruby-uuid/uuid.rb
CHANGED
@@ -159,13 +159,13 @@ class UUID
|
|
159
159
|
node[0] |= 0x01 # multicast bit
|
160
160
|
end
|
161
161
|
k = rand 0x40000
|
162
|
-
open STATE_FILE, '
|
162
|
+
open STATE_FILE, 'wb' do |fp|
|
163
163
|
fp.flock IO::LOCK_EX
|
164
164
|
write_state fp, k, node
|
165
165
|
fp.chmod 0o777 # must be world writable
|
166
166
|
end
|
167
167
|
end
|
168
|
-
open STATE_FILE, '
|
168
|
+
open STATE_FILE, 'rb+' do |fp|
|
169
169
|
fp.flock IO::LOCK_EX
|
170
170
|
c, m = read_state fp
|
171
171
|
c = clock % 0x4000 if clock
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uuid_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Andr\xC3\xA9 Duffeck"
|
@@ -15,11 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-05-07 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
|
-
description: " You need to assign UUIDs to your model? UuidIt makes it as simple as adding one line of code to the according models
|
21
|
+
description: " You need to assign UUIDs to your model? UuidIt makes it as simple as adding one line of code to the according models.\n"
|
23
22
|
email:
|
24
23
|
- aduffeck@suse.de
|
25
24
|
executables: []
|
@@ -43,7 +42,6 @@ files:
|
|
43
42
|
- test/uuid_it_test.rb~
|
44
43
|
- test/uuid_it_test.rb
|
45
44
|
- test/test_helper.rb
|
46
|
-
has_rdoc: true
|
47
45
|
homepage: http://github.com/aduffeck/uuid_it
|
48
46
|
licenses: []
|
49
47
|
|
@@ -73,9 +71,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
71
|
requirements: []
|
74
72
|
|
75
73
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.8.15
|
77
75
|
signing_key:
|
78
76
|
specification_version: 3
|
79
77
|
summary: A Rails plugin for easily assigning UUIDs to your models..
|
80
78
|
test_files:
|
81
79
|
- test/uuid_it_test.rb
|
80
|
+
has_rdoc: false
|