rspec-support 3.1.1 → 3.1.2

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
2
  SHA1:
3
- metadata.gz: efadb64f091d8522dfb7255f4fe79bc84cb968cb
4
- data.tar.gz: 82b59e13eaac79b3dc6e3e20416a2cc81232cc1d
3
+ metadata.gz: d956dee8e8ec2188fcfbbfd4ebbea36ec71ee80e
4
+ data.tar.gz: 7682ba44730a0cd46b27dd685b3c9f60da93ef4c
5
5
  SHA512:
6
- metadata.gz: d53270f97d531e75a73efbb8312d0346374c6fb0cf0c2ac6cf9b70712b07a226e77c5992ef6af7653614ee10fbc2279c5015209cb61fbd2f4fb1d96057639336
7
- data.tar.gz: 5dae6507a55c258d6ac3c061ae7d4f7a2d2fa8d05d3fd8b64c5d2b57703ae56c7c24c4f4c0744965c751ae6ca47d41dde88228be5adeaddb33f4964bc9dfcfc8
6
+ metadata.gz: 7abcbe97b35a4693f93d4f21024d9dd60aea8b9eea9ebfb0c8d01b51982f87ab208413e42ac7bfcd78b0209b4313aaa87ffd06ef3764c78123dd9ebbac83ee48
7
+ data.tar.gz: db6c79b4c9710880a610922714f5e55c1e67fa9bc41d5ac0c30f79de93614d6a95040f2368e6f94aeca4a774f3c1ffe70123afde46cc7eca936fa0ecd33a8c72
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -114,6 +114,10 @@ module RSpec
114
114
  false
115
115
  end
116
116
 
117
+ def could_contain_kw_args?(*)
118
+ false
119
+ end
120
+
117
121
  def classify_parameters
118
122
  arity = @method.arity
119
123
  if arity < 0
@@ -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
@@ -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
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.1.1'
4
+ STRING = '3.1.2'
5
5
  end
6
6
  end
7
7
  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.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-26 00:00:00.000000000 Z
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.1
126
+ summary: rspec-support-3.1.2
127
127
  test_files: []
metadata.gz.sig CHANGED
Binary file