apiql 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/apiql.gemspec +1 -1
- data/lib/apiql.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b56d0b44618a6a8578144285d3db2c78622c92bfc837fe48c1e1ac9aee681bb8
|
4
|
+
data.tar.gz: fbf923f84c2201c4bba5bdf62f495d128b393659d251383b4da6f9b6d8d788e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 749b0adf7b7fdc048df3612ab0427020ddd61e5c3e2a160f2574bede8a217d1868bacc110cc96bc434168d1688c63bcca74806ff7ec010053d3733c4ed49d065
|
7
|
+
data.tar.gz: e8b94e128b15856463e490b5ebd03ce1328925fd1b5708c733a0b7d2e1ea8a1a9486ba87083fb4d6bf044612c45003c55944055af5ebe6576b8df84a8e76de16
|
data/README.md
CHANGED
data/apiql.gemspec
CHANGED
data/lib/apiql.rb
CHANGED
@@ -36,7 +36,8 @@ class APIQL
|
|
36
36
|
value.nil? ||
|
37
37
|
value.is_a?(TrueClass) || value.is_a?(FalseClass) ||
|
38
38
|
value.is_a?(Symbol) || value.is_a?(String) ||
|
39
|
-
value.is_a?(Integer) || value.is_a?(Float) || value.is_a?(BigDecimal)
|
39
|
+
value.is_a?(Integer) || value.is_a?(Float) || value.is_a?(BigDecimal) ||
|
40
|
+
value.is_a?(Hash)
|
40
41
|
end
|
41
42
|
|
42
43
|
private
|
@@ -209,7 +210,7 @@ class APIQL
|
|
209
210
|
respond[field] = render_value(data[field.to_sym], sub_schema)
|
210
211
|
end
|
211
212
|
else
|
212
|
-
respond[field] = render_value(data[field.to_sym]
|
213
|
+
respond[field] = render_value(data[field.to_sym])
|
213
214
|
end
|
214
215
|
end
|
215
216
|
|
@@ -219,7 +220,7 @@ class APIQL
|
|
219
220
|
end
|
220
221
|
end
|
221
222
|
|
222
|
-
def render_value(value, schema)
|
223
|
+
def render_value(value, schema = nil)
|
223
224
|
if schema.present?
|
224
225
|
context.render_value(value, schema)
|
225
226
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apiql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Silchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|