match_json 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: 6700101a6f7589f99d3ac22a5e22392cca6bef8b
4
- data.tar.gz: e608c2d863253955e52214efad1bc0ff984c0352
3
+ metadata.gz: 25d486d156eee447c6f03efb1d007d044603e6db
4
+ data.tar.gz: 79e1d683f9c265d1355d4e33d47ff4d7fe9e9de6
5
5
  SHA512:
6
- metadata.gz: 59005a3e78998816e9fac442cf60296e5c9a7bb5e111ac787eb78129c8f22465e7b221aef64617014f8059102fd5b2b7346c4216fdf3a13a5b7c9f53c70f5341
7
- data.tar.gz: 1cc241114b0cc43d5cec22b479b4b5823920d07e17cda729ea04688ca2121eefb8810df813146fcd2622b997d58c081b1ec4c2116a481e400bc7fcaf3701f961
6
+ metadata.gz: 8175bc7e983633fc7e1f1291d764642155a4d91068336494a67c816602124a6287736ecc612468f6777a6f7ef2ff6ac7bd2edeaabde95c89414772a323239518
7
+ data.tar.gz: 0a5c9ca6857ff67c62a2c53f24b4dc26af6ede95aabc640df431bdbefa583338e062ef9f9b39500ad225eb5e058c685f4b047cc23ac0a21bae9a3f53db0d4716
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ *.gem
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # MatchJson
2
+ [![Code Climate](https://codeclimate.com/github/WhitePayments/match_json/badges/gpa.svg)](https://codeclimate.com/github/WhitePayments/match_json)
2
3
 
3
4
  Easily test your JSON in RSpec and Cucumber.
4
5
 
@@ -55,7 +56,8 @@ You can use the following predefined patterns:
55
56
  * email
56
57
  * string
57
58
 
58
- You also can add your own pattern in this way:
59
+ You also can add your own pattern. Just add into spec/support/match_json.rb your
60
+ new patterns:
59
61
 
60
62
  ```ruby
61
63
  MatchJson::Matchers::IncludeJson::PATTERNS['id'] = /\A\d{6}\z/
@@ -1,4 +1,5 @@
1
1
  require "json"
2
+ require "rspec"
2
3
  require "match_json/version"
3
4
  require "match_json/matchers"
4
5
 
@@ -1,3 +1,3 @@
1
1
  module MatchJson
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: match_json
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
  - Pavel Gabriel