uuid 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +5 -1
  2. data/Rakefile +13 -20
  3. data/lib/uuid.rb +0 -1
  4. data/uuid.gemspec +22 -0
  5. metadata +11 -5
data/CHANGELOG CHANGED
@@ -1,4 +1,8 @@
1
- 2.0.1 (Pending)
1
+ 2.0.2 (2009-06-10)
2
+ * Maintenance release. Added uuid.gemspec file in packaging, tested against
3
+ Ruby 1.9.1.
4
+
5
+ 2.0.1 (2008-08-28)
2
6
  * Fixed: MAC address parses correctly when using colon as separator, not
3
7
  when using hyphen (ruby-mingw32). If your MAC address is all zero
4
8
  (check with UUID.new.inspect), remove the ruby-uuid file, and it
data/Rakefile CHANGED
@@ -4,7 +4,6 @@ require 'rubygems'
4
4
  require 'rake/testtask'
5
5
  require 'rake/rdoctask'
6
6
  require 'rake/gempackagetask'
7
- require 'rubygems/source_info_cache'
8
7
 
9
8
 
10
9
  spec = Gem::Specification.load(File.join(File.dirname(__FILE__), 'uuid.gemspec'))
@@ -15,16 +14,18 @@ task 'default' => ['test', 'rdoc']
15
14
 
16
15
  desc "If you're building from sources, run this task first to setup the necessary dependencies"
17
16
  task 'setup' do
18
- windows = Config::CONFIG['host_os'] =~ /windows|cygwin|bccwin|cygwin|djgpp|mingw|mswin|wince/i
19
- rb_bin = File.expand_path(Config::CONFIG['ruby_install_name'], Config::CONFIG['bindir'])
20
- spec.dependencies.select { |dep| Gem::SourceIndex.from_installed_gems.search(dep).empty? }.each do |missing|
21
- dep = Gem::Dependency.new(missing.name, missing.version_requirements)
22
- spec = Gem::SourceInfoCache.search(dep, true, true).last
23
- fail "#{dep} not found in local or remote repository!" unless spec
24
- puts "Installing #{spec.full_name} ..."
25
- args = [rb_bin, '-S', 'gem', 'install', spec.name, '-v', spec.version.to_s]
26
- args.unshift('sudo') unless windows || ENV['GEM_HOME']
27
- sh args.map{ |a| a.inspect }.join(' ')
17
+ missing = spec.dependencies.select { |dep| Gem::SourceIndex.from_installed_gems.search(dep).empty? }
18
+ missing.each do |dep|
19
+ if Gem::SourceIndex.from_installed_gems.search(dep).empty?
20
+ puts "Installing #{dep.name} ..."
21
+ rb_bin = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
22
+ args = []
23
+ args << rb_bin << '-S' << 'gem' << 'install' << dep.name
24
+ args << '--version' << dep.version_requirements.to_s
25
+ args << '--source' << 'http://gems.rubyforge.org'
26
+ args << '--install-dir' << ENV['GEM_HOME'] if ENV['GEM_HOME']
27
+ sh *args
28
+ end
28
29
  end
29
30
  end
30
31
 
@@ -71,14 +72,6 @@ end
71
72
  task 'release'=>['setup', 'test', 'package'] do
72
73
 
73
74
  require 'rubyforge'
74
- =begin
75
- header = File.readlines('CHANGELOG').first
76
- version, date = header.scan(/(\d+\.\d+\.\d+) \((\d{4}-\d{2}-\d{2})\)/).first
77
- fail "CHANGELOG and spec version numbers do not match: #{version} != #{spec.version}" unless version == spec.version.to_s
78
- today = Time.now.strftime('%Y-%m-%d')
79
- fail "CHANGELOG entry not using today's date: #{date} != #{today}" unless date = today
80
-
81
- =end
82
75
  changes = File.read('CHANGELOG')[/\d+.\d+.\d+.*\n((:?^[^\n]+\n)*)/]
