uuid 2.3.2 → 2.3.3

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 (4) hide show
  1. data/CHANGELOG +5 -0
  2. data/lib/uuid.rb +3 -3
  3. data/uuid.gemspec +1 -1
  4. metadata +35 -37
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 2.3.3 (2011-08-01)
2
+
3
+ Check if ruby-uuid is writable: it might have been claimed by another user on
4
+ the system already (Andy Lo-A-Foe)
5
+
1
6
  2.3.2 (2011-04-11)
2
7
  * Allow usage on environments that don't have MAC address accessible (mikezter)
3
8
  * Fix for JRuby expand_path interpretation on windows (pinnymz)
@@ -167,9 +167,9 @@ class UUID
167
167
  state_dir = File.join('', 'var', 'tmp')
168
168
  end
169
169
 
170
- if File.writable?(state_dir) then
171
- @state_file = File.join(state_dir, 'ruby-uuid')
172
- else
170
+ @state_file = File.join(state_dir, 'ruby-uuid')
171
+
172
+ if !File.writable?(state_dir) || (File.exists?(@state_file) && !File.writable?(@state_file)) then
173
173
  @state_file = File.expand_path('.ruby-uuid', '~')
174
174
  end
175
175
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'uuid'
3
- s.version = '2.3.2'
3
+ s.version = '2.3.3'
4
4
  s.summary = "UUID generator"
5
5
  s.description = <<-EOF
6
6
  UUID generator for producing universally unique identifiers based on RFC 4122
metadata CHANGED
@@ -1,42 +1,43 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: uuid
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.3.3
4
5
  prerelease:
5
- version: 2.3.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Assaf Arkin
9
9
  - Eric Hodel
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-04-11 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2011-08-01 00:00:00.000000000 -07:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
17
  name: macaddr
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &2152873140 !ruby/object:Gem::Requirement
20
19
  none: false
21
- requirements:
20
+ requirements:
22
21
  - - ~>
23
- - !ruby/object:Gem::Version
24
- version: "1.0"
22
+ - !ruby/object:Gem::Version
23
+ version: '1.0'
25
24
  type: :runtime
26
- version_requirements: *id001
27
- description: |
28
- UUID generator for producing universally unique identifiers based on RFC 4122
25
+ prerelease: false
26
+ version_requirements: *2152873140
27
+ description: ! 'UUID generator for producing universally unique identifiers based
28
+ on RFC 4122
29
+
29
30
  (http://www.ietf.org/rfc/rfc4122.txt).
30
31
 
32
+ '
31
33
  email: assaf@labnotes.org
32
- executables:
34
+ executables:
33
35
  - uuid
34
36
  extensions: []
35
-
36
- extra_rdoc_files:
37
+ extra_rdoc_files:
37
38
  - README.rdoc
38
39
  - MIT-LICENSE
39
- files:
40
+ files:
40
41
  - bin/uuid
41
42
  - test/test-uuid.rb
42
43
  - lib/uuid.rb
@@ -45,37 +46,34 @@ files:
45
46
  - Rakefile
46
47
  - CHANGELOG
47
48
  - uuid.gemspec
49
+ has_rdoc: true
48
50
  homepage: http://github.com/assaf/uuid
49
51
  licenses: []
50
-
51
52
  post_install_message:
52
- rdoc_options:
53
+ rdoc_options:
53
54
  - --main
54
55
  - README.rdoc
55
56
  - --title
56
57
  - UUID generator
57
58
  - --line-numbers
58
- require_paths:
59
+ require_paths:
59
60
  - lib
60
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
61
62
  none: false
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- version: "0"
66
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
68
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- version: "0"
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
72
73
  requirements: []
73
-
74
74
  rubyforge_project:
75
- rubygems_version: 1.7.2
75
+ rubygems_version: 1.6.2
76
76
  signing_key:
77
77
  specification_version: 3
78
78
  summary: UUID generator
79
79
  test_files: []
80
-
81
- has_rdoc: