mongo_aggregation_dsl 0.0.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +61 -0
  3. data/.gitignore +54 -0
  4. data/.reek.yml +5 -0
  5. data/.rspec +2 -0
  6. data/.rubocop.yml +51 -0
  7. data/.ruby-version +1 -0
  8. data/Gemfile +10 -0
  9. data/Gemfile.lock +205 -0
  10. data/README.md +56 -0
  11. data/Rakefile +8 -0
  12. data/codecov.yml +3 -0
  13. data/config/pronto-circleci.yml +7 -0
  14. data/lib/aggregate/contracts/class_includes.rb +26 -0
  15. data/lib/aggregate/contracts/hash_max_length.rb +24 -0
  16. data/lib/aggregate/contracts/hash_min_length.rb +24 -0
  17. data/lib/aggregate/contracts/hash_value_type.rb +31 -0
  18. data/lib/aggregate/contracts/starts_with.rb +24 -0
  19. data/lib/aggregate/contracts.rb +8 -0
  20. data/lib/aggregate/pipeline.rb +41 -0
  21. data/lib/aggregate/stages/base.rb +20 -0
  22. data/lib/aggregate/stages/facet.rb +24 -0
  23. data/lib/aggregate/stages/group.rb +25 -0
  24. data/lib/aggregate/stages/hash_base.rb +13 -0
  25. data/lib/aggregate/stages/lookup.rb +26 -0
  26. data/lib/aggregate/stages/match.rb +25 -0
  27. data/lib/aggregate/stages/project.rb +17 -0
  28. data/lib/aggregate/stages/replace_root.rb +22 -0
  29. data/lib/aggregate/stages/unwind.rb +29 -0
  30. data/lib/aggregate/stages.rb +10 -0
  31. data/lib/aggregate/values/array.rb +20 -0
  32. data/lib/aggregate/values/base.rb +46 -0
  33. data/lib/aggregate/values/document_class.rb +27 -0
  34. data/lib/aggregate/values/hash.rb +43 -0
  35. data/lib/aggregate/values/nil.rb +25 -0
  36. data/lib/aggregate/values/object_id.rb +24 -0
  37. data/lib/aggregate/values/string.rb +22 -0
  38. data/lib/aggregate/values/symbol.rb +52 -0
  39. data/lib/aggregate/values.rb +8 -0
  40. data/lib/aggregate.rb +19 -0
  41. data/lib/mongo_aggregation_dsl.rb +3 -0
  42. data/mongo_aggregation_dsl.gemspec +42 -0
  43. metadata +385 -0
