paramore 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/paramore/cast_parameters.rb +8 -2
- data/lib/paramore/field.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb9cb65dc81c466a739cc7a64b97c0a4cefcc34e3307b045344146b03311538e
|
4
|
+
data.tar.gz: 8705b38d4a047d8fd8bde08f3109419452f752a404a076a90fc4a53fcef3eee8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d881d9275da96cbb82100c3e2b3e3928631e2255068950c1d6f7fcddaf5bf01c96eee0d75781a27c2253200551a9c75d9497c420ab653ce1ae28738f3aa83a29
|
7
|
+
data.tar.gz: 62ce73d067d64d61e244295b03cd93385e4235d85066cb57652946b70e6df28ed2f310f0f5d5c4a5ba53c980cc706677d49ed6516bad93f183e36f6b1ffef162
|
@@ -22,8 +22,14 @@ module Paramore
|
|
22
22
|
when Array
|
23
23
|
typecast_array(field, value, name)
|
24
24
|
else
|
25
|
-
if value == '' && !field.allow_empty?
|
26
|
-
field.default?
|
25
|
+
if value == '' && !field.allow_empty?
|
26
|
+
if field.default?
|
27
|
+
field.default
|
28
|
+
elsif field.nullable?
|
29
|
+
nil
|
30
|
+
else
|
31
|
+
raise Paramore::NilParameter, name
|
32
|
+
end
|
27
33
|
else
|
28
34
|
typecast_value(field.type, value, name)
|
29
35
|
end
|
data/lib/paramore/field.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paramore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.8.
|
4
|
+
version: 3.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Kairevičius
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-rails
|
@@ -115,7 +115,7 @@ licenses:
|
|
115
115
|
- MIT
|
116
116
|
metadata: {}
|
117
117
|
post_install_message: |
|
118
|
-
Thank you for installing Paramore 3.8.
|
118
|
+
Thank you for installing Paramore 3.8.1 !
|
119
119
|
From the command line you can run `paramore` to generate a configuration file
|
120
120
|
|
121
121
|
More details here : https://github.com/lumzdas/paramore/blob/master/README.md
|