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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b5e4d75cddd5c44519c9825fda2a66b098e091b
4
- data.tar.gz: 8b4296bec61f4eb06eefc5bb308c1d8acb04799b
3
+ metadata.gz: f8fb5751c30064ab201278c6c02e311a417c06ef
4
+ data.tar.gz: ce1ac8099d263997affe7d47e3771eefcd15e058
5
5
  SHA512:
6
- metadata.gz: 82bc8da4c1734ee3510496646251fffaa144aa2e2308640b90d7e5e58e00b40471d74a2950a52dea006dbe44d537bc04736f5f8d419d60c15e1f655f08e6e554
7
- data.tar.gz: 04058a903ca94f86ddfc88450a9afa1783dadfdc34fc38606be1f8c9c4affda9caf29039a3facf3a8f48408b18e3c4a84444461c3cfe5af501bc0f9d0ea11c81
6
+ metadata.gz: fdfc830cb63a589a52973bf3d42a65796aedf9446e91decfea13387ef0d579217152fd3f9fc019eae8dbba1f298be1af391a9c1c21e3dc3b976bca2acf46b1da
7
+ data.tar.gz: 7fb22f88c945ca378b169e3ee1da9cc581d152507ee713bf8960bd26059178a8abf34c0dcd26ab82a4b12a3212e2e9de8481b534904c2db4db5507f27193e04b
@@ -1,3 +1,6 @@
1
+ # 0.9.0
2
+ - Allow enums
3
+
1
4
  # 0.8.0
2
5
  - Make error messages look better with json pretty print
3
6
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Blumquist
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
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.8.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-18 00:00:00.000000000 Z
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport