precedences 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/precedences/precedence.rb +2 -2
- data/lib/precedences/version.rb +1 -1
- 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: 1ed9f5b6998fb031df105d341a359c9d94a80076d4da8f8c0045cc9df7a969bc
|
4
|
+
data.tar.gz: 51a2dba7c25fda5e793bd2c652252b23d9b6ce27bd8b7e6a6bffc0b230e35d0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c369c5eadbad2aab5e2de1718fd32f0ad4011857ed276b34e021adfd216a4e929491ac99e32a7892afd01146e4391b542ab2d2c5dbf7e0d0459575b27fb9ca52
|
7
|
+
data.tar.gz: aafb057ec9ecf018cda24822aa51a0f99d7f5226a40d7cda6da6dad836f15a65c5893108efd032c758b9c43720382bc79074467217a5f3557f6a7278ab044e61
|
data/CHANGELOG
CHANGED
@@ -181,8 +181,8 @@ class Precedence
|
|
181
181
|
attr_reader :added_choices_before
|
182
182
|
attr_reader :added_choices_after
|
183
183
|
def add(name, value, **params)
|
184
|
-
@added_choices_before
|
185
|
-
@added_choices_after
|
184
|
+
@added_choices_before ||= []
|
185
|
+
@added_choices_after ||= []
|
186
186
|
name.is_a?(String) || raise(ArgumentError.new("First argument should be a String."))
|
187
187
|
lechoix = {name: name, value: value}
|
188
188
|
if params[:at_top]
|
data/lib/precedences/version.rb
CHANGED