elasticsearch-rails 7.1.0 → 7.1.1

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: d01909fbed7aef894b4a9b8e5ec9c1c0dbf51e6dbea5f93ccd4e5a072f58ebef
4
- data.tar.gz: 556a33e025b50d53d3edadf05c7923fa9705a6065c960332e64e25299c2b312c
3
+ metadata.gz: 0c902f778a203c2f50e92eaee7a559bd46cd3bc6495b9e6491b04471c7d93b6c
4
+ data.tar.gz: e6f0a08c9680fb6df298b8eac1b46764c684842db455476f56d3850c3d3b2062
5
5
  SHA512:
6
- metadata.gz: 3dd700ccfe4caaf48e1b88b5e5532de72f69f97fd4d02c12878c18b0f89ee5e96a263763bdca67dd22b8c6b927a8c51aa862eb918703c8d7c16e0d47a0d0178c
7
- data.tar.gz: 6032db360f975b66d5562ac5f48b2d48a38841d5ce5b391a8bf3becd790436d450b6064f7ff18eb85d1cf05d3ea09eb726440a0beae8b13e88bf92a409eb00d4
6
+ metadata.gz: 55a9252913d4f06eb3e23b250adaa0c5ad742a305f16da76540988f9311be4ea23105a4c36a408048069fc41355c66ff603f3ae82ecc56d4d57fd7f05eaf7290
7
+ data.tar.gz: 42ddf46ed2bb304d330a31615027d70592afef9919cbb309bfbcf38ca5858ed845e2642b61bdbd660efcc9de17e7dbf24348ae376ceed33960f54fee9d0086a1
data/Gemfile CHANGED
@@ -20,12 +20,16 @@ source 'https://rubygems.org'
20
20
  # Specify your gem's dependencies in elasticsearch-rails.gemspec
21
21
  gemspec
22
22
 
23
- gem 'elasticsearch-model', :path => File.expand_path("../../elasticsearch-model", __FILE__), :require => false
24
- gem 'elasticsearch-persistence', :path => File.expand_path("../../elasticsearch-persistence", __FILE__), :require => false
23
+ gem 'elasticsearch-model',
24
+ path: File.expand_path('../elasticsearch-model', __dir__),
25
+ require: false
25
26
 
27
+ gem 'elasticsearch-persistence',
28
+ path: File.expand_path('../elasticsearch-persistence', __dir__),
29
+ require: false
26
30
 
27
31
  group :development, :testing do
28
- gem 'rspec'
29
32
  gem 'pry-nav'
33
+ gem 'rspec'
30
34
  gem 'sqlite3' unless defined?(JRUBY_VERSION)
31
35
  end
data/README.md CHANGED
@@ -17,6 +17,7 @@ is compatible with the Elasticsearch `master` branch, therefore, with the next m
17
17
  | 2.x | → | 2.x |
18
18
  | 5.x | → | 5.x |
19
19
  | 6.x | → | 6.x |
20
+ | 7.x | → | 7.x |
20
21
  | master | → | master |
21
22
 
22
23
  ## Installation
@@ -98,8 +99,8 @@ You should see the duration of the request to Elasticsearch as part of each log
98
99
  ### Rails Application Templates
99
100
 
100
101
  You can generate a fully working example Ruby on Rails application, with an `Article` model and a search form,
