wj-mongoid-elasticsearch 0.0.6 → 0.0.7

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
- SHA1:
3
- metadata.gz: e36c98b55fbf18a62cf9043750cbb928c5616c72
4
- data.tar.gz: d8985a2805ef2930ed1a3fa9efaec6c6a168d09b
2
+ SHA256:
3
+ metadata.gz: 7cff082010d02528b0aa7f48690d990133cff28190608fb8960fe76b85592275
4
+ data.tar.gz: d47887106fcf0089d55ab6ae36c01b2aa633ca50639e72709950c7acc93e056f
5
5
  SHA512:
6
- metadata.gz: e2b00898e10eaeb55b3c58bf7245b1bd5d5701e1ab1970ac4937fc311ab8bd465548c664b5b0780e44d959c861fcbd9f9324890f6de05991cf0e28f466470a87
7
- data.tar.gz: 9853ba9dc93433061f88841d7114f76daa2929ea0bc393f5f517d75b4fd46f07b83551dfdcf6b9c728f64f7860404e0e182c96fb4515a8e2064a8a3b0486eb90
6
+ metadata.gz: f84e2e88f9824fb2e0b5f260719d4120743ecd700e9ead66c54264608c69a7d96ae4fcae37d330b0161e41012b3730e020bdafb33626ff9e2dcf5309852a3aeb
7
+ data.tar.gz: b2deaf607cf4bc780211aefad2539d64126404e06c76d2cfc09956578daac2abb9ffd9fe566a70f11631756f7184a91c6b5eed5eaff94477e3885c1369808711
@@ -97,6 +97,7 @@ module Mongoid
97
97
  end
98
98
 
99
99
  def index_item(obj)
100
+
100
101
  response = client.index({body: obj.as_indexed_json}.merge(options_for(obj)))
101
102
  end
102
103
 
@@ -15,6 +15,7 @@ module Mongoid
15
15
  if destroyed? || !es_index?
16
16
  self.class.es.remove_item(self)
17
17
  else
18
+
18
19
  self.class.es.index_item(self)
19
20
  end
20
21
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Elasticsearch
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "mongoid", [">= 3.0", "< 6.0"]
22
- spec.add_dependency "elasticsearch", "~> 1.0.13"
22
+ spec.add_dependency "elasticsearch"
23
23
  spec.add_dependency "ruby-progressbar"
24
24
  spec.add_dependency 'faraday_middleware'
25
25
  spec.add_dependency 'faraday_middleware-aws-sigv4'
@@ -31,6 +31,6 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "database_cleaner"
32
32
  spec.add_development_dependency "coveralls"
33
33
  spec.add_development_dependency "hashie"
34
- spec.add_development_dependency "mongoid-slug", '~> 5.0.0'
34
+ spec.add_development_dependency "mongoid-slug"
35
35
  spec.add_development_dependency "glebtv-httpclient"
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wj-mongoid-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-02 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -34,16 +34,16 @@ dependencies:
34
34
  name: elasticsearch
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 1.0.13
39
+ version: '0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.0.13
46
+ version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ruby-progressbar
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -202,16 +202,16 @@ dependencies:
202
202
  name: mongoid-slug
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
- - - "~>"
205
+ - - ">="
206
206
  - !ruby/object:Gem::Version
207
- version: 5.0.0
207
+ version: '0'
208
208
  type: :development
209
209
  prerelease: false
210
210
  version_requirements: !ruby/object:Gem::Requirement
211
211
  requirements:
212
- - - "~>"
212
+ - - ">="
213
213
  - !ruby/object:Gem::Version
214
- version: 5.0.0
214
+ version: '0'
215
215
  - !ruby/object:Gem::Dependency
216
216
  name: glebtv-httpclient
217
217
  requirement: !ruby/object:Gem::Requirement
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  requirements: []
288
288
  rubyforge_project:
289
- rubygems_version: 2.2.5
289
+ rubygems_version: 2.7.8
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: Simple and easy integration of mongoid with the new elasticsearch gem