ZenTest 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,13 @@
1
+ === 4.2.1 / 2009-12-09
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added GEM_HOME/GEM_PATH setting to multiruby.
6
+
7
+ * 1 bug fix:
8
+
9
+ * Fixed multiruby refactoring bug from previous release.
10
+
1
11
  === 4.2.0 / 2009-12-08
2
12
 
3
13
  * 3 minor enhancements:
@@ -4,6 +4,15 @@ require 'multiruby'
4
4
 
5
5
  root_dir = Multiruby.root_dir
6
6
 
7
+ def setenv dir
8
+ bin = "#{dir}/bin"
9
+ gem = Dir["#{dir}/lib/ruby/gems/*"].first
10
+
11
+ ENV['PATH'] += File::PATH_SEPARATOR + bin
12
+ ENV['GEM_HOME'] = gem
13
+ ENV['GEM_PATH'] = gem
14
+ end
15
+
7
16
  ##
8
17
  # multiruby -1 1.8.7 ruby_args...
9
18
 
@@ -14,10 +23,10 @@ if ARGV.first == "-1" then
14
23
  abort "ambiguous version: #{vers.map { |p| File.basename p }.inspect}" if
15
24
  vers.size != 1
16
25
 
17
- bin = "#{vers.first}/bin"
18
- ENV['PATH'] += File::PATH_SEPARATOR + bin
26
+ dir = vers.first
27
+ setenv dir
19
28
 
20
- exec "#{bin}/ruby", *ARGV
29
+ exec "#{dir}/bin/ruby", *ARGV
21
30
  end
22
31
 
23
32
  versions = Multiruby.build_and_install
@@ -33,7 +42,8 @@ original_path = ENV['PATH']
33
42
 
34
43
  results = {}
35
44
  versions.each do |version|
36
- ruby = "#{root_dir}/install/#{version}/bin/ruby"
45
+ dir = "#{root_dir}/install/#{version}"
46
+ ruby = "#{dir}/bin/ruby"
37
47
 
38
48
  ruby.sub!(/bin.ruby/, 'bin/rbx') if version =~ /rubinius/
39
49
 
@@ -44,8 +54,7 @@ versions.each do |version|
44
54
  puts "CMD = #{cmd}"
45
55
  puts
46
56
 
47
- # append ruby binary path prior execution
48
- ENV['PATH'] += File::PATH_SEPARATOR + "#{dir}/bin"
57
+ setenv dir
49
58
 
50
59
  system ruby, *ARGV
51
60
  puts
@@ -53,7 +53,7 @@ end
53
53
 
54
54
  class ZenTest
55
55
 
56
- VERSION = '4.2.0'
56
+ VERSION = '4.2.1'
57
57
 
58
58
  include ZenTestMapping
59
59
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZenTest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -31,7 +31,7 @@ cert_chain:
31
31
  FBHgymkyj/AOSqKRIpXPhjC6
32
32
  -----END CERTIFICATE-----
33
33
 
34
- date: 2009-12-08 00:00:00 -08:00
34
+ date: 2009-12-09 00:00:00 -08:00
35
35
  default_executable:
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file