active_reporting 0.6.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Drake
8
- autorequire:
9
- bindir: exe
8
+ bindir: bin
10
9
  cert_chain: []
11
- date: 2020-08-29 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -16,161 +15,61 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
18
+ version: '8.0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '0'
25
+ version: '8.0'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: activesupport
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: '0'
32
+ version: '8.0'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.0'
69
- - !ruby/object:Gem::Dependency
70
- name: mysql2
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: pg
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: ransack
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: sqlite3
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- description:
39
+ version: '8.0'
40
+ description: ActiveReporting implements ROLAP (Relational Online Analytical Processing)
41
+ concepts such as fact models, dimensions, and metrics on top of ActiveRecord, providing
42
+ a DSL for describing reports and analytics on your data.
140
43
  email:
141
44
  - t27duck@gmail.com
142
45
  executables: []
143
46
  extensions: []
144
47
  extra_rdoc_files: []
145
48
  files:
146
- - ".codeclimate.yml"
147
- - ".gitignore"
148
- - ".rubocop.yml"
149
- - ".travis.yml"
150
49
  - CHANGELOG.md
151
- - CODE_OF_CONDUCT.md
152
- - Gemfile
153
50
  - LICENSE.txt
154
51
  - README.md
155
- - Rakefile
156
- - active_reporting.gemspec
157
- - bin/console
158
- - bin/setup
159
52
  - lib/active_reporting.rb
160
53
  - lib/active_reporting/active_record_adaptor.rb
161
54
  - lib/active_reporting/configuration.rb
55
+ - lib/active_reporting/datetime_drill.rb
162
56
  - lib/active_reporting/dimension.rb
163
57
  - lib/active_reporting/dimension_filter.rb
164
58
  - lib/active_reporting/fact_model.rb
59
+ - lib/active_reporting/fact_model_registry.rb
165
60
  - lib/active_reporting/metric.rb
61
+ - lib/active_reporting/railtie.rb
166
62
  - lib/active_reporting/report.rb
167
63
  - lib/active_reporting/reporting_dimension.rb
168
64
  - lib/active_reporting/version.rb
169
65
  homepage: https://github.com/t27duck/active_reporting
170
66
  licenses:
171
67
  - MIT
172
- metadata: {}
173
- post_install_message:
68
+ metadata:
69
+ bug_tracker_uri: https://github.com/t27duck/active_reporting/issues
70
+ changelog_uri: https://github.com/t27duck/active_reporting/blob/main/CHANGELOG.md
71
+ source_code_uri: https://github.com/t27duck/active_reporting
72
+ rubygems_mfa_required: 'true'
174
73
  rdoc_options: []
175
74
  require_paths:
176
75
  - lib
@@ -178,15 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
77
  requirements:
179
78
  - - ">="
180
79
  - !ruby/object:Gem::Version
181
- version: '2.3'
80
+ version: '3.3'
182
81
  required_rubygems_version: !ruby/object:Gem::Requirement
183
82
  requirements:
184
83
  - - ">="
185
84
  - !ruby/object:Gem::Version
186
85
  version: '0'
187
86
  requirements: []
188
- rubygems_version: 3.0.3
189
- signing_key:
87
+ rubygems_version: 4.0.20
190
88
  specification_version: 4
191
89
  summary: Add relational OLAP-like functionality for ActiveRecord
192
90
  test_files: []
data/.codeclimate.yml DELETED
@@ -1,15 +0,0 @@
1
- engines:
2
- duplication:
3
- enabled: true
4
- config:
5
- languages:
6
- - ruby
7
- fixme:
8
- enabled: true
9
- rubocop:
10
- enabled: true
11
- ratings:
12
- paths:
13
- - "**.rb"
14
- exclude_paths:
15
- - test/
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- .byebug_history
10
- .ruby-version
11
- /tmp/
12
- .DS_STORE
data/.rubocop.yml DELETED
@@ -1,29 +0,0 @@
1
- AllCops:
2
- Exclude:
3
- - test/**/*
4
- - Gemfile
5
- TargetRubyVersion: 2.3
6
-
7
- Metrics/ClassLength:
8
- Max: 150
9
-
10
- Metrics/LineLength:
11
- Max: 120
12
-
13
- Metrics/ParameterLists:
14
- Max: 8
15
-
16
- MethodLength:
17
- Max: 20
18
-
19
- Style/ClassAndModuleChildren:
20
- Enabled: false
21
-
22
- Style/Documentation:
23
- Enabled: false
24
-
25
- Style/Name:
26
- Enabled: false
27
-
28
- Style/RaiseArgs:
29
- Enabled: false
data/.travis.yml DELETED
@@ -1,20 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- services:
4
- - mysql
5
- addons:
6
- postgresql: "9.6"
7
- rvm:
8
- - 2.5.8
9
- - 2.6.6
10
- - 2.7.1
11
- env:
12
- - RAILS=6-0 DB=sqlite
13
- - RAILS=6-0 DB=pg
14
- - RAILS=6-0 DB=mysql
15
- - RAILS=5-2 DB=sqlite
16
- - RAILS=5-2 DB=pg
17
- - RAILS=5-2 DB=mysql
18
- before_script:
19
- - psql -c 'create database active_reporting_test;' -U postgres
20
- - mysql -e 'create database active_reporting_test collate utf8_general_ci;'
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at t27duck@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'https://rubygems.org'
2
- # Specify your gem's dependencies in active_reporting.gemspec
3
- gemspec
4
-
5
- gem 'simplecov', require: false
6
-
7
- rails = ENV['RAILS'] || '5-2'
8
- db = ENV['DB'] || 'sqlite'
9
-
10
- case rails
11
- when '5-2'
12
- gem 'activerecord', '~> 5.2.0'
13
- when '6-0'
14
- gem 'activerecord', '~> 6.0.0'
15
- end
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rake/testtask'
5
-
6
- Rake::TestTask.new(:test) do |t|
7
- t.libs << 'test'
8
- t.libs << 'lib'
9
- t.test_files = FileList['test/**/*_test.rb']
10
- end
11
-
12
- task default: :test
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'active_reporting/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'active_reporting'
9
- spec.version = ActiveReporting::VERSION
10
- spec.authors = ['Tony Drake']
11
- spec.email = ['t27duck@gmail.com']
12
-
13
- spec.summary = 'Add relational OLAP-like functionality for ActiveRecord'
14
- # spec.description = 'TODO: Write a longer description or delete this line.'
15
- spec.homepage = 'https://github.com/t27duck/active_reporting'
16
- spec.license = 'MIT'
17
-
18
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
- f.match(%r{^(test|spec|features)/})
20
- end
21
- spec.bindir = 'exe'
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ['lib']
24
-
25
- spec.required_ruby_version = '>= 2.3'
26
-
27
- spec.add_dependency 'activerecord'
28
- spec.add_dependency 'activesupport'
29
-
30
- spec.add_development_dependency 'bundler'
31
- spec.add_development_dependency 'minitest', '~> 5.0'
32
- spec.add_development_dependency 'mysql2'
33
- spec.add_development_dependency 'pg'
34
- spec.add_development_dependency 'rake'
35
- spec.add_development_dependency 'ransack'
36
- spec.add_development_dependency 'sqlite3'
37
- end
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'active_reporting'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here