blumquist 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/blumquist.rb +1 -11
- data/lib/blumquist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8fb5751c30064ab201278c6c02e311a417c06ef
|
4
|
+
data.tar.gz: ce1ac8099d263997affe7d47e3771eefcd15e058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfc830cb63a589a52973bf3d42a65796aedf9446e91decfea13387ef0d579217152fd3f9fc019eae8dbba1f298be1af391a9c1c21e3dc3b976bca2acf46b1da
|
7
|
+
data.tar.gz: 7fb22f88c945ca378b169e3ee1da9cc581d152507ee713bf8960bd26059178a8abf34c0dcd26ab82a4b12a3212e2e9de8481b534904c2db4db5507f27193e04b
|
data/CHANGELOG.md
CHANGED
data/lib/blumquist.rb
CHANGED
@@ -79,17 +79,7 @@ class Blumquist
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def primitive_type?(type)
|
82
|
-
%w{null boolean number string}.include? type.to_s
|
83
|
-
end
|
84
|
-
|
85
|
-
def value_is_of_primitive_type?(value, type)
|
86
|
-
case type
|
87
|
-
when 'null' then value.nil?
|
88
|
-
when 'boolean' then value === true or value === false
|
89
|
-
when 'number' then value.is_a?(Numeric)
|
90
|
-
when 'string' then value.is_a?(String)
|
91
|
-
else false
|
92
|
-
end
|
82
|
+
%w{null boolean number string enum}.include? type.to_s
|
93
83
|
end
|
94
84
|
|
95
85
|
def define_getters
|
data/lib/blumquist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blumquist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jannis Hermanns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|