algoliasearch-rails 1.24.0 → 1.24.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: 49eeb3fd056a6f2e54198d03ab1c11611e0c20881a19306b7a6f8c19c509711e
4
- data.tar.gz: a4c97fb37f6d16da2bcec303c99474d5522de49caa4f120f3fa2cd9520785ef2
3
+ metadata.gz: 172aa1557bb7143640ef981eb9e392dbb6b719921b980d58f51d0deda1642710
4
+ data.tar.gz: 697a29f878ab2997b01ffd5cda494dacabe053dc802ceb183a13c8b1a488b4c2
5
5
  SHA512:
6
- metadata.gz: 6902ca01a224ce2fc070d64732b94cfdeef94a63fabb5cdf05a1cf0d92d2ba9127d88c846882dd479228b935a24ea53b85d7c609a243023f7fb9e4b4668dbf6d
7
- data.tar.gz: 2af5daf2dbe550fb3a2c1d2d5a8588d844d407d2829b3eef8f0062e5b6c9b15bf30733a63abdf097129dc667cea6ad371cf610ec16565f53f91b2670f7f941fa
6
+ metadata.gz: 35e400c2809ce5c39da5f1dbcd5f485692c483ae87668c6a2817e2d34bd0b24bde83973704e981567f58aeeb24cdd2bab814d97a86a3da6178ba12f270494b1c
7
+ data.tar.gz: d0d2277e45b06f564ba63daca91b5eadf4b78847af79f09b88ebc16e5fec4b85790b562e3cf9731b905417069ec3e5edeacf4787677041274de7d7a159bc5586
@@ -35,6 +35,8 @@ matrix:
35
35
  env: RAILS_VERSION=5.1 SEQUEL_VERSION=5.0
36
36
  - rvm: 2.6.0
37
37
  env: RAILS_VERSION=5.2 SEQUEL_VERSION=5.0
38
+ - rvm: 2.7.0
39
+ env: RAILS_VERSION=5.2 SEQUEL_VERSION=5.0
38
40
 
39
41
  before_install:
40
42
  - wget http://api-key-dealer.herokuapp.com/clients/algolia-keys && chmod +x algolia-keys
data/ChangeLog CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.24.1](https://github.com/algolia/algoliasearch-rails/releases/tag/1.24.1) (2020-07-15)
4
+
5
+ **Fixed**
6
+
7
+ * Fixes ruby warning 'Proc.new is deprecated'
8
+
3
9
  ## [1.24.0](https://github.com/algolia/algoliasearch-rails/releases/tag/1.24.0) (2020-02-21)
4
10
 
5
11
  **Added**
@@ -1,72 +1,85 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actioncable (5.2.3)
5
- actionpack (= 5.2.3)
4
+ actioncable (6.0.1)
5
+ actionpack (= 6.0.1)
6
6
  nio4r (~> 2.0)
7
7
  websocket-driver (>= 0.6.1)
8
- actionmailer (5.2.3)
9
- actionpack (= 5.2.3)
10
- actionview (= 5.2.3)
11
- activejob (= 5.2.3)
8
+ actionmailbox (6.0.1)
9
+ actionpack (= 6.0.1)
10
+ activejob (= 6.0.1)
11
+ activerecord (= 6.0.1)
12
+ activestorage (= 6.0.1)
13
+ activesupport (= 6.0.1)
14
+ mail (>= 2.7.1)
15
+ actionmailer (6.0.1)
16
+ actionpack (= 6.0.1)
17
+ actionview (= 6.0.1)
18
+ activejob (= 6.0.1)
12
19
  mail (~> 2.5, >= 2.5.4)
13
20
  rails-dom-testing (~> 2.0)
14
- actionpack (5.2.3)
15
- actionview (= 5.2.3)
16
- activesupport (= 5.2.3)
21
+ actionpack (6.0.1)
22
+ actionview (= 6.0.1)
23
+ activesupport (= 6.0.1)
17
24
  rack (~> 2.0)
18
25
  rack-test (>= 0.6.3)
19
26
  rails-dom-testing (~> 2.0)
20
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
21
- actionview (5.2.3)
22
- activesupport (= 5.2.3)
27
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
28
+ actiontext (6.0.1)
29
+ actionpack (= 6.0.1)
30
+ activerecord (= 6.0.1)
31
+ activestorage (= 6.0.1)
32
+ activesupport (= 6.0.1)
33
+ nokogiri (>= 1.8.5)
34
+ actionview (6.0.1)
35
+ activesupport (= 6.0.1)
23
36
  builder (~> 3.1)
24
37
  erubi (~> 1.4)
25
38
  rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
27
- active_model_serializers (0.10.9)
28
- actionpack (>= 4.1, < 6)
29
- activemodel (>= 4.1, < 6)
39
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
40
+ active_model_serializers (0.10.10)
41
+ actionpack (>= 4.1, < 6.1)
42
+ activemodel (>= 4.1, < 6.1)
30
43
  case_transform (>= 0.2)
31
44
  jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
32
- activejob (5.2.3)
33
- activesupport (= 5.2.3)
45
+ activejob (6.0.1)
46
+ activesupport (= 6.0.1)
34
47
  globalid (>= 0.3.6)
35
- activemodel (5.2.3)
36
- activesupport (= 5.2.3)
37
- activerecord (5.2.3)
38
- activemodel (= 5.2.3)
39
- activesupport (= 5.2.3)
40
- arel (>= 9.0)
41
- activestorage (5.2.3)
42
- actionpack (= 5.2.3)
43
- activerecord (= 5.2.3)
48
+ activemodel (6.0.1)
49
+ activesupport (= 6.0.1)
50
+ activerecord (6.0.1)
51
+ activemodel (= 6.0.1)
52
+ activesupport (= 6.0.1)
53
+ activestorage (6.0.1)
54
+ actionpack (= 6.0.1)
55
+ activejob (= 6.0.1)
56
+ activerecord (= 6.0.1)
44
57
  marcel (~> 0.3.1)
45
- activesupport (5.2.3)
58
+ activesupport (6.0.1)
46
59
  concurrent-ruby (~> 1.0, >= 1.0.2)
47
60
  i18n (>= 0.7, < 2)
48
61
  minitest (~> 5.1)
49
62
  tzinfo (~> 1.1)
63
+ zeitwerk (~> 2.2)
50
64
  addressable (2.4.0)
51
- algoliasearch (1.26.0)
65
+ algoliasearch (1.27.1)
52
66
  httpclient (~> 2.8, >= 2.8.3)
53
67
  json (>= 1.5.1)
54
- arel (9.0.0)
55
68
  backports (3.15.0)
56
69
  builder (3.2.3)
57
70
  case_transform (0.2)
58
71
  activesupport
59
72
  concurrent-ruby (1.1.5)
60
- crass (1.0.4)
73
+ crass (1.0.5)
61
74
  diff-lcs (1.3)
62
- erubi (1.8.0)
75
+ erubi (1.9.0)
63
76
  ethon (0.12.0)
64
77
  ffi (>= 1.3.0)
65
- faraday (0.15.4)
78
+ faraday (0.17.0)
66
79
  multipart-post (>= 1.2, < 3)
67
80
  faraday_middleware (0.13.1)
68
81
  faraday (>= 0.7.4, < 1.0)
69
- ffi (1.11.1)
82
+ ffi (1.11.3)
70
83
  gh (0.15.1)
71
84
  addressable (~> 2.4.0)
72
85
  backports
@@ -78,7 +91,7 @@ GEM
78
91
  activesupport (>= 4.2.0)
79
92
  highline (1.7.10)
80
93
  httpclient (2.8.3)
81
- i18n (1.6.0)
94
+ i18n (1.7.0)
82
95
  concurrent-ruby (~> 1.0)
83
96
  json (1.8.6)
84
97
  jsonapi-renderer (0.2.2)
@@ -96,7 +109,7 @@ GEM
96
109
  kaminari-core (1.1.1)
97
110
  launchy (2.4.3)
98
111
  addressable (~> 2.3)
99
- loofah (2.2.3)
112
+ loofah (2.4.0)
100
113
  crass (~> 1.0.2)
101
114
  nokogiri (>= 1.5.9)
102
115
  mail (2.7.1)
@@ -105,15 +118,15 @@ GEM
105
118
  mimemagic (~> 0.3.2)
106
119
  method_source (0.9.2)
107
120
  mimemagic (0.3.3)
108
- mini_mime (1.0.1)
121
+ mini_mime (1.0.2)
109
122
  mini_portile2 (2.4.0)
110
- minitest (5.11.3)
111
- multi_json (1.13.1)
123
+ minitest (5.13.0)
124
+ multi_json (1.14.1)
112
125
  multipart-post (2.1.1)
113
126
  net-http-persistent (2.9.4)
114
127
  net-http-pipeline (1.0.1)
115
- nio4r (2.3.1)
116
- nokogiri (1.10.3)
128
+ nio4r (2.5.2)
129
+ nokogiri (1.10.5)
117
130
  mini_portile2 (~> 2.4.0)
118
131
  pusher-client (0.6.2)
119
132
  json
@@ -121,32 +134,34 @@ GEM
121
134
  rack (2.0.7)
122
135
  rack-test (1.1.0)
123
136
  rack (>= 1.0, < 3)
124
- rails (5.2.3)
125
- actioncable (= 5.2.3)
126
- actionmailer (= 5.2.3)
127
- actionpack (= 5.2.3)
128
- actionview (= 5.2.3)
129
- activejob (= 5.2.3)
130
- activemodel (= 5.2.3)
131
- activerecord (= 5.2.3)
132
- activestorage (= 5.2.3)
133
- activesupport (= 5.2.3)
137
+ rails (6.0.1)
138
+ actioncable (= 6.0.1)
139
+ actionmailbox (= 6.0.1)
140
+ actionmailer (= 6.0.1)
141
+ actionpack (= 6.0.1)
142
+ actiontext (= 6.0.1)
143
+ actionview (= 6.0.1)
144
+ activejob (= 6.0.1)
145
+ activemodel (= 6.0.1)
146
+ activerecord (= 6.0.1)
147
+ activestorage (= 6.0.1)
148
+ activesupport (= 6.0.1)
134
149
  bundler (>= 1.3.0)
135
- railties (= 5.2.3)
150
+ railties (= 6.0.1)
136
151
  sprockets-rails (>= 2.0.0)
137
152
  rails-dom-testing (2.0.3)
138
153
  activesupport (>= 4.2.0)
139
154
  nokogiri (>= 1.6)
140
- rails-html-sanitizer (1.0.4)
141
- loofah (~> 2.2, >= 2.2.2)
142
- railties (5.2.3)
143
- actionpack (= 5.2.3)
144
- activesupport (= 5.2.3)
155
+ rails-html-sanitizer (1.3.0)
156
+ loofah (~> 2.3)
157
+ railties (6.0.1)
158
+ actionpack (= 6.0.1)
159
+ activesupport (= 6.0.1)
145
160
  method_source
146
161
  rake (>= 0.8.7)
147
- thor (>= 0.19.0, < 2.0)
162
+ thor (>= 0.20.3, < 2.0)
148
163
  rake (10.1.1)
149
- rdoc (6.1.1)
164
+ rdoc (6.2.0)
150
165
  redgreen (1.2.2)
151
166
  rspec (2.99.0)
152
167
  rspec-core (~> 2.99.0)
@@ -156,8 +171,8 @@ GEM
156
171
  rspec-expectations (2.99.2)
157
172
  diff-lcs (>= 1.1.3, < 2.0)
158
173
  rspec-mocks (2.99.4)
159
- sequel (5.21.0)
160
- sprockets (3.7.2)
174
+ sequel (5.26.0)
175
+ sprockets (4.0.0)
161
176
  concurrent-ruby (~> 1.0)
162
177
  rack (> 1, < 3)
163
178
  sprockets-rails (3.2.1)
@@ -184,7 +199,8 @@ GEM
184
199
  websocket-driver (0.7.1)
185
200
  websocket-extensions (>= 0.1.0)
186
201
  websocket-extensions (0.1.4)
187
- will_paginate (3.1.7)
202
+ will_paginate (3.2.1)
203
+ zeitwerk (2.2.1)
188
204
 
189
205
  PLATFORMS
190
206
  ruby
@@ -208,4 +224,4 @@ DEPENDENCIES
208
224
  will_paginate (>= 2.3.15)
209
225
 
210
226
  BUNDLED WITH
211
- 2.0.1
227
+ 2.0.2
@@ -90,9 +90,9 @@ module AlgoliaSearch
90
90
  end
91
91
  end
92
92
 
93
- def initialize(options, block)
93
+ def initialize(options, &block)
94
94
  @options = options
95
- instance_exec(&block) if block
95
+ instance_exec(&block) if block_given?
96
96
  end
97
97
 
98
98
  def use_serializer(serializer)
@@ -272,7 +272,7 @@ module AlgoliaSearch
272
272
  @additional_indexes ||= {}
273
273
  raise MixedSlavesAndReplicas.new('Cannot mix slaves and replicas in the same configuration (add_slave is deprecated)') if (options[:slave] && @additional_indexes.any? { |opts, _| opts[:replica] }) || (options[:replica] && @additional_indexes.any? { |opts, _| opts[:slave] })
274
274
  options[:index_name] = index_name
275
- @additional_indexes[options] = IndexSettings.new(options, Proc.new)
275
+ @additional_indexes[options] = IndexSettings.new(options, &block)
276
276
  end
277
277
 
278
278
  def add_replica(index_name, options = {}, &block)
@@ -389,7 +389,7 @@ module AlgoliaSearch
389
389
  end
390
390
 
391
391
  def algoliasearch(options = {}, &block)
392
- self.algoliasearch_settings = IndexSettings.new(options, block_given? ? Proc.new : nil)
392
+ self.algoliasearch_settings = IndexSettings.new(options, &block)
393
393
  self.algoliasearch_options = { :type => algolia_full_const_get(model_name.to_s), :per_page => algoliasearch_settings.get_setting(:hitsPerPage) || 10, :page => 1 }.merge(options)
394
394
 
395
395
  attr_accessor :highlight_result, :snippet_result
@@ -1,3 +1,3 @@
1
1
  module AlgoliaSearch
2
- VERSION = '1.24.0'
2
+ VERSION = '1.24.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-21 00:00:00.000000000 Z
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.0.6
191
+ rubygems_version: 3.0.4
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: AlgoliaSearch integration to your favorite ORM