subroutine 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subroutine/op.rb +1 -1
- data/lib/subroutine/version.rb +1 -1
- data/test/subroutine/base_test.rb +1 -0
- data/test/support/ops.rb +1 -0
- 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: eaf64bc5b7da2f85485bd5e3f22c3e69106da013
|
4
|
+
data.tar.gz: 65575447d14913aba3e9d6565d168ff5bb0fb202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d249ab00c1017ac02427e26b6a2bab807b015ed8ab4f5c0ddcb5125a005aa9335cae759b4ddfb5ba766704ee2b5859723ab779bbabfad6675002cc41956dfce
|
7
|
+
data.tar.gz: 67c4967e9136863e67bfc7d29c0a9358352f54594eff7ec1887d932bf533cc1b1cdeada1d488089fb10b244fa930d4ede7bab75ee95f28a4f162c42f934d95f4
|
data/lib/subroutine/op.rb
CHANGED
@@ -251,7 +251,7 @@ module Subroutine
|
|
251
251
|
defaults = {}.with_indifferent_access
|
252
252
|
|
253
253
|
self._fields.each_pair do |field, config|
|
254
|
-
|
254
|
+
unless config[:default].nil?
|
255
255
|
deflt = config[:default]
|
256
256
|
deflt = deflt.call if deflt.respond_to?(:call)
|
257
257
|
defaults[field] = type_caster.cast(deflt, config[:type])
|
data/lib/subroutine/version.rb
CHANGED
data/test/support/ops.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subroutine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Nelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|