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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e45eac67dbe3e29c027ac71c53f7729303270e19
4
- data.tar.gz: bf794ed34f279494b7908e55050c3dda5099b6be
3
+ metadata.gz: 6f44fe9907cd61e704180365ae015e790646e885
4
+ data.tar.gz: b4f9c9019282e465493e044d7ebf97b7e0c57483
5
5
  SHA512:
6
- metadata.gz: ed23cc7165475a0e11a4bfb26a1eebeb185c1029711bb7067d86411fe22a77cf0289646ab2dc75d9139654b66361626fdd2ccc5932cf1e6b85209180b6e37b14
7
- data.tar.gz: 4541d20701817b6e58ee6ba3aee7efee59b57fe204292fd1651f66d19f41320e392c54510ca9c3983bb8fc357c99def3fe98e72ad8df6a59d1e55a38c810a55d
6
+ metadata.gz: b1d57f6a233174587f6b6e4bc675ff54dd9443cba75f8a8e34dfc80bc65ed957868f6f75b321dc0877431cd730c9c4f73d8430faef06bca71884693b689e974d
7
+ data.tar.gz: c52118d2b72d4f0e1433c704ee75af355850ecf719100c8bb31d8c0e09b8f7363f45bc85eae4f7ed360d767a97d312f006e75aefda386a873a2137270ad2642d
data/README.md CHANGED
@@ -44,7 +44,7 @@ RSpec.configuration.include RSpec::JsonMatcher
44
44
  }
45
45
  ].to_json.should be_json([
46
46
  {
47
- "url" => /^invalid pattern$/,
47
+ "url" => /^https:/,
48
48
  "id" => /^\d+$/,
49
49
  "description" => /gist/,
50
50
  "public" => true,
@@ -0,0 +1 @@
1
+ require "rspec/json_matcher"
@@ -75,7 +75,7 @@ module RSpec
75
75
  end
76
76
 
77
77
  def compare
78
- has_equal_value? || has_same_collection?
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 has_equal_value?
91
+ def has_same_value?
92
92
  if expected.respond_to?(:call)
93
93
  expected.call(actual)
94
94
  else
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module JsonMatcher
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
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.2
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-25 00:00:00.000000000 Z
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