rspec-json_matcher 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rspec-json_matcher.rb +1 -0
- data/lib/rspec/json_matcher.rb +2 -2
- data/lib/rspec/json_matcher/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f44fe9907cd61e704180365ae015e790646e885
|
4
|
+
data.tar.gz: b4f9c9019282e465493e044d7ebf97b7e0c57483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1d57f6a233174587f6b6e4bc675ff54dd9443cba75f8a8e34dfc80bc65ed957868f6f75b321dc0877431cd730c9c4f73d8430faef06bca71884693b689e974d
|
7
|
+
data.tar.gz: c52118d2b72d4f0e1433c704ee75af355850ecf719100c8bb31d8c0e09b8f7363f45bc85eae4f7ed360d767a97d312f006e75aefda386a873a2137270ad2642d
|
data/README.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
require "rspec/json_matcher"
|
data/lib/rspec/json_matcher.rb
CHANGED
@@ -75,7 +75,7 @@ module RSpec
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def compare
|
78
|
-
|
78
|
+
has_same_value? || has_same_collection?
|
79
79
|
end
|
80
80
|
|
81
81
|
private
|
@@ -88,7 +88,7 @@ module RSpec
|
|
88
88
|
actual.size == expected.size
|
89
89
|
end
|
90
90
|
|
91
|
-
def
|
91
|
+
def has_same_value?
|
92
92
|
if expected.respond_to?(:call)
|
93
93
|
expected.call(actual)
|
94
94
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-json_matcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- LICENSE.txt
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
|
+
- lib/rspec-json_matcher.rb
|
95
96
|
- lib/rspec/json_matcher.rb
|
96
97
|
- lib/rspec/json_matcher/version.rb
|
97
98
|
- rspec-json_matcher.gemspec
|