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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e513acd2c16118fcb7e208b22f926418418b375
4
- data.tar.gz: 5bda78905776236ae7626748b486bbd0e6bf5f30
3
+ metadata.gz: c9048f09839b73e0b2ef1461eb3077d829c335d8
4
+ data.tar.gz: 96ab891eccffcf3293154903283936f73c88f298
5
5
  SHA512:
6
- metadata.gz: 74fcf59b8e5dcd2e45c5254631da38c81961eff1aafd79d3918e05c7982211c6a3f618437bd7c01f4d219d7f7b7f09792365201e2cf2e7a3cd65032585b2299b
7
- data.tar.gz: 6c98bbf6bbd6d1bb7af762a7b3905de94636062639a201309778c168e63bf661a0d1d856fe9d92ff312cce80f2f34f6e8eb13f69d1e9e164aca93b5a6724c99c
6
+ metadata.gz: 11cc50e1c986410140ae805bb20507aeba25b287bd52ce4092168e72a49928c3057c8a91815b50df0220d198b9d03b988f5f73dba049e746071049d95cb85fe0
7
+ data.tar.gz: 6ec6a54588124cbdeacd5e4ea86ff272a77c25f3fae71313fd58f8472f2693e29b00232cafc471fcc014cb0e97384f777561efe47108727abd7dd65f0e132e82
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ master
2
+ ------
3
+
4
+ 0.2.1
5
+ -----
6
+
7
+ * Supports RSpec 2 syntax `failure_message_for_should` and
8
+ `failure_message_for_should_not`
@@ -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", ">= 1.2.1")
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"
@@ -52,12 +52,22 @@ if RSpec.respond_to?(:configure)
52
52
  matcher.matches?(response)
53
53
  end
54
54
 
55
- failure_message do |response|
56
- matcher.failure_message(response)
57
- end
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
- failure_message_when_negated do |response|
60
- matcher.failure_message_when_negated(response)
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
@@ -1,5 +1,5 @@
1
1
  module JSON
2
2
  module Matchers
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  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.0
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: 2014-10-24 00:00:00.000000000 Z
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: 1.2.1
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: 1.2.1
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.2
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: