rspec-power_assert 0.0.1 → 0.0.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: dc07315b0fe42f14b73e10bc8b56cebbb6b10430
4
- data.tar.gz: 6068ba82044bda6076414be1aef6971afb193adc
3
+ metadata.gz: f985fde5f03e7787b91ad69cf8849ceb7083d227
4
+ data.tar.gz: fe7c3b67f117838f0e1d0abae1367a5aa2fc5108
5
5
  SHA512:
6
- metadata.gz: 627aa581373d83a39fded770279f90a171be94eeeb8f793b680aae6149ccb883b1a38ac03e3463f92f640758cad86da2f9865fb390a1581129b958572f516a61
7
- data.tar.gz: f392fae46e096a9aac9cd94e5691b56e4d7ecf95a42422a452d01f53246e5c8bf33d81d5046e99cc7413178647a60373153d5997d9ab10f305e1b57f070a23c7
6
+ metadata.gz: f2e0b10de6fc623cf9e4ac01a42eeee3f524a0e5774b0eacd4093237686d2fa5947591bdc7509593a918797ce6e30791b06db6026d38df29f3ca344215b17205
7
+ data.tar.gz: 1801ce6325718bfd027579ee8514ee784d79fe137aa4efbad5aa943bd27d86dc317e499de68f2a75356693106a4c15358d32ef95de5a61cba2e5c7d1e2b8d706
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module PowerAssert
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -13,8 +13,13 @@ module RSpec
13
13
  end
14
14
 
15
15
  if result
16
- RSpec::Matchers.last_expectation_handler = DummyExpectationHandler
17
16
  RSpec::Matchers.last_matcher = DummyAssertionMatcher.new(msg)
17
+
18
+ if RSpec::Matchers.respond_to?(:last_should=)
19
+ RSpec::Matchers.last_should = "" # for RSpec 2
20
+ else
21
+ RSpec::Matchers.last_expectation_handler = DummyExpectationHandler # for RSpec 3
22
+ end
18
23
  else
19
24
  raise RSpec::Expectations::ExpectationNotMetError, msg
20
25
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency "power_assert", ">= 0.1.4"
22
- spec.add_runtime_dependency "rspec"
22
+ spec.add_runtime_dependency "rspec", ">= 2.14"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.7"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-power_assert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '2.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement