json-matchers 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/json-matchers.gemspec +1 -1
- data/lib/json/matchers/rspec.rb +15 -5
- data/lib/json/matchers/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9048f09839b73e0b2ef1461eb3077d829c335d8
|
4
|
+
data.tar.gz: 96ab891eccffcf3293154903283936f73c88f298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11cc50e1c986410140ae805bb20507aeba25b287bd52ce4092168e72a49928c3057c8a91815b50df0220d198b9d03b988f5f73dba049e746071049d95cb85fe0
|
7
|
+
data.tar.gz: 6ec6a54588124cbdeacd5e4ea86ff272a77c25f3fae71313fd58f8472f2693e29b00232cafc471fcc014cb0e97384f777561efe47108727abd7dd65f0e132e82
|
data/CHANGELOG.md
ADDED
data/json-matchers.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency("json-schema", "
|
21
|
+
spec.add_dependency("json-schema", "~> 2.2.5")
|
22
22
|
spec.add_dependency("activesupport", '>= 3.0.0')
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.7"
|
data/lib/json/matchers/rspec.rb
CHANGED
@@ -52,12 +52,22 @@ if RSpec.respond_to?(:configure)
|
|
52
52
|
matcher.matches?(response)
|
53
53
|
end
|
54
54
|
|
55
|
-
failure_message
|
56
|
-
|
57
|
-
|
55
|
+
if respond_to?(:failure_message)
|
56
|
+
failure_message do |response|
|
57
|
+
matcher.failure_message(response)
|
58
|
+
end
|
59
|
+
|
60
|
+
failure_message_when_negated do |response|
|
61
|
+
matcher.failure_message_when_negated(response)
|
62
|
+
end
|
63
|
+
else
|
64
|
+
failure_message_for_should do |response|
|
65
|
+
matcher.failure_message(response)
|
66
|
+
end
|
58
67
|
|
59
|
-
|
60
|
-
|
68
|
+
failure_message_for_should_not do |response|
|
69
|
+
matcher.failure_message_when_negated(response)
|
70
|
+
end
|
61
71
|
end
|
62
72
|
end
|
63
73
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Doyle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.2.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- ".gitignore"
|
105
105
|
- ".rspec"
|
106
106
|
- ".travis.yml"
|
107
|
+
- CHANGELOG.md
|
107
108
|
- Gemfile
|
108
109
|
- LICENSE.txt
|
109
110
|
- NEWS.md
|
@@ -138,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
139
|
version: '0'
|
139
140
|
requirements: []
|
140
141
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.4.
|
142
|
+
rubygems_version: 2.4.5
|
142
143
|
signing_key:
|
143
144
|
specification_version: 4
|
144
145
|
summary: Validate your Rails JSON API's JSON
|
@@ -146,4 +147,3 @@ test_files:
|
|
146
147
|
- spec/json/matchers/match_response_schema_spec.rb
|
147
148
|
- spec/spec_helper.rb
|
148
149
|
- spec/support/file_helpers.rb
|
149
|
-
has_rdoc:
|