indexers 4.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +313 -0
  4. data/Rakefile +19 -0
  5. data/lib/generators/indexers/indexer/indexer_generator.rb +23 -0
  6. data/lib/generators/indexers/indexer/templates/indexer.rb +12 -0
  7. data/lib/generators/indexers/install/install_generator.rb +19 -0
  8. data/lib/generators/indexers/install/templates/configuration.yml +15 -0
  9. data/lib/generators/indexers/install/templates/initializer.rb +6 -0
  10. data/lib/indexers/collection.rb +181 -0
  11. data/lib/indexers/computed_sorts.rb +19 -0
  12. data/lib/indexers/concern.rb +30 -0
  13. data/lib/indexers/configuration.rb +35 -0
  14. data/lib/indexers/definitions.rb +24 -0
  15. data/lib/indexers/dsl/api.rb +94 -0
  16. data/lib/indexers/dsl/mappings.rb +14 -0
  17. data/lib/indexers/dsl/search.rb +29 -0
  18. data/lib/indexers/dsl/serialization.rb +17 -0
  19. data/lib/indexers/dsl/traitable.rb +38 -0
  20. data/lib/indexers/extensions/active_record/base.rb +20 -0
  21. data/lib/indexers/indexer.rb +132 -0
  22. data/lib/indexers/pagination.rb +33 -0
  23. data/lib/indexers/proxy.rb +22 -0
  24. data/lib/indexers/railtie.rb +23 -0
  25. data/lib/indexers/version.rb +5 -0
  26. data/lib/indexers.rb +82 -0
  27. data/lib/tasks/indexers.rake +16 -0
  28. data/test/dsl_test.rb +127 -0
  29. data/test/dummy/Rakefile +5 -0
  30. data/test/dummy/app/assets/javascripts/application.js +13 -0
  31. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  32. data/test/dummy/app/controllers/application_controller.rb +5 -0
  33. data/test/dummy/app/helpers/application_helper.rb +2 -0
  34. data/test/dummy/app/indexers/product_indexer.rb +55 -0
  35. data/test/dummy/app/indexers/shop_indexer.rb +28 -0
  36. data/test/dummy/app/models/product.rb +5 -0
  37. data/test/dummy/app/models/shop.rb +5 -0
  38. data/test/dummy/app/views/layouts/application.html.erb +12 -0
  39. data/test/dummy/bin/bundle +4 -0
  40. data/test/dummy/bin/rails +5 -0
  41. data/test/dummy/bin/rake +5 -0
  42. data/test/dummy/bin/setup +30 -0
  43. data/test/dummy/config/application.rb +25 -0
  44. data/test/dummy/config/boot.rb +5 -0
  45. data/test/dummy/config/database.yml +10 -0
  46. data/test/dummy/config/database.yml.travis +3 -0
  47. data/test/dummy/config/elasticsearch.yml +15 -0
  48. data/test/dummy/config/environment.rb +5 -0
  49. data/test/dummy/config/environments/development.rb +41 -0
  50. data/test/dummy/config/environments/production.rb +79 -0
  51. data/test/dummy/config/environments/test.rb +42 -0
  52. data/test/dummy/config/initializers/assets.rb +11 -0
  53. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  54. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  55. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  56. data/test/dummy/config/initializers/indexers.rb +65 -0
  57. data/test/dummy/config/initializers/inflections.rb +16 -0
  58. data/test/dummy/config/initializers/mime_types.rb +4 -0
  59. data/test/dummy/config/initializers/session_store.rb +3 -0
  60. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  61. data/test/dummy/config/locales/en.yml +23 -0
  62. data/test/dummy/config/routes.rb +56 -0
  63. data/test/dummy/config/secrets.yml +22 -0
  64. data/test/dummy/config.ru +4 -0
  65. data/test/dummy/db/migrate/20161104164148_create_products.rb +14 -0
  66. data/test/dummy/db/migrate/20161104182219_create_shops.rb +9 -0
  67. data/test/dummy/db/schema.rb +36 -0
  68. data/test/dummy/log/development.log +114 -0
  69. data/test/dummy/log/test.log +20986 -0
  70. data/test/dummy/public/404.html +61 -0
  71. data/test/dummy/public/422.html +61 -0
  72. data/test/dummy/public/500.html +60 -0
  73. data/test/dummy/public/favicon.ico +0 -0
  74. data/test/generator_test.rb +26 -0
  75. data/test/index_test.rb +42 -0
  76. data/test/record_test.rb +25 -0
  77. data/test/search_test.rb +164 -0
  78. data/test/task_test.rb +31 -0
  79. data/test/test_helper.rb +14 -0
  80. metadata +237 -0
