Skip to content

Commit

Permalink
fixes issue #3 when using ruby > 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
t0d0r committed May 6, 2012
1 parent 69c2f76 commit edfd1f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
@@ -1,2 +1,4 @@
# 0.1.3 (2012-05-06)
* fixed a bug 'marshal data too short' issue #3 when using ruby > 1.8.7
# 0.1.2 (2011-08-25)
* fixed a bug where uuid_it created multiple Uuids when an unsaved Uuidable already had created one
4 changes: 2 additions & 2 deletions lib/ruby-uuid/uuid.rb
Expand Up @@ -159,13 +159,13 @@ def create clock=nil, time=nil, mac_addr=nil
node[0] |= 0x01 # multicast bit
end
k = rand 0x40000
open STATE_FILE, 'w' do |fp|
open STATE_FILE, 'wb' do |fp|
fp.flock IO::LOCK_EX
write_state fp, k, node
fp.chmod 0o777 # must be world writable
end
end
open STATE_FILE, 'r+' do |fp|
open STATE_FILE, 'rb+' do |fp|
fp.flock IO::LOCK_EX
c, m = read_state fp
c = clock % 0x4000 if clock
Expand Down
4 changes: 2 additions & 2 deletions uuid_it.gemspec
@@ -1,12 +1,12 @@
spec = Gem::Specification.new do |s|
s.name = "uuid_it"
s.version = "0.1.2"
s.version = "0.1.3"
s.authors = ["André Duffeck"]
s.email = ["aduffeck@suse.de"]
s.homepage = "http://github.com/aduffeck/uuid_it"
s.summary = "A Rails plugin for easily assigning UUIDs to your models.."
s.description = <<-EOM
You need to assign UUIDs to your model? UuidIt makes it as simple as adding one line of code to the according models.
You need to assign UUIDs to your model? UuidIt makes it as simple as adding one line of code to the according models.
EOM

s.has_rdoc = false
Expand Down

0 comments on commit edfd1f7

Please sign in to comment.