rspec-support 3.1.1 → 3.1.2
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +8 -0
- data/lib/rspec/support/method_signature_verifier.rb +4 -0
- data/lib/rspec/support/ruby_features.rb +10 -0
- data/lib/rspec/support/spec.rb +1 -0
- data/lib/rspec/support/spec/shell_out.rb +17 -2
- data/lib/rspec/support/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d956dee8e8ec2188fcfbbfd4ebbea36ec71ee80e
|
4
|
+
data.tar.gz: 7682ba44730a0cd46b27dd685b3c9f60da93ef4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7abcbe97b35a4693f93d4f21024d9dd60aea8b9eea9ebfb0c8d01b51982f87ab208413e42ac7bfcd78b0209b4313aaa87ffd06ef3764c78123dd9ebbac83ee48
|
7
|
+
data.tar.gz: db6c79b4c9710880a610922714f5e55c1e67fa9bc41d5ac0c30f79de93614d6a95040f2368e6f94aeca4a774f3c1ffe70123afde46cc7eca936fa0ecd33a8c72
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### 3.1.2 / 2014-10-08
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.1...v3.1.2)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix method signature to not blow up with a `NoMethodError` on 1.8.7 when
|
7
|
+
verifying against an RSpec matcher. (Myron Marston, #116)
|
8
|
+
|
1
9
|
### 3.1.1 / 2014-09-26
|
2
10
|
[Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.0...v3.1.1)
|
3
11
|
|
@@ -1,5 +1,15 @@
|
|
1
1
|
module RSpec
|
2
2
|
module Support
|
3
|
+
# @api private
|
4
|
+
#
|
5
|
+
# Provides query methods for different rubies
|
6
|
+
module Ruby
|
7
|
+
def jruby?
|
8
|
+
RUBY_PLATFORM == 'java'
|
9
|
+
end
|
10
|
+
module_function :jruby?
|
11
|
+
end
|
12
|
+
|
3
13
|
# @api private
|
4
14
|
#
|
5
15
|
# Provides query methods for ruby features that differ among
|
data/lib/rspec/support/spec.rb
CHANGED
@@ -4,6 +4,7 @@ RSpec::Support.require_rspec_support "spec/with_isolated_stderr"
|
|
4
4
|
RSpec::Support.require_rspec_support "spec/stderr_splitter"
|
5
5
|
RSpec::Support.require_rspec_support "spec/formatting_support"
|
6
6
|
RSpec::Support.require_rspec_support "spec/with_isolated_directory"
|
7
|
+
RSpec::Support.require_rspec_support "ruby_features"
|
7
8
|
|
8
9
|
warning_preventer = $stderr = RSpec::Support::StdErrSplitter.new($stderr)
|
9
10
|
|
@@ -18,7 +18,8 @@ module RSpec
|
|
18
18
|
|
19
19
|
if Open3.respond_to?(:capture3) # 1.9+
|
20
20
|
def shell_out(*command)
|
21
|
-
Open3.capture3(*command)
|
21
|
+
stdout, stderr, status = Open3.capture3(*command)
|
22
|
+
return stdout, filter(stderr), status
|
22
23
|
end
|
23
24
|
else # 1.8.7
|
24
25
|
def shell_out(*command)
|
@@ -31,7 +32,7 @@ module RSpec
|
|
31
32
|
|
32
33
|
# popen3 doesn't provide the exit status so we fake it out.
|
33
34
|
status = instance_double(Process::Status, :exitstatus => 0)
|
34
|
-
return stdout, stderr, status
|
35
|
+
return stdout, filter(stderr), status
|
35
36
|
end
|
36
37
|
end
|
37
38
|
|
@@ -49,6 +50,20 @@ module RSpec
|
|
49
50
|
shell_out(*command)
|
50
51
|
end
|
51
52
|
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
if Ruby.jruby?
|
57
|
+
def filter(output)
|
58
|
+
output.each_line.reject do |line|
|
59
|
+
line.include?("lib/ruby/shared/rubygems/defaults/jruby")
|
60
|
+
end.join($/)
|
61
|
+
end
|
62
|
+
else
|
63
|
+
def filter(output)
|
64
|
+
output
|
65
|
+
end
|
66
|
+
end
|
52
67
|
end
|
53
68
|
end
|
54
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
|
37
37
|
muA=
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date: 2014-09
|
39
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
@@ -123,5 +123,5 @@ rubyforge_project: rspec
|
|
123
123
|
rubygems_version: 2.2.2
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
|
-
summary: rspec-support-3.1.
|
126
|
+
summary: rspec-support-3.1.2
|
127
127
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|