elasticord 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/dash_overlord.gemspec +2 -2
- data/elasticord.gemspec +1 -1
- data/lib/dash_overlord/models/v1/dynamo_db/base.rb +22 -11
- data/lib/dash_overlord/models/v1/dynamo_db/migration.rb +13 -3
- data/lib/dash_overlord/models/v1/dynamo_db/paginated_result.rb +16 -0
- data/lib/dash_overlord/models/v1/dynamo_db/scan.rb +114 -0
- data/lib/dash_overlord/use_cases/v1/dummy_data/create/charts/base.rb +3 -2
- data/lib/dash_overlord/use_cases/v1/dummy_data/create/charts/build.rb +1 -1
- data/lib/dash_overlord/use_cases/v1/repositories/dynamo_db/create/batch.rb +3 -2
- data/lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/apply_filters.rb +21 -0
- data/lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/apply_pagination.rb +62 -0
- data/lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/base.rb +39 -0
- data/lib/dash_overlord/use_cases/v1/shared/search_and_paginate/apply_filters.rb +2 -2
- data/lib/dash_overlord/use_cases/v1/shared/search_and_paginate/apply_pagination.rb +4 -11
- data/lib/dash_overlord/use_cases/v1/shared/search_and_paginate/base.rb +2 -6
- data/lib/dash_overlord/use_cases/v1/shared/search_and_paginate/build_meta_data.rb +26 -0
- data/lib/dash_overlord/use_cases/v1/shared/search_and_paginate/execute_query.rb +21 -0
- data/lib/dash_overlord/use_cases/v1/videos/index/dynamodb/search_and_paginate_videos.rb +7 -2
- data/lib/dash_overlord/use_cases/v1/videos/index/elastic_search/search_and_paginate_videos.rb +2 -80
- data/lib/elasticord/base.rb +10 -11
- data/lib/elasticord/entities/array_with_meta_data.rb +37 -0
- data/lib/elasticord/orm/search_builder.rb +101 -0
- data/lib/elasticord/version.rb +1 -1
- data/lib/tasks/create_dummy_data.rake +1 -0
- data/spec/dash_overlord/use_cases/v1/videos/index/dynamo_db_spec.rb +71 -9
- data/spec/elasticord/base_spec.rb +42 -155
- data/spec/elasticord/orm/search_builder_spec.rb +269 -0
- metadata +14 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StreetBees Dev Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -103,6 +103,8 @@ files:
|
|
103
103
|
- lib/dash_overlord/models/v1/client.rb
|
104
104
|
- lib/dash_overlord/models/v1/dynamo_db/base.rb
|
105
105
|
- lib/dash_overlord/models/v1/dynamo_db/migration.rb
|
106
|
+
- lib/dash_overlord/models/v1/dynamo_db/paginated_result.rb
|
107
|
+
- lib/dash_overlord/models/v1/dynamo_db/scan.rb
|
106
108
|
- lib/dash_overlord/models/v1/dynamo_db/video.rb
|
107
109
|
- lib/dash_overlord/models/v1/elastic_search.rb
|
108
110
|
- lib/dash_overlord/models/v1/subtitle_line.rb
|
@@ -182,6 +184,9 @@ files:
|
|
182
184
|
- lib/dash_overlord/use_cases/v1/repositories/dynamo_db/client.rb
|
183
185
|
- lib/dash_overlord/use_cases/v1/repositories/dynamo_db/create/batch.rb
|
184
186
|
- lib/dash_overlord/use_cases/v1/repositories/dynamo_db/query/table.rb
|
187
|
+
- lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/apply_filters.rb
|
188
|
+
- lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/apply_pagination.rb
|
189
|
+
- lib/dash_overlord/use_cases/v1/repositories/dynamo_db/search_and_paginate/base.rb
|
185
190
|
- lib/dash_overlord/use_cases/v1/shared/log_in/assign_attributes_to_user_model.rb
|
186
191
|
- lib/dash_overlord/use_cases/v1/shared/log_in/base.rb
|
187
192
|
- lib/dash_overlord/use_cases/v1/shared/log_in/build_user_model.rb
|
@@ -192,6 +197,8 @@ files:
|
|
192
197
|
- lib/dash_overlord/use_cases/v1/shared/search_and_paginate/apply_full_text_search.rb
|
193
198
|
- lib/dash_overlord/use_cases/v1/shared/search_and_paginate/apply_pagination.rb
|
194
199
|
- lib/dash_overlord/use_cases/v1/shared/search_and_paginate/base.rb
|
200
|
+
- lib/dash_overlord/use_cases/v1/shared/search_and_paginate/build_meta_data.rb
|
201
|
+
- lib/dash_overlord/use_cases/v1/shared/search_and_paginate/execute_query.rb
|
195
202
|
- lib/dash_overlord/use_cases/v1/users/create/assign_attributes_to_user.rb
|
196
203
|
- lib/dash_overlord/use_cases/v1/users/create/base.rb
|
197
204
|
- lib/dash_overlord/use_cases/v1/users/create/build_user.rb
|
@@ -225,10 +232,12 @@ files:
|
|
225
232
|
- lib/elasticord.rb
|
226
233
|
- lib/elasticord/base.rb
|
227
234
|
- lib/elasticord/config.rb
|
235
|
+
- lib/elasticord/entities/array_with_meta_data.rb
|
228
236
|
- lib/elasticord/orm/create.rb
|
229
237
|
- lib/elasticord/orm/delete.rb
|
230
238
|
- lib/elasticord/orm/get.rb
|
231
239
|
- lib/elasticord/orm/index.rb
|
240
|
+
- lib/elasticord/orm/search_builder.rb
|
232
241
|
- lib/elasticord/version.rb
|
233
242
|
- lib/tasks/create_dummy_data.rake
|
234
243
|
- spec/dash_overlord/use_cases/v1/admins/log_in_spec.rb
|
@@ -255,6 +264,7 @@ files:
|
|
255
264
|
- spec/dash_overlord/use_cases/v1/videos/index/elastic_search_spec.rb
|
256
265
|
- spec/dash_overlord/use_cases/v1/videos/index/postgres_spec.rb
|
257
266
|
- spec/elasticord/base_spec.rb
|
267
|
+
- spec/elasticord/orm/search_builder_spec.rb
|
258
268
|
- spec/factories/v1/admins.rb
|
259
269
|
- spec/factories/v1/bee_videos.rb
|
260
270
|
- spec/factories/v1/chart_configs.rb
|
@@ -265,7 +275,7 @@ files:
|
|
265
275
|
- spec/support/shared_missing_admin.rb
|
266
276
|
- spec/support/shared_missing_user.rb
|
267
277
|
- tasks/console.rake
|
268
|
-
homepage: https://github.com/
|
278
|
+
homepage: https://github.com/Streetbees/dashlord
|
269
279
|
licenses:
|
270
280
|
- MIT
|
271
281
|
metadata: {}
|
@@ -314,6 +324,7 @@ test_files:
|
|
314
324
|
- spec/dash_overlord/use_cases/v1/videos/index/elastic_search_spec.rb
|
315
325
|
- spec/dash_overlord/use_cases/v1/videos/index/postgres_spec.rb
|
316
326
|
- spec/elasticord/base_spec.rb
|
327
|
+
- spec/elasticord/orm/search_builder_spec.rb
|
317
328
|
- spec/factories/v1/admins.rb
|
318
329
|
- spec/factories/v1/bee_videos.rb
|
319
330
|
- spec/factories/v1/chart_configs.rb
|