tire 0.1.12 → 0.1.13

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.
@@ -90,7 +90,10 @@ module Tire
90
90
  else
91
91
  response = index.store( document_type, self, {:percolate => self.percolator} )
92
92
  self.id ||= response['_id'] if self.respond_to?(:id=)
93
- self.matches = response['matches']
93
+ self._index = response['_index']
94
+ self._type = response['_type']
95
+ self._version = response['_version']
96
+ self.matches = response['matches']
94
97
  self
95
98
  end
96
99
  end
data/lib/tire/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Tire
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
 
4
4
  CHANGELOG =<<-END
5
5
  IMPORTANT CHANGES LATELY:
@@ -10,5 +10,6 @@ module Tire
10
10
  # Added percolator support for models
11
11
  # CHANGELOG support in gemspec
12
12
  # [FIX] Do not redefine #to_hash in models
13
+ # [FIX] Added that MyModel#update_elastic_search_index sets _index, _type, _version properties
13
14
  END
14
15
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tire
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 12
10
- version: 0.1.12
9
+ - 13
10
+ version: 0.1.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Karel Minarik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-14 00:00:00 +02:00
18
+ date: 2011-06-20 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -355,8 +355,9 @@ post_install_message: |
355
355
  # Added percolator support for models
356
356
  # CHANGELOG support in gemspec
357
357
  # [FIX] Do not redefine #to_hash in models
358
+ # [FIX] Added that MyModel#update_elastic_search_index sets _index, _type, _version properties
358
359
 
359
- See the full changelog at <http://github.com/karmi/tire/commits/v0.1.12>.
360
+ See the full changelog at <http://github.com/karmi/tire/commits/v0.1.13>.
360
361
 
361
362
  --------------------------------------------------------------------------------
362
363