subroutine 0.10.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subroutine/fields.rb +3 -1
- data/lib/subroutine/version.rb +3 -3
- data/test/subroutine/fields_test.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83e75f941dcb1020be24cefa722acc6a2fa5689479eac294e50cdfab09a8ea97
|
4
|
+
data.tar.gz: c7bbe661699afcbfd8ffe6b3da0ca06dd21ea6dd9c29e80265ad507361754483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f93744cee2306723ca1d4949b0cc1d85570cd761ac6254edc50b58ed26d884b81e3a53e478818072077177861d74b5f806527d03ca6716c9e6eba3575b1d8f
|
7
|
+
data.tar.gz: 157b2503fba1c1866a4bda9e13b04311acf2dd87caf163010025f6495f08305bf63859bbb3d810c3a789bfbb753c0f9bc03f21518805158d79c5490bc66a8ad6
|
data/lib/subroutine/fields.rb
CHANGED
@@ -105,10 +105,12 @@ module Subroutine
|
|
105
105
|
group_field_names = fields_in_group(:#{group_name}).keys
|
106
106
|
all_default_params.slice(*group_field_names)
|
107
107
|
end
|
108
|
+
alias #{group_name}_defaults #{group_name}_default_params
|
108
109
|
|
109
|
-
def #{group_name}
|
110
|
+
def #{group_name}_params_with_default_params
|
110
111
|
#{group_name}_default_params.merge(param_groups[:#{group_name}])
|
111
112
|
end
|
113
|
+
alias #{group_name}_params_with_defaults #{group_name}_params_with_default_params
|
112
114
|
|
113
115
|
def without_#{group_name}_params
|
114
116
|
all_params.except(*#{group_name}_params.keys)
|
data/lib/subroutine/version.rb
CHANGED