83
76
  File.open '.changes', 'w' do |file|
84
77
  file.write changes
@@ -90,7 +83,7 @@ task 'release'=>['setup', 'test', 'package'] do
90
83
  rubyforge.configure
91
84
  rubyforge.login
92
85
  rubyforge.userconfig.merge! 'release_changes'=>'.changes', 'preformatted'=>true
93
- rubyforge.add_release spec.rubyforge_project.downcase, spec.name.downcase, spec.version, *files
86
+ rubyforge.add_release spec.rubyforge_project.downcase, spec.name.downcase, spec.version.to_s, *files
94
87
  rm_f '.changes'
95
88
  puts "Release #{spec.version} uploaded"
96
89
  end
@@ -3,7 +3,6 @@
3
3
  #
4
4
  # Author:: Assaf Arkin assaf@labnotes.org
5
5
  # Eric Hodel drbrain@segment7.net
6
- # Documentation:: http://trac.labnotes.org/cgi-bin/trac.cgi/wiki/Ruby/UuidGenerator
7
6
  # Copyright:: Copyright (c) 2005-2008 Assaf Arkin, Eric Hodel
8
7
  # License:: MIT and/or Creative Commons Attribution-ShareAlike
9
8
 
@@ -0,0 +1,22 @@
1
+ spec = Gem::Specification.new do |spec|
2
+ spec.name = 'uuid'
3
+ spec.version = '2.0.2'
4
+ spec.summary = "UUID generator"
5
+ spec.description = <<-EOF
6
+ UUID generator for producing universally unique identifiers based on RFC 4122
7
+ (http://www.ietf.org/rfc/rfc4122.txt).
8
+ EOF
9
+
10
+ spec.authors << 'Assaf Arkin' << 'Eric Hodel'
11
+ spec.email = 'assaf@labnotes.org'
12
+ spec.homepage = 'http://github.com/assaf/uuid'
13
+ spec.rubyforge_project = 'reliable-msg'
14
+
15
+ spec.files = Dir['{bin,test,lib,docs}/**/*', 'README.rdoc', 'MIT-LICENSE', 'Rakefile', 'CHANGELOG', 'uuid.gemspec']
16
+ spec.has_rdoc = true
17
+ spec.rdoc_options << '--main' << 'README.rdoc' << '--title' << 'UUID generator' << '--line-numbers'
18
+ '--webcvs' << 'http://github.com/assaf/uuid'
19
+ spec.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']
20
+
21
+ spec.add_dependency 'macaddr', ['~>1.0']
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Assaf Arkin
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-08-28 00:00:00 -07:00
13
+ date: 2009-06-10 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -23,7 +23,10 @@ dependencies:
23
23
  - !ruby/object:Gem::Version
24
24
  version: "1.0"
25
25
  version:
26
- description: UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).
26
+ description: |
27
+ UUID generator for producing universally unique identifiers based on RFC 4122
28
+ (http://www.ietf.org/rfc/rfc4122.txt).
29
+
27
30
  email: assaf@labnotes.org
28
31
  executables: []
29
32
 
@@ -39,8 +42,11 @@ files:
39
42
  - MIT-LICENSE
40
43
  - Rakefile
41
44
  - CHANGELOG
45
+ - uuid.gemspec
42
46
  has_rdoc: true
43
47
  homepage: http://github.com/assaf/uuid
48
+ licenses: []
49
+
44
50
  post_install_message:
45
51
  rdoc_options:
46
52
  - --main
@@ -65,9 +71,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
71
  requirements: []
66
72
 
67
73
  rubyforge_project: reliable-msg
68
- rubygems_version: 1.2.0
74
+ rubygems_version: 1.3.4
69
75
  signing_key:
70
- specification_version: 2
76
+ specification_version: 3
71
77
  summary: UUID generator
72
78
  test_files: []
73
79