ZenTest 4.11.0 → 4.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 023973f90fd3b8de49431333ed5d99c81282f4a4
4
- data.tar.gz: 2280e1dfb7c2c82815aac6590dcbe597fe3f413e
2
+ SHA256:
3
+ metadata.gz: 3807fbe56b6d5592513b1ae86b9a67ff8e5ead37f68048619b37a716e59058d1
4
+ data.tar.gz: d54f72a47e14b74276e819025afe3f6d7e195928aba0a77e1402afe09d79f697
5
5
  SHA512:
6
- metadata.gz: 2c06c38a878ba456809a228b760ccbd9b2b98755fc4d8aa01bf31088cf6df873ebb969abf09624f2404743f95bc3e76eccd3373741e0dc5f7cc475f76f588958
7
- data.tar.gz: 5c67b23153539849131d4be8318c4d10fd8331628c956710193dbe1304af9bf4a65fc9fba0e2d1af5ff657dd0828fa59e38f227f09759382277a4fd70a10759e
6
+ metadata.gz: 982046a79503f1e4e30bd9068ca3f70958ebb1b17e91b284afb5d0da3aeaa2717591bc110d481eda33f732e960cb402a4d0c361a947c59beff00e87d5943d368
7
+ data.tar.gz: f07b41a76856ac20c419f0dccefc483e9485e418bc1ee3dc5a454434f2cbf0dd890b3c3b75899b7222eaabaac5083304370250afed9e88b0c69484fa17f9b080
checksums.yaml.gz.sig CHANGED
Binary file
data/.autotest CHANGED
@@ -7,7 +7,6 @@ Autotest.add_hook :initialize do |at|
7
7
  at.add_exception 'coverage.info'
8
8
 
9
9
  at.libs << ':../../minitest/dev/lib'
10
- at.testlib = ".minitest"
11
10
 
12
11
  %w(TestZenTest).each do |klass|
13
12
  at.extra_class_map[klass] = "test/test_zentest.rb"
data/History.txt CHANGED
@@ -1,3 +1,34 @@
1
+ === 4.12.0 / 2019-09-22
2
+
3
+ * 3 major enhancements:
4
+
5
+ * Deleted autotest from project. Use minitest-autotest instead.
6
+ * Removed multiruby_setup. Use ruby-install or ruby-build or install your own.
7
+ * Update multiruby to use ~/.rubies (default for ruby-install).
8
+
9
+ * 4 minor enhancements:
10
+
11
+ * Find and use the multiruby next to multigem.
12
+ * multiruby ignores GEM_HOME and GEM_PATH (to allow multigem to work).
13
+ * multiruby respects global `multiruby_skip` entries in `~/.hoerc`.
14
+ * multiruby sorts versions properly so glob ordering is consistent.
15
+
16
+ * 1 bug fix:
17
+
18
+ * Removed hacks for rbx because nobody uses rbx.
19
+
20
+ === 4.11.2 / 2019-01-02
21
+
22
+ * 1 bug fix:
23
+
24
+ * Removed unneeded and out-of-date require_rubygems_version.
25
+
26
+ === 4.11.1 / 2016-06-13
27
+
28
+ * 1 minor enhancement:
29
+
30
+ * Expand autotest to load 'autotest/discover*' for discovery.
31
+
1
32
  === 4.11.0 / 2014-09-26
2
33
 
3
34
  * 1 minor enhancement:
data/Manifest.txt CHANGED
@@ -4,34 +4,19 @@ Manifest.txt
4
4
  README.txt
5
5
  Rakefile
6
6
  articles/Article.css
7
- articles/getting_started_with_autotest.html
8
7
  articles/how_to_use_zentest.txt
9
- bin/autotest
10
8
  bin/multigem
11
9
  bin/multiruby
12
- bin/multiruby_setup
13
10
  bin/unit_diff
14
11
  bin/zentest
15
12
  example.txt
16
13
  example1.rb
17
14
  example2.rb
