uuid 2.3.0 → 2.3.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/Rakefile +2 -3
  3. data/lib/uuid.rb +2 -2
  4. data/uuid.gemspec +1 -1
  5. 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 gemcutter and git tag"
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
- sudo = "sudo" unless File.writable?( Gem::ConfigMap[:bindir])
41
- sh "#{sudo} gem install #{spec.name}-#{spec.version}.gem"
40
+ sh "gem install #{spec.name}-#{spec.version}.gem"
42
41
  end
@@ -210,7 +210,7 @@ class UUID
210
210
  @sequence = rand 0x10000
211
211
 
212
212
  if state_file
213
- open_lock 'w' do |io|
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 'r+' do |io|
272
+ open_lock 'rb+' do |io|
273
273
  @mac, @sequence, @last_clock = read_state(io)
274
274
 
275
275
  io.rewind
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |spec|
2
2
  spec.name = 'uuid'
3
- spec.version = '2.3.0'
3
+ spec.version = '2.3.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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 3
8
- - 0
9
- version: 2.3.0
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-04-07 00:00:00 -07:00
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