uuidtools 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,41 +1,54 @@
1
- require "rake/gempackagetask"
1
+ require "rubygems/package_task"
2
+ require "rake"
3
+ require "rake/clean"
4
+
5
+ CLOBBER.include("pkg")
2
6
 
3
7
  namespace :gem do
4
8
  GEM_SPEC = Gem::Specification.new do |s|
5
- unless s.respond_to?(:add_development_dependency)
6
- puts "The gem spec requires a newer version of RubyGems."
7
- exit(1)
8
- end
9
-
10
9
  s.name = PKG_NAME
11
10
  s.version = PKG_VERSION
12
11
  s.summary = PKG_SUMMARY
13
12
  s.description = PKG_DESCRIPTION
13
+ s.licenses = ["Apache-2.0"]
14
14
 
15
15
  s.files = PKG_FILES.to_a
16
16
 
17
- s.has_rdoc = true
18
- s.extra_rdoc_files = %w( README )
19
- s.rdoc_options.concat ["--main", "README"]
17
+ s.extra_rdoc_files = %w( README.md )
18
+ s.rdoc_options.concat ["--main", "README.md"]
20
19
 
21
- s.add_development_dependency("rake", ">= 0.8.3")
22
- s.add_development_dependency("rspec", ">= 1.1.11")
23
- s.add_development_dependency("launchy", ">= 0.3.2")
20
+ if !s.respond_to?(:add_development_dependency)
21
+ puts "Cannot build Gem with this version of RubyGems."
22
+ exit(1)
23
+ end
24
+
25
+ s.add_development_dependency("rake", ">= 0.7.3")
26
+ s.add_development_dependency("rspec", ">= 2.9.0")
27
+ s.add_development_dependency("yard", ">= 0.8.2")
28
+ s.add_development_dependency("launchy", ">= 2.0.0")
24
29
 
25
30
  s.require_path = "lib"
26
31
 
27
- s.author = "Bob Aman"
28
- s.email = "bob@sporkmonger.com"
29
- s.homepage = "http://#{PKG_NAME}.rubyforge.org/"
30
- s.rubyforge_project = RUBY_FORGE_PROJECT
32
+ s.author = PKG_AUTHOR
33
+ s.email = PKG_AUTHOR_EMAIL
34
+ s.homepage = PKG_HOMEPAGE
31
35
  end
32
36
 
33
- Rake::GemPackageTask.new(GEM_SPEC) do |p|
37
+ Gem::PackageTask.new(GEM_SPEC) do |p|
34
38
  p.gem_spec = GEM_SPEC
35
39
  p.need_tar = true
36
40
  p.need_zip = true
37
41
  end
38
42
 
43
+ desc "Generates .gemspec file"
44
+ task :gemspec do
45
+ spec_string = GEM_SPEC.to_ruby
46
+
47
+ File.open("#{GEM_SPEC.name}.gemspec", "w") do |file|
48
+ file.write spec_string
49
+ end
50
+ end
51
+
39
52
  desc "Show information about the gem"
40
53
  task :debug do
41
54
  puts GEM_SPEC.to_ruby
@@ -65,4 +78,4 @@ end
65
78
  desc "Alias to gem:package"
66
79
  task "gem" => "gem:package"
67
80
 
