enumbler 0.9.1 → 0.9.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab789606b3b4b29bf976ec57a54ca62c838209f286b440f32946f494c331b92e
4
- data.tar.gz: 9bae37ac280295c70380949c7222e643a240f6c8aec3897c76ec4609349cdfa1
3
+ metadata.gz: ca8de5b8e3b88d4321e0df6108f41245142f95489930e57e6d0209c260335b3d
4
+ data.tar.gz: ab12a41dc3564dd62f78cb0583ec12ac6602ba5faf6bf890be80864096f4a65d
5
5
  SHA512:
6
- metadata.gz: 06d0fa3bfbac702c77a2968e90a53b86a3912c3fa8f18bab1619d3d6c008e5e3c8daeab3f0e0edf5005f83ca02f06d17e58125728b22c26a3e4a3a97c929c793
7
- data.tar.gz: 3cad767146fc58f6a103480ab57b749ff5522e80e3a397a71f374423c6a64104cd54f81b9e2107fb66f196dd5b3d445bcbf7204a05aa196a7a5b00c0b06d1746
6
+ metadata.gz: 948e3cab58f8065ad78b67680ecc9ca0f3de53be0169ca13502a69f145af27e855707b331cf760e925859789f26f68a801ee7f6c02562d393ca6a720c30497fd
7
+ data.tar.gz: c50f6dc4282fa0ace1cdc44b97dd79f64f6a1667074bd4fe93f5ed580decfa55983b412317d3c3a4f18f83efa1ef83c16fad75177f0e575ccf0ba005f6275cf1
@@ -11,7 +11,7 @@ module Enumbler
11
11
  @label_column_name = label_column_name
12
12
  @label = (label_col_specified? ? attributes[label_column_name] : label) || enum.to_s.dasherize
13
13
  @additional_attributes = attributes || {}
14
- @additional_attributes.merge!({ label: label }) if label_col_specified?
14
+ @additional_attributes.merge!({ label: label }) unless label.nil?
15
15
  end
16
16
 
17
17
  def ==(other)
@@ -21,7 +21,6 @@ module Enumbler
21
21
 
22
22
  def attributes
23
23
  hash = { id: id, label_column_name => label }
24
- hash.merge!({ label: @additional_attributes[:label] }) if label_col_specified?
25
24
  @additional_attributes.merge(hash)
26
25
  end
27
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Enumbler
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enumbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Timm
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-29 00:00:00.000000000 Z
11
+ date: 2021-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord