ZenTest 3.7.0 → 3.7.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 +7 -0
- data/bin/multiruby +16 -11
- data/lib/zentest.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/bin/multiruby
CHANGED
@@ -7,7 +7,9 @@ def run(cmd)
|
|
7
7
|
raise "ERROR: Command failed with exit code #{$?}" unless system cmd
|
8
8
|
end
|
9
9
|
|
10
|
-
root_dir = File.expand_path(ENV['MULTIRUBY'] ||
|
10
|
+
root_dir = File.expand_path(ENV['MULTIRUBY'] ||
|
11
|
+
File.join(ENV['HOME'], ".multiruby"))
|
12
|
+
|
11
13
|
unless test ?d, root_dir then
|
12
14
|
puts "creating #{root_dir}"
|
13
15
|
Dir.mkdir root_dir, 0700
|
@@ -20,18 +22,22 @@ Dir.chdir root_dir do
|
|
20
22
|
puts "creating #{dir}"
|
21
23
|
Dir.mkdir dir
|
22
24
|
if dir == "versions" then
|
23
|
-
|
24
|
-
puts " downloading #{file} via HTTP... this might take a while."
|
25
|
-
puts " Put other ruby tarballs in versions to use them."
|
26
|
-
|
25
|
+
puts " Downloading initial ruby tarballs to ~/.multiruby/versions:"
|
27
26
|
Dir.chdir dir do
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
files = %w[ ruby-1.8.6-p111.tar.gz 1.9/ruby-1.9.0-0.tar.gz ]
|
28
|
+
files.each do |file|
|
29
|
+
require 'open-uri'
|
30
|
+
open("http://ftp.ruby-lang.org/pub/ruby/#{file}") do |f|
|
31
|
+
base = File.basename file
|
32
|
+
puts " #{base} via HTTP... this might take a while."
|
33
|
+
File.open base, 'w' do |out|
|
34
|
+
out.write f.read
|
35
|
+
end
|
32
36
|
end
|
33
37
|
end
|
34
38
|
end
|
39
|
+
puts " ...done"
|
40
|
+
puts " Put other ruby tarballs in ~/.multiruby/versions to use them."
|
35
41
|
end
|
36
42
|
end
|
37
43
|
end
|
@@ -62,8 +68,7 @@ Dir.chdir root_dir do
|
|
62
68
|
run "make install &> log.install"
|
63
69
|
build_dir = Dir.pwd
|
64
70
|
|
65
|
-
if rubygem_tarball then
|
66
|
-
next if version.gsub(/\./, '') =~ /^19/ # doesn't seem to work w/ ruby 1.9, filed bug
|
71
|
+
if rubygem_tarball and version !~ /1[._-]9/ then
|
67
72
|
rubygems = File.basename rubygem_tarball, ".tgz"
|
68
73
|
run "tar zxf #{rubygem_tarball}" unless test ?d, rubygems
|
69
74
|
|
data/lib/zentest.rb
CHANGED
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: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2007-12-
|
13
|
+
date: 2007-12-27 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|