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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a735e7b8f40a271f4259c8a4c3057d6a2836f2db06ab4ca89e094a8ced4b6f8
4
- data.tar.gz: 7ebd0aafee4fa270219b8f46c83ca2e3fc0ad3870997277ba91ac4dcdd45f1aa
3
+ metadata.gz: 1ed9f5b6998fb031df105d341a359c9d94a80076d4da8f8c0045cc9df7a969bc
4
+ data.tar.gz: 51a2dba7c25fda5e793bd2c652252b23d9b6ce27bd8b7e6a6bffc0b230e35d0b
5
5
  SHA512:
6
- metadata.gz: 8518f9fd7c03c3204c4930cd6faa99feb28d48e34d7d44d8fb1681fdc4d18407ef9649a4873784e1554d97d33b333f0fb2943c13d1eb98e049e8442c6ebc5f04
7
- data.tar.gz: d0c399a24bf4178581e8c0573dd515f3b8ef9d1fa31b0ed09fc9cce013abe61476e7e2d224d26fccd865f322938f115cb26052ea632c5d35763544fd2a033a43
6
+ metadata.gz: c369c5eadbad2aab5e2de1718fd32f0ad4011857ed276b34e021adfd216a4e929491ac99e32a7892afd01146e4391b542ab2d2c5dbf7e0d0459575b27fb9ca52
7
+ data.tar.gz: aafb057ec9ecf018cda24822aa51a0f99d7f5226a40d7cda6da6dad836f15a65c5893108efd032c758b9c43720382bc79074467217a5f3557f6a7278ab044e61
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.7.1
2
+
3
+ - Bug fixed (#add method)
4
+
1
5
  # 1.7.0
2
6
 
3
7
  - Possiblité d’ajouter des menus hors classement à l’aide
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module Precedences
2
- VERSION = "1.7.0"
2
+ VERSION = "1.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: precedences
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhilippePerret