table_creator 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +7 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/gemfiles/rails70.gemfile +9 -0
- data/lib/table_creator/result_group.rb +3 -3
- data/lib/table_creator/version.rb +1 -1
- data/spec/support/coverage_loader.rb +1 -2
- data/table_creator.gemspec +1 -3
- metadata +4 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d6b4ab85bb24f98f7c1dfd7cc4c45d3a9293634a1dbbfebd460b3588dac3504
|
4
|
+
data.tar.gz: 9452cb780da778c9e07a3caaad3b20eb7400634c8e3276f30c6bc8dec1fc2331
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46c0659b1093c0c6ff12fd7393347983037b79a41c8fb7b6bd3ecc7448c881592d09a8df246cd21b694acdd56f83d374fbb4e4f9b69cd2050547daa84d346c60
|
7
|
+
data.tar.gz: 41526f12d201cb11d9ed6d660b09b5871d39f92e9daf4f45869fa7d002441bff4931cc3afa39a656d576b686ff63c3c2a5ec3dac5608dda90b57aabbeafe1622
|
data/.github/workflows/ruby.yml
CHANGED
@@ -5,8 +5,8 @@ jobs:
|
|
5
5
|
strategy:
|
6
6
|
fail-fast: false
|
7
7
|
matrix:
|
8
|
-
gemfile: [rails60, rails61]
|
9
|
-
ruby: ["2.
|
8
|
+
gemfile: [rails60, rails61, rails70]
|
9
|
+
ruby: ["2.7", "3.0", "3.1"]
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
env:
|
12
12
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
@@ -17,3 +17,8 @@ jobs:
|
|
17
17
|
ruby-version: ${{ matrix.ruby }}
|
18
18
|
bundler-cache: true
|
19
19
|
- run: bundle exec rake
|
20
|
+
- name: Coveralls
|
21
|
+
uses: coverallsapp/github-action@master
|
22
|
+
with:
|
23
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
24
|
+
path-to-lcov: coverage/lcov.info
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,8 @@ Table Creator
|
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/table_creator.svg)](http://badge.fury.io/rb/table_creator)
|
5
5
|
[![Build Status](https://github.com/sealink/table_creator/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/table_creator/actions)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/github/sealink/table_creator/badge.svg?branch=master)](https://coveralls.io/github/sealink/table_creator?branch=master)
|
7
|
+
|
6
8
|
|
7
9
|
# DESCRIPTION
|
8
10
|
|
@@ -102,14 +102,14 @@ module TableCreator
|
|
102
102
|
when :sum
|
103
103
|
row.sum[field]
|
104
104
|
end
|
105
|
-
end.compact.
|
105
|
+
end.compact.inject(:+)
|
106
106
|
else
|
107
107
|
@sum[field] = @rows.map do |row|
|
108
108
|
case aggregation
|
109
109
|
when :sum
|
110
110
|
row.send(field) || 0 # encase result is nil
|
111
111
|
end
|
112
|
-
end.compact.
|
112
|
+
end.compact.inject(:+)
|
113
113
|
end
|
114
114
|
end
|
115
115
|
end
|
@@ -155,7 +155,7 @@ module TableCreator
|
|
155
155
|
else
|
156
156
|
rows << format[:data]
|
157
157
|
end
|
158
|
-
|
158
|
+
|
159
159
|
elsif format.is_a? Array
|
160
160
|
rows << format
|
161
161
|
end
|
data/table_creator.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ["lib"]
|
22
|
-
spec.required_ruby_version = '>= 2.
|
22
|
+
spec.required_ruby_version = '>= 2.7'
|
23
23
|
|
24
24
|
spec.add_dependency 'actionpack' # TagHelpers
|
25
25
|
spec.add_dependency 'activesupport' # Hash#except, blank?, etc.
|
@@ -28,7 +28,5 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "rake"
|
29
29
|
spec.add_development_dependency 'rspec'
|
30
30
|
spec.add_development_dependency 'coverage-kit'
|
31
|
-
spec.add_development_dependency 'simplecov-rcov'
|
32
|
-
spec.add_development_dependency 'coveralls'
|
33
31
|
spec.add_development_dependency 'pry'
|
34
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_creator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
@@ -94,34 +94,6 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: simplecov-rcov
|
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: coveralls
|
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
97
|
- !ruby/object:Gem::Dependency
|
126
98
|
name: pry
|
127
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,6 +126,7 @@ files:
|
|
154
126
|
- Rakefile
|
155
127
|
- gemfiles/rails60.gemfile
|
156
128
|
- gemfiles/rails61.gemfile
|
129
|
+
- gemfiles/rails70.gemfile
|
157
130
|
- lib/table_creator.rb
|
158
131
|
- lib/table_creator/col.rb
|
159
132
|
- lib/table_creator/col_group.rb
|
@@ -179,14 +152,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
152
|
requirements:
|
180
153
|
- - ">="
|
181
154
|
- !ruby/object:Gem::Version
|
182
|
-
version: '2.
|
155
|
+
version: '2.7'
|
183
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
157
|
requirements:
|
185
158
|
- - ">="
|
186
159
|
- !ruby/object:Gem::Version
|
187
160
|
version: '0'
|
188
161
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
162
|
+
rubygems_version: 3.3.3
|
190
163
|
signing_key:
|
191
164
|
specification_version: 4
|
192
165
|
summary: Manage sets of data and export.
|