18
- example_dot_autotest.rb
19
- lib/autotest.rb
20
- lib/autotest/autoupdate.rb
21
- lib/autotest/bundler.rb
22
- lib/autotest/isolate.rb
23
- lib/autotest/once.rb
24
- lib/autotest/preload.rb
25
- lib/autotest/rcov.rb
26
- lib/autotest/restart.rb
27
- lib/autotest/timestamp.rb
28
15
  lib/focus.rb
29
16
  lib/functional_test_matrix.rb
30
- lib/multiruby.rb
31
17
  lib/unit_diff.rb
32
18
  lib/zentest.rb
33
19
  lib/zentest_mapping.rb
34
- test/test_autotest.rb
35
20
  test/test_focus.rb
36
21
  test/test_unit_diff.rb
37
22
  test/test_zentest.rb
data/README.txt CHANGED
@@ -27,6 +27,10 @@ multiruby runs anything you want on multiple versions of ruby. Great
27
27
  for compatibility checking! Use multiruby_setup to manage your
28
28
  installed versions.
29
29
 
30
+ *NOTE:* The next major release of zentest will not include autotest
31
+ (use minitest-autotest instead) and multiruby will use rbenv /
32
+ ruby-build for version management.
33
+
30
34
  == FEATURES
31
35
 
32
36
  * Scans your ruby code and tests and generates missing methods for you.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Hoe.spec "ZenTest" do
13
13
  developer 'Ryan Davis', 'ryand-ruby@zenspider.com'
14
14
  developer 'Eric Hodel', 'drbrain@segment7.net'
15
15
 
16
- require_rubygems_version [">= 1.8", "< 3.0"]
16
+ license "MIT"
17
17
  end
18
18
 
19
19
  desc "run autotest on itself"
data/bin/multigem CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby -w
2
2
 
3
- exec "multiruby", "-S", "gem", *ARGV
3
+ multiruby = File.expand_path "../multiruby", __FILE__
4
4
 
5
+ exec multiruby, "-S", "gem", *ARGV
data/bin/multiruby CHANGED
@@ -1,24 +1,37 @@
1
1
  #!/usr/bin/env ruby -w
2
2
 
3
- require 'multiruby'
3
+ require "yaml"
4
4
 
5
- root_dir = Multiruby.root_dir
5
+ class Array
6
+ def human_sort
7
+ sort_by { |item| item.to_s.split(/(\d+)/).map { |e| [e.to_i, e] } }
8
+ end
9
+ end
10
+
11
+ root_dir = File.expand_path "~/.rubies"
12
+
13
+ versions = Dir.chdir(root_dir) { Dir["*"] }.human_sort
6
14
 
7
15
  def setenv dir
8
- bin = "#{dir}/bin"
9
- gem = Dir["#{dir}/lib/ruby/gems/*"].first
16
+ ENV["PATH"] = "#{dir}/bin:#{ENV["PATH"]}"
17
+ end
10
18
 
11
- ENV['PATH'] = bin + File::PATH_SEPARATOR + ENV['PATH']
12
- ENV['GEM_HOME'] = gem
13
- ENV['GEM_PATH'] = gem
19
+ def unsetenv key
20
+ if ENV[key] then
21
+ warn "WARNING: %s is set to %p. Removing..." % [key, ENV[key]]
22
+ ENV.delete key
23
+ end
14
24
  end
15
25
 
26
+ unsetenv "GEM_HOME"
27
+ unsetenv "GEM_PATH"
28
+
16
29
  ##
17
- # multiruby -1 1.8.7 ruby_args...
30
+ # multiruby -1 2.0 ruby_args...
18
31
 
19
32
  if ARGV.first == "-1" then
20
33
  ARGV.shift
21
- vers = Dir["#{root_dir}/install/#{ARGV.shift}*"]
34
+ vers = Dir["#{root_dir}/#{ARGV.shift}*"]
22
35
 
23
36
  abort "ambiguous version: #{vers.map { |p| File.basename p }.inspect}" if
24
37
  vers.size != 1
@@ -29,11 +42,24 @@ if ARGV.first == "-1" then
29
42
  exec "#{dir}/bin/ruby", *ARGV
30
43
  end
31
44
 
32
- versions = Multiruby.build_and_install
33
- versions = ENV['VERSIONS'].split(/:/) if ENV.has_key? 'VERSIONS'
45
+ def maybe_load_yaml_file config
46
+ if config then
47
+ if YAML.respond_to? :safe_load_file then
48
+ YAML.safe_load_file config, permitted_classes: [Regexp, Symbol]
49
+ else
50
+ YAML.load_file config
51
+ end
52
+ end
53
+ end
34
54
 
35
- if ENV.has_key? 'EXCLUDED_VERSIONS' then
36
- excludes = Regexp.union(*ENV['EXCLUDED_VERSIONS'].split(/:/))
55
+ rcpath = File.expand_path "~/.hoerc"
56
+ skip = if File.exist? rcpath then
57
+ conf = maybe_load_yaml_file rcpath
58
+ conf["multiruby_skip"] || []
59
+ end
60
+ excl = (ENV["EXCLUDED_VERSIONS"] || "").split(/:/) + skip
61
+ unless excl.empty? then
62
+ excludes = Regexp.union(*excl)
37
63
  versions = versions.delete_if { |v| v =~ excludes }
38
64
  end
39
65
 
@@ -42,13 +68,12 @@ original_path = ENV['PATH']
42
68
 
43
69
  results = {}
44
70
  versions.each do |version|
45
- dir = "#{root_dir}/install/#{version}"
71
+ dir = "#{root_dir}/#{version}"
46
72
  ruby = "#{dir}/bin/ruby"
47
-
48
- ruby.sub!(/bin.ruby/, 'bin/rbx') if version =~ /rubinius/
73
+ ver = version.delete_prefix "ruby-"
49
74
 
50
75
  puts
51
- puts "VERSION = #{version}"
76
+ puts "VERSION = #{ver}"
52
77
  cmd = [ruby, ARGV].flatten.map { |s| s =~ /\"/ ? "'#{s}'" : s }.join(' ')
53
78
  cmd.sub!(/#{ENV['HOME']}/, '~')
54
79
  puts "CMD = #{cmd}"
@@ -59,7 +84,7 @@ versions.each do |version|
59
84
  system ruby, *ARGV
60
85
  puts
61
86
  puts "RESULT = #{$?}"
62
- results[version] = $?
87
+ results[ver] = $?
63
88
 
64
89
  # restore the path to original state
65
90
  ENV['PATH'] = original_path
data/lib/zentest.rb CHANGED
@@ -64,7 +64,7 @@ end
64
64
 
65
65
  class ZenTest
66
66
 
67
- VERSION = "4.11.0"
67
+ VERSION = "4.12.0"
68
68
 
69
69
  include ZenTestMapping
70
70
 
data/test/test_zentest.rb CHANGED
@@ -482,7 +482,6 @@ end
482
482
  "method1="=>true,
483
483
  "method1?"=>true,
484
484
  "method1!"=>true,
485
- "method1"=>true,
486
485
  "attrib"=>true}}, @tester.klasses)
487
486
  @tester.klasses= {"whoopie" => {}}
488
487
  assert_equal({"whoopie"=> {}}, @tester.klasses)
