reports_kit 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae53802c82ae537f372cf8813f596ba837be224a
4
- data.tar.gz: 8c46d69d66a2e1b3e1e47d88b7bc45f398e9a8e0
3
+ metadata.gz: 2dcd95571d20aa7e439e9b97a97cefbd87ab3900
4
+ data.tar.gz: 5ca4d871580f9d8dba7fa71a8219d6997a1b6472
5
5
  SHA512:
6
- metadata.gz: 26b7239f82a98fb70d5229963bccd6c77850c9600f76441f369cfe987a25d4bd54adec86dce6ceb5a1a58a01e600e38e1ce4d49fcf25721fd9fd179d2433cf1d
7
- data.tar.gz: 1369039cdb9b87cbcbb0047ea6873b934d8071aa911e04bf54d76f8e5be47308f020c2d6cd0869c2cd60e47e2f33a6d582410b759687da3b7e92d625d7ff880f
6
+ metadata.gz: 63afd0e91d6953bd43313af32908090c758a8adae00f56a2ce520af5cd934237f549cbf66e6fd32da95642f301b8888017ab3de4c6306a748a78d07189100445
7
+ data.tar.gz: d46b89fd02d6183f09ab3de6cb1550718c5f04319cb3dfa673bfc27f9b0fba41290bcf82e5a98a3478954707e778ca40b14aa3fb873810de165f4b43c8754fb6
data/Appraisals CHANGED
@@ -1,7 +1,27 @@
1
- appraise 'mysql' do
1
+ appraise 'rails_4_mysql' do
2
2
  gem 'mysql2'
3
+ gem 'rails', '4.2.10'
3
4
  end
4
5
 
5
- appraise 'postgresql' do
6
+ appraise 'rails_4_postgresql' do
6
7
  gem 'pg'
8
+ gem 'rails', '4.2.10'
9
+ end
10
+
11
+ appraise 'rails_5_mysql' do
12
+ gem 'mysql2'
13
+ gem 'rails', '5.1.3'
14
+ end
15
+
16
+ appraise 'rails_5_postgresql' do
17
+ gem 'pg'
18
+ gem 'rails', '5.1.3'
19
+ end
20
+
21
+ # Rails 5.1.4 introduced a bug that generates invalid SQL when using distinct, group, limit and count. This should be resolved in 5.1.5,
22
+ # but we'll need to specifically test against 5.1.4 to prevent this bug from impacting ReportsKit when Rails 5.1.4 is being used.
23
+ # See https://github.com/tombenner/reports_kit/issues/6
24
+ appraise 'rails_5.1.4_postgresql' do
25
+ gem 'pg'
26
+ gem 'rails', '5.1.4'
7
27
  end
data/README.md CHANGED
@@ -13,9 +13,12 @@ Resources
13
13
 
