elasticsearch-persistence 7.1.0.pre → 7.2.0

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
2
  SHA256:
3
- metadata.gz: e41c38b4789cbb9d11216694722feacabc3510caa5514207bcc4151b56f13a23
4
- data.tar.gz: f4e940895d0d93aac9beeace3a968cb81acf187cd15b12cbd646f8da6278a61f
3
+ metadata.gz: 992d476265b824785559c687b7def7f1ce6973457c24dd1e87d6f309468aff17
4
+ data.tar.gz: 0c0af789fe389b2cdb70c5595ab2f9fd154ef10bd3a1309990533f25c3372596
5
5
  SHA512:
6
- metadata.gz: 61fdfdaff3d87619db2ba911e05f72325c0a295025518e490cef677a9ea81b1d46a01e232e7d0f4313c3373f621047a18fd77628395561a80836dc3cdbc7d0e7
7
- data.tar.gz: f78fe4579694c43a4d4a1912cf4c3c4d1adef66b922f6ed025763538e3d8b66aaffbce1df3134c1d7d6d2bc33184b5eca72f21548d5df9fe24f943271edd28d3
6
+ metadata.gz: ad07506aad3f74c8b799d6042f873abc926331b7d7efa8c4bfc41d1e3ecf77445be4a6baf84ad4c999c52c8b912f7dd963bc9588f7156ea0019000f097a24087
7
+ data.tar.gz: f276125a0f9e99bc6cd5e330e17f12cfeafe172bd9b5da4b1b361106a2d423728d5e9936019e20cd6a32d8e2b96a173b3fec191c2cd909e0b1a37dc5f7110abf
data/Gemfile CHANGED
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -20,11 +20,11 @@ source 'https://rubygems.org'
20
20
  # Specify your gem's dependencies in elasticsearch-persistence.gemspec
21
21
  gemspec
22
22
 
23
- gem 'elasticsearch-model', :path => File.expand_path("../../elasticsearch-model", __FILE__), :require => false
24
-
25
- gem 'virtus'
23
+ gem 'elasticsearch-model',
24
+ path: File.expand_path('../elasticsearch-model', __dir__),
25
+ require: false
26
26
 
27
27
  group :development, :testing do
28
- gem 'rspec'
29
28
  gem 'pry-nav'
29
+ gem 'rspec'
30
30
  end
data/README.md CHANGED
@@ -4,10 +4,9 @@ Persistence layer for Ruby domain objects in Elasticsearch, using the Repository
4
4
 
5
5
  ## Compatibility
6
6
 
7
- This library is compatible with Ruby 1.9.3 and higher.
7
+ This library is compatible with Ruby 2.4 and higher.
8
8
 
9
- The library version numbers follow the Elasticsearch major versions, and the `master` branch
10
- is compatible with the Elasticsearch `master` branch, therefore, with the next major version.
9
+ The library version numbers follow the Elasticsearch major versions. The `master` branch is compatible with the latest Elasticsearch stack stable release.
11
10
 
12
11
  | Rubygem | | Elasticsearch |
13
12
  |:-------------:|:-:| :-----------: |
@@ -15,7 +14,7 @@ is compatible with the Elasticsearch `master` branch, therefore, with the next m
15
14
  | 2.x | → | 2.x |
16
15
  | 5.x | → | 5.x |
17
16
  | 6.x | → | 6.x |
18
- | master | → | master |
17
+ | master | → | 7.x |
19
18
 
20
19
  ## Installation
21
20
 
@@ -237,7 +236,7 @@ You can also override the default configuration with options passed to the initi
237
236
 
238
237
  ```ruby
239
238
  client = Elasticsearch::Client.new(url: 'http://localhost:9250', log: true)
240
- client.transport.logger.formatter = proc { |s, d, p, m| "\e[2m# #{m}\n\e[0m" }
239
+ client.transport.transport.logger.formatter = proc { |s, d, p, m| "\e[2m# #{m}\n\e[0m" }
241
240
  repository = NoteRepository.new(client: client, index_name: 'notes_development')
242
241
 
243
242
  repository.create_index!(force: true)
@@ -268,7 +267,7 @@ The repository uses the standard Elasticsearch [client](https://github.com/elast
268
267
  ```ruby
269
268
  client = Elasticsearch::Client.new(url: 'http://search.server.org')
270
269
  repository = NoteRepository.new(client: client)
