bmg 0.18.0 → 0.18.5

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 +4 -4
  2. data/README.md +1 -0
  3. data/lib/bmg/algebra.rb +1 -0
  4. data/lib/bmg/algebra/shortcuts.rb +6 -0
  5. data/lib/bmg/error.rb +3 -0
  6. data/lib/bmg/operator/allbut.rb +27 -0
  7. data/lib/bmg/operator/autosummarize.rb +27 -4
  8. data/lib/bmg/operator/autowrap.rb +27 -0
  9. data/lib/bmg/operator/constants.rb +7 -0
  10. data/lib/bmg/operator/extend.rb +7 -0
  11. data/lib/bmg/operator/group.rb +1 -0
  12. data/lib/bmg/operator/image.rb +41 -2
  13. data/lib/bmg/operator/join.rb +1 -0
  14. data/lib/bmg/operator/matching.rb +1 -0
  15. data/lib/bmg/operator/not_matching.rb +1 -0
  16. data/lib/bmg/operator/page.rb +2 -7
  17. data/lib/bmg/operator/project.rb +3 -2
  18. data/lib/bmg/operator/rename.rb +12 -5
  19. data/lib/bmg/operator/restrict.rb +1 -0
  20. data/lib/bmg/operator/rxmatch.rb +1 -0
  21. data/lib/bmg/operator/summarize.rb +2 -17
  22. data/lib/bmg/operator/transform.rb +39 -1
  23. data/lib/bmg/operator/union.rb +1 -0
  24. data/lib/bmg/reader/csv.rb +29 -10
  25. data/lib/bmg/reader/excel.rb +23 -4
  26. data/lib/bmg/relation.rb +18 -0
  27. data/lib/bmg/relation/empty.rb +4 -0
  28. data/lib/bmg/relation/in_memory.rb +10 -1
  29. data/lib/bmg/relation/materialized.rb +6 -0
  30. data/lib/bmg/relation/spied.rb +5 -0
  31. data/lib/bmg/sequel/relation.rb +5 -0
  32. data/lib/bmg/sql/relation.rb +2 -3
  33. data/lib/bmg/summarizer.rb +36 -1
  34. data/lib/bmg/summarizer/avg.rb +3 -3
  35. data/lib/bmg/summarizer/by_proc.rb +41 -0
  36. data/lib/bmg/summarizer/distinct.rb +36 -0
  37. data/lib/bmg/summarizer/multiple.rb +46 -0
  38. data/lib/bmg/summarizer/percentile.rb +79 -0
  39. data/lib/bmg/summarizer/value_by.rb +62 -0
  40. data/lib/bmg/support.rb +1 -0
  41. data/lib/bmg/support/ordering.rb +20 -0
  42. data/lib/bmg/support/tuple_transformer.rb +10 -1
  43. data/lib/bmg/version.rb +1 -1
  44. data/lib/bmg/writer.rb +16 -0
  45. data/lib/bmg/writer/csv.rb +2 -12
  46. data/lib/bmg/writer/xlsx.rb +68 -0
  47. metadata +23 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-12 00:00:00.000000000 Z
11
+ date: 2021-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: predicate
@@ -86,6 +86,20 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2.8'
89
+ - !ruby/object:Gem::Dependency
90
+ name: write_xlsx
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.0'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: sequel
91
105
  requirement: !ruby/object:Gem::Requirement
@@ -251,16 +265,22 @@ files:
251
265
  - lib/bmg/sql/version.rb
252
266
  - lib/bmg/summarizer.rb
253
267
  - lib/bmg/summarizer/avg.rb
268
+ - lib/bmg/summarizer/by_proc.rb
254
269
  - lib/bmg/summarizer/collect.rb
255
270
  - lib/bmg/summarizer/concat.rb
256
271
  - lib/bmg/summarizer/count.rb
272
+ - lib/bmg/summarizer/distinct.rb
257
273
  - lib/bmg/summarizer/max.rb
258
274
  - lib/bmg/summarizer/min.rb
275
+ - lib/bmg/summarizer/multiple.rb
276
+ - lib/bmg/summarizer/percentile.rb
259
277
  - lib/bmg/summarizer/stddev.rb
260
278
  - lib/bmg/summarizer/sum.rb
279
+ - lib/bmg/summarizer/value_by.rb
261
280
  - lib/bmg/summarizer/variance.rb
262
281
  - lib/bmg/support.rb
263
282
  - lib/bmg/support/keys.rb
283
+ - lib/bmg/support/ordering.rb
264
284
  - lib/bmg/support/output_preferences.rb
265
285
  - lib/bmg/support/tuple_algebra.rb
266
286
  - lib/bmg/support/tuple_transformer.rb
@@ -268,6 +288,7 @@ files:
268
288
  - lib/bmg/version.rb
269
289
  - lib/bmg/writer.rb
270
290
  - lib/bmg/writer/csv.rb
291
+ - lib/bmg/writer/xlsx.rb
271
292
  - tasks/gem.rake
272
293
  - tasks/test.rake
273
294
  homepage: http://github.com/enspirit/bmg