metadata ADDED
@@ -0,0 +1,237 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: indexers
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - mmontossi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 4.3.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.2.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 4.3.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: elasticsearch
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 2.0.0
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: pg
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.18'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.18'
61
+ - !ruby/object:Gem::Dependency
62
+ name: mocha
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.1'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.1'
75
+ description: Dsl to delegate searches to elasticsearch in rails.
76
+ email:
77
+ - mmontossi@gmail.com
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - MIT-LICENSE
83
+ - README.md
84
+ - Rakefile
85
+ - lib/generators/indexers/indexer/indexer_generator.rb
86
+ - lib/generators/indexers/indexer/templates/indexer.rb
87
+ - lib/generators/indexers/install/install_generator.rb
88
+ - lib/generators/indexers/install/templates/configuration.yml
89
+ - lib/generators/indexers/install/templates/initializer.rb
90
+ - lib/indexers.rb
91
+ - lib/indexers/collection.rb
92
+ - lib/indexers/computed_sorts.rb
93
+ - lib/indexers/concern.rb
94
+ - lib/indexers/configuration.rb
95
+ - lib/indexers/definitions.rb
96
+ - lib/indexers/dsl/api.rb
97
+ - lib/indexers/dsl/mappings.rb
98
+ - lib/indexers/dsl/search.rb
99
+ - lib/indexers/dsl/serialization.rb
100
+ - lib/indexers/dsl/traitable.rb
101
+ - lib/indexers/extensions/active_record/base.rb
102
+ - lib/indexers/indexer.rb
103
+ - lib/indexers/pagination.rb
104
+ - lib/indexers/proxy.rb
105
+ - lib/indexers/railtie.rb
106
+ - lib/indexers/version.rb
107
+ - lib/tasks/indexers.rake
108
+ - test/dsl_test.rb
109
+ - test/dummy/Rakefile
110
+ - test/dummy/app/assets/javascripts/application.js
111
+ - test/dummy/app/assets/stylesheets/application.css
112
+ - test/dummy/app/controllers/application_controller.rb
113
+ - test/dummy/app/helpers/application_helper.rb
114
+ - test/dummy/app/indexers/product_indexer.rb
115
+ - test/dummy/app/indexers/shop_indexer.rb
116
+ - test/dummy/app/models/product.rb
117
+ - test/dummy/app/models/shop.rb
118
+ - test/dummy/app/views/layouts/application.html.erb
119
+ - test/dummy/bin/bundle
120
+ - test/dummy/bin/rails
121
+ - test/dummy/bin/rake
122
+ - test/dummy/bin/setup
123
+ - test/dummy/config.ru
124
+ - test/dummy/config/application.rb
125
+ - test/dummy/config/boot.rb
126
+ - test/dummy/config/database.yml
127
+ - test/dummy/config/database.yml.travis
128
+ - test/dummy/config/elasticsearch.yml
129
+ - test/dummy/config/environment.rb
130
+ - test/dummy/config/environments/development.rb
131
+ - test/dummy/config/environments/production.rb
132
+ - test/dummy/config/environments/test.rb
133
+ - test/dummy/config/initializers/assets.rb
134
+ - test/dummy/config/initializers/backtrace_silencers.rb
135
+ - test/dummy/config/initializers/cookies_serializer.rb
136
+ - test/dummy/config/initializers/filter_parameter_logging.rb
137
+ - test/dummy/config/initializers/indexers.rb
138
+ - test/dummy/config/initializers/inflections.rb
139
+ - test/dummy/config/initializers/mime_types.rb
140
+ - test/dummy/config/initializers/session_store.rb
141
+ - test/dummy/config/initializers/wrap_parameters.rb
142
+ - test/dummy/config/locales/en.yml
143
+ - test/dummy/config/routes.rb
144
+ - test/dummy/config/secrets.yml
145
+ - test/dummy/db/migrate/20161104164148_create_products.rb
146
+ - test/dummy/db/migrate/20161104182219_create_shops.rb
147
+ - test/dummy/db/schema.rb
148
+ - test/dummy/log/development.log
149
+ - test/dummy/log/test.log
150
+ - test/dummy/public/404.html
151
+ - test/dummy/public/422.html
152
+ - test/dummy/public/500.html
153
+ - test/dummy/public/favicon.ico
154
+ - test/generator_test.rb
155
+ - test/index_test.rb
156
+ - test/record_test.rb
157
+ - test/search_test.rb
158
+ - test/task_test.rb
159
+ - test/test_helper.rb
160
+ homepage: https://github.com/mmontossi/indexers
161
+ licenses:
162
+ - MIT
163
+ metadata: {}
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 2.0.0
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ requirements:
179
+ - Elasticsearch
180
+ rubyforge_project:
181
+ rubygems_version: 2.5.1
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: Search indexers for rails.
185
+ test_files:
186
+ - test/dsl_test.rb
187
+ - test/dummy/app/assets/javascripts/application.js
188
+ - test/dummy/app/assets/stylesheets/application.css
189
+ - test/dummy/app/controllers/application_controller.rb
190
+ - test/dummy/app/helpers/application_helper.rb
191
+ - test/dummy/app/indexers/product_indexer.rb
192
+ - test/dummy/app/indexers/shop_indexer.rb
193
+ - test/dummy/app/models/product.rb
194
+ - test/dummy/app/models/shop.rb
195
+ - test/dummy/app/views/layouts/application.html.erb
196
+ - test/dummy/bin/bundle
197
+ - test/dummy/bin/rails
198
+ - test/dummy/bin/rake
199
+ - test/dummy/bin/setup
200
+ - test/dummy/config/application.rb
201
+ - test/dummy/config/boot.rb
202
+ - test/dummy/config/database.yml
203
+ - test/dummy/config/database.yml.travis
204
+ - test/dummy/config/elasticsearch.yml
205
+ - test/dummy/config/environment.rb
206
+ - test/dummy/config/environments/development.rb
207
+ - test/dummy/config/environments/production.rb
208
+ - test/dummy/config/environments/test.rb
209
+ - test/dummy/config/initializers/assets.rb
210
+ - test/dummy/config/initializers/backtrace_silencers.rb
211
+ - test/dummy/config/initializers/cookies_serializer.rb
212
+ - test/dummy/config/initializers/filter_parameter_logging.rb
213
+ - test/dummy/config/initializers/indexers.rb
214
+ - test/dummy/config/initializers/inflections.rb
215
+ - test/dummy/config/initializers/mime_types.rb
216
+ - test/dummy/config/initializers/session_store.rb
217
+ - test/dummy/config/initializers/wrap_parameters.rb
218
+ - test/dummy/config/locales/en.yml
219
+ - test/dummy/config/routes.rb
220
+ - test/dummy/config/secrets.yml
221
+ - test/dummy/config.ru
222
+ - test/dummy/db/migrate/20161104164148_create_products.rb
223
+ - test/dummy/db/migrate/20161104182219_create_shops.rb
224
+ - test/dummy/db/schema.rb
225
+ - test/dummy/log/development.log
226
+ - test/dummy/log/test.log
227
+ - test/dummy/public/404.html
228
+ - test/dummy/public/422.html
229
+ - test/dummy/public/500.html
230
+ - test/dummy/public/favicon.ico
231
+ - test/dummy/Rakefile
232
+ - test/generator_test.rb
233
+ - test/index_test.rb
234
+ - test/record_test.rb
235
+ - test/search_test.rb
236
+ - test/task_test.rb
237
+ - test/test_helper.rb