@@ -555,8 +554,6 @@ assert_equal expected, util_testcase("Something2::Blah2", "TestSomething2::TestB
555
554
  end
556
555
 
557
556
  def test_testcase9
558
- skip "doesn't define to_s on TrueClass?!?" if maglev?
559
-
560
557
  # stupid YAML is breaking my tests. Enters via Test::Rails. order dependent.
561
558
  if defined? YAML then
562
559
  TrueClass.send :remove_method, :taguri, :taguri=, :to_yaml rescue nil
@@ -565,7 +562,17 @@ assert_equal expected, util_testcase("Something2::Blah2", "TestSomething2::TestB
565
562
  pims = TrueClass.public_instance_methods(false)
566
563
  TrueClass.send :remove_method, :inspect if pims.include? :inspect # 2.0 only
567
564
 
568
- expected = "#{HEADER}class TestTrueClass < Minitest::Test\n def test_and\n raise NotImplementedError, 'Need to write test_and'\n end\n\n def test_carat\n raise NotImplementedError, 'Need to write test_carat'\n end\n\n def test_or\n raise NotImplementedError, 'Need to write test_or'\n end\n\n def test_to_s\n raise NotImplementedError, 'Need to write test_to_s'\n end\nend\n\n# Number of errors detected: 4"
565
+ is_ruby_23 = RUBY_VERSION >= "2.3"
566
+
567
+ count = "4"
568
+ extra = ""
569
+
570
+ if is_ruby_23 then
571
+ count = "5"
572
+ extra = " def test_equals3\n raise NotImplementedError, 'Need to write test_equals3'\n end\n\n"
573
+ end
574
+
575
+ expected = "#{HEADER}class TestTrueClass < Minitest::Test\n def test_and\n raise NotImplementedError, 'Need to write test_and'\n end\n\n def test_carat\n raise NotImplementedError, 'Need to write test_carat'\n end\n\n#{extra} def test_or\n raise NotImplementedError, 'Need to write test_or'\n end\n\n def test_to_s\n raise NotImplementedError, 'Need to write test_to_s'\n end\nend\n\n# Number of errors detected: #{count}"
569
576
 
570
577
  assert_equal expected, util_testcase("TestTrueClass")
571
578
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZenTest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.11.0
4
+ version: 4.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
8
  - Eric Hodel
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
15
15
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
16
- GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
16
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
17
17
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRl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MnnZ/aeCsW9ov5vdXpYbf3dpg6ADXRGE7
29
+ lQY2y1tJ5/chqu6h7dQmnm2ABUqx9O+JcN9hbCYoA5i/EeubUEtFIh2w3SpO6YfB
30
+ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
31
+ YsuyUzsMz6GQA4khyaMgKNSD
32
32
  -----END CERTIFICATE-----
33
- date: 2014-09-27 00:00:00.000000000 Z
33
+ date: 2022-01-17 00:00:00.000000000 Z
34
34
  dependencies:
35
- - !ruby/object:Gem::Dependency
36
- name: minitest
37
- requirement: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- version: '5.4'
42
- type: :development
43
- prerelease: false
44
- version_requirements: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ~>
47
- - !ruby/object:Gem::Version
48
- version: '5.4'
49
35
  - !ruby/object:Gem::Dependency
50
36
  name: rdoc
51
37
  requirement: !ruby/object:Gem::Requirement
52
38
  requirements:
53
- - - ~>
39
+ - - ">="
54
40
  - !ruby/object:Gem::Version
55
41
  version: '4.0'
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: '7'
56
45
  type: :development
57
46
  prerelease: false
58
47
  version_requirements: !ruby/object:Gem::Requirement
59
48
  requirements:
60
- - - ~>
49
+ - - ">="
61
50
  - !ruby/object:Gem::Version
62
51
  version: '4.0'
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: '7'
63
55
  - !ruby/object:Gem::Dependency
64
56
  name: hoe
65
57
  requirement: !ruby/object:Gem::Requirement
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: '3.13'
61
+ version: '3.23'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
65
  requirements:
74
- - - ~>
66
+ - - "~>"
75
67
  - !ruby/object:Gem::Version
76
- version: '3.13'
68
+ version: '3.23'
77
69
  description: |-
78
70
  ZenTest provides 4 different tools: zentest, unit_diff, autotest, and
79
71
  multiruby.
@@ -96,14 +88,16 @@ description: |-
96
88
  multiruby runs anything you want on multiple versions of ruby. Great
97
89
  for compatibility checking! Use multiruby_setup to manage your
98
90
  installed versions.
91
+
92
+ *NOTE:* The next major release of zentest will not include autotest
93
+ (use minitest-autotest instead) and multiruby will use rbenv /
94
+ ruby-build for version management.
99
95
  email:
100
96
  - ryand-ruby@zenspider.com
101
97
  - drbrain@segment7.net
102
98
  executables:
103
- - autotest
104
99
  - multigem
105
100
  - multiruby
106
- - multiruby_setup
107
101
  - unit_diff
108
102
  - zentest
109
103
  extensions: []
@@ -114,41 +108,25 @@ extra_rdoc_files:
114
108
  - articles/how_to_use_zentest.txt
115
109
  - example.txt
116
110
  files:
117
- - .autotest
118
- - .gemtest
111
+ - ".autotest"
119
112
  - History.txt
120
113
  - Manifest.txt
121
114
  - README.txt
122
115
  - Rakefile
123
116
  - articles/Article.css
124
- - articles/getting_started_with_autotest.html
125
117
  - articles/how_to_use_zentest.txt
126
- - bin/autotest
127
118
  - bin/multigem
128
119
  - bin/multiruby
129
- - bin/multiruby_setup
130
120
  - bin/unit_diff
131
121
  - bin/zentest
132
122
  - example.txt
133
123
  - example1.rb
134
124
  - example2.rb
135
- - example_dot_autotest.rb
136
- - lib/autotest.rb
137
- - lib/autotest/autoupdate.rb
138
- - lib/autotest/bundler.rb
139
- - lib/autotest/isolate.rb
140
- - lib/autotest/once.rb
141
- - lib/autotest/preload.rb
142
- - lib/autotest/rcov.rb
143
- - lib/autotest/restart.rb
144
- - lib/autotest/timestamp.rb
145
125
  - lib/focus.rb
146
126
  - lib/functional_test_matrix.rb
147
- - lib/multiruby.rb
148
127
  - lib/unit_diff.rb
149
128
  - lib/zentest.rb
150
129
  - lib/zentest_mapping.rb
151
- - test/test_autotest.rb
152
130
  - test/test_focus.rb
153
131
  - test/test_unit_diff.rb
154
132
  - test/test_zentest.rb
@@ -156,35 +134,27 @@ files:
156
134
  homepage: https://github.com/seattlerb/zentest
157
135
  licenses:
158
136
  - MIT
159
- metadata: {}
160
- post_install_message:
137
+ metadata:
138
+ homepage_uri: https://github.com/seattlerb/zentest
139
+ post_install_message:
161
140
  rdoc_options:
162
- - --main
141
+ - "--main"
163
142
  - README.txt
164
143
  require_paths:
165
144
  - lib
166
145
  required_ruby_version: !ruby/object:Gem::Requirement
167
146
  requirements:
168
- - - '>='
147
+ - - ">="
169
148
  - !ruby/object:Gem::Version
170
149
  version: '0'
171
150
  required_rubygems_version: !ruby/object:Gem::Requirement
172
151
  requirements:
173
- - - '>='
152
+ - - ">="
174
153
  - !ruby/object:Gem::Version
175
- version: '1.8'
176
- - - <
177
- - !ruby/object:Gem::Version
178
- version: '3.0'
154
+ version: '0'
179
155
  requirements: []
180
- rubyforge_project:
181
- rubygems_version: 2.4.1
182
- signing_key:
156
+ rubygems_version: 3.3.3
157
+ signing_key:
183
158
  specification_version: 4
184
159
  summary: 'ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby'
185
- test_files:
186
- - test/test_autotest.rb
187
- - test/test_focus.rb
188
- - test/test_unit_diff.rb
189
- - test/test_zentest.rb
190
- - test/test_zentest_mapping.rb
160
+ test_files: []
metadata.gz.sig CHANGED
Binary file
data/.gemtest DELETED
File without changes