elos 1.0.21 → 1.0.22

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
  SHA1:
3
- metadata.gz: fa01239aa5459a734c2058d17c7be8d9fff8b9ba
4
- data.tar.gz: 2fe1b4c0dd42e69f3651e172c7efd3cb00229d88
3
+ metadata.gz: 9ff9706189ea5a190be433cce62e342e05552d05
4
+ data.tar.gz: 2ab9903f440a63db5e69ef32a087895b6dba2b00
5
5
  SHA512:
6
- metadata.gz: daf6c3047acb4a30831647118347818a6b3aae0bda733d19b026750434e4ece28df10ed5e8bbe6f1bd7b2f61f8b164b9d1388cabd9dc8ade58d530de35584015
7
- data.tar.gz: 1c63111cc311b04759acfa22c30ad67e3a3133f34bb6191a6170a86f4810de5ecd8cd7d4d112744bc85ce039d96fde953dee19667934669d357f7679a6fa4274
6
+ metadata.gz: e07f881970b0912a7f1d15f3ec6dcc5d70beb284f0392e0b06281dbb10ef8f4e28f512a2689026de050fd0a2cd5f913cf2d599df0b8c9df5faa15a56a233d859
7
+ data.tar.gz: 6769fd11b933634fda7f3ef626386cec2f0c1a972ea52cc402db7f5e6326137c8c7551b9f598d70e34901ee3a211ab28cae85a0682a0b8199cd2a72921f9d736
@@ -2,6 +2,6 @@ module Elos::Index::Attributes
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
5
- cattr_accessor :attributes
5
+ cattr_accessor :attribute_keys
6
6
  end
7
7
  end
@@ -18,7 +18,7 @@ module Elos::Index::Mappings
18
18
 
19
19
  def set_mappings(mappings)
20
20
  mps = mappings.is_a?(Proc) ? mappings.() : mappings.deep_dup
21
- self.attributes = %i(id) + mps[:properties].keys
21
+ self.attribute_keys = %i(id) + mps[:properties].keys
22
22
  mps[:properties].merge!(_destroyed: boolean_property, json: no_index_string_property) if respond_to?(:physically_destroy?) && physically_destroy?
23
23
  self.mappings = { type_name => mps }
24
24
  end
@@ -2,6 +2,6 @@ module Elos::Index::Model::Attributes
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  def attributes
5
- Hash[self.class.attributes.map { |k| [k, send(k)] }]
5
+ Hash[self.class.attribute_keys.map { |k| [k, send(k)] }]
6
6
  end
7
7
  end
data/lib/elos/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Elos
2
- VERSION = '1.0.21'
2
+ VERSION = '1.0.22'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya