wrong 0.6.1-java → 0.6.2-java

Sign up to get free protection for your applications and to get access to all the features.
data/lib/wrong/chunk.rb CHANGED
@@ -6,7 +6,8 @@ def require_optionally(library)
6
6
  begin
7
7
  require library
8
8
  rescue LoadError => e
9
- raise e unless e.message == "no such file to load -- #{library}"
9
+ raise e unless e.message == "no such file to load -- #{library}" or
10
+ e.message == "cannot load such file -- #{library}" # 1.9.3 changed the error message
10
11
  end
11
12
  end
12
13
 
@@ -27,10 +28,7 @@ module Wrong
27
28
  as_proc.source_location
28
29
  else
29
30
  # in Ruby 1.8, it reads the source location from the call stack
30
- # # $stderr.puts "---"
31
- # $stderr.puts caller.join("\n")
32
31
  relevant_caller = caller[depth]
33
- # $stderr.puts "*** #{relevant_caller}"
34
32
  relevant_caller.split(":")
35
33
  end
36
34
 
data/lib/wrong/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wrong
2
- VERSION = "0.6.1" unless defined?(Wrong::VERSION)
2
+ VERSION = "0.6.2" unless defined?(Wrong::VERSION)
3
3
  end
@@ -5,6 +5,7 @@ require "fileutils"
5
5
 
6
6
  require "./test/test_helper"
7
7
  require "wrong/adapters/minitest"
8
+ require "bundler"
8
9
 
9
10
  include Wrong
10
11
 
@@ -31,10 +32,12 @@ describe "testing rspec" do
31
32
  assert { line =~ /rspec[-\w]* \(#{rspec_version}\.[\w.]*\)/ }
32
33
  end
33
34
  end
34
-
35
- spec_output = sys "ruby #{dir}/failing_spec.rb",
35
+
36
+ Bundler.with_clean_env do
37
+ spec_output = sys "ruby #{dir}/failing_spec.rb",
36
38
  (rspec_version == 1 || RUBY_VERSION =~ /^1\.8\./ || RUBY_VERSION == '1.9.1' ? nil : 1) # RSpec v1 exits with 0 on failure :-(
37
- end
39
+ end
40
+ end
38
41
 
39
42
  assert { spec_output.include? "1 failure" }
40
43
  assert { spec_output.include? "Expected ((2 + 2) == 5), but" }
@@ -1,7 +1,7 @@
1
1
  here = File.dirname(__FILE__)
2
2
  $LOAD_PATH.unshift "#{here}/../../lib"
3
3
 
4
- # gem "test-unit"
4
+ gem "test-unit"
5
5
  require "test/unit"
6
6
  require "test/unit/autorunner"
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrong
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: java
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-03 00:00:00.000000000Z
13
+ date: 2012-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: predicated
17
- requirement: &70228833367520 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: 0.2.3
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70228833367520
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 0.2.3
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: ruby_parser
28
- requirement: &70228833367020 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ~>
@@ -33,10 +38,15 @@ dependencies:
33
38
  version: 2.0.4
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *70228833367020
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.4
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: ruby2ruby
39
- requirement: &70228833366560 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ~>
@@ -44,10 +54,15 @@ dependencies:
44
54
  version: '1.2'
45
55
  type: :runtime
46
56
  prerelease: false
47
- version_requirements: *70228833366560
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: '1.2'
48
63
  - !ruby/object:Gem::Dependency
49
64
  name: sexp_processor
50
- requirement: &70228833366100 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
51
66
  none: false
52
67
  requirements:
53
68
  - - ~>
@@ -55,10 +70,15 @@ dependencies:
55
70
  version: '3.0'
56
71
  type: :runtime
57
72
  prerelease: false
58
- version_requirements: *70228833366100
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: '3.0'
59
79
  - !ruby/object:Gem::Dependency
60
80
  name: diff-lcs
61
- requirement: &70228833365640 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
62
82
  none: false
63
83
  requirements:
64
84
  - - ~>
@@ -66,7 +86,12 @@ dependencies:
66
86
  version: 1.1.2
67
87
  type: :runtime
68
88
  prerelease: false
69
- version_requirements: *70228833365640
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: 1.1.2
70
95
  description: ! 'Wrong provides a general assert method that takes a predicate block.
71
96
  Assertion failure
72
97
 
@@ -167,7 +192,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
192
  version: '0'
168
193
  segments:
169
194
  - 0
170
- hash: 3739027713376098366
195
+ hash: 3512121334703471150
171
196
  required_rubygems_version: !ruby/object:Gem::Requirement
172
197
  none: false
173
198
  requirements:
@@ -176,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
201
  version: '0'
177
202
  requirements: []
178
203
  rubyforge_project: wrong
179
- rubygems_version: 1.8.6
204
+ rubygems_version: 1.8.21
180
205
  signing_key:
181
206
  specification_version: 3
182
207
  summary: Wrong provides a general assert method that takes a predicate block. Assertion