ZenTest 3.7.0 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +7 -0
  2. data/bin/multiruby +16 -11
  3. data/lib/zentest.rb +1 -1
  4. metadata +2 -2
@@ -1,3 +1,10 @@
1
+ === 3.7.1 / 2007-12-27
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * multiruby now downloads 1.8.6 and 1.9 on virgin run.
6
+ * Improved output for the downloads.
7
+
1
8
  === 3.7.0 / 2007-12-21
2
9
 
3
10
  * 8 minor enhancements:
@@ -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'] || File.join(ENV['HOME'], ".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
- file = "ruby-#{RUBY_VERSION}.tar.gz"
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
- require 'open-uri'
29
- open("http://ftp.ruby-lang.org/pub/ruby/#{file}") do |f|
30
- File.open file, 'w' do |out|
31
- out.write f.read
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
 
@@ -56,7 +56,7 @@ end
56
56
 
57
57
  class ZenTest
58
58
 
59
- VERSION = '3.7.0'
59
+ VERSION = '3.7.1'
60
60
 
61
61
  include ZenTestMapping
62
62
 
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.0
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-22 00:00:00 -08:00
13
+ date: 2007-12-27 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency