reports_kits 0.7.5 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -0
- data/.rubocop.yml +85 -0
- data/.travis.yml +21 -0
- data/Appraisals +27 -0
- data/Gemfile +3 -0
- data/MIT-LICENSE +20 -0
- data/README.md +35 -0
- data/Rakefile +2 -0
- data/app/assets/javascripts/reports_kits/application.js +14 -0
- data/app/assets/javascripts/reports_kits/lib/_init.js +9 -0
- data/app/assets/javascripts/reports_kits/lib/chart.js +73 -0
- data/app/assets/javascripts/reports_kits/lib/report.js +135 -0
- data/app/assets/javascripts/reports_kits/lib/table.js +87 -0
- data/app/assets/javascripts/reports_kits/vendor/chart.js +12269 -0
- data/app/assets/javascripts/reports_kits/vendor/daterangepicker.js +1627 -0
- data/app/assets/javascripts/reports_kits/vendor/jquery.tablesorter.min.js +4 -0
- data/app/assets/javascripts/reports_kits/vendor/moment.js +4040 -0
- data/app/assets/javascripts/reports_kits/vendor/select2.full.js +6436 -0
- data/app/assets/stylesheets/reports_kits/application.css.scss +3 -0
- data/app/assets/stylesheets/reports_kits/reports.css.sass +33 -0
- data/app/assets/stylesheets/reports_kits/select2_overrides.css.sass +7 -0
- data/app/assets/stylesheets/reports_kits/vendor/daterangepicker.css +269 -0
- data/app/assets/stylesheets/reports_kits/vendor/select2-bootstrap.css +721 -0
- data/app/assets/stylesheets/reports_kits/vendor/select2.css +484 -0
- data/config/initializers/mime_types.rb +1 -0
- data/config/routes.rb +10 -0
- data/docs/images/demo.gif +0 -0
- data/docs/images/users_by_created_at.png +0 -0
- data/gemfiles/mysql.gemfile +7 -0
- data/gemfiles/mysql.gemfile.lock +167 -0
- data/gemfiles/postgresql.gemfile +7 -0
- data/gemfiles/postgresql.gemfile.lock +165 -0
- data/gemfiles/postgresql_rails_5.1.4.gemfile +8 -0
- data/gemfiles/postgresql_rails_5.1.4.gemfile.lock +168 -0
- data/gemfiles/rails_4_mysql.gemfile +8 -0
- data/gemfiles/rails_4_mysql.gemfile.lock +165 -0
- data/gemfiles/rails_4_postgresql.gemfile +8 -0
- data/gemfiles/rails_4_postgresql.gemfile.lock +163 -0
- data/gemfiles/rails_5.1.4_postgresql.gemfile +8 -0
- data/gemfiles/rails_5.1.4_postgresql.gemfile.lock +169 -0
- data/gemfiles/rails_5_mysql.gemfile +8 -0
- data/gemfiles/rails_5_mysql.gemfile.lock +171 -0
- data/gemfiles/rails_5_postgresql.gemfile +8 -0
- data/gemfiles/rails_5_postgresql.gemfile.lock +169 -0
- data/lib/reports_kits/base_controller.rb +17 -0
- data/lib/reports_kits/cache.rb +37 -0
- data/lib/reports_kits/configuration.rb +50 -0
- data/lib/reports_kits/engine.rb +21 -0
- data/lib/reports_kits/entity.rb +3 -0
- data/lib/reports_kits/filters_controller.rb +11 -0
- data/lib/reports_kits/form_builder.rb +66 -0
- data/lib/reports_kits/helper.rb +24 -0
- data/lib/reports_kits/model.rb +16 -0
- data/lib/reports_kits/model_configuration.rb +28 -0
- data/lib/reports_kits/normalized_params.rb +16 -0
- data/lib/reports_kits/order.rb +33 -0
- data/lib/reports_kits/relative_time.rb +42 -0
- data/lib/reports_kits/report_builder.rb +88 -0
- data/lib/reports_kits/reports/abstract_series.rb +9 -0
- data/lib/reports_kits/reports/adapters/mysql.rb +26 -0
- data/lib/reports_kits/reports/adapters/postgresql.rb +26 -0
- data/lib/reports_kits/reports/composite_series.rb +48 -0
- data/lib/reports_kits/reports/contextual_filter.rb +19 -0
- data/lib/reports_kits/reports/data/add_table_aggregations.rb +105 -0
- data/lib/reports_kits/reports/data/aggregate_composite.rb +97 -0
- data/lib/reports_kits/reports/data/aggregate_one_dimension.rb +39 -0
- data/lib/reports_kits/reports/data/aggregate_two_dimensions.rb +39 -0
- data/lib/reports_kits/reports/data/chart_data_for_data_method.rb +62 -0
- data/lib/reports_kits/reports/data/chart_options.rb +155 -0
- data/lib/reports_kits/reports/data/format_one_dimension.rb +140 -0
- data/lib/reports_kits/reports/data/format_table.rb +63 -0
- data/lib/reports_kits/reports/data/format_two_dimensions.rb +143 -0
- data/lib/reports_kits/reports/data/generate.rb +156 -0
- data/lib/reports_kits/reports/data/generate_for_properties.rb +97 -0
- data/lib/reports_kits/reports/data/normalize_properties.rb +62 -0
- data/lib/reports_kits/reports/data/populate_one_dimension.rb +54 -0
- data/lib/reports_kits/reports/data/populate_two_dimensions.rb +104 -0
- data/lib/reports_kits/reports/data/utils.rb +178 -0
- data/lib/reports_kits/reports/dimension.rb +27 -0
- data/lib/reports_kits/reports/dimension_with_series.rb +144 -0
- data/lib/reports_kits/reports/filter.rb +29 -0
- data/lib/reports_kits/reports/filter_types/base.rb +48 -0
- data/lib/reports_kits/reports/filter_types/boolean.rb +47 -0
- data/lib/reports_kits/reports/filter_types/datetime.rb +51 -0
- data/lib/reports_kits/reports/filter_types/number.rb +30 -0
- data/lib/reports_kits/reports/filter_types/records.rb +26 -0
- data/lib/reports_kits/reports/filter_types/string.rb +38 -0
- data/lib/reports_kits/reports/filter_with_series.rb +97 -0
- data/lib/reports_kits/reports/generate_autocomplete_method_results.rb +29 -0
- data/lib/reports_kits/reports/generate_autocomplete_results.rb +57 -0
- data/lib/reports_kits/reports/inferrable_configuration.rb +116 -0
- data/lib/reports_kits/reports/model_settings.rb +30 -0
- data/lib/reports_kits/reports/properties.rb +10 -0
- data/lib/reports_kits/reports/properties_to_filter.rb +40 -0
- data/lib/reports_kits/reports/series.rb +121 -0
- data/lib/reports_kits/reports_controller.rb +65 -0
- data/lib/reports_kits/utils.rb +11 -0
- data/lib/reports_kits/value.rb +3 -0
- data/lib/reports_kits/version.rb +3 -0
- data/lib/reports_kits.rb +79 -0
- data/reports_kits.gemspec +26 -0
- data/spec/factories/issue_factory.rb +4 -0
- data/spec/factories/issues_label_factory.rb +4 -0
- data/spec/factories/label_factory.rb +4 -0
- data/spec/factories/pro_repo_factory.rb +5 -0
- data/spec/factories/repo_factory.rb +5 -0
- data/spec/factories/tag_factory.rb +4 -0
- data/spec/fixtures/generate_inputs.yml +254 -0
- data/spec/fixtures/generate_outputs.yml +1216 -0
- data/spec/reports_kit/form_builder_spec.rb +26 -0
- data/spec/reports_kit/relative_time_spec.rb +29 -0
- data/spec/reports_kit/reports/data/generate/contextual_filters_spec.rb +60 -0
- data/spec/reports_kit/reports/data/generate_spec.rb +1371 -0
- data/spec/reports_kit/reports/data/normalize_properties_spec.rb +196 -0
- data/spec/reports_kit/reports/dimension_with_series_spec.rb +67 -0
- data/spec/reports_kit/reports/filter_with_series_spec.rb +39 -0
- data/spec/reports_kit/reports/generate_autocomplete_results_spec.rb +69 -0
- data/spec/spec_helper.rb +77 -0
- data/spec/support/config.rb +41 -0
- data/spec/support/example_data_methods.rb +25 -0
- data/spec/support/factory_girl.rb +5 -0
- data/spec/support/helpers.rb +25 -0
- data/spec/support/models/issue.rb +14 -0
- data/spec/support/models/issues_label.rb +4 -0
- data/spec/support/models/label.rb +5 -0
- data/spec/support/models/pro/repo.rb +5 -0
- data/spec/support/models/pro/special_issue.rb +4 -0
- data/spec/support/models/repo.rb +13 -0
- data/spec/support/models/tag.rb +4 -0
- data/spec/support/schema.rb +39 -0
- metadata +134 -4
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reports_kits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aipanhara
|
@@ -171,15 +171,145 @@ email:
|
|
171
171
|
executables: []
|
172
172
|
extensions: []
|
173
173
|
extra_rdoc_files: []
|
174
|
-
files:
|
175
|
-
|
174
|
+
files:
|
175
|
+
- ".gitignore"
|
176
|
+
- ".rubocop.yml"
|
177
|
+
- ".travis.yml"
|
178
|
+
- Appraisals
|
179
|
+
- Gemfile
|
180
|
+
- MIT-LICENSE
|
181
|
+
- README.md
|
182
|
+
- Rakefile
|
183
|
+
- app/assets/javascripts/reports_kits/application.js
|
184
|
+
- app/assets/javascripts/reports_kits/lib/_init.js
|
185
|
+
- app/assets/javascripts/reports_kits/lib/chart.js
|
186
|
+
- app/assets/javascripts/reports_kits/lib/report.js
|
187
|
+
- app/assets/javascripts/reports_kits/lib/table.js
|
188
|
+
- app/assets/javascripts/reports_kits/vendor/chart.js
|
189
|
+
- app/assets/javascripts/reports_kits/vendor/daterangepicker.js
|
190
|
+
- app/assets/javascripts/reports_kits/vendor/jquery.tablesorter.min.js
|
191
|
+
- app/assets/javascripts/reports_kits/vendor/moment.js
|
192
|
+
- app/assets/javascripts/reports_kits/vendor/select2.full.js
|
193
|
+
- app/assets/stylesheets/reports_kits/application.css.scss
|
194
|
+
- app/assets/stylesheets/reports_kits/reports.css.sass
|
195
|
+
- app/assets/stylesheets/reports_kits/select2_overrides.css.sass
|
196
|
+
- app/assets/stylesheets/reports_kits/vendor/daterangepicker.css
|
197
|
+
- app/assets/stylesheets/reports_kits/vendor/select2-bootstrap.css
|
198
|
+
- app/assets/stylesheets/reports_kits/vendor/select2.css
|
199
|
+
- config/initializers/mime_types.rb
|
200
|
+
- config/routes.rb
|
201
|
+
- docs/images/demo.gif
|
202
|
+
- docs/images/users_by_created_at.png
|
203
|
+
- gemfiles/mysql.gemfile
|
204
|
+
- gemfiles/mysql.gemfile.lock
|
205
|
+
- gemfiles/postgresql.gemfile
|
206
|
+
- gemfiles/postgresql.gemfile.lock
|
207
|
+
- gemfiles/postgresql_rails_5.1.4.gemfile
|
208
|
+
- gemfiles/postgresql_rails_5.1.4.gemfile.lock
|
209
|
+
- gemfiles/rails_4_mysql.gemfile
|
210
|
+
- gemfiles/rails_4_mysql.gemfile.lock
|
211
|
+
- gemfiles/rails_4_postgresql.gemfile
|
212
|
+
- gemfiles/rails_4_postgresql.gemfile.lock
|
213
|
+
- gemfiles/rails_5.1.4_postgresql.gemfile
|
214
|
+
- gemfiles/rails_5.1.4_postgresql.gemfile.lock
|
215
|
+
- gemfiles/rails_5_mysql.gemfile
|
216
|
+
- gemfiles/rails_5_mysql.gemfile.lock
|
217
|
+
- gemfiles/rails_5_postgresql.gemfile
|
218
|
+
- gemfiles/rails_5_postgresql.gemfile.lock
|
219
|
+
- lib/reports_kits.rb
|
220
|
+
- lib/reports_kits/base_controller.rb
|
221
|
+
- lib/reports_kits/cache.rb
|
222
|
+
- lib/reports_kits/configuration.rb
|
223
|
+
- lib/reports_kits/engine.rb
|
224
|
+
- lib/reports_kits/entity.rb
|
225
|
+
- lib/reports_kits/filters_controller.rb
|
226
|
+
- lib/reports_kits/form_builder.rb
|
227
|
+
- lib/reports_kits/helper.rb
|
228
|
+
- lib/reports_kits/model.rb
|
229
|
+
- lib/reports_kits/model_configuration.rb
|
230
|
+
- lib/reports_kits/normalized_params.rb
|
231
|
+
- lib/reports_kits/order.rb
|
232
|
+
- lib/reports_kits/relative_time.rb
|
233
|
+
- lib/reports_kits/report_builder.rb
|
234
|
+
- lib/reports_kits/reports/abstract_series.rb
|
235
|
+
- lib/reports_kits/reports/adapters/mysql.rb
|
236
|
+
- lib/reports_kits/reports/adapters/postgresql.rb
|
237
|
+
- lib/reports_kits/reports/composite_series.rb
|
238
|
+
- lib/reports_kits/reports/contextual_filter.rb
|
239
|
+
- lib/reports_kits/reports/data/add_table_aggregations.rb
|
240
|
+
- lib/reports_kits/reports/data/aggregate_composite.rb
|
241
|
+
- lib/reports_kits/reports/data/aggregate_one_dimension.rb
|
242
|
+
- lib/reports_kits/reports/data/aggregate_two_dimensions.rb
|
243
|
+
- lib/reports_kits/reports/data/chart_data_for_data_method.rb
|
244
|
+
- lib/reports_kits/reports/data/chart_options.rb
|
245
|
+
- lib/reports_kits/reports/data/format_one_dimension.rb
|
246
|
+
- lib/reports_kits/reports/data/format_table.rb
|
247
|
+
- lib/reports_kits/reports/data/format_two_dimensions.rb
|
248
|
+
- lib/reports_kits/reports/data/generate.rb
|
249
|
+
- lib/reports_kits/reports/data/generate_for_properties.rb
|
250
|
+
- lib/reports_kits/reports/data/normalize_properties.rb
|
251
|
+
- lib/reports_kits/reports/data/populate_one_dimension.rb
|
252
|
+
- lib/reports_kits/reports/data/populate_two_dimensions.rb
|
253
|
+
- lib/reports_kits/reports/data/utils.rb
|
254
|
+
- lib/reports_kits/reports/dimension.rb
|
255
|
+
- lib/reports_kits/reports/dimension_with_series.rb
|
256
|
+
- lib/reports_kits/reports/filter.rb
|
257
|
+
- lib/reports_kits/reports/filter_types/base.rb
|
258
|
+
- lib/reports_kits/reports/filter_types/boolean.rb
|
259
|
+
- lib/reports_kits/reports/filter_types/datetime.rb
|
260
|
+
- lib/reports_kits/reports/filter_types/number.rb
|
261
|
+
- lib/reports_kits/reports/filter_types/records.rb
|
262
|
+
- lib/reports_kits/reports/filter_types/string.rb
|
263
|
+
- lib/reports_kits/reports/filter_with_series.rb
|
264
|
+
- lib/reports_kits/reports/generate_autocomplete_method_results.rb
|
265
|
+
- lib/reports_kits/reports/generate_autocomplete_results.rb
|
266
|
+
- lib/reports_kits/reports/inferrable_configuration.rb
|
267
|
+
- lib/reports_kits/reports/model_settings.rb
|
268
|
+
- lib/reports_kits/reports/properties.rb
|
269
|
+
- lib/reports_kits/reports/properties_to_filter.rb
|
270
|
+
- lib/reports_kits/reports/series.rb
|
271
|
+
- lib/reports_kits/reports_controller.rb
|
272
|
+
- lib/reports_kits/utils.rb
|
273
|
+
- lib/reports_kits/value.rb
|
274
|
+
- lib/reports_kits/version.rb
|
275
|
+
- reports_kits.gemspec
|
276
|
+
- spec/factories/issue_factory.rb
|
277
|
+
- spec/factories/issues_label_factory.rb
|
278
|
+
- spec/factories/label_factory.rb
|
279
|
+
- spec/factories/pro_repo_factory.rb
|
280
|
+
- spec/factories/repo_factory.rb
|
281
|
+
- spec/factories/tag_factory.rb
|
282
|
+
- spec/fixtures/generate_inputs.yml
|
283
|
+
- spec/fixtures/generate_outputs.yml
|
284
|
+
- spec/reports_kit/form_builder_spec.rb
|
285
|
+
- spec/reports_kit/relative_time_spec.rb
|
286
|
+
- spec/reports_kit/reports/data/generate/contextual_filters_spec.rb
|
287
|
+
- spec/reports_kit/reports/data/generate_spec.rb
|
288
|
+
- spec/reports_kit/reports/data/normalize_properties_spec.rb
|
289
|
+
- spec/reports_kit/reports/dimension_with_series_spec.rb
|
290
|
+
- spec/reports_kit/reports/filter_with_series_spec.rb
|
291
|
+
- spec/reports_kit/reports/generate_autocomplete_results_spec.rb
|
292
|
+
- spec/spec_helper.rb
|
293
|
+
- spec/support/config.rb
|
294
|
+
- spec/support/example_data_methods.rb
|
295
|
+
- spec/support/factory_girl.rb
|
296
|
+
- spec/support/helpers.rb
|
297
|
+
- spec/support/models/issue.rb
|
298
|
+
- spec/support/models/issues_label.rb
|
299
|
+
- spec/support/models/label.rb
|
300
|
+
- spec/support/models/pro/repo.rb
|
301
|
+
- spec/support/models/pro/special_issue.rb
|
302
|
+
- spec/support/models/repo.rb
|
303
|
+
- spec/support/models/tag.rb
|
304
|
+
- spec/support/schema.rb
|
305
|
+
homepage: https://github.com/Panhara28/reports_kits
|
176
306
|
licenses:
|
177
307
|
- MIT
|
178
308
|
metadata: {}
|
179
309
|
post_install_message:
|
180
310
|
rdoc_options: []
|
181
311
|
require_paths:
|
182
|
-
- lib
|
312
|
+
- lib
|
183
313
|
required_ruby_version: !ruby/object:Gem::Requirement
|
184
314
|
requirements:
|
185
315
|
- - ">="
|