active_reporter 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +14 -0
- data/README.md +436 -0
- data/Rakefile +23 -0
- data/lib/active_reporter.rb +26 -0
- data/lib/active_reporter/aggregator.rb +9 -0
- data/lib/active_reporter/aggregator/array.rb +14 -0
- data/lib/active_reporter/aggregator/average.rb +9 -0
- data/lib/active_reporter/aggregator/base.rb +73 -0
- data/lib/active_reporter/aggregator/count.rb +23 -0
- data/lib/active_reporter/aggregator/count_if.rb +23 -0
- data/lib/active_reporter/aggregator/max.rb +9 -0
- data/lib/active_reporter/aggregator/min.rb +9 -0
- data/lib/active_reporter/aggregator/ratio.rb +23 -0
- data/lib/active_reporter/aggregator/sum.rb +13 -0
- data/lib/active_reporter/calculator.rb +2 -0
- data/lib/active_reporter/calculator/base.rb +19 -0
- data/lib/active_reporter/calculator/ratio.rb +9 -0
- data/lib/active_reporter/dimension.rb +8 -0
- data/lib/active_reporter/dimension/base.rb +150 -0
- data/lib/active_reporter/dimension/bin.rb +123 -0
- data/lib/active_reporter/dimension/bin/set.rb +162 -0
- data/lib/active_reporter/dimension/bin/table.rb +43 -0
- data/lib/active_reporter/dimension/category.rb +29 -0
- data/lib/active_reporter/dimension/enum.rb +32 -0
- data/lib/active_reporter/dimension/number.rb +51 -0
- data/lib/active_reporter/dimension/time.rb +93 -0
- data/lib/active_reporter/evaluator.rb +2 -0
- data/lib/active_reporter/evaluator/base.rb +17 -0
- data/lib/active_reporter/evaluator/block.rb +15 -0
- data/lib/active_reporter/inflector.rb +8 -0
- data/lib/active_reporter/invalid_params_error.rb +4 -0
- data/lib/active_reporter/report.rb +102 -0
- data/lib/active_reporter/report/aggregation.rb +297 -0
- data/lib/active_reporter/report/definition.rb +195 -0
- data/lib/active_reporter/report/metrics.rb +75 -0
- data/lib/active_reporter/report/validation.rb +106 -0
- data/lib/active_reporter/serializer.rb +7 -0
- data/lib/active_reporter/serializer/base.rb +103 -0
- data/lib/active_reporter/serializer/csv.rb +22 -0
- data/lib/active_reporter/serializer/form_field.rb +134 -0
- data/lib/active_reporter/serializer/hash_table.rb +12 -0
- data/lib/active_reporter/serializer/highcharts.rb +200 -0
- data/lib/active_reporter/serializer/nested_hash.rb +11 -0
- data/lib/active_reporter/serializer/table.rb +21 -0
- data/lib/active_reporter/tracker.rb +2 -0
- data/lib/active_reporter/tracker/base.rb +15 -0
- data/lib/active_reporter/tracker/delta.rb +9 -0
- data/lib/active_reporter/version.rb +3 -0
- data/lib/tasks/active_reporter_tasks.rake +4 -0
- data/spec/acceptance/data_spec.rb +381 -0
- data/spec/active_reporter/aggregator_spec.rb +102 -0
- data/spec/active_reporter/dimension/base_spec.rb +102 -0
- data/spec/active_reporter/dimension/bin/set_spec.rb +83 -0
- data/spec/active_reporter/dimension/bin/table_spec.rb +47 -0
- data/spec/active_reporter/dimension/bin_spec.rb +77 -0
- data/spec/active_reporter/dimension/category_spec.rb +60 -0
- data/spec/active_reporter/dimension/enum_spec.rb +94 -0
- data/spec/active_reporter/dimension/number_spec.rb +71 -0
- data/spec/active_reporter/dimension/time_spec.rb +61 -0
- data/spec/active_reporter/report_spec.rb +597 -0
- data/spec/active_reporter/serializer/hash_table_spec.rb +45 -0
- data/spec/active_reporter/serializer/highcharts_spec.rb +113 -0
- data/spec/active_reporter/serializer/table_spec.rb +62 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +26 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/site_controller.rb +11 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/author.rb +4 -0
- data/spec/dummy/app/models/comment.rb +4 -0
- data/spec/dummy/app/models/data_builder.rb +112 -0
- data/spec/dummy/app/models/post.rb +6 -0
- data/spec/dummy/app/models/post_report.rb +14 -0
- data/spec/dummy/app/views/layouts/application.html.erb +17 -0
- data/spec/dummy/app/views/site/report.html.erb +73 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +57 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20150714202319_add_dummy_models.rb +25 -0
- data/spec/dummy/db/schema.rb +43 -0
- data/spec/dummy/db/seeds.rb +1 -0
- data/spec/dummy/log/test.log +37033 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/factories.rb +29 -0
- data/spec/spec_helper.rb +40 -0
- data/spec/support/float.rb +8 -0
- metadata +385 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,29 @@
|
|
1
|
+
FactoryBot.define do
|
2
|
+
factory :author do
|
3
|
+
name { Faker::Name.name }
|
4
|
+
end
|
5
|
+
|
6
|
+
factory :comment do
|
7
|
+
transient { author { nil } }
|
8
|
+
|
9
|
+
before(:create) do |record, evaluator|
|
10
|
+
if evaluator.author
|
11
|
+
author = Author.find_or_create_by(name: evaluator.author)
|
12
|
+
record.author_id = author.id
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
factory :post do
|
19
|
+
status { :published }
|
20
|
+
transient { author { nil } }
|
21
|
+
|
22
|
+
before(:create) do |record, evaluator|
|
23
|
+
if evaluator.author
|
24
|
+
author = Author.find_or_create_by(name: evaluator.author)
|
25
|
+
record.author_id = author.id
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] ||= "test"
|
3
|
+
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start do
|
6
|
+
add_filter '/spec/'
|
7
|
+
|
8
|
+
add_group 'Report', ['lib/active_reporter.rb', 'lib/active_reporter/report', 'lib/active_reporter/invalid_params_error.rb', 'lib/active_reporter/version.rb']
|
9
|
+
|
10
|
+
add_group 'Aggregators', 'lib/active_reporter/aggregator'
|
11
|
+
add_group 'Calculators', 'lib/active_reporter/calculator'
|
12
|
+
add_group 'Trackers', 'lib/active_reporter/tracker'
|
13
|
+
|
14
|
+
add_group 'Dimensions', 'lib/active_reporter/dimension'
|
15
|
+
|
16
|
+
add_group 'Serializers', 'lib/active_reporter/serializer'
|
17
|
+
|
18
|
+
add_group 'Tasks', 'lib/active_reporter/tasks'
|
19
|
+
|
20
|
+
add_group "Long files" do |src_file| src_file.lines.count > 100 end
|
21
|
+
add_group "Short files" do |src_file| src_file.lines.count < 5 end
|
22
|
+
end
|
23
|
+
|
24
|
+
require File.expand_path("../../spec/dummy/config/environment.rb", __FILE__)
|
25
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../spec/dummy/db/migrate", __FILE__)]
|
26
|
+
require "rails/test_help"
|
27
|
+
|
28
|
+
require 'rspec/rails'
|
29
|
+
require 'factory_bot_rails'
|
30
|
+
require 'pry'
|
31
|
+
|
32
|
+
# Load support files
|
33
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
34
|
+
|
35
|
+
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
36
|
+
|
37
|
+
RSpec.configure do |config|
|
38
|
+
config.use_transactional_fixtures = true
|
39
|
+
config.include FactoryBot::Syntax::Methods
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,385 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: active_reporter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.8
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- chaunce
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.1'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '6.1'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '5.1'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '6.1'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: deeply_enumerable
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.9.3
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '2.0'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.9.3
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '2.0'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: pg
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '1'
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '1'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: sqlite3
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '1.3'
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - "~>"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '1.3'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: mysql2
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0.5'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0.5'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: rspec-rails
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '3'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '3'
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: factory_bot_rails
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '4.8'
|
116
|
+
type: :development
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '4.8'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: database_cleaner
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.6'
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '1.6'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: pry
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0.11'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0.11'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: faker
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - "~>"
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '1.6'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - "~>"
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '1.6'
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: simplecov
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - "~>"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0.17'
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0.17'
|
179
|
+
description: Flexible but opinionated framework for defining and running reports on
|
180
|
+
Rails models backed by SQL databases.
|
181
|
+
email:
|
182
|
+
- chaunce.slc@gmail.com
|
183
|
+
executables: []
|
184
|
+
extensions: []
|
185
|
+
extra_rdoc_files: []
|
186
|
+
files:
|
187
|
+
- MIT-LICENSE
|
188
|
+
- README.md
|
189
|
+
- Rakefile
|
190
|
+
- lib/active_reporter.rb
|
191
|
+
- lib/active_reporter/aggregator.rb
|
192
|
+
- lib/active_reporter/aggregator/array.rb
|
193
|
+
- lib/active_reporter/aggregator/average.rb
|
194
|
+
- lib/active_reporter/aggregator/base.rb
|
195
|
+
- lib/active_reporter/aggregator/count.rb
|
196
|
+
- lib/active_reporter/aggregator/count_if.rb
|
197
|
+
- lib/active_reporter/aggregator/max.rb
|
198
|
+
- lib/active_reporter/aggregator/min.rb
|
199
|
+
- lib/active_reporter/aggregator/ratio.rb
|
200
|
+
- lib/active_reporter/aggregator/sum.rb
|
201
|
+
- lib/active_reporter/calculator.rb
|
202
|
+
- lib/active_reporter/calculator/base.rb
|
203
|
+
- lib/active_reporter/calculator/ratio.rb
|
204
|
+
- lib/active_reporter/dimension.rb
|
205
|
+
- lib/active_reporter/dimension/base.rb
|
206
|
+
- lib/active_reporter/dimension/bin.rb
|
207
|
+
- lib/active_reporter/dimension/bin/set.rb
|
208
|
+
- lib/active_reporter/dimension/bin/table.rb
|
209
|
+
- lib/active_reporter/dimension/category.rb
|
210
|
+
- lib/active_reporter/dimension/enum.rb
|
211
|
+
- lib/active_reporter/dimension/number.rb
|
212
|
+
- lib/active_reporter/dimension/time.rb
|
213
|
+
- lib/active_reporter/evaluator.rb
|
214
|
+
- lib/active_reporter/evaluator/base.rb
|
215
|
+
- lib/active_reporter/evaluator/block.rb
|
216
|
+
- lib/active_reporter/inflector.rb
|
217
|
+
- lib/active_reporter/invalid_params_error.rb
|
218
|
+
- lib/active_reporter/report.rb
|
219
|
+
- lib/active_reporter/report/aggregation.rb
|
220
|
+
- lib/active_reporter/report/definition.rb
|
221
|
+
- lib/active_reporter/report/metrics.rb
|
222
|
+
- lib/active_reporter/report/validation.rb
|
223
|
+
- lib/active_reporter/serializer.rb
|
224
|
+
- lib/active_reporter/serializer/base.rb
|
225
|
+
- lib/active_reporter/serializer/csv.rb
|
226
|
+
- lib/active_reporter/serializer/form_field.rb
|
227
|
+
- lib/active_reporter/serializer/hash_table.rb
|
228
|
+
- lib/active_reporter/serializer/highcharts.rb
|
229
|
+
- lib/active_reporter/serializer/nested_hash.rb
|
230
|
+
- lib/active_reporter/serializer/table.rb
|
231
|
+
- lib/active_reporter/tracker.rb
|
232
|
+
- lib/active_reporter/tracker/base.rb
|
233
|
+
- lib/active_reporter/tracker/delta.rb
|
234
|
+
- lib/active_reporter/version.rb
|
235
|
+
- lib/tasks/active_reporter_tasks.rake
|
236
|
+
- spec/acceptance/data_spec.rb
|
237
|
+
- spec/active_reporter/aggregator_spec.rb
|
238
|
+
- spec/active_reporter/dimension/base_spec.rb
|
239
|
+
- spec/active_reporter/dimension/bin/set_spec.rb
|
240
|
+
- spec/active_reporter/dimension/bin/table_spec.rb
|
241
|
+
- spec/active_reporter/dimension/bin_spec.rb
|
242
|
+
- spec/active_reporter/dimension/category_spec.rb
|
243
|
+
- spec/active_reporter/dimension/enum_spec.rb
|
244
|
+
- spec/active_reporter/dimension/number_spec.rb
|
245
|
+
- spec/active_reporter/dimension/time_spec.rb
|
246
|
+
- spec/active_reporter/report_spec.rb
|
247
|
+
- spec/active_reporter/serializer/hash_table_spec.rb
|
248
|
+
- spec/active_reporter/serializer/highcharts_spec.rb
|
249
|
+
- spec/active_reporter/serializer/table_spec.rb
|
250
|
+
- spec/dummy/README.rdoc
|
251
|
+
- spec/dummy/Rakefile
|
252
|
+
- spec/dummy/app/assets/config/manifest.js
|
253
|
+
- spec/dummy/app/assets/javascripts/application.js
|
254
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
255
|
+
- spec/dummy/app/controllers/application_controller.rb
|
256
|
+
- spec/dummy/app/controllers/site_controller.rb
|
257
|
+
- spec/dummy/app/helpers/application_helper.rb
|
258
|
+
- spec/dummy/app/models/author.rb
|
259
|
+
- spec/dummy/app/models/comment.rb
|
260
|
+
- spec/dummy/app/models/data_builder.rb
|
261
|
+
- spec/dummy/app/models/post.rb
|
262
|
+
- spec/dummy/app/models/post_report.rb
|
263
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
264
|
+
- spec/dummy/app/views/site/report.html.erb
|
265
|
+
- spec/dummy/bin/bundle
|
266
|
+
- spec/dummy/bin/rails
|
267
|
+
- spec/dummy/bin/rake
|
268
|
+
- spec/dummy/bin/setup
|
269
|
+
- spec/dummy/config.ru
|
270
|
+
- spec/dummy/config/application.rb
|
271
|
+
- spec/dummy/config/boot.rb
|
272
|
+
- spec/dummy/config/database.yml
|
273
|
+
- spec/dummy/config/environment.rb
|
274
|
+
- spec/dummy/config/environments/development.rb
|
275
|
+
- spec/dummy/config/environments/production.rb
|
276
|
+
- spec/dummy/config/environments/test.rb
|
277
|
+
- spec/dummy/config/initializers/assets.rb
|
278
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
279
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
280
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
281
|
+
- spec/dummy/config/initializers/inflections.rb
|
282
|
+
- spec/dummy/config/initializers/mime_types.rb
|
283
|
+
- spec/dummy/config/initializers/session_store.rb
|
284
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
285
|
+
- spec/dummy/config/locales/en.yml
|
286
|
+
- spec/dummy/config/routes.rb
|
287
|
+
- spec/dummy/config/secrets.yml
|
288
|
+
- spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
|
289
|
+
- spec/dummy/db/schema.rb
|
290
|
+
- spec/dummy/db/seeds.rb
|
291
|
+
- spec/dummy/log/test.log
|
292
|
+
- spec/dummy/public/404.html
|
293
|
+
- spec/dummy/public/422.html
|
294
|
+
- spec/dummy/public/500.html
|
295
|
+
- spec/dummy/public/favicon.ico
|
296
|
+
- spec/factories/factories.rb
|
297
|
+
- spec/spec_helper.rb
|
298
|
+
- spec/support/float.rb
|
299
|
+
homepage: http://github.com/chaunce/active_reporter
|
300
|
+
licenses:
|
301
|
+
- MIT
|
302
|
+
metadata: {}
|
303
|
+
post_install_message:
|
304
|
+
rdoc_options: []
|
305
|
+
require_paths:
|
306
|
+
- lib
|
307
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
308
|
+
requirements:
|
309
|
+
- - ">="
|
310
|
+
- !ruby/object:Gem::Version
|
311
|
+
version: '0'
|
312
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
313
|
+
requirements:
|
314
|
+
- - ">="
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
version: '0'
|
317
|
+
requirements: []
|
318
|
+
rubygems_version: 3.1.4
|
319
|
+
signing_key:
|
320
|
+
specification_version: 4
|
321
|
+
summary: Rails data aggregation framework
|
322
|
+
test_files:
|
323
|
+
- spec/spec_helper.rb
|
324
|
+
- spec/active_reporter/serializer/hash_table_spec.rb
|
325
|
+
- spec/active_reporter/serializer/highcharts_spec.rb
|
326
|
+
- spec/active_reporter/serializer/table_spec.rb
|
327
|
+
- spec/active_reporter/report_spec.rb
|
328
|
+
- spec/active_reporter/aggregator_spec.rb
|
329
|
+
- spec/active_reporter/dimension/time_spec.rb
|
330
|
+
- spec/active_reporter/dimension/category_spec.rb
|
331
|
+
- spec/active_reporter/dimension/bin_spec.rb
|
332
|
+
- spec/active_reporter/dimension/bin/set_spec.rb
|
333
|
+
- spec/active_reporter/dimension/bin/table_spec.rb
|
334
|
+
- spec/active_reporter/dimension/enum_spec.rb
|
335
|
+
- spec/active_reporter/dimension/number_spec.rb
|
336
|
+
- spec/active_reporter/dimension/base_spec.rb
|
337
|
+
- spec/dummy/app/models/post_report.rb
|
338
|
+
- spec/dummy/app/models/data_builder.rb
|
339
|
+
- spec/dummy/app/models/author.rb
|
340
|
+
- spec/dummy/app/models/comment.rb
|
341
|
+
- spec/dummy/app/models/post.rb
|
342
|
+
- spec/dummy/app/controllers/application_controller.rb
|
343
|
+
- spec/dummy/app/controllers/site_controller.rb
|
344
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
345
|
+
- spec/dummy/app/views/site/report.html.erb
|
346
|
+
- spec/dummy/app/assets/config/manifest.js
|
347
|
+
- spec/dummy/app/assets/javascripts/application.js
|
348
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
349
|
+
- spec/dummy/app/helpers/application_helper.rb
|
350
|
+
- spec/dummy/bin/rake
|
351
|
+
- spec/dummy/bin/setup
|
352
|
+
- spec/dummy/bin/bundle
|
353
|
+
- spec/dummy/bin/rails
|
354
|
+
- spec/dummy/config/secrets.yml
|
355
|
+
- spec/dummy/config/routes.rb
|
356
|
+
- spec/dummy/config/locales/en.yml
|
357
|
+
- spec/dummy/config/environments/production.rb
|
358
|
+
- spec/dummy/config/environments/development.rb
|
359
|
+
- spec/dummy/config/environments/test.rb
|
360
|
+
- spec/dummy/config/environment.rb
|
361
|
+
- spec/dummy/config/application.rb
|
362
|
+
- spec/dummy/config/database.yml
|
363
|
+
- spec/dummy/config/boot.rb
|
364
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
365
|
+
- spec/dummy/config/initializers/mime_types.rb
|
366
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
367
|
+
- spec/dummy/config/initializers/session_store.rb
|
368
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
369
|
+
- spec/dummy/config/initializers/assets.rb
|
370
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
371
|
+
- spec/dummy/config/initializers/inflections.rb
|
372
|
+
- spec/dummy/config.ru
|
373
|
+
- spec/dummy/Rakefile
|
374
|
+
- spec/dummy/public/favicon.ico
|
375
|
+
- spec/dummy/public/422.html
|
376
|
+
- spec/dummy/public/500.html
|
377
|
+
- spec/dummy/public/404.html
|
378
|
+
- spec/dummy/db/schema.rb
|
379
|
+
- spec/dummy/db/seeds.rb
|
380
|
+
- spec/dummy/db/migrate/20150714202319_add_dummy_models.rb
|
381
|
+
- spec/dummy/log/test.log
|
382
|
+
- spec/dummy/README.rdoc
|
383
|
+
- spec/acceptance/data_spec.rb
|
384
|
+
- spec/support/float.rb
|
385
|
+
- spec/factories/factories.rb
|