elasticsearch-rails 7.0.0.pre → 7.1.2.pre

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: ea34d9f8fd6e257ef34067c2f36061877bfe4e955093f18aa8c9e9f3f36db219
4
- data.tar.gz: 4ee8dd8c41886d6246963ae232939297c8998bec7e5f9ef0de1d55faedcd0788
3
+ metadata.gz: d890cc946c2d2b586b12ebaaa9b9f94872c2f71c5b108ca8635af0dd16010e80
4
+ data.tar.gz: 2d9b6f65775e229f29486ba6b6f9a440d473c080f33064af8e15a751294429d1
5
5
  SHA512:
6
- metadata.gz: 99a01745eb65e8c26676bc6102ac20f4d92bf934320755e002b63a43489cb7c2d2e091d78f2a1cb8fc5a31afe9c7040cd73501fe03e3994eed0dd5158950014f
7
- data.tar.gz: 53fdca88b893ba301da2402ea8af38a4da36000888fecd681d737478781758bbdfc558e30dba6dbdd42f52929314e2df1939f18a7e8543f047ed8dd4a3ebf240
6
+ metadata.gz: 14df18f4f29918c7c8dcd072300a25f5a687f84dbfc72ee990ce8b02f7e1114b4176e25eddef1d269a9464df8a310f298168f9c55f6594bdd8ae96336f074c9f
7
+ data.tar.gz: 1fbfb94a731e643cf38ae289374fcc448894ff662fa8c30f1cee5e1a65c34d1ebcadf8ed5f2acc7021b81b339a642bf144d929dbfa7bd1c54e4a00ab78af7110
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
@@ -16,6 +16,8 @@ is compatible with the Elasticsearch `master` branch, therefore, with the next m
16
16
  | 0.1 | → | 1.x |
17
17
  | 2.x | → | 2.x |
18
18
  | 5.x | → | 5.x |
19
+ | 6.x | → | 6.x |
20
+ | 7.x | → | 7.x |
19
21
  | master | → | master |
20
22
 
21
23
  ## Installation
@@ -97,8 +99,8 @@ You should see the duration of the request to Elasticsearch as part of each log
97
99
  ### Rails Application Templates
98
100
 
99
101
  You can generate a fully working example Ruby on Rails application, with an `Article` model and a search form,
100
- to play with (it even downloads _Elasticsearch_ itself, generates the application skeleton and leaves you with
101
- 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
102
104
  [`01-basic.rb`](https://github.com/elastic/elasticsearch-rails/blob/master/elasticsearch-rails/lib/rails/templates/01-basic.rb) template:
103
105
 
104
106
  ```bash
@@ -129,16 +131,19 @@ rails new searchapp --skip --skip-bundle --template https://raw.github.com/elast
129
131
 
130
132
  This software is licensed under the Apache 2 license, quoted below.
131
133
 
132
- Copyright (c) 2014 Elasticsearch <http://www.elasticsearch.org>
133
-
134
- Licensed under the Apache License, Version 2.0 (the "License");
135
- you may not use this file except in compliance with the License.
134
+ Licensed to Elasticsearch B.V. under one or more contributor
135
+ license agreements. See the NOTICE file distributed with
136
+ this work for additional information regarding copyright
137
+ ownership. Elasticsearch B.V. licenses this file to you under
138
+ the Apache License, Version 2.0 (the "License"); you may
139
+ not use this file except in compliance with the License.
136
140
  You may obtain a copy of the License at
137
-
138
- http://www.apache.org/licenses/LICENSE-2.0
139
-
140
- Unless required by applicable law or agreed to in writing, software
141
- distributed under the License is distributed on an "AS IS" BASIS,
142
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
143
- See the License for the specific language governing permissions and
144
- limitations under the License.
141
+
142
+ http://www.apache.org/licenses/LICENSE-2.0
143
+
144
+ Unless required by applicable law or agreed to in writing,
145
+ software distributed under the License is distributed on an
146
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
147
+ KIND, either express or implied. See the License for the
148
+ specific language governing permissions and limitations
149
+ under the License.
@@ -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", "~> 11.1"
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.0.0.pre"
20
+ VERSION = "7.1.2.pre"
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
@@ -108,7 +108,7 @@ remove_file 'README.md'
108
108
  create_file 'README.md', <<-README
109
109
  # Ruby on Rails and Elasticsearch: Example application
110
110
 
111
- This application is an example of integrating the {Elasticsearch}[http://www.elasticsearch.org]
111
+ This application is an example of integrating the {Elasticsearch}[https://www.elastic.co]
112
112
  search engine with the {Ruby On Rails}[http://rubyonrails.org] web framework.
113
113
 
114
114
  It has been generated by application templates available at
@@ -338,6 +338,10 @@ puts '-'*80, ''
338
338
  git tag: "basic"
339
339
  git log: "--reverse --oneline"
340
340
 
341
+ # ----- Install Webpacker -------------------------------------------------------------------------
342
+
343
+ run 'rails webpacker:install'
344
+
341
345
  # ----- Start the application ---------------------------------------------------------------------
342
346
 
343
347
  unless ENV['RAILS_NO_SERVER_START']
@@ -34,7 +34,8 @@ begin
34
34
  rescue Redis::CannotConnectError
35
35
  puts
36
36
  say_status "ERROR", "Redis not available", :red
37
- say_status "", "This template uses an asynchronous indexer via Sidekiq, and requires a running Redis server."
37
+ say_status "", "This template uses an asynchronous indexer via Sidekiq, and requires a running Redis server.
38
+ Make sure you have installed Redis (brew install redis) and that you have launched the server"
38
39
  exit(1)
39
40
  end
40
41
 
data/spec/lograge_spec.rb CHANGED
@@ -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.0.0.pre
4
+ version: 7.1.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2021-03-10 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: '11.1'
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: '11.1'
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,14 +309,14 @@ 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
  - - ">"
312
316
  - !ruby/object:Gem::Version
313
317
  version: 1.3.1
314
318
  requirements: []
315
- rubygems_version: 3.0.3
319
+ rubygems_version: 3.1.4
316
320
  signing_key:
317
321
  specification_version: 4
318
322
  summary: Ruby on Rails integrations for Elasticsearch.