yc-algoliasearch-rails 2.1.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.
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
data/Gemfile.lock ADDED
@@ -0,0 +1,213 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actioncable (6.1.4.6)
5
+ actionpack (= 6.1.4.6)
6
+ activesupport (= 6.1.4.6)
7
+ nio4r (~> 2.0)
8
+ websocket-driver (>= 0.6.1)
9
+ actionmailbox (6.1.4.6)
10
+ actionpack (= 6.1.4.6)
11
+ activejob (= 6.1.4.6)
12
+ activerecord (= 6.1.4.6)
13
+ activestorage (= 6.1.4.6)
14
+ activesupport (= 6.1.4.6)
15
+ mail (>= 2.7.1)
16
+ actionmailer (6.1.4.6)
17
+ actionpack (= 6.1.4.6)
18
+ actionview (= 6.1.4.6)
19
+ activejob (= 6.1.4.6)
20
+ activesupport (= 6.1.4.6)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 2.0)
23
+ actionpack (6.1.4.6)
24
+ actionview (= 6.1.4.6)
25
+ activesupport (= 6.1.4.6)
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.4.6)
31
+ actionpack (= 6.1.4.6)
32
+ activerecord (= 6.1.4.6)
33
+ activestorage (= 6.1.4.6)
34
+ activesupport (= 6.1.4.6)
35
+ nokogiri (>= 1.8.5)
36
+ actionview (6.1.4.6)
37
+ activesupport (= 6.1.4.6)
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.13)
43
+ actionpack (>= 4.1, < 7.1)
44
+ activemodel (>= 4.1, < 7.1)
45
+ case_transform (>= 0.2)
46
+ jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
47
+ activejob (6.1.4.6)
48
+ activesupport (= 6.1.4.6)
49
+ globalid (>= 0.3.6)
50
+ activemodel (6.1.4.6)
51
+ activesupport (= 6.1.4.6)
52
+ activerecord (6.1.4.6)
53
+ activemodel (= 6.1.4.6)
54
+ activesupport (= 6.1.4.6)
55
+ activestorage (6.1.4.6)
56
+ actionpack (= 6.1.4.6)
57
+ activejob (= 6.1.4.6)
58
+ activerecord (= 6.1.4.6)
59
+ activesupport (= 6.1.4.6)
60
+ marcel (~> 1.0.0)
61
+ mini_mime (>= 1.1.0)
62
+ activesupport (6.1.4.6)
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 (2.2.2)
69
+ faraday (>= 0.15, < 2.0)
70
+ multi_json (~> 1.0)
71
+ net-http-persistent
72
+ builder (3.2.4)
73
+ case_transform (0.2)
74
+ activesupport
75
+ concurrent-ruby (1.1.9)
76
+ connection_pool (2.2.5)
77
+ crass (1.0.6)
78
+ diff-lcs (1.5.0)
79
+ erubi (1.10.0)
80
+ faraday (1.10.0)
81
+ faraday-em_http (~> 1.0)
82
+ faraday-em_synchrony (~> 1.0)
83
+ faraday-excon (~> 1.1)
84
+ faraday-httpclient (~> 1.0)
85
+ faraday-multipart (~> 1.0)
86
+ faraday-net_http (~> 1.0)
87
+ faraday-net_http_persistent (~> 1.0)
88
+ faraday-patron (~> 1.0)
89
+ faraday-rack (~> 1.0)
90
+ faraday-retry (~> 1.0)
91
+ ruby2_keywords (>= 0.0.4)
92
+ faraday-em_http (1.0.0)
93
+ faraday-em_synchrony (1.0.0)
94
+ faraday-excon (1.1.0)
95
+ faraday-httpclient (1.0.1)
96
+ faraday-multipart (1.0.3)
97
+ multipart-post (>= 1.2, < 3)
98
+ faraday-net_http (1.0.1)
99
+ faraday-net_http_persistent (1.2.0)
100
+ faraday-patron (1.0.0)
101
+ faraday-rack (1.0.0)
102
+ faraday-retry (1.0.3)
103
+ globalid (1.0.0)
104
+ activesupport (>= 5.0)
105
+ i18n (1.10.0)
106
+ concurrent-ruby (~> 1.0)
107
+ json (2.6.1)
108
+ jsonapi-renderer (0.2.2)
109
+ kaminari (0.17.0)
110
+ actionpack (>= 3.0.0)
111
+ activesupport (>= 3.0.0)
112
+ loofah (2.14.0)
113
+ crass (~> 1.0.2)
114
+ nokogiri (>= 1.5.9)
115
+ mail (2.7.1)
116
+ mini_mime (>= 0.1.1)
117
+ marcel (1.0.2)
118
+ method_source (1.0.0)
119
+ mini_mime (1.1.2)
120
+ minitest (5.15.0)
121
+ multi_json (1.15.0)
122
+ multipart-post (2.1.1)
123
+ net-http-persistent (4.0.1)
124
+ connection_pool (~> 2.2)
125
+ nio4r (2.5.8)
126
+ nokogiri (1.13.1-arm64-darwin)
127
+ racc (~> 1.4)
128
+ psych (4.0.3)
129
+ stringio
130
+ racc (1.6.0)
131
+ rack (2.2.3)
132
+ rack-test (1.1.0)
133
+ rack (>= 1.0, < 3)
134
+ rails (6.1.4.6)
135
+ actioncable (= 6.1.4.6)
136
+ actionmailbox (= 6.1.4.6)
137
+ actionmailer (= 6.1.4.6)
138
+ actionpack (= 6.1.4.6)
139
+ actiontext (= 6.1.4.6)
140
+ actionview (= 6.1.4.6)
141
+ activejob (= 6.1.4.6)
142
+ activemodel (= 6.1.4.6)
143
+ activerecord (= 6.1.4.6)
144
+ activestorage (= 6.1.4.6)
145
+ activesupport (= 6.1.4.6)
146
+ bundler (>= 1.15.0)
147
+ railties (= 6.1.4.6)
148
+ sprockets-rails (>= 2.0.0)
149
+ rails-dom-testing (2.0.3)
150
+ activesupport (>= 4.2.0)
151
+ nokogiri (>= 1.6)
152
+ rails-html-sanitizer (1.4.2)
153
+ loofah (~> 2.3)
154
+ railties (6.1.4.6)
155
+ actionpack (= 6.1.4.6)
156
+ activesupport (= 6.1.4.6)
157
+ method_source
158
+ rake (>= 0.13)
159
+ thor (~> 1.0)
160
+ rake (10.1.1)
161
+ rdoc (6.4.0)
162
+ psych (>= 4.0.0)
163
+ redgreen (1.2.2)
164
+ rspec (2.99.0)
165
+ rspec-core (~> 2.99.0)
166
+ rspec-expectations (~> 2.99.0)
167
+ rspec-mocks (~> 2.99.0)
168
+ rspec-core (2.99.2)
169
+ rspec-expectations (2.99.2)
170
+ diff-lcs (>= 1.1.3, < 2.0)
171
+ rspec-mocks (2.99.4)
172
+ ruby2_keywords (0.0.5)
173
+ sequel (5.53.0)
174
+ sprockets (4.0.2)
175
+ concurrent-ruby (~> 1.0)
176
+ rack (> 1, < 3)
177
+ sprockets-rails (3.4.2)
178
+ actionpack (>= 5.2)
179
+ activesupport (>= 5.2)
180
+ sprockets (>= 3.0.0)
181
+ sqlite3 (1.4.2)
182
+ stringio (3.0.1)
183
+ thor (1.2.1)
184
+ tzinfo (2.0.4)
185
+ concurrent-ruby (~> 1.0)
186
+ websocket-driver (0.7.5)
187
+ websocket-extensions (>= 0.1.0)
188
+ websocket-extensions (0.1.5)
189
+ will_paginate (3.3.1)
190
+ zeitwerk (2.5.4)
191
+
192
+ PLATFORMS
193
+ arm64-darwin-21
194
+
195
+ DEPENDENCIES
196
+ active_model_serializers
197
+ activerecord-jdbc-adapter
198
+ activerecord-jdbcsqlite3-adapter
199
+ algolia (< 3.0.0)
200
+ jdbc-sqlite3
201
+ json (>= 1.5.1)
202
+ kaminari (< 1)
203
+ rails (~> 6.1)
204
+ rake (~> 10.1.0)
205
+ rdoc
206
+ redgreen
207
+ rspec (>= 2.5.0, < 3.0)
208
+ sequel (>= 4.0)
209
+ sqlite3 (~> 1.4.0)
210
+ will_paginate (>= 2.3.15)
211
+
212
+ BUNDLED WITH
213
+ 2.2.33
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2013-Present Algolia
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.