yc-algoliasearch-rails 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.document +5 -0
  3. data/.rspec +1 -0
  4. data/CHANGELOG.MD +566 -0
  5. data/Gemfile +38 -0
  6. data/Gemfile.lock +213 -0
  7. data/LICENSE +21 -0
  8. data/README.md +1171 -0
  9. data/Rakefile +17 -0
  10. data/algoliasearch-rails.gemspec +95 -0
  11. data/lib/algoliasearch/algolia_job.rb +9 -0
  12. data/lib/algoliasearch/configuration.rb +30 -0
  13. data/lib/algoliasearch/pagination/kaminari.rb +40 -0
  14. data/lib/algoliasearch/pagination/will_paginate.rb +15 -0
  15. data/lib/algoliasearch/pagination.rb +19 -0
  16. data/lib/algoliasearch/railtie.rb +11 -0
  17. data/lib/algoliasearch/tasks/algoliasearch.rake +19 -0
  18. data/lib/algoliasearch/utilities.rb +48 -0
  19. data/lib/algoliasearch/version.rb +3 -0
  20. data/lib/algoliasearch-rails.rb +1083 -0
  21. data/spec/spec_helper.rb +52 -0
  22. data/spec/utilities_spec.rb +30 -0
  23. data/vendor/assets/javascripts/algolia/algoliasearch.angular.js +2678 -0
  24. data/vendor/assets/javascripts/algolia/algoliasearch.angular.min.js +7 -0
  25. data/vendor/assets/javascripts/algolia/algoliasearch.jquery.js +2678 -0
  26. data/vendor/assets/javascripts/algolia/algoliasearch.jquery.min.js +7 -0
  27. data/vendor/assets/javascripts/algolia/algoliasearch.js +2663 -0
  28. data/vendor/assets/javascripts/algolia/algoliasearch.min.js +7 -0
  29. data/vendor/assets/javascripts/algolia/bloodhound.js +727 -0
  30. data/vendor/assets/javascripts/algolia/bloodhound.min.js +7 -0
  31. data/vendor/assets/javascripts/algolia/typeahead.bundle.js +1782 -0
  32. data/vendor/assets/javascripts/algolia/typeahead.bundle.min.js +7 -0
  33. data/vendor/assets/javascripts/algolia/typeahead.jquery.js +1184 -0
  34. data/vendor/assets/javascripts/algolia/typeahead.jquery.min.js +7 -0
  35. data/vendor/assets/javascripts/algolia/v2/algoliasearch.angular.js +2678 -0
  36. data/vendor/assets/javascripts/algolia/v2/algoliasearch.angular.min.js +7 -0
  37. data/vendor/assets/javascripts/algolia/v2/algoliasearch.jquery.js +2678 -0
  38. data/vendor/assets/javascripts/algolia/v2/algoliasearch.jquery.min.js +7 -0
  39. data/vendor/assets/javascripts/algolia/v2/algoliasearch.js +2663 -0
  40. data/vendor/assets/javascripts/algolia/v2/algoliasearch.min.js +7 -0
  41. data/vendor/assets/javascripts/algolia/v3/algoliasearch.angular.js +6277 -0
  42. data/vendor/assets/javascripts/algolia/v3/algoliasearch.angular.min.js +3 -0
  43. data/vendor/assets/javascripts/algolia/v3/algoliasearch.jquery.js +6223 -0
  44. data/vendor/assets/javascripts/algolia/v3/algoliasearch.jquery.min.js +3 -0
  45. data/vendor/assets/javascripts/algolia/v3/algoliasearch.js +6070 -0
  46. data/vendor/assets/javascripts/algolia/v3/algoliasearch.min.js +3 -0
  47. metadata +174 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 98d7fb0236b16fa00610e389512e8af2b02a23cef7329e7e4837bce358aa2014
