strong_json 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: 8dd02d60911a8cb479b95b9dca2cdd78eacc4865
4
- data.tar.gz: 92734473d82322d597c54ef94747c09af792b97f
3
+ metadata.gz: bf88492fb72b27293db582e0c533f523ebc9847e
4
+ data.tar.gz: 6d1fb792714bd945e8d8a587df0ce8f08a7b59a6
5
5
  SHA512:
6
- metadata.gz: ea0b6e642d0a2565aea4ad6227b10f3a1755945e1c303a634e0815254cfb95d820623e81c21ba1cb6aebb41401b61378cb00581d3f33a36ded049e188505fd54
7
- data.tar.gz: a2aa9419a7d3e9e26e611cf6605c017414491b5439c31fa0c7d85b211ebe3c96a9d78c5f4f3e37d34572a7189a001a577195d7f1ee2b2bc8bd9f75a455b40650
6
+ metadata.gz: 04dce37728688528ef296cf732d87d4d17785d7d217536298a1ec0788002bd602c4c2ee4ae27621b70ccb197e4c725acf714b5ecdfab58a6bfdc189ab35a455d
7
+ data.tar.gz: a26a4cb4f300733f2136183fe4044171761fbe15d9611cf6f92ca6ed6b5c4d445a27b2f61212d53ebb115800ca73f463c0fcf2962398ecc677f9c54012d23f61
@@ -35,5 +35,21 @@ class StrongJSON
35
35
  def prohibited
36
36
  StrongJSON::Type::Base.new(:prohibited)
37
37
  end
38
+
39
+ def string?
40
+ optional(string)
41
+ end
42
+
43
+ def numeric?
44
+ optional(numeric)
45
+ end
46
+
47
+ def number?
48
+ optional(number)
49
+ end
50
+
51
+ def boolean?
52
+ optional(boolean)
53
+ end
38
54
  end
39
55
  end
@@ -1,3 +1,3 @@
1
1
  class StrongJSON
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_json
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
  - Soutaro Matsumoto