rubygems-test 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt ADDED
@@ -0,0 +1 @@
1
+ === 0.1.9 / Sometime before hoe
data/Manifest.txt ADDED
@@ -0,0 +1,16 @@
1
+ .gemtest
2
+ LICENSE
3
+ README.txt
4
+ History.txt
5
+ Manifest.txt
6
+ Rakefile
7
+ gems/Rakefile
8
+ gems/template.gemspec
9
+ gems/test/test_pass.rb
10
+ lib/open4-vendor.rb
11
+ lib/rubygems/commands/test_command.rb
12
+ lib/rubygems/on_install_test.rb
13
+ lib/rubygems_plugin.rb
14
+ test/helper.rb
15
+ test/interactive_test_on-install.rb
16
+ test/test_execute.rb
@@ -1,4 +1,4 @@
1
- = rubygems-test - commands and facilities for automated rubygems testing.
1
+ = rubygems-test - commands and facilities for automated rubygems testing and reporting.
2
2
 
3
3
  == For users
4
4
 
data/Rakefile CHANGED
@@ -1,62 +1,41 @@
1
+ # -*- ruby -*-
2
+
1
3
  require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "rubygems-test"
8
- gem.summary = %Q{Gem testing facility as a plugin}
9
- gem.description = %Q{Test gems on your system, upload the data to a service. Uninstall failing gems.}
10
- gem.email = "erik@hollensbe.org"
11
- gem.homepage = "http://github.com/erikh/rubygems-test"
12
- gem.authors = ["Erik Hollensbe", "Josiah Kiehl"]
13
- gem.files = Dir[".gemtest"] + Dir["Rakefile"] + Dir["gems/**/*"] + Dir["lib/**/*.rb"] + Dir["test/**/*.rb"]
14
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
- #
16
- gem.add_dependency 'rake'
17
- gem.add_development_dependency 'jeweler'
18
- end
19
- Jeweler::GemcutterTasks.new
20
- rescue LoadError
21
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
22
- end
4
+ require 'hoe'
23
5
 
24
- require 'rake/testtask'
25
- Rake::TestTask.new(:interactive_test) do |test|
26
- test.libs << 'lib' << 'test'
27
- test.test_files = Dir["test/test_*.rb"] + Dir["test/interactive_test_*.rb"]
28
- test.verbose = true
29
- end
6
+ Hoe.plugins.delete :rubyforge
7
+ Hoe.plugin :git
30
8
 
31
- Rake::TestTask.new(:test) do |test|
32
- test.libs << 'lib' << 'test'
33
- test.test_files = Dir["test/test_*.rb"]
34
- test.verbose = true
35
- end
9
+ Hoe.spec 'rubygems-test' do
10
+ developer 'Erik Hollensbe', 'erik@hollensbe.org'
11
+ developer 'Josiah Kiehl', 'bluepojo@gmail.com'
36
12
 
37
- begin
38
- require 'rcov/rcovtask'
39
- Rcov::RcovTask.new do |test|
40
- test.libs << 'test'
41
- test.pattern = 'test/**/test_*.rb'
42
- test.verbose = true
43
- end
44
- rescue LoadError
45
- task :rcov do
46
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
47
- end
48
- end
13
+ # doin' it wrong because we're a gem plugin
14
+ # that means I can be "special"!
15
+ self.version = '0.2.0'
16
+
17
+ self.rubyforge_name = nil
18
+
19
+ self.description = <<-EOF
20
+ This installs three major features:
49
21
 
50
- task :test => :check_dependencies
22
+ * a 'gem test' command.
23
+ * the ability to test your gems on installation, and uninstall them if they fail testing.
24
+ * A facility to upload your test results to http://www.gem-testers.org.
25
+ EOF
51
26
 
