uuidtools 2.1.0 → 3.0.0

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.
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>
data/tasks/clobber.rake DELETED
@@ -1,2 +0,0 @@
1
- desc "Remove all build products"
2
- task "clobber"
data/tasks/rdoc.rake DELETED
@@ -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"]
data/tasks/rubyforge.rake DELETED
@@ -1,89 +0,0 @@
1
- namespace :gem do
2
- desc 'Package and upload to RubyForge'
3
- task :release => ["gem:package"] do |t|
4
- require 'rubyforge'
5
-
6
- v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
7
- abort "Versions don't match #{v} vs #{PROJ.version}" if v != PKG_VERSION
8
- pkg = "pkg/#{GEM_SPEC.full_name}"
9
-
10
- rf = RubyForge.new
11
- rf.configure
12
- puts 'Logging in...'
13
- rf.login
14
-
15
- c = rf.userconfig
16
- changelog = File.open("CHANGELOG") { |file| file.read }
17
- c['release_changes'] = changelog
18
- c['preformatted'] = true
19
-
20
- files = ["#{pkg}.tgz", "#{pkg}.zip", "#{pkg}.gem"]
21
-
22
- puts "Releasing #{PKG_NAME} v. #{PKG_VERSION}"
23
- rf.add_release RUBY_FORGE_PROJECT, PKG_NAME, PKG_VERSION, *files
24
- end
25
- end
26
-
27
- namespace :doc do
28
- desc "Publish RDoc to RubyForge"
29
- task :release => ["doc:rdoc"] do
30
- require "rake/contrib/sshpublisher"
31
- require "yaml"
32
-
33
- config = YAML.load(
34
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
35
- )
36
- host = "#{config['username']}@rubyforge.org"
37
- remote_dir = RUBY_FORGE_PATH + "/api"
38
- local_dir = "doc"
39
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
40
- end
41
- end
42
-
43
- namespace :spec do
44
- desc "Publish specdoc to RubyForge"
45
- task :release => ["spec:specdoc"] do
46
- require "rake/contrib/sshpublisher"
47
- require "yaml"
48
-
49
- config = YAML.load(
50
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
51
- )
52
- host = "#{config['username']}@rubyforge.org"
53
- remote_dir = RUBY_FORGE_PATH + "/specdoc"
54
- local_dir = "specdoc"
55
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
56
- end
57
-
58
- namespace :rcov do
59
- desc "Publish coverage report to RubyForge"
60
- task :release => ["spec:rcov"] do
61
- require "rake/contrib/sshpublisher"
62
- require "yaml"
63
-
64
- config = YAML.load(
65
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
66
- )
67
- host = "#{config['username']}@rubyforge.org"
68
- remote_dir = RUBY_FORGE_PATH + "/coverage"
69
- local_dir = "coverage"
70
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
71
- end
72
- end
73
- end
74
-
75
- namespace :website do
76
- desc "Publish website to RubyForge"
77
- task :release => ["doc:release", "spec:release", "spec:rcov:release"] do
78
- require "rake/contrib/sshpublisher"
79
- require "yaml"
80
-
81
- config = YAML.load(
82
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
83
- )
84
- host = "#{config['username']}@rubyforge.org"
85
- remote_dir = RUBY_FORGE_PATH
86
- local_dir = "website"
87
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
88
- end
89
- end
data/tasks/spec.rake DELETED
@@ -1,64 +0,0 @@
1
- require 'spec/rake/verify_rcov'
2
-
3
- namespace :spec do
4
- Spec::Rake::SpecTask.new(:rcov) do |t|
5
- t.spec_files = FileList['spec/**/*_spec.rb']
6
- t.spec_opts = ['--color', '--format', 'specdoc']
7
- if RCOV_ENABLED
8
- t.rcov = true
9
- else
10
- t.rcov = false
11
- end
12
- t.rcov_opts = [
13
- '--exclude', 'spec',
14
- '--exclude', '1\\.8\\/gems',
15
- '--exclude', '1\\.9\\/gems',
16
- '--exclude', 'addressable\\/idna\\.rb', # unicode tables too big
17
- ]
18
- end
19
-
20
- Spec::Rake::SpecTask.new(:normal) do |t|
21
- t.spec_files = FileList['spec/**/*_spec.rb']
22
- t.spec_opts = ['--color', '--format', 'specdoc']
23
- t.rcov = false
24
- end
25
-
26
- if RCOV_ENABLED
27
- RCov::VerifyTask.new(:verify) do |t|
28
- t.threshold = 100.0
29
- t.index_html = 'coverage/index.html'
30
- end
31
-
32
- task :verify => :rcov
33
- end
34
-
35
- desc "Generate HTML Specdocs for all specs"
36
- Spec::Rake::SpecTask.new(:specdoc) do |t|
37
- specdoc_path = File.expand_path(
38
- File.join(File.dirname(__FILE__), '../specdoc/'))
39
- Dir.mkdir(specdoc_path) if !File.exist?(specdoc_path)
40
-
41
- output_file = File.join(specdoc_path, 'index.html')
42
- t.spec_files = FileList['spec/**/*_spec.rb']
43
- t.spec_opts = ["--format", "\"html:#{output_file}\"", "--diff"]
44
- t.fail_on_error = false
45
- end
46
-
47
- namespace :rcov do
48
- desc "Browse the code coverage report."
49
- task :browse => "spec:rcov" do
50
- require "launchy"
51
- Launchy::Browser.run("coverage/index.html")
52
- end
53
- end
54
- end
55
-
56
- if RCOV_ENABLED
57
- desc "Alias to spec:verify"
58
- task "spec" => "spec:verify"
59
- else
60
- desc "Alias to spec:normal"
61
- task "spec" => "spec:normal"
62
- end
63
-
64
- task "clobber" => ["spec:clobber_rcov"]