68
- task "clobber" => ["gem:clobber_package"]
81
+ task "gem:release" => "gem:gemspec"
@@ -0,0 +1,55 @@
1
+ require "rspec/core/rake_task"
2
+ require "rake/clean"
3
+
4
+ CLOBBER.include("coverage", "specdoc")
5
+
6
+ namespace :spec do
7
+ RSpec::Core::RakeTask.new(:rcov) do |t|
8
+ t.pattern = FileList['spec/**/*_spec.rb']
9
+ t.rspec_opts = ['--color', '--format', 'documentation']
10
+
11
+ t.rcov_opts = [
12
+ '--exclude', 'lib\\/compat',
13
+ '--exclude', 'spec',
14
+ '--exclude', '\\.rvm\\/gems',
15
+ '--exclude', '1\\.8\\/gems',
16
+ '--exclude', '1\\.9\\/gems',
17
+ '--exclude', '\\.rvm',
18
+ '--exclude', '\\/Library\\/Ruby'
19
+ ]
20
+ end
21
+
22
+ RSpec::Core::RakeTask.new(:normal) do |t|
23
+ t.pattern = FileList['spec/**/*_spec.rb'].exclude(/compat/)
24
+ t.rspec_opts = ['--color', '--format', 'documentation']
25
+ end
26
+
27
+ RSpec::Core::RakeTask.new(:all) do |t|
28
+ t.pattern = FileList['spec/**/*_spec.rb']
29
+ t.rspec_opts = ['--color', '--format', 'documentation']
30
+ end
31
+
32
+ desc "Generate HTML Specdocs for all specs"
33
+ RSpec::Core::RakeTask.new(:specdoc) do |t|
34
+ specdoc_path = File.expand_path(
35
+ File.join(File.dirname(__FILE__), '..', 'documentation')
36
+ )
37
+ Dir.mkdir(specdoc_path) if !File.exist?(specdoc_path)
38
+
39
+ output_file = File.join(specdoc_path, 'index.html')
40
+ t.pattern = FileList['spec/**/*_spec.rb']
41
+ t.rspec_opts = ["--format", "\"html:#{output_file}\"", "--diff"]
42
+ t.fail_on_error = false
43
+ end
44
+
45
+ namespace :rcov do
46
+ desc "Browse the code coverage report."
47
+ task :browse => "spec:rcov" do
48
+ require "launchy"
49
+ Launchy::Browser.run("coverage/index.html")
50
+ end
51
+ end
52
+ end
53
+
54
+ desc "Alias to spec:normal"
55
+ task "spec" => "spec:normal"
@@ -0,0 +1,22 @@
1
+ require "rake"
2
+ require "rake/clean"
3
+
4
+ CLOBBER.include("doc")
5
+
6
+ require "yard"
7
+ require "yard/rake/yardoc_task"
8
+
9
+ namespace :doc do
10
+ desc "Generate Yardoc documentation"
11
+ YARD::Rake::YardocTask.new do |yardoc|
12
+ yardoc.name = "yard"
13
+ yardoc.options = ["--verbose", "--markup", "markdown"]
14
+ yardoc.files = FileList[
15
+ "lib/**/*.rb", "ext/**/*.c",
16
+ "README.md", "CHANGELOG.md", "LICENSE.txt"
17
+ ].exclude(/idna/)
18
+ end
19
+ end
20
+
21
+ desc "Alias to doc:yard"
22
+ task "doc" => "doc:yard"
@@ -0,0 +1,42 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: uuidtools 2.2.0 ruby lib
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "uuidtools".freeze
6
+ s.version = "2.2.0"
7
+
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.require_paths = ["lib".freeze]
10
+ s.authors = ["Bob Aman".freeze]
11
+ s.date = "2020-07-09"
12
+ s.description = "A simple universally unique ID generation library.\n".freeze
13
+ s.email = "bob@sporkmonger.com".freeze
14
+ s.extra_rdoc_files = ["README.md".freeze]
15
+ s.files = ["CHANGELOG".freeze, "LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "doc".freeze, "documentation".freeze, "lib".freeze, "lib/compat".freeze, "lib/compat/securerandom.rb".freeze, "lib/uuidtools".freeze, "lib/uuidtools.rb".freeze, "lib/uuidtools/version.rb".freeze, "pkg".freeze, "spec".freeze, "spec/spec.opts".freeze, "spec/spec_helper.rb".freeze, "spec/uuidtools".freeze, "spec/uuidtools/mac_address_spec.rb".freeze, "spec/uuidtools/utility_spec.rb".freeze, "spec/uuidtools/uuid_creation_spec.rb".freeze, "spec/uuidtools/uuid_parsing_spec.rb".freeze, "tasks".freeze, "tasks/benchmark.rake".freeze, "tasks/gem.rake".freeze, "tasks/git.rake".freeze, "tasks/metrics.rake".freeze, "tasks/rspec.rake".freeze, "tasks/yard.rake".freeze, "uuidtools.gemspec".freeze, "website".freeze, "website/index.html".freeze]
16
+ s.homepage = "https://github.com/sporkmonger/uuidtools".freeze
17
+ s.licenses = ["Apache-2.0".freeze]
18
+ s.rdoc_options = ["--main".freeze, "README.md".freeze]
19
+ s.rubygems_version = "3.0.8".freeze
20
+ s.summary = "UUID generator".freeze
21
+
22
+ if s.respond_to? :specification_version then
23
+ s.specification_version = 4
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_development_dependency(%q<rake>.freeze, [">= 0.7.3"])
27
+ s.add_development_dependency(%q<rspec>.freeze, [">= 2.9.0"])
28
+ s.add_development_dependency(%q<yard>.freeze, [">= 0.8.2"])
29
+ s.add_development_dependency(%q<launchy>.freeze, [">= 2.0.0"])
30
+ else
31
+ s.add_dependency(%q<rake>.freeze, [">= 0.7.3"])
32
+ s.add_dependency(%q<rspec>.freeze, [">= 2.9.0"])
33
+ s.add_dependency(%q<yard>.freeze, [">= 0.8.2"])
34
+ s.add_dependency(%q<launchy>.freeze, [">= 2.0.0"])
35
+ end
36
+ else
37
+ s.add_dependency(%q<rake>.freeze, [">= 0.7.3"])
38
+ s.add_dependency(%q<rspec>.freeze, [">= 2.9.0"])
39
+ s.add_dependency(%q<yard>.freeze, [">= 0.8.2"])
40
+ s.add_dependency(%q<launchy>.freeze, [">= 2.0.0"])
41
+ end
42
+ end
metadata CHANGED
@@ -1,61 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: uuidtools
3
- version: !ruby/object:Gem::Version
4
- version: 2.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Bob Aman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2009-10-13 00:00:00 -04:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.7.3
17
20
  type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
21
24
  - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 0.8.3
24
- version:
25
- - !ruby/object:Gem::Dependency
25
+ - !ruby/object:Gem::Version
26
+ version: 0.7.3
27
+ - !ruby/object:Gem::Dependency
26
28
  name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.9.0
27
34
  type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
31
38
  - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.1.11
34
- version:
35
- - !ruby/object:Gem::Dependency
39
+ - !ruby/object:Gem::Version
40
+ version: 2.9.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.2
55
+ - !ruby/object:Gem::Dependency
36
56
  name: launchy
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.0
37
62
  type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
41
66
  - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 0.3.2
44
- version:
45
- description: |
46
- A simple universally unique ID generation library.
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.0
69
+ description: 'A simple universally unique ID generation library.
47
70
 
71
+ '
48
72
  email: bob@sporkmonger.com
49
73
  executables: []
50
-
51
74
  extensions: []
52
-
53
- extra_rdoc_files:
54
- - README
55
- files:
75
+ extra_rdoc_files:
76
+ - README.md
77
+ files:
78
+ - CHANGELOG
79
+ - LICENSE.txt
80
+ - README.md
81
+ - Rakefile
56
82
  - lib/compat/securerandom.rb
57
- - lib/uuidtools/version.rb
58
83
  - lib/uuidtools.rb
84
+ - lib/uuidtools/version.rb
59
85
  - spec/spec.opts
60
86
  - spec/spec_helper.rb
61
87
  - spec/uuidtools/mac_address_spec.rb
@@ -63,46 +89,36 @@ files:
63
89
  - spec/uuidtools/uuid_creation_spec.rb
64
90
  - spec/uuidtools/uuid_parsing_spec.rb
65
91
  - tasks/benchmark.rake
66
- - tasks/clobber.rake
67
92
  - tasks/gem.rake
68
93
  - tasks/git.rake
69
94
  - tasks/metrics.rake
70
- - tasks/rdoc.rake
71
- - tasks/rubyforge.rake
72
- - tasks/spec.rake
95
+ - tasks/rspec.rake
96
+ - tasks/yard.rake
97
+ - uuidtools.gemspec
73
98
  - website/index.html
74
- - CHANGELOG
75
- - LICENSE
76
- - Rakefile
77
- - README
78
- has_rdoc: true
79
- homepage: http://uuidtools.rubyforge.org/
80
- licenses: []
81
-
99
+ homepage: https://github.com/sporkmonger/uuidtools
100
+ licenses:
101
+ - Apache-2.0
102
+ metadata: {}
82
103
  post_install_message:
83
- rdoc_options:
84
- - --main
85
- - README
86
- require_paths:
104
+ rdoc_options:
105
+ - "--main"
106
+ - README.md
107
+ require_paths:
87
108
  - lib
88
- required_ruby_version: !ruby/object:Gem::Requirement
89
- requirements:
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
90
111
  - - ">="
91
- - !ruby/object:Gem::Version
92
- version: "0"
93
- version:
94
- required_rubygems_version: !ruby/object:Gem::Requirement
95
- requirements:
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
96
116
  - - ">="
97
- - !ruby/object:Gem::Version
98
- version: "0"
99
- version:
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
100
119
  requirements: []
101
-
102
- rubyforge_project: uuidtools
103
- rubygems_version: 1.3.4
120
+ rubygems_version: 3.0.8
104
121
  signing_key:
105
- specification_version: 3
122
+ specification_version: 4
106
123
  summary: UUID generator
107
124
  test_files: []
108
-
data/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- UUIDTools, Copyright (c) 2005-2008 Bob Aman
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README DELETED
@@ -1,13 +0,0 @@
1
- UUIDTools was designed to be a simple library for generating any
2
- of the various types of UUIDs. It conforms to RFC 4122 whenever
3
- possible.
4
-
5
- == Example
6
- UUIDTools::UUID.md5_create(UUIDTools::UUID_DNS_NAMESPACE, "www.widgets.com")
7
- => #<UUID:0x287576 UUID:3d813cbb-47fb-32ba-91df-831e1593ac29>
8
- UUIDTools::UUID.sha1_create(UUIDTools::UUID_DNS_NAMESPACE, "www.widgets.com")
9
- => #<UUID:0x2a0116 UUID:21f7f8de-8051-5b89-8680-0195ef798b6a>
10
- UUIDTools::UUID.timestamp_create
11
- => #<UUID:0x2adfdc UUID:64a5189c-25b3-11da-a97b-00c04fd430c8>
12
- UUIDTools::UUID.random_create
13
- => #<UUID:0x19013a UUID:984265dc-4200-4f02-ae70-fe4f48964159>
@@ -1,2 +0,0 @@
1
- desc "Remove all build products"
2
- task "clobber"
@@ -1,29 +0,0 @@
1
- require "rake/rdoctask"
2
-
3
- namespace :doc do
4
- desc "Generate RDoc documentation"
5
- Rake::RDocTask.new do |rdoc|
6
- rdoc.rdoc_dir = "doc"
7
- rdoc.title = "#{PKG_NAME}-#{PKG_VERSION} Documentation"
8
- rdoc.options << "--line-numbers" << "--inline-source" <<
9
- "--accessor" << "cattr_accessor=object" << "--charset" << "utf-8"
10
- rdoc.template = "#{ENV["template"]}.rb" if ENV["template"]
11
- rdoc.rdoc_files.include("README", "CHANGELOG", "LICENSE")
12
- rdoc.rdoc_files.include("lib/**/*.rb")
13
- end
14
-
15
- desc "Generate ri locally for testing"
16
- task :ri do
17
- sh "rdoc --ri -o ri ."
18
- end
19
-
20
- desc "Remove ri products"
21
- task :clobber_ri do
22
- rm_r "ri" rescue nil
23
- end
24
- end
25
-
26
- desc "Alias to doc:rdoc"
27
- task "doc" => "doc:rdoc"
28
-
29
- task "clobber" => ["doc:clobber_rdoc", "doc:clobber_ri"]