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 +4 -4
- data/.gitignore +1 -0
- data/README.md +3 -1
- data/lib/match_json.rb +1 -0
- data/lib/match_json/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25d486d156eee447c6f03efb1d007d044603e6db
|
4
|
+
data.tar.gz: 79e1d683f9c265d1355d4e33d47ff4d7fe9e9de6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8175bc7e983633fc7e1f1291d764642155a4d91068336494a67c816602124a6287736ecc612468f6777a6f7ef2ff6ac7bd2edeaabde95c89414772a323239518
|
7
|
+
data.tar.gz: 0a5c9ca6857ff67c62a2c53f24b4dc26af6ede95aabc640df431bdbefa583338e062ef9f9b39500ad225eb5e058c685f4b047cc23ac0a21bae9a3f53db0d4716
|
data/.gitignore
CHANGED
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
|
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/
|
data/lib/match_json.rb
CHANGED
data/lib/match_json/version.rb
CHANGED