rubygems-test 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 0.3.9 / 2011-03-08
2
+
3
+ * Fix for a bug where rake19, etc would not be located.
4
+
1
5
  === 0.3.8 / 2011-03-03
2
6
 
3
7
  * Fix path handling due to changes on rubygems 1.6
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ spec = Hoe.spec 'rubygems-test' do
12
12
 
13
13
  # doin' it wrong because we're a gem plugin
14
14
  # that means I can be "special"!
15
- self.version = '0.3.8'
15
+ self.version = '0.3.9'
16
16
 
17
17
  self.rubyforge_name = nil
18
18
 
@@ -4,6 +4,7 @@ Gem.autoload(:DefaultUserInteraction, 'rubygems/user_interaction')
4
4
  Gem.autoload(:DependencyInstaller, 'rubygems/dependency_installer')
5
5
  Gem.autoload(:RakeNotFoundError, 'exceptions')
6
6
  Gem.autoload(:TestError, 'exceptions')
7
+ Gem.autoload(:Installer, 'rubygems/installer')
7
8
  require 'rbconfig'
8
9
  autoload(:YAML, 'yaml')
9
10
  require 'net/http'
@@ -94,16 +95,20 @@ class Gem::Commands::TestCommand < Gem::Command
94
95
  # Locate rake itself, prefer gems version.
95
96
  #
96
97
  def find_rake
98
+ rake_path = nil;
99
+
97
100
  begin
98
101
  rake_path = Gem.bin_path('rake')
99
102
  rescue
100
- unless RUBY_VERSION > '1.9'
103
+ if RUBY_VERSION > '1.9' and File.exist?(File.join(RbConfig::CONFIG["bindir"], Gem::Installer.exec_format % 'rake'))
104
+ rake_path = File.join(RbConfig::CONFIG["bindir"], Gem::Installer.exec_format % 'rake')
105
+ else
101
106
  alert_error "Couldn't find rake; rubygems-test will not work without it. Aborting."
102
107
  raise Gem::RakeNotFoundError, "Couldn't find rake; rubygems-test will not work without it."
103
108
  end
104
109
  end
105
110
 
106
- if RUBY_VERSION > '1.9'
111
+ if RUBY_VERSION > '1.9' and !rake_path
107
112
  if RUBY_PLATFORM =~ /mswin/
108
113
  #
109
114
  # XXX GarbageCollect breaks ruby -S with rake.
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-test
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 8
10
- version: 0.3.8
5
+ version: 0.3.9
11
6
  platform: ruby
12
7
  authors:
13
8
  - Erik Hollensbe
@@ -16,7 +11,7 @@ autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
13
 
19
- date: 2011-03-03 00:00:00 -05:00
14
+ date: 2011-03-08 00:00:00 -05:00
20
15
  default_executable:
21
16
  dependencies:
22
17
  - !ruby/object:Gem::Dependency
@@ -27,11 +22,6 @@ dependencies:
27
22
  requirements:
28
23
  - - ">="
29
24
  - !ruby/object:Gem::Version
30
- hash: 49
31
- segments:
32
- - 0
33
- - 8
34
- - 7
35
25
  version: 0.8.7
36
26
  type: :runtime
37
27
  version_requirements: *id001
@@ -43,11 +33,6 @@ dependencies:
43
33
  requirements:
44
34
  - - ">="
45
35
  - !ruby/object:Gem::Version
46
- hash: 41
47
- segments:
48
- - 2
49
- - 9
50
- - 1
51
36
  version: 2.9.1
52
37
  type: :development
53
38
  version_requirements: *id002
@@ -96,27 +81,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
81
  requirements:
97
82
  - - ">="
98
83
  - !ruby/object:Gem::Version
99
- hash: 57
100
- segments:
101
- - 1
102
- - 8
103
- - 7
104
84
  version: 1.8.7
105
85
  required_rubygems_version: !ruby/object:Gem::Requirement
106
86
  none: false
107
87
  requirements:
108
88
  - - ">="
109
89
  - !ruby/object:Gem::Version
110
- hash: 23
111
- segments:
112
- - 1
113
- - 3
114
- - 6
115
90
  version: 1.3.6
116
91
  requirements: []
117
92
 
118
93
  rubyforge_project:
119
- rubygems_version: 1.5.2
94
+ rubygems_version: 1.6.1
120
95
  signing_key:
121
96
  specification_version: 3
122
97
  summary: commands and facilities for automated and user-contributed rubygems testing and reporting