table_creator 0.2.0 → 0.4.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.
- checksums.yaml +4 -4
- data/.git-blame-ignore-revs +12 -0
- data/.github/workflows/ruby.yml +7 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +12 -4
- 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 +5 -31
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d983dd064833eb1721262b2299a012c5d51f3cd8b2ab8263e22648d920f0397
|
|
4
|
+
data.tar.gz: 3fd92e0ae3e588ef991f3b8ec85a6ad89f1dc79e416a09edad88935747f1b258
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b18c6728140a49979f11557dd4f93b407612a8c956ebf980f7c981df12ada27c18837f88a891672fc62a52b0faa016b89181431a4d636d37bb90727f6d627b0e
|
|
7
|
+
data.tar.gz: 42c9bc6f354b971a191e9c5fd677d7994e362e82e3705e0ac6229283f9986dcd68190577f0905da9123c13a4c9af969c22feacc6150393fbb9eec217308834f3
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# The commits that did automated reformatting. You can ignore them
|
|
2
|
+
# during git-blame with `--ignore-rev` or `--ignore-revs-file`.
|
|
3
|
+
# You can also globally configure GIT with the following command
|
|
4
|
+
#
|
|
5
|
+
# $ git config --add 'blame.ignoreRevsFile' '.git-blame-ignore-revs'
|
|
6
|
+
#
|
|
7
|
+
# Example entries:
|
|
8
|
+
#
|
|
9
|
+
# <full commit hash> # initial black-format
|
|
10
|
+
# <full commit hash> # rename something internal
|
|
11
|
+
|
|
12
|
+
0efc4f078f1e3428f6da1e2838c35cdc475a24ac # Pretty CHANGELOG.md
|
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: ["
|
|
8
|
+
gemfile: [rails60, rails61, rails70]
|
|
9
|
+
ruby: ["3.0", "3.1", "3.2"]
|
|
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.2.0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
- [PLAT-1175] Update to Ruby 3.2
|
|
6
|
+
|
|
7
|
+
## 0.3.0
|
|
8
|
+
|
|
9
|
+
- [PLAT=183] Add Ruby 3.1, Rails 7 and coverage-kit upgrade
|
|
10
|
+
|
|
3
11
|
## 0.2.0
|
|
4
12
|
|
|
5
13
|
- [TT-8630] Update to build with github actions / ruby 3.0 / rails 6.1
|
|
6
14
|
|
|
7
15
|
## 0.1.1
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
- Restore support for manual links
|
|
10
18
|
|
|
11
19
|
## 0.1.0
|
|
12
20
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
- Improve class names
|
|
22
|
+
- Improve formatters
|
|
23
|
+
- Use coverage kit to enforce maximum coverage
|
data/README.md
CHANGED
|
@@ -3,6 +3,8 @@ Table Creator
|
|
|
3
3
|
|
|
4
4
|
[](http://badge.fury.io/rb/table_creator)
|
|
5
5
|
[](https://github.com/sealink/table_creator/actions)
|
|
6
|
+
[](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 = '>=
|
|
22
|
+
spec.required_ruby_version = '>= 3.0'
|
|
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.4.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
|
|
@@ -142,6 +114,7 @@ executables: []
|
|
|
142
114
|
extensions: []
|
|
143
115
|
extra_rdoc_files: []
|
|
144
116
|
files:
|
|
117
|
+
- ".git-blame-ignore-revs"
|
|
145
118
|
- ".github/dependabot.yml"
|
|
146
119
|
- ".github/workflows/release.yml"
|
|
147
120
|
- ".github/workflows/ruby.yml"
|
|
@@ -154,6 +127,7 @@ files:
|
|
|
154
127
|
- Rakefile
|
|
155
128
|
- gemfiles/rails60.gemfile
|
|
156
129
|
- gemfiles/rails61.gemfile
|
|
130
|
+
- gemfiles/rails70.gemfile
|
|
157
131
|
- lib/table_creator.rb
|
|
158
132
|
- lib/table_creator/col.rb
|
|
159
133
|
- lib/table_creator/col_group.rb
|
|
@@ -179,14 +153,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
179
153
|
requirements:
|
|
180
154
|
- - ">="
|
|
181
155
|
- !ruby/object:Gem::Version
|
|
182
|
-
version: '
|
|
156
|
+
version: '3.0'
|
|
183
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
158
|
requirements:
|
|
185
159
|
- - ">="
|
|
186
160
|
- !ruby/object:Gem::Version
|
|
187
161
|
version: '0'
|
|
188
162
|
requirements: []
|
|
189
|
-
rubygems_version: 3.
|
|
163
|
+
rubygems_version: 3.4.1
|
|
190
164
|
signing_key:
|
|
191
165
|
specification_version: 4
|
|
192
166
|
summary: Manage sets of data and export.
|