52
- task :default => :test
27
+ self.summary = 'commands and facilities for automated and user-contributed rubygems testing and reporting'
28
+ self.url = %w[http://github.com/rubygems/rubygems-test]
29
+
30
+ require_ruby_version ">= 1.8.7"
31
+ pluggable!
53
32
 
54
- require 'rake/rdoctask'
55
- Rake::RDocTask.new do |rdoc|
56
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
33
+ extra_deps << ['rake', '>= 0.8.7']
57
34
 
58
- rdoc.rdoc_dir = 'rdoc'
59
- rdoc.title = "rubygems-test #{version}"
60
- rdoc.rdoc_files.include('README*')
61
- rdoc.rdoc_files.include('lib/**/*.rb')
35
+ desc "install a gem without sudo"
36
+ task :install => [:gem] do
37
+ sh "gem install pkg/#{self.name}-#{self.version}.gem"
38
+ end
62
39
  end
40
+
41
+ # vim: syntax=ruby
@@ -14,6 +14,8 @@ class Gem::Commands::TestCommand < Gem::Command
14
14
  include Gem::VersionOption
15
15
  include Gem::DefaultUserInteraction
16
16
 
17
+ VERSION = "0.1.9"
18
+
17
19
  # taken straight out of rake
18
20
  DEFAULT_RAKEFILES = ['rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb']
19
21
 
@@ -238,7 +240,7 @@ class Gem::Commands::TestCommand < Gem::Command
238
240
 
239
241
 
240
242
  if config["upload_results"] or
241
- (!config.has_key?("upload_results") and ask_yes_no("Upload these results to rubygems.org?", true))
243
+ (!config.has_key?("upload_results") and ask_yes_no("Upload these results?", true))
242
244
 
243
245
  upload_results(gather_results(spec, output, exit_status.exitstatus == 0))
244
246
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 9
9
- version: 0.1.9
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Erik Hollensbe
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-02 00:00:00 -05:00
18
+ date: 2011-01-06 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -28,11 +28,13 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  segments:
30
30
  - 0
31
- version: "0"
31
+ - 8
32
+ - 7
33
+ version: 0.8.7
32
34
  type: :runtime
33
35
  version_requirements: *id001
34
36
  - !ruby/object:Gem::Dependency
35
- name: jeweler
37
+ name: hoe
36
38
  prerelease: false
37
39
  requirement: &id002 !ruby/object:Gem::Requirement
38
40
  none: false
@@ -40,21 +42,30 @@ dependencies:
40
42
  - - ">="
41
43
  - !ruby/object:Gem::Version
42
44
  segments:
45
+ - 2
46
+ - 8
43
47
  - 0
44
- version: "0"
48
+ version: 2.8.0
45
49
  type: :development
46
50
  version_requirements: *id002
47
- description: Test gems on your system, upload the data to a service. Uninstall failing gems.
48
- email: erik@hollensbe.org
51
+ description: " This installs three major features:\n\n * a 'gem test' command.\n * the ability to test your gems on installation, and uninstall them if they fail testing.\n * A facility to upload your test results to http://www.gem-testers.org.\n"
52
+ email:
53
+ - erik@hollensbe.org
54
+ - bluepojo@gmail.com
49
55
  executables: []
50
56
 
51
57
  extensions: []
52
58
 
53
59
  extra_rdoc_files:
54
- - LICENSE
55
- - README.rdoc
60
+ - README.txt
61
+ - History.txt
62
+ - Manifest.txt
56
63
  files:
57
64
  - .gemtest
65
+ - LICENSE
66
+ - README.txt
67
+ - History.txt
68
+ - Manifest.txt
58
69
  - Rakefile
59
70
  - gems/Rakefile
60
71
  - gems/template.gemspec
@@ -66,15 +77,14 @@ files:
66
77
  - test/helper.rb
67
78
  - test/interactive_test_on-install.rb
68
79
  - test/test_execute.rb
69
- - LICENSE
70
- - README.rdoc
71
80
  has_rdoc: true
72
- homepage: http://github.com/erikh/rubygems-test
81
+ homepage: http://github.com/rubygems/rubygems-test
73
82
  licenses: []
74
83
 
75
84
  post_install_message:
76
- rdoc_options: []
77
-
85
+ rdoc_options:
86
+ - --main
87
+ - README.txt
78
88
  require_paths:
79
89
  - lib
80
90
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -83,24 +93,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
93
  - - ">="
84
94
  - !ruby/object:Gem::Version
85
95
  segments:
86
- - 0
87
- version: "0"
96
+ - 1
97
+ - 8
98
+ - 7
99
+ version: 1.8.7
88
100
  required_rubygems_version: !ruby/object:Gem::Requirement
89
101
  none: false
90
102
  requirements:
91
103
  - - ">="
92
104
  - !ruby/object:Gem::Version
93
105
  segments:
94
- - 0
95
- version: "0"
106
+ - 1
107
+ - 3
108
+ - 1
109
+ version: 1.3.1
96
110
  requirements: []
97
111
 
98
112
  rubyforge_project:
99
113
  rubygems_version: 1.3.7
100
114
  signing_key:
101
115
  specification_version: 3
102
- summary: Gem testing facility as a plugin
116
+ summary: commands and facilities for automated and user-contributed rubygems testing and reporting
103
117
  test_files:
104
- - test/helper.rb
105
- - test/interactive_test_on-install.rb
106
118
  - test/test_execute.rb