metadata ADDED
@@ -0,0 +1,385 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mongo_aggregation_dsl
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0.pre4
5
+ platform: ruby
6
+ authors:
7
+ - KrimsonKla
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: autoloaded
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: contracts-lite
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: mongo
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.6.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.6.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: mongoid
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 5.2.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 5.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: origin
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.3.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.3.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.16'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.16'
97
+ - !ruby/object:Gem::Dependency
98
+ name: codecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.1'
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: 0.1.0
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: '0.1'
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 0.1.0
117
+ - !ruby/object:Gem::Dependency
118
+ name: database_cleaner
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: pronto
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: pronto-brakeman
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: pronto-circleci
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ - !ruby/object:Gem::Dependency
174
+ name: pronto-fasterer
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ - !ruby/object:Gem::Dependency
188
+ name: pronto-rails_best_practices
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ - !ruby/object:Gem::Dependency
202
+ name: pronto-reek
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ type: :development
209
+ prerelease: false
210
+ version_requirements: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ - !ruby/object:Gem::Dependency
216
+ name: pronto-rubocop
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ - !ruby/object:Gem::Dependency
230
+ name: rake
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - "~>"
234
+ - !ruby/object:Gem::Version
235
+ version: '10.0'
236
+ type: :development
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - "~>"
241
+ - !ruby/object:Gem::Version
242
+ version: '10.0'
243
+ - !ruby/object:Gem::Dependency
244
+ name: rspec
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - "~>"
248
+ - !ruby/object:Gem::Version
249
+ version: '3.0'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - "~>"
255
+ - !ruby/object:Gem::Version
256
+ version: '3.0'
257
+ - !ruby/object:Gem::Dependency
258
+ name: rspec_junit_formatter
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: 0.3.0
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - "~>"
269
+ - !ruby/object:Gem::Version
270
+ version: 0.3.0
271
+ - !ruby/object:Gem::Dependency
272
+ name: rubocop
273
+ requirement: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - ">="
276
+ - !ruby/object:Gem::Version
277
+ version: '0'
278
+ type: :development
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - ">="
283
+ - !ruby/object:Gem::Version
284
+ version: '0'
285
+ - !ruby/object:Gem::Dependency
286
+ name: simplecov
287
+ requirement: !ruby/object:Gem::Requirement
288
+ requirements:
289
+ - - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: '0'
292
+ type: :development
293
+ prerelease: false
294
+ version_requirements: !ruby/object:Gem::Requirement
295
+ requirements:
296
+ - - ">="
297
+ - !ruby/object:Gem::Version
298
+ version: '0'
299
+ - !ruby/object:Gem::Dependency
300
+ name: simplecov-rcov
301
+ requirement: !ruby/object:Gem::Requirement
302
+ requirements:
303
+ - - ">="
304
+ - !ruby/object:Gem::Version
305
+ version: '0'
306
+ type: :development
307
+ prerelease: false
308
+ version_requirements: !ruby/object:Gem::Requirement
309
+ requirements:
310
+ - - ">="
311
+ - !ruby/object:Gem::Version
312
+ version: '0'
313
+ description:
314
+ email:
315
+ - admin@cardtapp.com
316
+ executables: []
317
+ extensions: []
318
+ extra_rdoc_files: []
319
+ files:
320
+ - ".circleci/config.yml"
321
+ - ".gitignore"
322
+ - ".reek.yml"
323
+ - ".rspec"
324
+ - ".rubocop.yml"
325
+ - ".ruby-version"
326
+ - Gemfile
327
+ - Gemfile.lock
328
+ - README.md
329
+ - Rakefile
330
+ - codecov.yml
331
+ - config/pronto-circleci.yml
332
+ - lib/aggregate.rb
333
+ - lib/aggregate/contracts.rb
334
+ - lib/aggregate/contracts/class_includes.rb
335
+ - lib/aggregate/contracts/hash_max_length.rb
336
+ - lib/aggregate/contracts/hash_min_length.rb
337
+ - lib/aggregate/contracts/hash_value_type.rb
338
+ - lib/aggregate/contracts/starts_with.rb
339
+ - lib/aggregate/pipeline.rb
340
+ - lib/aggregate/stages.rb
341
+ - lib/aggregate/stages/base.rb
342
+ - lib/aggregate/stages/facet.rb
343
+ - lib/aggregate/stages/group.rb
344
+ - lib/aggregate/stages/hash_base.rb
345
+ - lib/aggregate/stages/lookup.rb
346
+ - lib/aggregate/stages/match.rb
347
+ - lib/aggregate/stages/project.rb
348
+ - lib/aggregate/stages/replace_root.rb
349
+ - lib/aggregate/stages/unwind.rb
350
+ - lib/aggregate/values.rb
351
+ - lib/aggregate/values/array.rb
352
+ - lib/aggregate/values/base.rb
353
+ - lib/aggregate/values/document_class.rb
354
+ - lib/aggregate/values/hash.rb
355
+ - lib/aggregate/values/nil.rb
356
+ - lib/aggregate/values/object_id.rb
357
+ - lib/aggregate/values/string.rb
358
+ - lib/aggregate/values/symbol.rb
359
+ - lib/mongo_aggregation_dsl.rb
360
+ - mongo_aggregation_dsl.gemspec
361
+ homepage: http://www.cardtapp.com
362
+ licenses:
363
+ - MIT
364
+ metadata: {}
365
+ post_install_message:
366
+ rdoc_options: []
367
+ require_paths:
368
+ - lib
369
+ required_ruby_version: !ruby/object:Gem::Requirement
370
+ requirements:
371
+ - - ">="
372
+ - !ruby/object:Gem::Version
373
+ version: '0'
374
+ required_rubygems_version: !ruby/object:Gem::Requirement
375
+ requirements:
376
+ - - ">"
377
+ - !ruby/object:Gem::Version
378
+ version: 1.3.1
379
+ requirements: []
380
+ rubyforge_project:
381
+ rubygems_version: 2.5.1
382
+ signing_key:
383
+ specification_version: 4
384
+ summary: An aggregation DSL for use with mongo ruby driver
385
+ test_files: []