zentest-without-autotest 4.1.4 → 4.2.1

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/History.txt CHANGED
@@ -1,3 +1,27 @@
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
+
11
+ === 4.2.0 / 2009-12-08
12
+
13
+ * 3 minor enhancements:
14
+
15
+ * Added 'multiruby -1 $version' for easier execution (idea from flori)
16
+ * Set up and tear down PATH in multiruby (luis)
17
+ * died hook now gets passed the exception (amikula)
18
+
19
+ * 3 bug fixes:
20
+
21
+ * Deal with windoze getc returning nil (undees)
22
+ * Fix unit_diff for multiline miniunit results.
23
+ * Fix warning for 1.8.8+
24
+
1
25
  === 4.1.4 / 2009-08-07
2
26
 
3
27
  * 2 minor enhancements:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.4
1
+ 4.2.1
data/bin/multiruby CHANGED
@@ -3,6 +3,32 @@
3
3
  require 'multiruby'
4
4
 
5
5
  root_dir = Multiruby.root_dir
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
+
16
+ ##
17
+ # multiruby -1 1.8.7 ruby_args...
18
+
19
+ if ARGV.first == "-1" then
20
+ ARGV.shift
21
+ vers = Dir["#{root_dir}/install/#{ARGV.shift}*"]
22
+
23
+ abort "ambiguous version: #{vers.map { |p| File.basename p }.inspect}" if
24
+ vers.size != 1
25
+
26
+ dir = vers.first
27
+ setenv dir
28
+
29
+ exec "#{dir}/bin/ruby", *ARGV
30
+ end
31
+
6
32
  versions = Multiruby.build_and_install
7
33
  versions = ENV['VERSIONS'].split(/:/) if ENV.has_key? 'VERSIONS'
8
34
 
@@ -16,7 +42,8 @@ original_path = ENV['PATH']
16
42
 
17
43
  results = {}
18
44
  versions.each do |version|
19
- ruby = "#{root_dir}/install/#{version}/bin/ruby"
45
+ dir = "#{root_dir}/install/#{version}"
46
+ ruby = "#{dir}/bin/ruby"
20
47
 
21
48
  ruby.sub!(/bin.ruby/, 'bin/rbx') if version =~ /rubinius/
22
49
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{zentest-without-autotest}
8
- s.version = "4.1.4"
8
+ s.version = "4.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Davis"]
12
- s.date = %q{2010-01-10}
12
+ s.date = %q{2010-01-18}
13
13
  s.executables = ["multiruby", "multigem", "multiruby_setup", "zentest"]
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zentest-without-autotest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.4
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-10 00:00:00 +01:00
12
+ date: 2010-01-18 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15