elasticsearch-rails-dynamic-json-support 0.0.9 → 0.0.10

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: 4115b8f58ebfa77dfd79cf58353c73046a60fab5
4
- data.tar.gz: 19c0e1805faf0ac7263a39abbc6d30f234ee741e
3
+ metadata.gz: 5b37af1ee28910aab83131ad0199d69d96abc349
4
+ data.tar.gz: f174cc88ec1fec1a497e5745bbc17ae4fd4237e7
5
5
  SHA512:
6
- metadata.gz: f17f60efef60d98800d498230db337e8bd37b26bbeff5068b9850aa3356a4bbd802e71e0e3bad76fc7ea96231ca6506a0092d07b5fb7028d7735e811183d0e6a
7
- data.tar.gz: 80283e05248ebaa0e7a8d02869ed5555b6d2d4f9aa47ad227f51729d324e61cf4f5a10fab931a5795e41aed2087c652adcf9a2ece15e1a355acb8fbc05df8697
6
+ metadata.gz: d62d946b3f75dbd1956b8c5329abbcc06bc8270fdec74cd0e2fd282f83567d518aa6ca9f19894bfc968d39d19aee4b6ff7a823ee6c2e791a9d2b668836838810
7
+ data.tar.gz: f08400be2aaa2b8caa3529f4de1085610233c90ec8a0b552d5447474084976bd578561c7acb1ce61e4adc4c9f0be558a11ad4e8f9b0a98d906280924d12f0761
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: elasticsearch-rails-dynamic-json-support 0.0.9 ruby lib
5
+ # stub: elasticsearch-rails-dynamic-json-support 0.0.10 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "elasticsearch-rails-dynamic-json-support".freeze
9
- s.version = "0.0.9"
9
+ s.version = "0.0.10"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Song Yangyu".freeze]
14
- s.date = "2016-10-04"
14
+ s.date = "2016-10-10"
15
15
  s.description = "Enhance elasticsearch-rails with `elasticsearch_json_changes` to translate the attribute changes into document updates".freeze
16
16
  s.email = "flyfy1@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -101,7 +101,7 @@ module Elasticsearch
101
101
  self.instance_variable_set(:@__changed_attributes__, instance.changes)
102
102
  end
103
103
 
104
- after_commit on: [:create, :update] do |instance|
104
+ after_update do |instance|
105
105
  changes = instance.instance_variable_get(:@__changed_attributes__)
106
106
 
107
107
  Array.wrap(self.public_send reverse_relationship).each do |record|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-rails-dynamic-json-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Song Yangyu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-04 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elasticsearch-model