271
- repository.client.transport.logger = Logger.new(STDERR)
270
+ repository.client.transport.transport.logger = Logger.new(STDERR)
272
271
  repository.client
273
272
  # => Elasticsearch::Client
274
273
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -40,11 +40,11 @@ end
40
40
  namespace :bundle do
41
41
  desc 'Install gem dependencies'
42
42
  task :install do
43
- puts '-'*80
44
- Bundler.with_clean_env do
43
+ puts '-' * 80
44
+ Bundler.with_unbundled_env do
45
45
  sh 'bundle install'
46
46
  end
47
- puts '-'*80
47
+ puts '-' * 80
48
48
  end
49
49
  end
50
50
 
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  s.required_ruby_version = ">= 1.9.3"
42
42
 
43
43
  s.add_dependency "elasticsearch", '~> 7'
44
- s.add_dependency "elasticsearch-model", '7.1.0.pre'
44
+ s.add_dependency "elasticsearch-model", '7.2.0'
45
45
  s.add_dependency "activesupport", '> 4'
46
46
  s.add_dependency "activemodel", '> 4'
47
47
  s.add_dependency "hashie"
@@ -53,8 +53,6 @@ Gem::Specification.new do |s|
53
53
 
54
54
  s.add_development_dependency "rails", '> 4'
55
55
 
56
- s.add_development_dependency "elasticsearch-extensions"
57
-
58
56
  s.add_development_dependency "minitest"
59
57
  s.add_development_dependency "test-unit"
60
58
  s.add_development_dependency "shoulda-context"
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -90,7 +90,7 @@ class Elasticsearch::Persistence::ExampleApplicationTest < Test::Unit::TestCase
90
90
  app.settings.repository.client = Elasticsearch::Client.new \
91
91
  hosts: [{ host: 'localhost', port: ENV.fetch('TEST_CLUSTER_PORT', 9250)}],
92
92
  log: true
93
- app.settings.repository.client.transport.logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" }
93
+ app.settings.repository.client.transport.transport.logger.formatter = proc { |s, d, p, m| "\e[2m#{m}\n\e[0m" }
94
94
  app.settings.repository.create_index! force: true
95
95
  app.settings.repository.client.cluster.health wait_for_status: 'yellow'
96
96
  end
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module Persistence
20
- VERSION = '7.1.0.pre'
20
+ VERSION = '7.2.0'
21
21
  end
22
22
  end
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
@@ -104,7 +104,7 @@ describe Elasticsearch::Persistence::Repository do
104
104
  end
105
105
 
106
106
  it 'sets a default client' do
107
- expect(repository.client).to be_a(Elasticsearch::Transport::Client)
107
+ expect(repository.client).to be_a(Elasticsearch::Client)
108
108
  end
109
109
 
110
110
 
@@ -465,7 +465,7 @@ describe Elasticsearch::Persistence::Repository do
465
465
  end
466
466
 
467
467
  it 'sets a default on the instance' do
468
- expect(RepositoryWithoutDSL.new.client).to be_a(Elasticsearch::Transport::Client)
468
+ expect(RepositoryWithoutDSL.new.client).to be_a(Elasticsearch::Client)
469
469
  end
470
470
 
471
471
  it 'allows the value to be overridden with options on the instance' do
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  # not use this file except in compliance with the License.
7
7
  # You may obtain a copy of the License at
8
8
  #
9
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
10
  #
11
11
  # Unless required by applicable law or agreed to in writing,
12
12
  # software distributed under the License is distributed on an
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-persistence
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0.pre
4
+ version: 7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elasticsearch
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 7.1.0.pre
33
+ version: 7.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 7.1.0.pre
40
+ version: 7.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - ">"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '4'
139
- - !ruby/object:Gem::Dependency
140
- name: elasticsearch-extensions
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: minitest
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -345,11 +331,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
345
331
  version: 1.9.3
346
332
  required_rubygems_version: !ruby/object:Gem::Requirement
347
333
  requirements:
348
- - - ">"
334
+ - - ">="
349
335
  - !ruby/object:Gem::Version
350
- version: 1.3.1
336
+ version: '0'
351
337
  requirements: []
352
- rubygems_version: 3.1.2
338
+ rubygems_version: 3.1.6
353
339
  signing_key:
354
340
  specification_version: 4
355
341
  summary: Persistence layer for Ruby models and Elasticsearch.