algoliasearch-rails 3.0.2 → 3.0.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.MD +9 -1
- data/Gemfile +3 -1
- data/algoliasearch-rails.gemspec +0 -4
- data/lib/algoliasearch/configuration.rb +5 -1
- data/lib/algoliasearch/version.rb +1 -1
- data/spec/spec_helper.rb +8 -1
- metadata +3 -7
- data/Gemfile.lock +0 -235
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ec49453fc134f428440bbebbc76bc0058a8d67b80cd0343733676e9d4243fa2
|
|
4
|
+
data.tar.gz: 886f503f47f260fde99c8cebedd13b277da2a0f22b3f988562b9278cc432c509
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e085d5baf59dafa663801f7269bab45b05aabedf13b8307a2d34853c024636dc4a5d95fc9cfbd3a7af951a50fd32035e41489e3d5ace5233f6fc8a9c780cc92c
|
|
7
|
+
data.tar.gz: 572cf6152d707c7d0bcf365e04b9761188f3bdc2656687270293079466de5f31dfdcd0daea3dd0a334be7e437ded208da8777c29731864e2a547b2fa3baeb7ab
|
data/CHANGELOG.MD
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
## [Unreleased](https://github.com/algolia/algoliasearch-rails/compare/3.0.
|
|
3
|
+
## [Unreleased](https://github.com/algolia/algoliasearch-rails/compare/3.0.4...master)
|
|
4
|
+
|
|
5
|
+
## [3.0.4](https://github.com/algolia/algoliasearch-rails/compare/3.0.3...3.0.4)
|
|
6
|
+
### Fixed
|
|
7
|
+
* Make the gemspec buildable with modern RubyGems by removing `Gemfile.lock` and bare directory entries from `s.files` and dropping the stale hardcoded `s.rubygems_version` [`#464`](https://github.com/algolia/algoliasearch-rails/pull/464)
|
|
8
|
+
|
|
9
|
+
## [3.0.3](https://github.com/algolia/algoliasearch-rails/compare/3.0.2...3.0.3)
|
|
10
|
+
### Fixed
|
|
11
|
+
* Add the documented `AlgoliaSearch.client=` writer and forward timeout configuration to the client [`#462`](https://github.com/algolia/algoliasearch-rails/pull/462)
|
|
4
12
|
|
|
5
13
|
## [3.0.2](https://github.com/algolia/algoliasearch-rails/compare/3.0.1...3.0.2)
|
|
6
14
|
### Fixed
|
data/Gemfile
CHANGED
|
@@ -10,9 +10,11 @@ end
|
|
|
10
10
|
group :test do
|
|
11
11
|
rails_version = ENV["RAILS_VERSION"] || '6.1'
|
|
12
12
|
gem 'rails', "~> #{rails_version}"
|
|
13
|
+
# strscan 3.1.6+ references rb_deprecate_constant, which the CI ruby 2.5 build does not export
|
|
14
|
+
gem 'strscan', '< 3.1.6' if RUBY_VERSION < '2.6'
|
|
13
15
|
gem 'active_model_serializers'
|
|
14
16
|
if Gem::Version.new(rails_version) >= Gem::Version.new('6.0')
|
|
15
|
-
gem 'sqlite3', '~> 1.
|
|
17
|
+
gem 'sqlite3', '~> 1.4.0', :platform => [:rbx, :ruby]
|
|
16
18
|
else
|
|
17
19
|
gem 'sqlite3', '< 1.4.0', :platform => [:rbx, :ruby]
|
|
18
20
|
end
|
data/algoliasearch-rails.gemspec
CHANGED
|
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
|
|
|
23
23
|
".rspec",
|
|
24
24
|
"CHANGELOG.MD",
|
|
25
25
|
"Gemfile",
|
|
26
|
-
"Gemfile.lock",
|
|
27
26
|
"LICENSE",
|
|
28
27
|
"README.md",
|
|
29
28
|
"Rakefile",
|
|
@@ -53,14 +52,12 @@ Gem::Specification.new do |s|
|
|
|
53
52
|
"vendor/assets/javascripts/algolia/typeahead.bundle.min.js",
|
|
54
53
|
"vendor/assets/javascripts/algolia/typeahead.jquery.js",
|
|
55
54
|
"vendor/assets/javascripts/algolia/typeahead.jquery.min.js",
|
|
56
|
-
"vendor/assets/javascripts/algolia/v2",
|
|
57
55
|
"vendor/assets/javascripts/algolia/v2/algoliasearch.angular.js",
|
|
58
56
|
"vendor/assets/javascripts/algolia/v2/algoliasearch.angular.min.js",
|
|
59
57
|
"vendor/assets/javascripts/algolia/v2/algoliasearch.jquery.js",
|
|
60
58
|
"vendor/assets/javascripts/algolia/v2/algoliasearch.jquery.min.js",
|
|
61
59
|
"vendor/assets/javascripts/algolia/v2/algoliasearch.js",
|
|
62
60
|
"vendor/assets/javascripts/algolia/v2/algoliasearch.min.js",
|
|
63
|
-
"vendor/assets/javascripts/algolia/v3",
|
|
64
61
|
"vendor/assets/javascripts/algolia/v3/algoliasearch.angular.js",
|
|
65
62
|
"vendor/assets/javascripts/algolia/v3/algoliasearch.angular.min.js",
|
|
66
63
|
"vendor/assets/javascripts/algolia/v3/algoliasearch.jquery.js",
|
|
@@ -71,7 +68,6 @@ Gem::Specification.new do |s|
|
|
|
71
68
|
s.homepage = "http://github.com/algolia/algoliasearch-rails"
|
|
72
69
|
s.licenses = ["MIT"]
|
|
73
70
|
s.require_paths = ["lib"]
|
|
74
|
-
s.rubygems_version = "2.1.11"
|
|
75
71
|
s.summary = "AlgoliaSearch integration to your favorite ORM"
|
|
76
72
|
|
|
77
73
|
if s.respond_to? :specification_version then
|
|
@@ -21,6 +21,10 @@ module AlgoliaSearch
|
|
|
21
21
|
@client
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
def client=(client)
|
|
25
|
+
@client = client
|
|
26
|
+
end
|
|
27
|
+
|
|
24
28
|
def setup_client
|
|
25
29
|
@client = Algolia::SearchClient.create(
|
|
26
30
|
@@configuration[:application_id],
|
|
@@ -31,7 +35,7 @@ module AlgoliaSearch
|
|
|
31
35
|
"Rails (#{defined?(::Rails::VERSION::STRING) ? ::Rails::VERSION::STRING : 'unknown'})",
|
|
32
36
|
@@configuration[:append_to_user_agent]
|
|
33
37
|
].compact
|
|
34
|
-
})
|
|
38
|
+
}.merge(@@configuration.slice(:connect_timeout, :read_timeout, :write_timeout)))
|
|
35
39
|
end
|
|
36
40
|
|
|
37
41
|
def default_configuration
|
data/spec/spec_helper.rb
CHANGED
|
@@ -31,7 +31,14 @@ RSpec.configure do |c|
|
|
|
31
31
|
|
|
32
32
|
# Remove all indexes setup in this run in local or CI
|
|
33
33
|
c.after(:suite) do
|
|
34
|
-
|
|
34
|
+
begin
|
|
35
|
+
indexes = safe_index_list
|
|
36
|
+
rescue => e
|
|
37
|
+
# no reachable app (e.g. running unit specs without real credentials), nothing to clean up
|
|
38
|
+
warn "skipping index cleanup: #{e.message}"
|
|
39
|
+
next
|
|
40
|
+
end
|
|
41
|
+
indexes.each do |i|
|
|
35
42
|
begin
|
|
36
43
|
res = AlgoliaSearch.client.delete_index(i.name)
|
|
37
44
|
AlgoliaSearch.client.wait_for_task(i.name, res.task_id)
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: algoliasearch-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Algolia
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-09-01 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: json
|
|
@@ -121,7 +120,6 @@ files:
|
|
|
121
120
|
- ".rspec"
|
|
122
121
|
- CHANGELOG.MD
|
|
123
122
|
- Gemfile
|
|
124
|
-
- Gemfile.lock
|
|
125
123
|
- LICENSE
|
|
126
124
|
- README.md
|
|
127
125
|
- Rakefile
|
|
@@ -167,7 +165,6 @@ homepage: http://github.com/algolia/algoliasearch-rails
|
|
|
167
165
|
licenses:
|
|
168
166
|
- MIT
|
|
169
167
|
metadata: {}
|
|
170
|
-
post_install_message:
|
|
171
168
|
rdoc_options: []
|
|
172
169
|
require_paths:
|
|
173
170
|
- lib
|
|
@@ -182,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
179
|
- !ruby/object:Gem::Version
|
|
183
180
|
version: '0'
|
|
184
181
|
requirements: []
|
|
185
|
-
rubygems_version:
|
|
186
|
-
signing_key:
|
|
182
|
+
rubygems_version: 4.0.3
|
|
187
183
|
specification_version: 4
|
|
188
184
|
summary: AlgoliaSearch integration to your favorite ORM
|
|
189
185
|
test_files: []
|
data/Gemfile.lock
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
GEM
|
|
2
|
-
remote: http://rubygems.org/
|
|
3
|
-
specs:
|
|
4
|
-
actioncable (6.1.7.10)
|
|
5
|
-
actionpack (= 6.1.7.10)
|
|
6
|
-
activesupport (= 6.1.7.10)
|
|
7
|
-
nio4r (~> 2.0)
|
|
8
|
-
websocket-driver (>= 0.6.1)
|
|
9
|
-
actionmailbox (6.1.7.10)
|
|
10
|
-
actionpack (= 6.1.7.10)
|
|
11
|
-
activejob (= 6.1.7.10)
|
|
12
|
-
activerecord (= 6.1.7.10)
|
|
13
|
-
activestorage (= 6.1.7.10)
|
|
14
|
-
activesupport (= 6.1.7.10)
|
|
15
|
-
mail (>= 2.7.1)
|
|
16
|
-
actionmailer (6.1.7.10)
|
|
17
|
-
actionpack (= 6.1.7.10)
|
|
18
|
-
actionview (= 6.1.7.10)
|
|
19
|
-
activejob (= 6.1.7.10)
|
|
20
|
-
activesupport (= 6.1.7.10)
|
|
21
|
-
mail (~> 2.5, >= 2.5.4)
|
|
22
|
-
rails-dom-testing (~> 2.0)
|
|
23
|
-
actionpack (6.1.7.10)
|
|
24
|
-
actionview (= 6.1.7.10)
|
|
25
|
-
activesupport (= 6.1.7.10)
|
|
26
|
-
rack (~> 2.0, >= 2.0.9)
|
|
27
|
-
rack-test (>= 0.6.3)
|
|
28
|
-
rails-dom-testing (~> 2.0)
|
|
29
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
30
|
-
actiontext (6.1.7.10)
|
|
31
|
-
actionpack (= 6.1.7.10)
|
|
32
|
-
activerecord (= 6.1.7.10)
|
|
33
|
-
activestorage (= 6.1.7.10)
|
|
34
|
-
activesupport (= 6.1.7.10)
|
|
35
|
-
nokogiri (>= 1.8.5)
|
|
36
|
-
actionview (6.1.7.10)
|
|
37
|
-
activesupport (= 6.1.7.10)
|
|
38
|
-
builder (~> 3.1)
|
|
39
|
-
erubi (~> 1.4)
|
|
40
|
-
rails-dom-testing (~> 2.0)
|
|
41
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
42
|
-
active_model_serializers (0.10.15)
|
|
43
|
-
actionpack (>= 4.1)
|
|
44
|
-
activemodel (>= 4.1)
|
|
45
|
-
case_transform (>= 0.2)
|
|
46
|
-
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
|
|
47
|
-
activejob (6.1.7.10)
|
|
48
|
-
activesupport (= 6.1.7.10)
|
|
49
|
-
globalid (>= 0.3.6)
|
|
50
|
-
activemodel (6.1.7.10)
|
|
51
|
-
activesupport (= 6.1.7.10)
|
|
52
|
-
activerecord (6.1.7.10)
|
|
53
|
-
activemodel (= 6.1.7.10)
|
|
54
|
-
activesupport (= 6.1.7.10)
|
|
55
|
-
activestorage (6.1.7.10)
|
|
56
|
-
actionpack (= 6.1.7.10)
|
|
57
|
-
activejob (= 6.1.7.10)
|
|
58
|
-
activerecord (= 6.1.7.10)
|
|
59
|
-
activesupport (= 6.1.7.10)
|
|
60
|
-
marcel (~> 1.0)
|
|
61
|
-
mini_mime (>= 1.1.0)
|
|
62
|
-
activesupport (6.1.7.10)
|
|
63
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
64
|
-
i18n (>= 1.6, < 2)
|
|
65
|
-
minitest (>= 5.1)
|
|
66
|
-
tzinfo (~> 2.0)
|
|
67
|
-
zeitwerk (~> 2.3)
|
|
68
|
-
algolia (3.15.0)
|
|
69
|
-
base64 (>= 0.2.0, < 1)
|
|
70
|
-
faraday (>= 1.0.1, < 3.0)
|
|
71
|
-
faraday-net_http_persistent (>= 0.15, < 3)
|
|
72
|
-
net-http-persistent
|
|
73
|
-
base64 (0.2.0)
|
|
74
|
-
bigdecimal (3.1.9)
|
|
75
|
-
builder (3.3.0)
|
|
76
|
-
case_transform (0.2)
|
|
77
|
-
activesupport
|
|
78
|
-
concurrent-ruby (1.3.5)
|
|
79
|
-
connection_pool (2.5.0)
|
|
80
|
-
crass (1.0.6)
|
|
81
|
-
date (3.4.1)
|
|
82
|
-
diff-lcs (1.6.1)
|
|
83
|
-
erubi (1.13.1)
|
|
84
|
-
faraday (2.12.2)
|
|
85
|
-
faraday-net_http (>= 2.0, < 3.5)
|
|
86
|
-
json
|
|
87
|
-
logger
|
|
88
|
-
faraday-net_http (3.4.0)
|
|
89
|
-
net-http (>= 0.5.0)
|
|
90
|
-
faraday-net_http_persistent (2.3.0)
|
|
91
|
-
faraday (~> 2.5)
|
|
92
|
-
net-http-persistent (>= 4.0.4, < 5)
|
|
93
|
-
globalid (1.2.1)
|
|
94
|
-
activesupport (>= 6.1)
|
|
95
|
-
i18n (1.14.7)
|
|
96
|
-
concurrent-ruby (~> 1.0)
|
|
97
|
-
json (2.10.2)
|
|
98
|
-
jsonapi-renderer (0.2.2)
|
|
99
|
-
kaminari (0.17.0)
|
|
100
|
-
actionpack (>= 3.0.0)
|
|
101
|
-
activesupport (>= 3.0.0)
|
|
102
|
-
logger (1.7.0)
|
|
103
|
-
loofah (2.24.0)
|
|
104
|
-
crass (~> 1.0.2)
|
|
105
|
-
nokogiri (>= 1.12.0)
|
|
106
|
-
mail (2.8.1)
|
|
107
|
-
mini_mime (>= 0.1.1)
|
|
108
|
-
net-imap
|
|
109
|
-
net-pop
|
|
110
|
-
net-smtp
|
|
111
|
-
marcel (1.0.4)
|
|
112
|
-
method_source (1.1.0)
|
|
113
|
-
mini_mime (1.1.5)
|
|
114
|
-
mini_portile2 (2.8.8)
|
|
115
|
-
minitest (5.25.5)
|
|
116
|
-
net-http (0.6.0)
|
|
117
|
-
uri
|
|
118
|
-
net-http-persistent (4.0.5)
|
|
119
|
-
connection_pool (~> 2.2)
|
|
120
|
-
net-imap (0.5.6)
|
|
121
|
-
date
|
|
122
|
-
net-protocol
|
|
123
|
-
net-pop (0.1.2)
|
|
124
|
-
net-protocol
|
|
125
|
-
net-protocol (0.2.2)
|
|
126
|
-
timeout
|
|
127
|
-
net-smtp (0.5.1)
|
|
128
|
-
net-protocol
|
|
129
|
-
nio4r (2.7.4)
|
|
130
|
-
nokogiri (1.18.6)
|
|
131
|
-
mini_portile2 (~> 2.8.2)
|
|
132
|
-
racc (~> 1.4)
|
|
133
|
-
nokogiri (1.18.6-arm64-darwin)
|
|
134
|
-
racc (~> 1.4)
|
|
135
|
-
pagy (9.3.4)
|
|
136
|
-
psych (5.2.3)
|
|
137
|
-
date
|
|
138
|
-
stringio
|
|
139
|
-
racc (1.8.1)
|
|
140
|
-
rack (2.2.13)
|
|
141
|
-
rack-test (2.2.0)
|
|
142
|
-
rack (>= 1.3)
|
|
143
|
-
rails (6.1.7.10)
|
|
144
|
-
actioncable (= 6.1.7.10)
|
|
145
|
-
actionmailbox (= 6.1.7.10)
|
|
146
|
-
actionmailer (= 6.1.7.10)
|
|
147
|
-
actionpack (= 6.1.7.10)
|
|
148
|
-
actiontext (= 6.1.7.10)
|
|
149
|
-
actionview (= 6.1.7.10)
|
|
150
|
-
activejob (= 6.1.7.10)
|
|
151
|
-
activemodel (= 6.1.7.10)
|
|
152
|
-
activerecord (= 6.1.7.10)
|
|
153
|
-
activestorage (= 6.1.7.10)
|
|
154
|
-
activesupport (= 6.1.7.10)
|
|
155
|
-
bundler (>= 1.15.0)
|
|
156
|
-
railties (= 6.1.7.10)
|
|
157
|
-
sprockets-rails (>= 2.0.0)
|
|
158
|
-
rails-dom-testing (2.2.0)
|
|
159
|
-
activesupport (>= 5.0.0)
|
|
160
|
-
minitest
|
|
161
|
-
nokogiri (>= 1.6)
|
|
162
|
-
rails-html-sanitizer (1.6.2)
|
|
163
|
-
loofah (~> 2.21)
|
|
164
|
-
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
165
|
-
railties (6.1.7.10)
|
|
166
|
-
actionpack (= 6.1.7.10)
|
|
167
|
-
activesupport (= 6.1.7.10)
|
|
168
|
-
method_source
|
|
169
|
-
rake (>= 12.2)
|
|
170
|
-
thor (~> 1.0)
|
|
171
|
-
rake (13.2.1)
|
|
172
|
-
rdoc (6.13.0)
|
|
173
|
-
psych (>= 4.0.0)
|
|
174
|
-
redgreen (1.2.2)
|
|
175
|
-
rspec (3.13.0)
|
|
176
|
-
rspec-core (~> 3.13.0)
|
|
177
|
-
rspec-expectations (~> 3.13.0)
|
|
178
|
-
rspec-mocks (~> 3.13.0)
|
|
179
|
-
rspec-core (3.13.3)
|
|
180
|
-
rspec-support (~> 3.13.0)
|
|
181
|
-
rspec-expectations (3.13.3)
|
|
182
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
183
|
-
rspec-support (~> 3.13.0)
|
|
184
|
-
rspec-mocks (3.13.2)
|
|
185
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
186
|
-
rspec-support (~> 3.13.0)
|
|
187
|
-
rspec-support (3.13.2)
|
|
188
|
-
sequel (5.90.0)
|
|
189
|
-
bigdecimal
|
|
190
|
-
sprockets (4.2.1)
|
|
191
|
-
concurrent-ruby (~> 1.0)
|
|
192
|
-
rack (>= 2.2.4, < 4)
|
|
193
|
-
sprockets-rails (3.5.2)
|
|
194
|
-
actionpack (>= 6.1)
|
|
195
|
-
activesupport (>= 6.1)
|
|
196
|
-
sprockets (>= 3.0.0)
|
|
197
|
-
sqlite3 (1.5.4)
|
|
198
|
-
mini_portile2 (~> 2.8.0)
|
|
199
|
-
stringio (3.1.6)
|
|
200
|
-
thor (1.3.2)
|
|
201
|
-
timeout (0.4.3)
|
|
202
|
-
tzinfo (2.0.6)
|
|
203
|
-
concurrent-ruby (~> 1.0)
|
|
204
|
-
uri (1.0.3)
|
|
205
|
-
websocket-driver (0.7.7)
|
|
206
|
-
base64
|
|
207
|
-
websocket-extensions (>= 0.1.0)
|
|
208
|
-
websocket-extensions (0.1.5)
|
|
209
|
-
will_paginate (4.0.1)
|
|
210
|
-
zeitwerk (2.7.2)
|
|
211
|
-
|
|
212
|
-
PLATFORMS
|
|
213
|
-
arm64-darwin-24
|
|
214
|
-
ruby
|
|
215
|
-
|
|
216
|
-
DEPENDENCIES
|
|
217
|
-
active_model_serializers
|
|
218
|
-
activerecord-jdbc-adapter
|
|
219
|
-
activerecord-jdbcsqlite3-adapter
|
|
220
|
-
algolia (>= 3.12.0)
|
|
221
|
-
jdbc-sqlite3
|
|
222
|
-
json (>= 1.5.1)
|
|
223
|
-
kaminari (< 1)
|
|
224
|
-
pagy
|
|
225
|
-
rails (~> 6.1)
|
|
226
|
-
rake (>= 10.1.0)
|
|
227
|
-
rdoc
|
|
228
|
-
redgreen
|
|
229
|
-
rspec (~> 3.0)
|
|
230
|
-
sequel (>= 4.0)
|
|
231
|
-
sqlite3 (~> 1.5.0)
|
|
232
|
-
will_paginate (>= 2.3.15)
|
|
233
|
-
|
|
234
|
-
BUNDLED WITH
|
|
235
|
-
2.5.9
|