4
+ data.tar.gz: ec673b3cc668ff85c4d2f8158fb83fc828b52a7717213a2d5019826411e0417f
5
+ SHA512:
6
+ metadata.gz: 8d2cf5ccf773214f4ffd566c8e23797743f0ca10d542b10357969dcb75c3409e9a578cc396cbab710322a0b0ffda8d9a44351b76e480ae392266f4f1c4e3c110
7
+ data.tar.gz: fcc220782a3da8b37aba23ddbfc93c466773f16a24f3ac2befafd9ad0a962d443398dccf323fc319a960be3c05b30f339757d1371f34a70e4829ad9e4600d301
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/CHANGELOG.MD ADDED
@@ -0,0 +1,566 @@
1
+ # CHANGELOG
2
+
3
+ ## [Unreleased](https://github.com/algolia/algoliasearch-rails/compare/2.1.4...master)
4
+
5
+ ## [2.1.4](https://github.com/algolia/algoliasearch-rails/compare/2.1.4...2.1.3)
6
+ ### Fixed
7
+ - File formatting [`#414`](https://github.com/algolia/algoliasearch-rails/pull/414)
8
+ - Document supported Rails versions [`#407`](https://github.com/algolia/algoliasearch-rails/pull/407)
9
+ - Fixed error when using `:check_settings => false` [`#413`](https://github.com/algolia/algoliasearch-rails/pull/413)
10
+
11
+ ### Removed
12
+ - Old references to TravisCI [`#408`](https://github.com/algolia/algoliasearch-rails/pull/408)
13
+
14
+ ## [2.1.3](https://github.com/algolia/algoliasearch-rails/compare/2.1.3...2.1.2)
15
+ ### Fixed
16
+ - Prevent an extra get_settings call even if `check_settings` is false [`#367`](https://github.com/algolia/algoliasearch-rails/pull/367)
17
+
18
+ ## [2.1.2](https://github.com/algolia/algoliasearch-rails/compare/2.1.2...2.1.1)
19
+ ### Fixed
20
+ - Error with keys that got symbolized by default [`#403`](https://github.com/algolia/algoliasearch-rails/pull/403)
21
+
22
+ ## [2.1.1](https://github.com/algolia/algoliasearch-rails/compare/2.1.1...2.1.0)
23
+ ### Fixed
24
+ - Error with Ruby 3 in regards to default splat behavior [`#400`](https://github.com/algolia/algoliasearch-rails/pull/400)
25
+
26
+ ## [2.1.0](https://github.com/algolia/algoliasearch-rails/compare/2.1.0...2.0.0)
27
+ ### Added
28
+ - Add support for [virtual replicas](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas) ([#386](https://github.com/algolia/algoliasearch-rails/pull/386))
29
+
30
+
31
+ ## [2.0.0](https://github.com/algolia/algoliasearch-rails/compare/2.0.0...1.25.0)
32
+
33
+ ### Breaking changes
34
+ - Adds support for `algolia` gem.
35
+ - Drops support for Ruby < 2.4
36
+ - Drops support for Rails < 5.1
37
+
38
+ ## [1.25.0](https://github.com/algolia/algoliasearch-rails/compare/1.24.1...1.25.0) (2020-11-24)
39
+
40
+ ### Added
41
+ - Pass array argument to geoloc ([#372](https://github.com/algolia/algoliasearch-rails/pull/372))
42
+ - Containerize the repo ([#391](https://github.com/algolia/algoliasearch-rails/pull/391))
43
+
44
+ ### Fixed
45
+ - Use Zeitwerk for loading models in Rails 6 ([#364](https://github.com/algolia/algoliasearch-rails/pull/364))
46
+
47
+ ## [1.24.1](https://github.com/algolia/algoliasearch-rails/releases/tag/1.24.1) (2020-07-15)
48
+
49
+ **Fixed**
50
+
51
+ * Fixes ruby warning 'Proc.new is deprecated'
52
+
53
+ ## [1.24.0](https://github.com/algolia/algoliasearch-rails/releases/tag/1.24.0) (2020-02-21)
54
+
55
+ **Added**
56
+
57
+ * Adds indexLanguages in index settings
58
+
59
+ ## [1.23.2](https://github.com/algolia/algoliasearch-rails/releases/tag/1.23.2) (2019-06-26)
60
+
61
+ **Fixed**
62
+
63
+ * Use `copy_index` when initiating a temporary index to preserve settings, synonyms, and rules.
64
+
65
+
66
+ ## [1.23.0](https://github.com/algolia/algoliasearch-rails/releases/tag/1.23.0) (2019-06-25)
67
+
68
+ **Added**
69
+
70
+ * Introduce `rake algoliasearch:set_all_settings` command - PR [#315](https://github.com/algolia/algoliasearch-rails/pull/315)
71
+
72
+ This command will push settings for all models to all indices: primary index,
73
+ replicas and additional indices. It follows the `inherit: true` option.
74
+ It should typically be added to your deployment script
75
+
76
+ * Add option to disable automatic settings - PR [#315](https://github.com/algolia/algoliasearch-rails/pull/315)
77
+
78
+ By default, this gem check your settings to see when to push them. Depending on
79
+ your implementation, it might create a lot of API calls. If you wish to disable
80
+ the automatic change detection for settings, use the `check_settings` option:
81
+
82
+ ```ruby
83
+ class Musician < ActiveRecord::Base
84
+ include AlgoliaSearch
85
+
86
+ algoliasearch check_settings: false do
87
+ # Settings...
88
+ end
89
+ end
90
+ ```
91
+
92
+ **Fixed**
93
+
94
+ * Handle attribute_changed? in transactions - PR [#354](https://github.com/algolia/algoliasearch-rails/pull/354)
95
+
96
+
97
+ ## [1.22.0](https://github.com/algolia/algoliasearch-rails/releases/tag/1.22.0) (2019-03-21)
98
+
99
+ 🚨 The documentation for our Rails integration was refreshed 🎉
100
+ https://www.algolia.com/doc/framework-integration/rails/getting-started/setup/
101
+
102
+ **Added**
103
+
104
+ * Introduce `algolia_dirty?` on models to decide if a model should be reindex.
105
+
106
+ This feature already exists via _changed? methods but might requires to implements many
107
+ methods if you have multiple dynamic attributes. Dynamic attributes are attributes not mapping
108
+ to a DB column. This feature allows you to group avoid all the _changed? method calls and
109
+ group all the logic inside one unique method.
110
+
111
+ **Fixed**
112
+
113
+ * Fix _changed? method call for Rails 5.2+ with dynamic attribute - PR [#338](https://github.com/algolia/algoliasearch-rails/pull/338)
114
+
115
+ Related issue: https://github.com/algolia/algoliasearch-rails/issues/140
116
+ Documentation: https://www.algolia.com/doc/framework-integration/rails/indexing/indexing/#automatic-updates
117
+
118
+
119
+ ## [1.21.0](https://github.com/algolia/algoliasearch-rails/releases/tag/1.21.0) (2019-02-12)
120
+
121
+ **Added**
122
+
123
+ * Add `AlgoliaSearch::IndexSettings::DEFAULT_BATCH_SIZE` constant - PR [#319](https://github.com/algolia/algoliasearch-rails/pull/319)
124
+
125
+ * Support ActiveModel Serializer 🎉 - PR [#266](https://github.com/algolia/algoliasearch-rails/pull/266)
126
+
127
+ ```ruby
128
+ class SerializedObject < ActiveRecord::Base
129
+ include AlgoliaSearch
130
+
131
+ algoliasearch do
132
+
133
+ use_serializer SerializedObjectSerializer
134
+
135
+ tags do
136
+ ['tag1', 'tag2']
137
+ end
138
+
139
+ end
140
+ end
141
+ ```
142
+
143
+ **Fixed**
144
+
145
+ * Add support for all new recent engine settings - PR [#327](https://github.com/algolia/algoliasearch-rails/pull/327)
146
+
147
+ Algolia regularly introduce new settings, all of them are supported by this gem.
148
+
149
+ 2018-12-07 1.20.6
150
+
151
+ * Better support for Rails 5.1 and deprecated `attribute_changed?`
152
+ * Better support for `after_commit` for Sequel 5.0
153
+
154
+ 2017-12-04 1.20.4
155
+
156
+ * Remove Bundler and RubyGems requirements
157
+
158
+ 2017-11-02 1.20.2
159
+
160
+ * Upgrade algoliasearch gem to 1.17.0
161
+
162
+ 2017-08-04 1.20.1
163
+
164
+ * Make sure objectIDs are manipulated as strings
165
+
166
+ 2017-07-31 1.20.0
167
+
168
+ * Override the user-agent (#238)
169
+ * Fixed NPE while running mocked tests (#242)
170
+ * Add `paginationLimitedTo` setting (#243)
171
+ * Make `algolia_without_auto_index_scope` thread-safe (#234)
172
+
173
+ 2017-03-13 1.19.1
174
+
175
+ * Make sure get_model_classes is not ActiveRecord compliant only
176
+
177
+ 2017-03-13 1.19.0
178
+
179
+ * Rewrote the algoliasearch:reindex rake task to better detect models to reindex
180
+ * Fixed the handling of `raise_on_failture` for class methods
181
+
182
+ 2017-02-16 1.18.0
183
+
184
+ * Add new replica parameter, `inherit` (#198)
185
+
186
+ 2017-01-05 1.17.1
187
+
188
+ * Add missing `disablePrefixOnAttributes` and `disableTypoToleranceOnAttributes` attributes (#193)
189
+
190
+ 2017-01-05 1.17.0
191
+
192
+ * Do not enqueue indexing operations if the indexing is disabled
193
+ * Add `searchableAttributes` and `numericAttributesForFiltering` index settings
194
+ * Fixed here and there synchronous behaviors (mostly unit tests related)
195
+ * Rename `slave` to `replica`
196
+ * Upgraded `algoliasearch-client-{ruby,js}` deps
197
+
198
+ 2016-11-25 1.16.3
199
+
200
+ * Propagate `search_facet` to `search_for_facet_values` renaming (backward compatible)
201
+ * Upgrade `algoliasearch` dependency to ~> 1.12.1
202
+ * Add missing `typoTolerance` setting
203
+
204
+ 2016-11-14 1.16.2
205
+
206
+ * Add missing disableTypoToleranceOnAttributes and disableTypoToleranceOnWords index settings
207
+
208
+ 2016-11-04 1.16.1
209
+
210
+ * Added IndexSettings#get_attribute_names
211
+ * Refactored IndexSettings#get_attributes
212
+ * algolia_must_reindex? doesn't compute attribute values anymore
213
+
214
+ 2016-10-02 1.16.0
215
+
216
+ * Upgrade `algoliasearch` to 1.12.0
217
+ * Add `search_facet` method
218
+
219
+ 2016-10-02 1.15.1
220
+
221
+ * Missing `advancedSyntax` index setting forward
222
+
223
+ 2016-08-21 1.15.0
224
+
225
+ * Upgrade to AlgoliaSearch JS API client 3.18.0
226
+ * Upgrade to AlgoliaSearch Ruby API client 1.11.0
227
+ * Official support of Rails 5.x
228
+ * Reduce 404 logging if get_settings on a non-existing index
229
+ * Here and there fixes
230
+
231
+ 2015-08-19 1.14.1
232
+
233
+ * Upgrade to AlgoliaSearch JS API client 3.7.5
234
+
235
+ 2015-08-11 1.14.0
236
+
237
+ * Add numericAttributesToIndex index setting
238
+
239
+ 2015-08-07 1.13.4
240
+
241
+ * Do not consider the per_environment option while initializing the temporary index.
242
+
243
+ 2015-08-05 1.13.3
244
+
245
+ * The `active_job.rb` file was not included in the gem
246
+
247
+ 2015-08-01 1.13.2
248
+
249
+ * Lazy load the `ActiveJob` class to ensure the underlying queuing system is initialized when we actually use it.
250
+
251
+ 2015-07-20 1.13.1
252
+
253
+ * Use `after_commit` instead of `after_save` to ensure we index once in the DB
254
+
255
+ 2015-06-21 1.13.0
256
+
257
+ * Ability to use a background queue to handle all automatic indexing operations
258
+ * Fix a bug avoiding the gem to remove records when using the Sequel ORM
259
+
260
+ 2015-05-28 1.12.2
261
+
262
+ * Add a new `raise_on_failure` option, controlling whereas exceptions are raised while trying to reach Algolia's API.
263
+
264
+ 2015-05-12 1.12.1
265
+
266
+ * Upgrade to algoliasearch-client-js 3.3.0
267
+
268
+ 2015-04-29 1.12.0
269
+
270
+ * Add Sequel support.
271
+
272
+ 2015-03-31 1.11.18
273
+
274
+ * Embed AlgoliaSearch JS API client v3 as well. Default is still the v2 to keep the backward compatibility.
275
+
276
+ 2015-03-08 1.11.17
277
+
278
+ * Add missing index settings (including removeWordsIfNoResults, unretrievableAttributes and ignorePlurals)
279
+
280
+ 2015-02-23 1.11.16
281
+
282
+ * Include jQuery & Angular related builds in the gem
283
+
284
+ 2015-02-23 1.11.15
285
+
286
+ * Algoliasearch-client-js: embed jQuery & angular based builds as well
287
+
288
+ 2015-02-23 1.11.14
289
+
290
+ * Upgrade to algoliasearch-client-js 2.9.2
291
+
292
+ 2015-02-03 1.11.13
293
+
294
+ * Upgrade to algoliasearch-client-js 2.8.6
295
+
296
+ 2015-01-29 1.11.12
297
+
298
+ * Fixed potential namespace issue while trying to load the HTML sanitizer
299
+
300
+ 2014-11-27 1.11.11
301
+
302
+ * Upgraded algoliasearch JavaScript client to 2.7.5 to prepare TLD migration
303
+
304
+ 2014-11-21 1.11.10
305
+
306
+ * Ability to force the UTF-8 encoding of the underlying attributes before sending them to our API
307
+
308
+ 2014-11-12 1.11.9
309
+
310
+ * Upgraded algoliasearch JavaScript client to 2.7.4 & algoliasearch-client-ruby to 1.2.14
311
+
312
+ 2014-10-29 1.11.8
313
+
314
+ * Upgraded algoliasearch JavaScript client to 2.7.3
315
+
316
+ 2014-10-16 1.11.7
317
+
318
+ * Upgraded to algoliasearch-client-ruby>=1.2.12 to ensure we're not using SSLv3
319
+
320
+ 2014-10-15 1.11.6
321
+
322
+ * Upgraded algoliasearch JavaScript client to 2.7.1
323
+
324
+ 2014-10-15 1.11.5
325
+
326
+ * Upgraded algoliasearch JavaScript client from 2.5.3 to 2.7.0
327
+
328
+ 2014-10-05 1.11.4
329
+
330
+ * Do not compute the 'slaves' index settings on slaves (breaking the diff between current & configured version)
331
+
332
+ 2014-09-16 1.11.3
333
+
334
+ * While reindexing, fetch the master's settings to setup the temporary index
335
+
336
+ 2014-09-02 1.11.2
337
+
338
+ * Ability to search in a slave or extra index using the ```:index```/```:slave``` parameter
339
+
340
+ 2014-08-25 1.11.1
341
+
342
+ * While using a temporary index to reindex, do not set the "slaves" index setting (will be set at move-time)
343
+ * Ability to strip HTML tags from attributes
344
+
345
+ 2014-08-20 1.11.0
346
+
347
+ * Do not rely of _changed? method to detect reindexing needs, if those methods are missing we probably need to reindex
348
+
349
+ 2014-08-07 1.10.9
350
+
351
+ * Upgrade to algoliasearch-client-js 2.5.3
352
+ * Upgrade to typeahead 1.10.4
353
+
354
+ 2014-08-07 1.10.8
355
+
356
+ * Fixes searches on Mongoid introduced in 1.10.7 (author: @zarqman)
357
+
358
+ 2014-07-17 1.10.7
359
+
360
+ * Query optimization: load search results from database using a single query (author: @outoftime)
361
+
362
+ 2014-07-10 1.10.6
363
+
364
+ * Pass the configuration hash to the underlying ```Algolia.init``` method.
365
+
366
+ 2014-07-09 1.10.5
367
+
368
+ * Safely reindex your data using ```MyModel.reindex``` (index with a temporary index + move), ```MyModel.reindex!``` do it in-place without removing out-dated records
369
+
370
+ 2014-06-28 1.10.4
371
+
372
+ * Ability to disable all indexing tasks (testing purpose)
373
+
374
+ 2014-06-17 1.10.3
375
+
376
+ * Pagination: fixed a padding issue with recent versions of Kaminari
377
+
378
+ 2014-05-09 1.10.2
379
+
380
+ * Expose synoyms/placeholders features
381
+ * Upgrade to algoliasearch-client-js 2.5.0 (fallback on JSONP if CORS is not available)
382
+
383
+ 2014-04-29 1.10.1
384
+
385
+ * Use :if and :unless constraints to detect if a record has changed as well
386
+
387
+ 2014-04-28 1.10.0
388
+
389
+ * Ability to configure slave indexes from the ```algoliasearch``` block
390
+ * Ability to target multiple indexes from a single model class
391
+
392
+ 2014-04-23 1.9.5
393
+
394
+ * Add missing highlightPreTag/highlightPostTag settings
395
+
396
+ 2014-03-30 1.9.4
397
+
398
+ * Ability to index an array of objects using the `index_objects` method. Ref #15
399
+ * Upgrade typeahead.js to 0.10.2 (fixed flickering)
400
+ * Upgrade algoliasearch-client-ruby to 1.2.8 (fixed unhandled exception)
401
+ * Upgrade algoliasearch-client-js to 2.4.5 (embed last ExplainResults helper fixes)
402
+
403
+ 2014-03-26 1.9.3
404
+
405
+ * Ruby 1.8 compatibility
406
+ * Fixed a bug ignoring hitsPerPage parameter while using backend pagination (will_paginate/kaminari)
407
+
408
+ 2014-03-17 1.9.2
409
+
410
+ * Raise an exception while attempting to index a non-saved object (blank objectID)
411
+
412
+ 2014-03-06 1.9.1
413
+
414
+ * When using MongoId, the `reindex!` method was calling add_objects too many times. (credits go to sush.io)
415
+
416
+ 2014-02-24 1.9.0
417
+
418
+ * Upgrade to algoliasearch 1.2.5 and algoliasearch-client-js 2.4.2
419
+ * Fixed pagination starting at 1 in Kaminari & WillPaginate and 0 in Algolia
420
+ * As soon as :if or :unless are used, we need to remove the objects from the index
421
+ if the constraints don't match
422
+
423
+ 2014-02-15 1.8.2
424
+
425
+ * Ability to retrieve facets and raw answer as well
426
+
427
+ 2014-02-14 1.8.1
428
+
429
+ * Fixed backend pagination not taking current page into account at display time.
430
+
431
+ 2014-02-12 1.8.0
432
+
433
+ * Upgrade to official Twitter Typeahead.js 0.10.1 (/!\ API has changed)
434
+ * Fixed reindexing rake task (#12)
435
+
436
+ 2014-02-04 1.7.2
437
+
438
+ * Add a ```raw_search``` method, retrieving the JSON raw answer
439
+ * Support STI subclasses (#11)
440
+ * Updated dependencies
441
+
442
+ 2014-01-31 1.7.1
443
+
444
+ * Ensure methods are not conflicting with already defined ones (use algolia_METHOD_NAME)
445
+ * Add ```:if``` and ```:unless``` options to control objects indexing (#10)
446
+
447
+ 2014-01-07 1.7.0
448
+
449
+ * Updated algoliasearch to 1.2 (httpclient instead of curb as underlying HTTP layer)
450
+ * jruby, rbx and ruby 2.1 compatibility
451
+
452
+ 2014-01-02 1.6.3
453
+
454
+ * Expose new ```attributeForDistinct``` setting
455
+
456
+ 2013-12-17 1.6.2
457
+
458
+ * Updated deps (included algoliasearch 1.1.15 and algoliasearch-client-js 2.3.6)
459
+
460
+ 2013-12-05 1.6.1
461
+
462
+ * ```add_attribute``` can now be used to add extra attributes in addition to the existing ones
463
+ * Use the ```geoloc``` and ```tags``` methods to generate the associated ```_tags``` and ```_geoloc``` attributes
464
+
465
+ 2013-12-05 1.5.2
466
+
467
+ * object's attributes must be fetched unscoped to ensure associations will not be impacted by the conditions
468
+ * you can now use `Model.index` to access the underlying index object
469
+
470
+ 2013-12-03 1.5.1
471
+
472
+ * ability to specify which attribute is used as objectID
473
+
474
+ 2013-11-29 1.4.5
475
+
476
+ * updated algoliasearch-client-js to 2.3.3
477
+
478
+ 2013-11-29 1.4.4
479
+
480
+ * updated algoliasearch to 1.1.11
481
+
482
+ 2013-11-29 1.4.3
483
+
484
+ * updated algoliasearch-client-js to 2.3.2
485
+ * updated algoliasearch to 1.1.10
486
+
487
+ 2013-11-25 1.4.2
488
+
489
+ * fixed const_get calls with ruby 1.9.3
490
+
491
+ 2013-11-25 1.4.1
492
+
493
+ * ability to specify a block associated to an attribute as value
494
+
495
+ 2013-11-22 1.3.10
496
+
497
+ * updated algoliasearch.js (2.3.2)
498
+
499
+ 2013-11-21 1.3.9
500
+
501
+ * updated custom typeahead.js (merged https://github.com/twitter/typeahead.js/pull/390)
502
+
503
+ 2013-11-21 1.3.8
504
+
505
+ * expose new index settings: separatorsToIndex and optionalWords
506
+
507
+ 2013-11-19 1.3.7
508
+
509
+ * handle namespaced models (s/::/_/)
510
+
511
+ 2013-11-08 1.3.6
512
+
513
+ * upgraded to algoliasearch 1.1.6 (array-based search parameters were not encoded)
514
+
515
+ 2013-11-07 1.3.5
516
+
517
+ * add without_auto_index_scope method disabling all indexing operations inside associated block
518
+
519
+ 2013-11-07 1.3.4
520
+
521
+ * updated algoliasearch to 1.1.6 (clear_index! is now a real clear, not a delete/create) and algoliasearch-client-js to 2.3.0
522
+ * restore missing ensure_init call in the ```search``` method
523
+
524
+ 2013-11-07 1.3.3
525
+
526
+ * new :per_environment options suffixing index's name by the Rails environment
527
+ * index's settings are now initialized on first usage, not at include time
528
+ * plug attributesForFaceting setting
529
+
530
+ 2013-10-17 1.3.2
531
+
532
+ * while detecting settings changes, fixed array comparison
533
+
534
+ 2013-10-17 1.3.1
535
+
536
+ * upgraded to algoliasearch 1.1.4 (too aggressive wait_task calls)
537
+
538
+ 2013-10-15 1.3.0
539
+
540
+ * synchronous flag is now false by default
541
+ * do not set settings if they didn't chang
542
+
543
+ 2013-10-15 1.2.1
544
+
545
+ * Updated deps, especially algoliasearch to 1.1.3 to solve thread-safety issues
546
+
547
+ 2013-10-14 1.2.0
548
+
549
+ * embeds a typeahead.js based UI
550
+
551
+ 2013-10-04 1.1.8
552
+
553
+ * Avoid concurrent access to the same index while running tests with TravisCI
554
+ * to check if the full-reindexing has been done, checking the last task is enough
555
+
556
+ 2013-10-02 1.1.7
557
+
558
+ * Updated environment variables
559
+ * Plug travis and various badges
560
+ * Fixed attribute changes detection
561
+ * Upgrade to algoliasearch-client-ruby 1.1.1
562
+
563
+ 2013-10-01 1.1.6
564
+
565
+ * Initial import
566
+
data/Gemfile ADDED
@@ -0,0 +1,38 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'json', '>= 1.5.1'
4
+ gem 'algolia', '< 3.0.0'
5
+
6
+ if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
7
+ gem 'rubysl', '~> 2.0', :platform => :rbx
8
+ end
9
+
10
+ group :test do
11
+ rails_version = ENV["RAILS_VERSION"] || '6.1'
12
+ gem 'rails', "~> #{rails_version}"
13
+ gem 'active_model_serializers'
14
+ if Gem::Version.new(rails_version) >= Gem::Version.new('6.0')
15
+ gem 'sqlite3', '~> 1.4.0', :platform => [:rbx, :ruby]
16
+ else
17
+ gem 'sqlite3', '< 1.4.0', :platform => [:rbx, :ruby]
18
+ end
19
+ gem 'rspec', '>= 2.5.0', '< 3.0'
20
+ gem 'jdbc-sqlite3', :platform => :jruby
21
+ gem 'activerecord-jdbc-adapter', :platform => :jruby
22
+ gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
23
+ gem 'redgreen'
24
+
25
+ sequel_version = ENV['SEQUEL_VERSION'] ? "~> #{ENV['SEQUEL_VERSION']}" : '>= 4.0'
26
+ gem 'sequel', sequel_version
27
+ end
28
+
29
+ group :development do
30
+ gem 'rake', '~> 10.1.0'
31
+ gem 'rdoc'
32
+ end
33
+
34
+ group :test, :development do
35
+ gem 'will_paginate', '>= 2.3.15'
36
+ gem 'kaminari', '< 1'
37
+ end
38
+