14
14
  * [Documentation](https://www.reportskit.co/)
15
15
  * [Getting Started](https://www.reportskit.co/categories/getting_started)
16
- * [Data Examples](https://www.reportskit.co/categories/data)
17
- * [Visualization Examples](https://www.reportskit.co/categories/visualization)
18
- * [How It Works](https://www.reportskit.co/categories/getting_started/subcategories/how_it_works)
16
+ * [How It Works](https://www.reportskit.co/subcategories/how_it_works)
17
+
18
+ Documentation
19
+ -------------
20
+
21
+ The documentation is hosted at [reportskit.co](https://www.reportskit.co/), and it's generated using [tombenner/reports_kit_docs](https://github.com/tombenner/reports_kit_docs). If you'd like to improve the documentation, feel free to open a PR!
19
22
 
20
23
  Testing
21
24
  -------
@@ -77,7 +77,7 @@ ReportsKit.Table = (function(options) {
77
77
  }
78
78
  }
79
79
  self.table.html(html);
80
- self.table.tablesorter();
80
+ self.table.tablesorter({ sortInitialOrder: 'desc' });
81
81
  });
82
82
  };
83
83
 
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pg"
6
+ gem "rails", "5.1.4"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,168 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ reports_kit (0.3.2)
5
+ rails (>= 3)
6
+ spreadsheet (>= 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.4)
12
+ actionpack (= 5.1.4)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.4)
16
+ actionpack (= 5.1.4)
17
+ actionview (= 5.1.4)
18
+ activejob (= 5.1.4)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.4)
22
+ actionview (= 5.1.4)
23
+ activesupport (= 5.1.4)
24
+ rack (~> 2.0)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.1.4)
29
+ activesupport (= 5.1.4)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.1.4)
35
+ activesupport (= 5.1.4)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.4)
38
+ activesupport (= 5.1.4)
39
+ activerecord (5.1.4)
40
+ activemodel (= 5.1.4)
41
+ activesupport (= 5.1.4)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.4)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.2.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (8.0.0)
53
+ builder (3.2.3)
54
+ byebug (2.7.0)
55
+ columnize (~> 0.3)
56
+ debugger-linecache (~> 1.2)
57
+ coderay (1.1.1)
58
+ columnize (0.9.0)
59
+ concurrent-ruby (1.0.5)
60
+ crass (1.0.2)
61
+ database_cleaner (1.6.1)
62
+ debugger-linecache (1.2.0)
63
+ diff-lcs (1.3)
64
+ erubi (1.7.0)
65
+ factory_girl (4.8.0)
66
+ activesupport (>= 3.0.0)
67
+ globalid (0.4.0)
68
+ activesupport (>= 4.2.0)
69
+ i18n (0.8.6)
70
+ loofah (2.1.1)
71
+ crass (~> 1.0.2)
72
+ nokogiri (>= 1.5.9)
73
+ mail (2.6.6)
74
+ mime-types (>= 1.16, < 4)
75
+ method_source (0.8.2)
76
+ mime-types (3.1)
77
+ mime-types-data (~> 3.2015)
78
+ mime-types-data (3.2016.0521)
79
+ mini_portile2 (2.3.0)
80
+ minitest (5.10.3)
81
+ nio4r (2.1.0)
82
+ nokogiri (1.8.1)
83
+ mini_portile2 (~> 2.3.0)
84
+ pg (0.21.0)
85
+ pry (0.10.4)
86
+ coderay (~> 1.1.0)
87
+ method_source (~> 0.8.1)
88
+ slop (~> 3.4)
89
+ pry-byebug (1.3.3)
90
+ byebug (~> 2.7)
91
+ pry (~> 0.10)
92
+ rack (2.0.3)
93
+ rack-test (0.7.0)
94
+ rack (>= 1.0, < 3)
95
+ rails (5.1.4)
96
+ actioncable (= 5.1.4)
97
+ actionmailer (= 5.1.4)
98
+ actionpack (= 5.1.4)
99
+ actionview (= 5.1.4)
100
+ activejob (= 5.1.4)
101
+ activemodel (= 5.1.4)
102
+ activerecord (= 5.1.4)
103
+ activesupport (= 5.1.4)
104
+ bundler (>= 1.3.0)
105
+ railties (= 5.1.4)
106
+ sprockets-rails (>= 2.0.0)
107
+ rails-dom-testing (2.0.3)
108
+ activesupport (>= 4.2.0)
109
+ nokogiri (>= 1.6)
110
+ rails-html-sanitizer (1.0.3)
111
+ loofah (~> 2.0)
112
+ railties (5.1.4)
113
+ actionpack (= 5.1.4)
114
+ activesupport (= 5.1.4)
115
+ method_source
116
+ rake (>= 0.8.7)
117
+ thor (>= 0.18.1, < 2.0)
118
+ rake (12.1.0)
119
+ rspec (3.6.0)
120
+ rspec-core (~> 3.6.0)
121
+ rspec-expectations (~> 3.6.0)
122
+ rspec-mocks (~> 3.6.0)
123
+ rspec-core (3.6.0)
124
+ rspec-support (~> 3.6.0)
125
+ rspec-expectations (3.6.0)
126
+ diff-lcs (>= 1.2.0, < 2.0)
127
+ rspec-support (~> 3.6.0)
128
+ rspec-mocks (3.6.0)
129
+ diff-lcs (>= 1.2.0, < 2.0)
130
+ rspec-support (~> 3.6.0)
131
+ rspec-support (3.6.0)
132
+ ruby-ole (1.2.12.1)
133
+ slop (3.6.0)
134
+ spreadsheet (1.1.4)
135
+ ruby-ole (>= 1.0)
136
+ sprockets (3.7.1)
137
+ concurrent-ruby (~> 1.0)
138
+ rack (> 1, < 3)
139
+ sprockets-rails (3.2.1)
140
+ actionpack (>= 4.0)
141
+ activesupport (>= 4.0)
142
+ sprockets (>= 3.0.0)
143
+ thor (0.20.0)
144
+ thread_safe (0.3.6)
145
+ timecop (0.9.0)
146
+ tzinfo (1.2.3)
147
+ thread_safe (~> 0.1)
148
+ websocket-driver (0.6.5)
149
+ websocket-extensions (>= 0.1.0)
150
+ websocket-extensions (0.1.2)
151
+
152
+ PLATFORMS
153
+ ruby
154
+
155
+ DEPENDENCIES
156
+ appraisal
157
+ database_cleaner (~> 1)
158
+ factory_girl (~> 4)
159
+ pg
160
+ pry (~> 0)
161
+ pry-byebug (~> 1)
162
+ rails (= 5.1.4)
163
+ reports_kit!
164
+ rspec (~> 3)
165
+ timecop (~> 0)
166
+
167
+ BUNDLED WITH
168
+ 1.15.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "mysql2"
6
+ gem "rails", "4.2.10"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,162 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ reports_kit (0.3.2)
5
+ rails (>= 3)
6
+ spreadsheet (>= 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.2.10)
12
+ actionpack (= 4.2.10)
13
+ actionview (= 4.2.10)
14
+ activejob (= 4.2.10)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ actionpack (4.2.10)
18
+ actionview (= 4.2.10)
19
+ activesupport (= 4.2.10)
20
+ rack (~> 1.6)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (4.2.10)
25
+ activesupport (= 4.2.10)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activejob (4.2.10)
31
+ activesupport (= 4.2.10)
32
+ globalid (>= 0.3.0)
33
+ activemodel (4.2.10)
34
+ activesupport (= 4.2.10)
35
+ builder (~> 3.1)
36
+ activerecord (4.2.10)
37
+ activemodel (= 4.2.10)
38
+ activesupport (= 4.2.10)
39
+ arel (~> 6.0)
40
+ activesupport (4.2.10)
41
+ i18n (~> 0.7)
42
+ minitest (~> 5.1)
43
+ thread_safe (~> 0.3, >= 0.3.4)
44
+ tzinfo (~> 1.1)
45
+ appraisal (2.2.0)
46
+ bundler
47
+ rake
48
+ thor (>= 0.14.0)
49
+ arel (6.0.4)
50
+ builder (3.2.3)
51
+ byebug (2.7.0)
52
+ columnize (~> 0.3)
53
+ debugger-linecache (~> 1.2)
54
+ coderay (1.1.2)
55
+ columnize (0.9.0)
56
+ concurrent-ruby (1.0.5)
57
+ crass (1.0.2)
58
+ database_cleaner (1.6.1)
59
+ debugger-linecache (1.2.0)
60
+ diff-lcs (1.3)
61
+ erubis (2.7.0)
62
+ factory_girl (4.8.1)
63
+ activesupport (>= 3.0.0)
64
+ globalid (0.4.0)
65
+ activesupport (>= 4.2.0)
66
+ i18n (0.8.6)
67
+ loofah (2.1.1)
68
+ crass (~> 1.0.2)
69
+ nokogiri (>= 1.5.9)
70
+ mail (2.6.6)
71
+ mime-types (>= 1.16, < 4)
72
+ method_source (0.9.0)
73
+ mime-types (3.1)
74
+ mime-types-data (~> 3.2015)
75
+ mime-types-data (3.2016.0521)
76
+ mini_portile2 (2.3.0)
77
+ minitest (5.10.3)
78
+ mysql2 (0.4.9)
79
+ nokogiri (1.8.1)
80
+ mini_portile2 (~> 2.3.0)
81
+ pg (0.21.0)
82
+ pry (0.11.1)
83
+ coderay (~> 1.1.0)
84
+ method_source (~> 0.9.0)
85
+ pry-byebug (1.3.3)
86
+ byebug (~> 2.7)
87
+ pry (~> 0.10)
88
+ rack (1.6.8)
89
+ rack-test (0.6.3)
90
+ rack (>= 1.0)
91
+ rails (4.2.10)
92
+ actionmailer (= 4.2.10)
93
+ actionpack (= 4.2.10)
94
+ actionview (= 4.2.10)
95
+ activejob (= 4.2.10)
96
+ activemodel (= 4.2.10)
97
+ activerecord (= 4.2.10)
98
+ activesupport (= 4.2.10)
99
+ bundler (>= 1.3.0, < 2.0)
100
+ railties (= 4.2.10)
101
+ sprockets-rails
102
+ rails-deprecated_sanitizer (1.0.3)
103
+ activesupport (>= 4.2.0.alpha)
104
+ rails-dom-testing (1.0.8)
105
+ activesupport (>= 4.2.0.beta, < 5.0)
106
+ nokogiri (~> 1.6)
107
+ rails-deprecated_sanitizer (>= 1.0.1)
108
+ rails-html-sanitizer (1.0.3)
109
+ loofah (~> 2.0)
110
+ railties (4.2.10)
111
+ actionpack (= 4.2.10)
112
+ activesupport (= 4.2.10)
113
+ rake (>= 0.8.7)
114
+ thor (>= 0.18.1, < 2.0)
115
+ rake (12.1.0)
116
+ rspec (3.6.0)
117
+ rspec-core (~> 3.6.0)
118
+ rspec-expectations (~> 3.6.0)
119
+ rspec-mocks (~> 3.6.0)
120
+ rspec-core (3.6.0)
121
+ rspec-support (~> 3.6.0)
122
+ rspec-expectations (3.6.0)
123
+ diff-lcs (>= 1.2.0, < 2.0)
124
+ rspec-support (~> 3.6.0)
125
+ rspec-mocks (3.6.0)
126
+ diff-lcs (>= 1.2.0, < 2.0)
127
+ rspec-support (~> 3.6.0)
128
+ rspec-support (3.6.0)
129
+ ruby-ole (1.2.12.1)
130
+ spreadsheet (1.1.4)
131
+ ruby-ole (>= 1.0)
132
+ sprockets (3.7.1)
133
+ concurrent-ruby (~> 1.0)
134
+ rack (> 1, < 3)
135
+ sprockets-rails (3.2.1)
136
+ actionpack (>= 4.0)
137
+ activesupport (>= 4.0)
138
+ sprockets (>= 3.0.0)
139
+ thor (0.20.0)
140
+ thread_safe (0.3.6)
141
+ timecop (0.9.1)
142
+ tzinfo (1.2.3)
143
+ thread_safe (~> 0.1)
144
+
145
+ PLATFORMS
146
+ ruby
147
+
148
+ DEPENDENCIES
149
+ appraisal
150
+ database_cleaner (~> 1)
151
+ factory_girl (~> 4)
152
+ mysql2
153
+ pg (>= 0.15)
154
+ pry (~> 0)
155
+ pry-byebug (~> 1)
156
+ rails (= 4.2.10)
157
+ reports_kit!
158
+ rspec (~> 3)
159
+ timecop (~> 0)
160
+
161
+ BUNDLED WITH
162
+ 1.15.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pg"
6
+ gem "rails", "4.2.10"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,160 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ reports_kit (0.3.2)
5
+ rails (>= 3)
6
+ spreadsheet (>= 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.2.10)
12
+ actionpack (= 4.2.10)
13
+ actionview (= 4.2.10)
14
+ activejob (= 4.2.10)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ actionpack (4.2.10)
18
+ actionview (= 4.2.10)
19
+ activesupport (= 4.2.10)
20
+ rack (~> 1.6)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (4.2.10)
25
+ activesupport (= 4.2.10)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activejob (4.2.10)
31
+ activesupport (= 4.2.10)
32
+ globalid (>= 0.3.0)
33
+ activemodel (4.2.10)
34
+ activesupport (= 4.2.10)
35
+ builder (~> 3.1)
36
+ activerecord (4.2.10)
37
+ activemodel (= 4.2.10)
38
+ activesupport (= 4.2.10)
39
+ arel (~> 6.0)
40
+ activesupport (4.2.10)
41
+ i18n (~> 0.7)
42
+ minitest (~> 5.1)
43
+ thread_safe (~> 0.3, >= 0.3.4)
44
+ tzinfo (~> 1.1)
45
+ appraisal (2.2.0)
46
+ bundler
47
+ rake
48
+ thor (>= 0.14.0)
49
+ arel (6.0.4)
50
+ builder (3.2.3)
51
+ byebug (2.7.0)
52
+ columnize (~> 0.3)
53
+ debugger-linecache (~> 1.2)
54
+ coderay (1.1.2)
55
+ columnize (0.9.0)
56
+ concurrent-ruby (1.0.5)
57
+ crass (1.0.2)
58
+ database_cleaner (1.6.1)
59
+ debugger-linecache (1.2.0)
60
+ diff-lcs (1.3)
61
+ erubis (2.7.0)
62
+ factory_girl (4.8.1)
63
+ activesupport (>= 3.0.0)
64
+ globalid (0.4.0)
65
+ activesupport (>= 4.2.0)
66
+ i18n (0.8.6)
67
+ loofah (2.1.1)
68
+ crass (~> 1.0.2)
69
+ nokogiri (>= 1.5.9)
70
+ mail (2.6.6)
71
+ mime-types (>= 1.16, < 4)
72
+ method_source (0.9.0)
73
+ mime-types (3.1)
74
+ mime-types-data (~> 3.2015)
75
+ mime-types-data (3.2016.0521)
76
+ mini_portile2 (2.3.0)
77
+ minitest (5.10.3)
78
+ nokogiri (1.8.1)
79
+ mini_portile2 (~> 2.3.0)
80
+ pg (0.21.0)
81
+ pry (0.11.1)
82
+ coderay (~> 1.1.0)
83
+ method_source (~> 0.9.0)
84
+ pry-byebug (1.3.3)
85
+ byebug (~> 2.7)
86
+ pry (~> 0.10)
87
+ rack (1.6.8)
88
+ rack-test (0.6.3)
89
+ rack (>= 1.0)
90
+ rails (4.2.10)
91
+ actionmailer (= 4.2.10)
92
+ actionpack (= 4.2.10)
93
+ actionview (= 4.2.10)
94
+ activejob (= 4.2.10)
95
+ activemodel (= 4.2.10)
96
+ activerecord (= 4.2.10)
97
+ activesupport (= 4.2.10)
98
+ bundler (>= 1.3.0, < 2.0)
99
+ railties (= 4.2.10)
100
+ sprockets-rails
101
+ rails-deprecated_sanitizer (1.0.3)
102
+ activesupport (>= 4.2.0.alpha)
103
+ rails-dom-testing (1.0.8)
104
+ activesupport (>= 4.2.0.beta, < 5.0)
105
+ nokogiri (~> 1.6)
106
+ rails-deprecated_sanitizer (>= 1.0.1)
107
+ rails-html-sanitizer (1.0.3)
108
+ loofah (~> 2.0)
109
+ railties (4.2.10)
110
+ actionpack (= 4.2.10)
111
+ activesupport (= 4.2.10)
112
+ rake (>= 0.8.7)
113
+ thor (>= 0.18.1, < 2.0)
114
+ rake (12.1.0)
115
+ rspec (3.6.0)
116
+ rspec-core (~> 3.6.0)
117
+ rspec-expectations (~> 3.6.0)
118
+ rspec-mocks (~> 3.6.0)
119
+ rspec-core (3.6.0)
120
+ rspec-support (~> 3.6.0)
121
+ rspec-expectations (3.6.0)
122
+ diff-lcs (>= 1.2.0, < 2.0)
123
+ rspec-support (~> 3.6.0)
124
+ rspec-mocks (3.6.0)
125
+ diff-lcs (>= 1.2.0, < 2.0)
126
+ rspec-support (~> 3.6.0)
127
+ rspec-support (3.6.0)
128
+ ruby-ole (1.2.12.1)
129
+ spreadsheet (1.1.4)
130
+ ruby-ole (>= 1.0)
131
+ sprockets (3.7.1)
132
+ concurrent-ruby (~> 1.0)
133
+ rack (> 1, < 3)
134
+ sprockets-rails (3.2.1)
135
+ actionpack (>= 4.0)
136
+ activesupport (>= 4.0)
137
+ sprockets (>= 3.0.0)
138
+ thor (0.20.0)
139
+ thread_safe (0.3.6)
140
+ timecop (0.9.1)
141
+ tzinfo (1.2.3)
142
+ thread_safe (~> 0.1)
143
+
144
+ PLATFORMS
145
+ ruby
146
+
147
+ DEPENDENCIES
148
+ appraisal
149
+ database_cleaner (~> 1)
150
+ factory_girl (~> 4)
151
+ pg
152
+ pry (~> 0)
153
+ pry-byebug (~> 1)
154
+ rails (= 4.2.10)
155
+ reports_kit!
156
+ rspec (~> 3)
157
+ timecop (~> 0)
158
+
159
+ BUNDLED WITH
160
+ 1.15.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pg"
6
+ gem "rails", "5.1.4"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,166 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ reports_kit (0.3.2)
5
+ rails (>= 3)
6
+ spreadsheet (>= 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.4)
12
+ actionpack (= 5.1.4)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.4)
16
+ actionpack (= 5.1.4)
17
+ actionview (= 5.1.4)
18
+ activejob (= 5.1.4)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.4)
22
+ actionview (= 5.1.4)
23
+ activesupport (= 5.1.4)
24
+ rack (~> 2.0)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.1.4)
29
+ activesupport (= 5.1.4)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.1.4)
35
+ activesupport (= 5.1.4)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.4)
38
+ activesupport (= 5.1.4)
39
+ activerecord (5.1.4)
40
+ activemodel (= 5.1.4)
41
+ activesupport (= 5.1.4)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.4)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.2.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (8.0.0)
53
+ builder (3.2.3)
54
+ byebug (2.7.0)
55
+ columnize (~> 0.3)
56
+ debugger-linecache (~> 1.2)
57
+ coderay (1.1.2)
58
+ columnize (0.9.0)
59
+ concurrent-ruby (1.0.5)
60
+ crass (1.0.2)
61
+ database_cleaner (1.6.1)
62
+ debugger-linecache (1.2.0)
63
+ diff-lcs (1.3)
64
+ erubi (1.7.0)
65
+ factory_girl (4.8.1)
66
+ activesupport (>= 3.0.0)
67
+ globalid (0.4.0)
68
+ activesupport (>= 4.2.0)
69
+ i18n (0.8.6)
70
+ loofah (2.1.1)
71
+ crass (~> 1.0.2)
72
+ nokogiri (>= 1.5.9)
73
+ mail (2.6.6)
74
+ mime-types (>= 1.16, < 4)
75
+ method_source (0.9.0)
76
+ mime-types (3.1)
77
+ mime-types-data (~> 3.2015)
78
+ mime-types-data (3.2016.0521)
79
+ mini_portile2 (2.3.0)
80
+ minitest (5.10.3)
81
+ nio4r (2.1.0)
82
+ nokogiri (1.8.1)
83
+ mini_portile2 (~> 2.3.0)
84
+ pg (0.21.0)
85
+ pry (0.11.1)
86
+ coderay (~> 1.1.0)
87
+ method_source (~> 0.9.0)
88
+ pry-byebug (1.3.3)
89
+ byebug (~> 2.7)
90
+ pry (~> 0.10)
91
+ rack (2.0.3)
92
+ rack-test (0.7.0)
93
+ rack (>= 1.0, < 3)
94
+ rails (5.1.4)
95
+ actioncable (= 5.1.4)
96
+ actionmailer (= 5.1.4)
97
+ actionpack (= 5.1.4)
98
+ actionview (= 5.1.4)
99
+ activejob (= 5.1.4)
100
+ activemodel (= 5.1.4)
101
+ activerecord (= 5.1.4)
102
+ activesupport (= 5.1.4)
103
+ bundler (>= 1.3.0)
104
+ railties (= 5.1.4)
105
+ sprockets-rails (>= 2.0.0)
106
+ rails-dom-testing (2.0.3)
107
+ activesupport (>= 4.2.0)
108
+ nokogiri (>= 1.6)
109
+ rails-html-sanitizer (1.0.3)
110
+ loofah (~> 2.0)
111
+ railties (5.1.4)
112
+ actionpack (= 5.1.4)
113
+ activesupport (= 5.1.4)
114
+ method_source
115
+ rake (>= 0.8.7)
116
+ thor (>= 0.18.1, < 2.0)
117
+ rake (12.1.0)
118
+ rspec (3.6.0)
119
+ rspec-core (~> 3.6.0)
120
+ rspec-expectations (~> 3.6.0)
121
+ rspec-mocks (~> 3.6.0)
122
+ rspec-core (3.6.0)
123
+ rspec-support (~> 3.6.0)
124
+ rspec-expectations (3.6.0)
125
+ diff-lcs (>= 1.2.0, < 2.0)
126
+ rspec-support (~> 3.6.0)
127
+ rspec-mocks (3.6.0)
128
+ diff-lcs (>= 1.2.0, < 2.0)
129
+ rspec-support (~> 3.6.0)
130
+ rspec-support (3.6.0)
131
+ ruby-ole (1.2.12.1)
132
+ spreadsheet (1.1.4)
133
+ ruby-ole (>= 1.0)
134
+ sprockets (3.7.1)
135
+ concurrent-ruby (~> 1.0)
136
+ rack (> 1, < 3)
137
+ sprockets-rails (3.2.1)
138
+ actionpack (>= 4.0)
139
+ activesupport (>= 4.0)
140
+ sprockets (>= 3.0.0)
141
+ thor (0.20.0)
142
+ thread_safe (0.3.6)
143
+ timecop (0.9.1)
144
+ tzinfo (1.2.3)
145
+ thread_safe (~> 0.1)
146
+ websocket-driver (0.6.5)
147
+ websocket-extensions (>= 0.1.0)
148
+ websocket-extensions (0.1.2)
149
+
150
+ PLATFORMS
151
+ ruby
152
+
153
+ DEPENDENCIES
154
+ appraisal
155
+ database_cleaner (~> 1)
156
+ factory_girl (~> 4)
157
+ pg
158
+ pry (~> 0)
159
+ pry-byebug (~> 1)
160
+ rails (= 5.1.4)
161
+ reports_kit!
162
+ rspec (~> 3)
163
+ timecop (~> 0)
164
+
165
+ BUNDLED WITH
166
+ 1.15.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "mysql2"
6
+ gem "rails", "5.1.3"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,168 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ reports_kit (0.3.2)
5
+ rails (>= 3)
6
+ spreadsheet (>= 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.3)
12
+ actionpack (= 5.1.3)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.3)
16
+ actionpack (= 5.1.3)
17
+ actionview (= 5.1.3)
18
+ activejob (= 5.1.3)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.3)
22
+ actionview (= 5.1.3)
23
+ activesupport (= 5.1.3)
24
+ rack (~> 2.0)
25
+ rack-test (~> 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.1.3)
29
+ activesupport (= 5.1.3)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.1.3)
35
+ activesupport (= 5.1.3)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.3)
38
+ activesupport (= 5.1.3)
39
+ activerecord (5.1.3)
40
+ activemodel (= 5.1.3)
41
+ activesupport (= 5.1.3)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.3)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.2.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (8.0.0)
53
+ builder (3.2.3)
54
+ byebug (2.7.0)
55
+ columnize (~> 0.3)
56
+ debugger-linecache (~> 1.2)
57
+ coderay (1.1.2)
58
+ columnize (0.9.0)
59
+ concurrent-ruby (1.0.5)
60
+ crass (1.0.2)
61
+ database_cleaner (1.6.1)
62
+ debugger-linecache (1.2.0)
63
+ diff-lcs (1.3)
64
+ erubi (1.7.0)
65
+ factory_girl (4.8.1)
66
+ activesupport (>= 3.0.0)
67
+ globalid (0.4.0)
68
+ activesupport (>= 4.2.0)
69
+ i18n (0.8.6)
70
+ loofah (2.1.1)
71
+ crass (~> 1.0.2)
72
+ nokogiri (>= 1.5.9)
73
+ mail (2.6.6)
74
+ mime-types (>= 1.16, < 4)
75
+ method_source (0.9.0)
76
+ mime-types (3.1)
77
+ mime-types-data (~> 3.2015)
78
+ mime-types-data (3.2016.0521)
79
+ mini_portile2 (2.3.0)
80
+ minitest (5.10.3)
81
+ mysql2 (0.4.9)
82
+ nio4r (2.1.0)
83
+ nokogiri (1.8.1)
84
+ mini_portile2 (~> 2.3.0)
85
+ pg (0.21.0)
86
+ pry (0.11.1)
87
+ coderay (~> 1.1.0)
88
+ method_source (~> 0.9.0)
89
+ pry-byebug (1.3.3)
90
+ byebug (~> 2.7)
91
+ pry (~> 0.10)
92
+ rack (2.0.3)
93
+ rack-test (0.6.3)
94
+ rack (>= 1.0)
95
+ rails (5.1.3)
96
+ actioncable (= 5.1.3)
97
+ actionmailer (= 5.1.3)
98
+ actionpack (= 5.1.3)
99
+ actionview (= 5.1.3)
100
+ activejob (= 5.1.3)
101
+ activemodel (= 5.1.3)
102
+ activerecord (= 5.1.3)
103
+ activesupport (= 5.1.3)
104
+ bundler (>= 1.3.0)
105
+ railties (= 5.1.3)
106
+ sprockets-rails (>= 2.0.0)
107
+ rails-dom-testing (2.0.3)
108
+ activesupport (>= 4.2.0)
109
+ nokogiri (>= 1.6)
110
+ rails-html-sanitizer (1.0.3)
111
+ loofah (~> 2.0)
112
+ railties (5.1.3)
113
+ actionpack (= 5.1.3)
114
+ activesupport (= 5.1.3)
115
+ method_source
116
+ rake (>= 0.8.7)
117
+ thor (>= 0.18.1, < 2.0)
118
+ rake (12.1.0)
119
+ rspec (3.6.0)
120
+ rspec-core (~> 3.6.0)
121
+ rspec-expectations (~> 3.6.0)
122
+ rspec-mocks (~> 3.6.0)
123
+ rspec-core (3.6.0)
124
+ rspec-support (~> 3.6.0)
125
+ rspec-expectations (3.6.0)
126
+ diff-lcs (>= 1.2.0, < 2.0)
127
+ rspec-support (~> 3.6.0)
128
+ rspec-mocks (3.6.0)
129
+ diff-lcs (>= 1.2.0, < 2.0)
130
+ rspec-support (~> 3.6.0)
131
+ rspec-support (3.6.0)
132
+ ruby-ole (1.2.12.1)
133
+ spreadsheet (1.1.4)
134
+ ruby-ole (>= 1.0)
135
+ sprockets (3.7.1)
136
+ concurrent-ruby (~> 1.0)
137
+ rack (> 1, < 3)
138
+ sprockets-rails (3.2.1)
139
+ actionpack (>= 4.0)
140
+ activesupport (>= 4.0)
141
+ sprockets (>= 3.0.0)
142
+ thor (0.20.0)
143
+ thread_safe (0.3.6)
144
+ timecop (0.9.1)
145
+ tzinfo (1.2.3)
146
+ thread_safe (~> 0.1)
147
+ websocket-driver (0.6.5)
148
+ websocket-extensions (>= 0.1.0)
149
+ websocket-extensions (0.1.2)
150
+
151
+ PLATFORMS
152
+ ruby
153
+
154
+ DEPENDENCIES
155
+ appraisal
156
+ database_cleaner (~> 1)
157
+ factory_girl (~> 4)
158
+ mysql2
159
+ pg (>= 0.15)
160
+ pry (~> 0)
161
+ pry-byebug (~> 1)
162
+ rails (= 5.1.3)
163
+ reports_kit!
164
+ rspec (~> 3)
165
+ timecop (~> 0)
166
+
167
+ BUNDLED WITH
168
+ 1.15.4
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "pg"
6
+ gem "rails", "5.1.3"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,166 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ reports_kit (0.3.2)
5
+ rails (>= 3)
6
+ spreadsheet (>= 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.3)
12
+ actionpack (= 5.1.3)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.3)
16
+ actionpack (= 5.1.3)
17
+ actionview (= 5.1.3)
18
+ activejob (= 5.1.3)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.3)
22
+ actionview (= 5.1.3)
23
+ activesupport (= 5.1.3)
24
+ rack (~> 2.0)
25
+ rack-test (~> 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.1.3)
29
+ activesupport (= 5.1.3)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.1.3)
35
+ activesupport (= 5.1.3)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.3)
38
+ activesupport (= 5.1.3)
39
+ activerecord (5.1.3)
40
+ activemodel (= 5.1.3)
41
+ activesupport (= 5.1.3)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.3)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.2.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (8.0.0)
53
+ builder (3.2.3)
54
+ byebug (2.7.0)
55
+ columnize (~> 0.3)
56
+ debugger-linecache (~> 1.2)
57
+ coderay (1.1.2)
58
+ columnize (0.9.0)
59
+ concurrent-ruby (1.0.5)
60
+ crass (1.0.2)
61
+ database_cleaner (1.6.1)
62
+ debugger-linecache (1.2.0)
63
+ diff-lcs (1.3)
64
+ erubi (1.7.0)
65
+ factory_girl (4.8.1)
66
+ activesupport (>= 3.0.0)
67
+ globalid (0.4.0)
68
+ activesupport (>= 4.2.0)
69
+ i18n (0.8.6)
70
+ loofah (2.1.1)
71
+ crass (~> 1.0.2)
72
+ nokogiri (>= 1.5.9)
73
+ mail (2.6.6)
74
+ mime-types (>= 1.16, < 4)
75
+ method_source (0.9.0)
76
+ mime-types (3.1)
77
+ mime-types-data (~> 3.2015)
78
+ mime-types-data (3.2016.0521)
79
+ mini_portile2 (2.3.0)
80
+ minitest (5.10.3)
81
+ nio4r (2.1.0)
82
+ nokogiri (1.8.1)
83
+ mini_portile2 (~> 2.3.0)
84
+ pg (0.21.0)
85
+ pry (0.11.1)
86
+ coderay (~> 1.1.0)
87
+ method_source (~> 0.9.0)
88
+ pry-byebug (1.3.3)
89
+ byebug (~> 2.7)
90
+ pry (~> 0.10)
91
+ rack (2.0.3)
92
+ rack-test (0.6.3)
93
+ rack (>= 1.0)
94
+ rails (5.1.3)
95
+ actioncable (= 5.1.3)
96
+ actionmailer (= 5.1.3)
97
+ actionpack (= 5.1.3)
98
+ actionview (= 5.1.3)
99
+ activejob (= 5.1.3)
100
+ activemodel (= 5.1.3)
101
+ activerecord (= 5.1.3)
102
+ activesupport (= 5.1.3)
103
+ bundler (>= 1.3.0)
104
+ railties (= 5.1.3)
105
+ sprockets-rails (>= 2.0.0)
106
+ rails-dom-testing (2.0.3)
107
+ activesupport (>= 4.2.0)
108
+ nokogiri (>= 1.6)
109
+ rails-html-sanitizer (1.0.3)
110
+ loofah (~> 2.0)
111
+ railties (5.1.3)
112
+ actionpack (= 5.1.3)
113
+ activesupport (= 5.1.3)
114
+ method_source
115
+ rake (>= 0.8.7)
116
+ thor (>= 0.18.1, < 2.0)
117
+ rake (12.1.0)
118
+ rspec (3.6.0)
119
+ rspec-core (~> 3.6.0)
120
+ rspec-expectations (~> 3.6.0)
121
+ rspec-mocks (~> 3.6.0)
122
+ rspec-core (3.6.0)
123
+ rspec-support (~> 3.6.0)
124
+ rspec-expectations (3.6.0)
125
+ diff-lcs (>= 1.2.0, < 2.0)
126
+ rspec-support (~> 3.6.0)
127
+ rspec-mocks (3.6.0)
128
+ diff-lcs (>= 1.2.0, < 2.0)
129
+ rspec-support (~> 3.6.0)
130
+ rspec-support (3.6.0)
131
+ ruby-ole (1.2.12.1)
132
+ spreadsheet (1.1.4)
133
+ ruby-ole (>= 1.0)
134
+ sprockets (3.7.1)
135
+ concurrent-ruby (~> 1.0)
136
+ rack (> 1, < 3)
137
+ sprockets-rails (3.2.1)
138
+ actionpack (>= 4.0)
139
+ activesupport (>= 4.0)
140
+ sprockets (>= 3.0.0)
141
+ thor (0.20.0)
142
+ thread_safe (0.3.6)
143
+ timecop (0.9.1)
144
+ tzinfo (1.2.3)
145
+ thread_safe (~> 0.1)
146
+ websocket-driver (0.6.5)
147
+ websocket-extensions (>= 0.1.0)
148
+ websocket-extensions (0.1.2)
149
+
150
+ PLATFORMS
151
+ ruby
152
+
153
+ DEPENDENCIES
154
+ appraisal
155
+ database_cleaner (~> 1)
156
+ factory_girl (~> 4)
157
+ pg
158
+ pry (~> 0)
159
+ pry-byebug (~> 1)
160
+ rails (= 5.1.3)
161
+ reports_kit!
162
+ rspec (~> 3)
163
+ timecop (~> 0)
164
+
165
+ BUNDLED WITH
166
+ 1.15.4
@@ -40,11 +40,11 @@ module ReportsKit
40
40
  end
41
41
  end
42
42
 
43
- def export_csv_button(text='Download CSV', options = {}, &block)
43
+ def export_csv_button(text = 'Download CSV', options = {}, &block)
44
44
  export_button(text, 'csv', options, &block)
45
45
  end
46
46
 
47
- def export_xls_button(text='Download Excel', options = {}, &block)
47
+ def export_xls_button(text = 'Download Excel', options = {}, &block)
48
48
  export_button(text, 'xls', options, &block)
49
49
  end
50
50
 
@@ -45,7 +45,7 @@ module ReportsKit
45
45
  end
46
46
 
47
47
  def aggregate_function
48
- aggregation_expression || :count
48
+ aggregation_expression || [:count, model_class.primary_key]
49
49
  end
50
50
 
51
51
  def aggregation_expression
@@ -1,3 +1,3 @@
1
1
  module ReportsKit
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reports_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Benner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2017-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -190,6 +190,18 @@ files:
190
190
  - gemfiles/mysql.gemfile.lock
191
191
  - gemfiles/postgresql.gemfile
192
192
  - gemfiles/postgresql.gemfile.lock
193
+ - gemfiles/postgresql_rails_5.1.4.gemfile
194
+ - gemfiles/postgresql_rails_5.1.4.gemfile.lock
195
+ - gemfiles/rails_4_mysql.gemfile
196
+ - gemfiles/rails_4_mysql.gemfile.lock
197
+ - gemfiles/rails_4_postgresql.gemfile
198
+ - gemfiles/rails_4_postgresql.gemfile.lock
199
+ - gemfiles/rails_5.1.4_postgresql.gemfile
200
+ - gemfiles/rails_5.1.4_postgresql.gemfile.lock
201
+ - gemfiles/rails_5_mysql.gemfile
202
+ - gemfiles/rails_5_mysql.gemfile.lock
203
+ - gemfiles/rails_5_postgresql.gemfile
204
+ - gemfiles/rails_5_postgresql.gemfile.lock
193
205
  - lib/reports_kit.rb
194
206
  - lib/reports_kit/base_controller.rb
195
207
  - lib/reports_kit/cache.rb