rspec-expectations 3.6.0.beta1 → 3.6.0.beta2

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: 8232b582b397e192208eb5c3e081b83076aa59d9
4
- data.tar.gz: 4caa2e9acf45b659b2bf3ecce7e1a1a92d14090a
3
+ metadata.gz: 4334ca25737c438a7a9266a95fb2cd4182853299
4
+ data.tar.gz: 810d8162263ea539f45652f84c0bf9deec512e6b
5
5
  SHA512:
6
- metadata.gz: a7575c7bb5042e69e5bd46bc17a0e52740fbe6b05942c9d4f1d164ea78624725bda93cc15b3dd84cae7bd128e6099c628f80e8fd74d49108b98a19c9c3241bd1
7
- data.tar.gz: 64c465f4842fb35b020c6dd71c1469c0614467cfcbd488d6e476121d7d2ef108dfca836c9266db6206c37570345b1c7d9e20e47aa8f81dc68ab5c4124e98cfef
6
+ metadata.gz: b9d714c6f1f8ee892a133df714e7ffcc5afca4aa0f73735eda1478591a4aeebe3601c61d96d1ceab68c60e9f023b1f629107619ecd7150a74efa7c5ce276992d
7
+ data.tar.gz: 45c51f595123a44b52c02058939248bf53eb3d73e7e6305a79936250d31208e191817ff60862856accc5f34e0bc5090204617d122e9cb0dd1841143976a21237
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 3.6.0.beta2 / 2016-12-12
2
+ [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.6.0.beta1...v3.6.0.beta2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Using the exist matcher on `File` no longer produces a deprecation warning.
7
+ (Jon Rowe, #954)
8
+
1
9
  ### 3.6.0.beta1 / 2016-10-09
2
10
  [Full Changelog](http://github.com/rspec/rspec-expectations/compare/v3.5.0...v3.6.0.beta1)
3
11
 
@@ -2,7 +2,7 @@ module RSpec
2
2
  module Expectations
3
3
  # @private
4
4
  module Version
5
- STRING = '3.6.0.beta1'
5
+ STRING = '3.6.0.beta2'
6
6
  end
7
7
  end
8
8
  end
@@ -77,7 +77,11 @@ module RSpec
77
77
  end
78
78
 
79
79
  def predicates
80
- @predicates ||= [:exist?, :exists?].select { |p| actual.respond_to?(p) }
80
+ @predicates ||= [:exist?, :exists?].select { |p| actual.respond_to?(p) && !deprecated(p, actual) }
81
+ end
82
+
83
+ def deprecated(predicate, actual)
84
+ predicate == :exists? && File == actual
81
85
  end
82
86
  end
83
87
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0.beta1
4
+ version: 3.6.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -45,7 +45,7 @@ cert_chain:
45
45
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
46
46
  F3MdtaDehhjC
47
47
  -----END CERTIFICATE-----
48
- date: 2016-10-10 00:00:00.000000000 Z
48
+ date: 2016-12-12 00:00:00.000000000 Z
49
49
  dependencies:
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rspec-support
@@ -53,14 +53,14 @@ dependencies:
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 3.6.0.beta1
56
+ version: 3.6.0.beta2
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 3.6.0.beta1
63
+ version: 3.6.0.beta2
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: diff-lcs
66
66
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +220,6 @@ rubyforge_project:
220
220
  rubygems_version: 2.2.2
221
221
  signing_key:
222
222
  specification_version: 4
223
- summary: rspec-expectations-3.6.0.beta1
223
+ summary: rspec-expectations-3.6.0.beta2
224
224
  test_files: []
225
225
  has_rdoc:
metadata.gz.sig CHANGED
Binary file