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,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
@@ -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"]