101
- to play with (it even downloads _Elasticsearch_ itself, generates the application skeleton and leaves you with
102
- a _Git_ repository to explore the steps and the code) with the
102
+ to play with (it generates the application skeleton and leaves you with a _Git_ repository to explore the
103
+ steps and the code) with the
103
104
  [`01-basic.rb`](https://github.com/elastic/elasticsearch-rails/blob/master/elasticsearch-rails/lib/rails/templates/01-basic.rb) template:
104
105
 
105
106
  ```bash
@@ -21,45 +21,48 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
21
21
  require 'elasticsearch/rails/version'
22
22
 
23
23
  Gem::Specification.new do |s|
24
- s.name = "elasticsearch-rails"
24
+ s.name = 'elasticsearch-rails'
25
25
  s.version = Elasticsearch::Rails::VERSION
26
- s.authors = ["Karel Minarik"]
27
- s.email = ["karel.minarik@elasticsearch.org"]
28
- s.description = "Ruby on Rails integrations for Elasticsearch."
29
- s.summary = "Ruby on Rails integrations for Elasticsearch."
30
- s.homepage = "https://github.com/elasticsearch/elasticsearch-rails/"
31
- s.license = "Apache 2"
26
+ s.authors = ['Karel Minarik']
27
+ s.email = ['karel.minarik@elasticsearch.org']
28
+ s.description = 'Ruby on Rails integrations for Elasticsearch.'
29
+ s.summary = 'Ruby on Rails integrations for Elasticsearch.'
30
+ s.homepage = 'https://github.com/elasticsearch/elasticsearch-rails/'
31
+ s.license = 'Apache 2'
32
+ s.metadata = {
33
+ 'homepage_uri' => 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby_on_rails.html',
34
+ 'changelog_uri' => 'https://github.com/elastic/elasticsearch-rails/blob/master/CHANGELOG.md',
35
+ 'source_code_uri' => 'https://github.com/elastic/elasticsearch-rails/',
36
+ 'bug_tracker_uri' => 'https://github.com/elastic/elasticsearch-rails/issues'
37
+ }
32
38
 
33
39
  s.files = `git ls-files`.split($/)
34
40
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
35
41
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
36
- s.require_paths = ["lib"]
42
+ s.require_paths = ['lib']
37
43
 
38
- s.extra_rdoc_files = [ "README.md", "LICENSE.txt" ]
39
- s.rdoc_options = [ "--charset=UTF-8" ]
44
+ s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
45
+ s.rdoc_options = ['--charset=UTF-8']
40
46
 
41
- s.required_ruby_version = ">= 1.9.3"
47
+ s.required_ruby_version = '>= 2.4'
42
48
 
43
- s.add_development_dependency "bundler"
44
- s.add_development_dependency "rake", "~> 12"
45
-
46
- s.add_development_dependency "elasticsearch-extensions"
47
-
48
- s.add_development_dependency "rails", ">= 3.1"
49
-
50
- s.add_development_dependency "lograge"
51
-
52
- s.add_development_dependency "minitest"
53
- s.add_development_dependency "test-unit"
54
- s.add_development_dependency "shoulda-context"
55
- s.add_development_dependency "mocha"
56
- s.add_development_dependency "turn"
57
- s.add_development_dependency "yard"
58
- s.add_development_dependency "oj" unless defined?(JRUBY_VERSION)
59
- s.add_development_dependency "ruby-prof" unless defined?(JRUBY_VERSION)
60
- s.add_development_dependency "pry"
61
-
62
- s.add_development_dependency "simplecov"
63
- s.add_development_dependency "cane"
64
- s.add_development_dependency "require-prof"
49
+ s.add_development_dependency 'bundler'
50
+ s.add_development_dependency 'cane'
51
+ s.add_development_dependency 'elasticsearch-extensions'
52
+ s.add_development_dependency 'lograge'
53
+ s.add_development_dependency 'minitest'
54
+ s.add_development_dependency 'mocha'
55
+ s.add_development_dependency 'pry'
56
+ s.add_development_dependency 'rails', '> 3.1'
57
+ s.add_development_dependency 'rake', '~> 12'
58
+ s.add_development_dependency 'require-prof'
59
+ s.add_development_dependency 'shoulda-context'
60
+ s.add_development_dependency 'simplecov'
61
+ s.add_development_dependency 'test-unit'
62
+ s.add_development_dependency 'turn'
63
+ s.add_development_dependency 'yard'
64
+ unless defined?(JRUBY_VERSION)
65
+ s.add_development_dependency 'oj'
66
+ s.add_development_dependency 'ruby-prof'
67
+ end
65
68
  end
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module Rails
20
- VERSION = "7.1.0"
20
+ VERSION = "7.1.1"
21
21
  end
22
22
  end
@@ -44,7 +44,7 @@ $elasticsearch_url = ENV.fetch('ELASTICSEARCH_URL', 'http://localhost:9200')
44
44
 
45
45
  # ----- Check for Elasticsearch -------------------------------------------------------------------
46
46
 
47
- required_elasticsearch_version = '6'
47
+ required_elasticsearch_version = '7'
48
48
 
49
49
  docker_command =<<-CMD.gsub(/\s{1,}/, ' ').strip
50
50
  docker run \
@@ -54,7 +54,7 @@ docker_command =<<-CMD.gsub(/\s{1,}/, ' ').strip
54
54
  --env "cluster.name=elasticsearch-rails" \
55
55
  --env "cluster.routing.allocation.disk.threshold_enabled=false" \
56
56
  --rm \
57
- docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.0
57
+ docker.elastic.co/elasticsearch/elasticsearch-oss:7.6.0
58
58
  CMD
59
59
 
60
60
  begin
@@ -1,3 +1,20 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
1
18
 
2
19
  # Licensed to Elasticsearch B.V. under one or more contributor
3
20
  # license agreements. See the NOTICE file distributed with
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.0
4
+ version: 7.1.1
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-15 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: cane
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '12'
33
+ version: '0'
34
34
  type: :development
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: '12'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: elasticsearch-extensions
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,21 +53,21 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rails
56
+ name: lograge
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.1'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '3.1'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: lograge
70
+ name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: minitest
84
+ name: mocha
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: test-unit
98
+ name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,35 +109,35 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: shoulda-context
112
+ name: rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - ">"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '3.1'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - ">"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '3.1'
125
125
  - !ruby/object:Gem::Dependency
126
- name: mocha
126
+ name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '12'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '12'
139
139
  - !ruby/object:Gem::Dependency
140
- name: turn
140
+ name: require-prof
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: yard
154
+ name: shoulda-context
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,7 +165,7 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: oj
168
+ name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -179,7 +179,7 @@ dependencies:
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: ruby-prof
182
+ name: test-unit
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">="
@@ -193,7 +193,7 @@ dependencies:
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: pry
196
+ name: turn
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
@@ -207,7 +207,7 @@ dependencies:
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
- name: simplecov
210
+ name: yard
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
@@ -221,7 +221,7 @@ dependencies:
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
- name: cane
224
+ name: oj
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
@@ -235,7 +235,7 @@ dependencies:
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
- name: require-prof
238
+ name: ruby-prof
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - ">="
@@ -295,7 +295,11 @@ files:
295
295
  homepage: https://github.com/elasticsearch/elasticsearch-rails/
296
296
  licenses:
297
297
  - Apache 2
298
- metadata: {}
298
+ metadata:
299
+ homepage_uri: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby_on_rails.html
300
+ changelog_uri: https://github.com/elastic/elasticsearch-rails/blob/master/CHANGELOG.md
301
+ source_code_uri: https://github.com/elastic/elasticsearch-rails/
302
+ bug_tracker_uri: https://github.com/elastic/elasticsearch-rails/issues
299
303
  post_install_message:
300
304
  rdoc_options:
301
305
  - "--charset=UTF-8"
@@ -305,7 +309,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
305
309
  requirements:
306
310
  - - ">="
307
311
  - !ruby/object:Gem::Version
308
- version: 1.9.3
312
+ version: '2.4'
309
313
  required_rubygems_version: !ruby/object:Gem::Requirement
310
314
  requirements:
311
315
  - - ">="