excel_templating 0.3.2 → 0.4.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/rubocop-challenger.yml +26 -0
- data/.github/workflows/test-suite.yml +50 -0
- data/.gitignore +3 -1
- data/.rubocop.ph.yml +4 -27
- data/.rubocop.yml +5 -2
- data/.rubocop_todo.yml +613 -0
- data/Rakefile +0 -2
- data/excel_templating.gemspec +4 -1
- data/gemfiles/Gemfile.rails-5.0.x +5 -0
- data/gemfiles/Gemfile.rails-5.1.x +5 -0
- data/gemfiles/Gemfile.rails-5.2.x +5 -0
- data/gemfiles/Gemfile.rails-6.0.x +5 -0
- data/gemfiles/Gemfile.rails-6.1.x +5 -0
- data/gemfiles/Gemfile.rails-7.0.x +5 -0
- data/gemfiles/Gemfile.rails-edge +5 -0
- data/lib/excel_templating/excel_abstraction/sheet.rb +4 -4
- data/lib/excel_templating/renderer.rb +1 -1
- data/lib/excel_templating/version.rb +3 -2
- data/spec/spec_helper.rb +4 -3
- metadata +59 -13
- data/.rubocop.hound.yml +0 -261
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50434e8ec2758bdd9df7a3d5c738c6a04bd4627ee62c61bbec8c40a9908bf796
|
4
|
+
data.tar.gz: f1593649be14d6655b0431e632b44910752363bf404055b9cd4ef0b50ec4ea62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f895789ad42f43b99a72c4d14e5f040f4fadb514a0f6d0cad8c461dc13335445fbc36691dce94e60ed5b9fe52c2116345b8d5067eadd1d5b98d0a0c4bfd83d65
|
7
|
+
data.tar.gz: beef97950c9379b3ef1ed087657b6f83a8cfc680f4aa6eeb490ca7c4cd23fd3fdad5c510d3d7cd6eb612c348865d86ca1960d8e6a4ad446b4f0f07b2bea08fcb
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: "RuboCop Challenge"
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: '30 23 * * 2,3,4' # この設定の場合、火水木のAM8:30に自動でPRが作られます。
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
create-pr:
|
9
|
+
name: Create Pull Request
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v2
|
13
|
+
- name: Set up Ruby 2.7
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: 2.7.6
|
17
|
+
- name: Install bundler
|
18
|
+
run: gem install bundler
|
19
|
+
- name: Install gems
|
20
|
+
run: bundle install --jobs 4 --retry 3
|
21
|
+
- name: Set git configuration
|
22
|
+
run: git config remote.origin.url "git@github.com:payrollhero/excel_templating.git" # プロジェクトごとに変わる値です。
|
23
|
+
- name: Create RuboCop challenge pull request
|
24
|
+
env:
|
25
|
+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
26
|
+
run: bundle exec rubocop_challenger go --base-branch=master --email=rubocop@payrollhero.com --name="Rubocop Challenger" --mode=random
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: test-suite
|
9
|
+
|
10
|
+
on: [push, pull_request]
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
test:
|
14
|
+
runs-on: ubuntu-20.04
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
gemfile: ["rails-7.0.x"]
|
19
|
+
ruby: [3.2]
|
20
|
+
include:
|
21
|
+
- gemfile: rails-7.0.x
|
22
|
+
ruby: '3.1'
|
23
|
+
- gemfile: rails-7.0.x
|
24
|
+
ruby: '3.0'
|
25
|
+
- gemfile: rails-7.0.x
|
26
|
+
ruby: '2.7'
|
27
|
+
- gemfile: rails-6.1.x
|
28
|
+
ruby: '3.1'
|
29
|
+
- gemfile: rails-6.1.x
|
30
|
+
ruby: '3.0'
|
31
|
+
- gemfile: rails-6.1.x
|
32
|
+
ruby: 2.7
|
33
|
+
- gemfile: rails-6.1.x
|
34
|
+
ruby: 2.6
|
35
|
+
- gemfile: rails-6.0.x
|
36
|
+
ruby: 2.7
|
37
|
+
- gemfile: rails-6.0.x
|
38
|
+
ruby: 2.6
|
39
|
+
- gemfile: rails-5.2.x
|
40
|
+
ruby: 2.6
|
41
|
+
|
42
|
+
env:
|
43
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile.${{ matrix.gemfile }}
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v2
|
46
|
+
- uses: ruby/setup-ruby@v1
|
47
|
+
with:
|
48
|
+
ruby-version: ${{ matrix.ruby }}
|
49
|
+
bundler-cache: true
|
50
|
+
- run: bundle exec rake
|
data/.gitignore
CHANGED
data/.rubocop.ph.yml
CHANGED
@@ -1,44 +1,21 @@
|
|
1
|
-
|
2
|
-
Style/EmptyLinesAroundBody:
|
1
|
+
Layout/EmptyLinesAroundClassBody:
|
3
2
|
Enabled: false
|
4
3
|
|
5
|
-
|
6
|
-
Style/EmptyLinesAroundClassBody:
|
4
|
+
Layout/EmptyLinesAroundModuleBody:
|
7
5
|
Enabled: false
|
8
6
|
|
9
|
-
|
7
|
+
Layout/EmptyLinesAroundMethodBody:
|
10
8
|
Enabled: false
|
11
9
|
|
12
|
-
Style/EmptyLinesAroundMethodBody:
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
# Other
|
16
|
-
|
17
10
|
Style/StringLiterals:
|
18
11
|
Enabled: false
|
19
12
|
|
20
|
-
Style/FileName:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Style/RedundantException:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
Style/SignalException:
|
27
|
-
Enabled: false
|
28
|
-
|
29
|
-
# PH Coding Rules
|
30
|
-
Style/Blocks:
|
31
|
-
Enabled: false
|
32
|
-
|
33
13
|
Style/CollectionMethods:
|
34
14
|
PreferredMethods:
|
35
15
|
detect: find
|
36
16
|
|
37
17
|
# Github's PR width is 120 characters
|
38
|
-
|
18
|
+
Layout/LineLength:
|
39
19
|
Max: 120
|
40
20
|
AllowURI: true
|
41
21
|
|
42
|
-
# Align with the style guide, we don't prefer anything
|
43
|
-
Style/CollectionMethods:
|
44
|
-
Enabled: false
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,613 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2022-12-09 07:53:01 UTC using RuboCop version 1.40.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
12
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
13
|
+
Bundler/OrderedGems:
|
14
|
+
Exclude:
|
15
|
+
- 'Gemfile'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# This cop supports safe autocorrection (--autocorrect).
|
19
|
+
# Configuration parameters: Severity, Include.
|
20
|
+
# Include: **/*.gemspec
|
21
|
+
Gemspec/DeprecatedAttributeAssignment:
|
22
|
+
Exclude:
|
23
|
+
- 'excel_templating.gemspec'
|
24
|
+
|
25
|
+
# Offense count: 2
|
26
|
+
# This cop supports safe autocorrection (--autocorrect).
|
27
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
28
|
+
# Include: **/*.gemspec
|
29
|
+
Gemspec/OrderedDependencies:
|
30
|
+
Exclude:
|
31
|
+
- 'excel_templating.gemspec'
|
32
|
+
|
33
|
+
# Offense count: 1
|
34
|
+
# This cop supports safe autocorrection (--autocorrect).
|
35
|
+
# Configuration parameters: Severity, Include.
|
36
|
+
# Include: **/*.gemspec
|
37
|
+
Gemspec/RequireMFA:
|
38
|
+
Exclude:
|
39
|
+
- 'excel_templating.gemspec'
|
40
|
+
|
41
|
+
# Offense count: 1
|
42
|
+
# Configuration parameters: Severity, Include.
|
43
|
+
# Include: **/*.gemspec
|
44
|
+
Gemspec/RequiredRubyVersion:
|
45
|
+
Exclude:
|
46
|
+
- 'excel_templating.gemspec'
|
47
|
+
|
48
|
+
# Offense count: 1
|
49
|
+
# This cop supports safe autocorrection (--autocorrect).
|
50
|
+
Layout/ElseAlignment:
|
51
|
+
Exclude:
|
52
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
53
|
+
|
54
|
+
# Offense count: 3
|
55
|
+
# This cop supports safe autocorrection (--autocorrect).
|
56
|
+
Layout/EmptyLineAfterGuardClause:
|
57
|
+
Exclude:
|
58
|
+
- 'lib/excel_templating/document_dsl.rb'
|
59
|
+
- 'lib/excel_templating/excel_abstraction/cell_range.rb'
|
60
|
+
- 'lib/excel_templating/renderer.rb'
|
61
|
+
|
62
|
+
# Offense count: 1
|
63
|
+
# This cop supports safe autocorrection (--autocorrect).
|
64
|
+
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
65
|
+
Layout/EmptyLineBetweenDefs:
|
66
|
+
Exclude:
|
67
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
68
|
+
|
69
|
+
# Offense count: 1
|
70
|
+
# This cop supports safe autocorrection (--autocorrect).
|
71
|
+
Layout/EmptyLines:
|
72
|
+
Exclude:
|
73
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
74
|
+
|
75
|
+
# Offense count: 1
|
76
|
+
# This cop supports safe autocorrection (--autocorrect).
|
77
|
+
# Configuration parameters: EnforcedStyle.
|
78
|
+
# SupportedStyles: around, only_before
|
79
|
+
Layout/EmptyLinesAroundAccessModifier:
|
80
|
+
Exclude:
|
81
|
+
- 'lib/excel_templating/render_helper.rb'
|
82
|
+
|
83
|
+
# Offense count: 2
|
84
|
+
# This cop supports safe autocorrection (--autocorrect).
|
85
|
+
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
86
|
+
# AllowedMethods: alias_method, public, protected, private
|
87
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
88
|
+
Exclude:
|
89
|
+
- 'lib/excel_templating/excel_abstraction/row.rb'
|
90
|
+
- 'lib/excel_templating/renderer.rb'
|
91
|
+
|
92
|
+
# Offense count: 1
|
93
|
+
# This cop supports safe autocorrection (--autocorrect).
|
94
|
+
# Configuration parameters: EnforcedStyle.
|
95
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
96
|
+
Layout/EmptyLinesAroundBlockBody:
|
97
|
+
Exclude:
|
98
|
+
- 'spec/excel_abstraction/cell_spec.rb'
|
99
|
+
|
100
|
+
# Offense count: 1
|
101
|
+
# This cop supports safe autocorrection (--autocorrect).
|
102
|
+
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
103
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
104
|
+
Layout/EndAlignment:
|
105
|
+
Exclude:
|
106
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
107
|
+
|
108
|
+
# Offense count: 1
|
109
|
+
# This cop supports safe autocorrection (--autocorrect).
|
110
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
111
|
+
Layout/ExtraSpacing:
|
112
|
+
Exclude:
|
113
|
+
- 'lib/excel_templating/renderer.rb'
|
114
|
+
|
115
|
+
# Offense count: 1
|
116
|
+
# This cop supports safe autocorrection (--autocorrect).
|
117
|
+
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
|
118
|
+
Layout/IndentationWidth:
|
119
|
+
Exclude:
|
120
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
121
|
+
|
122
|
+
# Offense count: 2
|
123
|
+
# This cop supports safe autocorrection (--autocorrect).
|
124
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
125
|
+
Layout/LeadingCommentSpace:
|
126
|
+
Exclude:
|
127
|
+
- 'lib/excel_templating/renderer.rb'
|
128
|
+
|
129
|
+
# Offense count: 1
|
130
|
+
# This cop supports safe autocorrection (--autocorrect).
|
131
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
132
|
+
# SupportedStyles: aligned, indented
|
133
|
+
Layout/MultilineOperationIndentation:
|
134
|
+
Exclude:
|
135
|
+
- 'lib/excel_templating/document/data_source_registry/registry_renderer.rb'
|
136
|
+
|
137
|
+
# Offense count: 1
|
138
|
+
# This cop supports safe autocorrection (--autocorrect).
|
139
|
+
Layout/SpaceAfterComma:
|
140
|
+
Exclude:
|
141
|
+
- 'spec/cell_validation_spec.rb'
|
142
|
+
|
143
|
+
# Offense count: 2
|
144
|
+
# This cop supports safe autocorrection (--autocorrect).
|
145
|
+
# Configuration parameters: EnforcedStyle.
|
146
|
+
# SupportedStyles: space, no_space
|
147
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
148
|
+
Exclude:
|
149
|
+
- 'lib/excel_templating/document_dsl.rb'
|
150
|
+
- 'lib/excel_templating/renderer.rb'
|
151
|
+
|
152
|
+
# Offense count: 1
|
153
|
+
# This cop supports safe autocorrection (--autocorrect).
|
154
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
155
|
+
# SupportedStylesForExponentOperator: space, no_space
|
156
|
+
Layout/SpaceAroundOperators:
|
157
|
+
Exclude:
|
158
|
+
- 'lib/excel_templating/render_helper.rb'
|
159
|
+
|
160
|
+
# Offense count: 17
|
161
|
+
# This cop supports safe autocorrection (--autocorrect).
|
162
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
163
|
+
# SupportedStyles: space, no_space
|
164
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
165
|
+
Layout/SpaceBeforeBlockBraces:
|
166
|
+
Exclude:
|
167
|
+
- 'spec/excel_abstraction/cell_reference_spec.rb'
|
168
|
+
- 'spec/excel_abstraction/cell_spec.rb'
|
169
|
+
- 'spec/excel_abstraction/row_spec.rb'
|
170
|
+
|
171
|
+
# Offense count: 2
|
172
|
+
# This cop supports safe autocorrection (--autocorrect).
|
173
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
174
|
+
# SupportedStyles: space, no_space
|
175
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
176
|
+
Layout/SpaceInsideBlockBraces:
|
177
|
+
Exclude:
|
178
|
+
- 'lib/excel_templating/document/data_source_registry.rb'
|
179
|
+
- 'spec/excel_abstraction/cell_reference_spec.rb'
|
180
|
+
|
181
|
+
# Offense count: 38
|
182
|
+
# This cop supports safe autocorrection (--autocorrect).
|
183
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
184
|
+
# SupportedStyles: space, no_space, compact
|
185
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
186
|
+
Layout/SpaceInsideHashLiteralBraces:
|
187
|
+
Exclude:
|
188
|
+
- 'lib/excel_templating/excel_abstraction/sheet.rb'
|
189
|
+
- 'spec/column_validation_spec.rb'
|
190
|
+
- 'spec/excel_abstraction/cell_range_spec.rb'
|
191
|
+
- 'spec/excel_abstraction/cell_spec.rb'
|
192
|
+
- 'spec/excel_abstraction/row_spec.rb'
|
193
|
+
|
194
|
+
# Offense count: 7
|
195
|
+
# This cop supports safe autocorrection (--autocorrect).
|
196
|
+
Layout/SpaceInsideRangeLiteral:
|
197
|
+
Exclude:
|
198
|
+
- 'lib/excel_templating/render_helper.rb'
|
199
|
+
- 'lib/excel_templating/renderer.rb'
|
200
|
+
- 'lib/excel_templating/rspec_excel_matcher.rb'
|
201
|
+
|
202
|
+
# Offense count: 1
|
203
|
+
# This cop supports safe autocorrection (--autocorrect).
|
204
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
205
|
+
# SupportedStyles: space, no_space
|
206
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
207
|
+
Layout/SpaceInsideReferenceBrackets:
|
208
|
+
Exclude:
|
209
|
+
- 'lib/excel_templating/renderer.rb'
|
210
|
+
|
211
|
+
# Offense count: 1
|
212
|
+
# This cop supports safe autocorrection (--autocorrect).
|
213
|
+
# Configuration parameters: AllowInHeredoc.
|
214
|
+
Layout/TrailingWhitespace:
|
215
|
+
Exclude:
|
216
|
+
- 'lib/excel_templating/document/sheet.rb'
|
217
|
+
|
218
|
+
# Offense count: 4
|
219
|
+
# This cop supports safe autocorrection (--autocorrect).
|
220
|
+
Lint/AmbiguousOperator:
|
221
|
+
Exclude:
|
222
|
+
- 'Rakefile'
|
223
|
+
- 'spec/excel_abstraction/cell_reference_spec.rb'
|
224
|
+
- 'spec/excel_abstraction/cell_spec.rb'
|
225
|
+
|
226
|
+
# Offense count: 5
|
227
|
+
# Configuration parameters: AllowedMethods.
|
228
|
+
# AllowedMethods: enums
|
229
|
+
Lint/ConstantDefinitionInBlock:
|
230
|
+
Exclude:
|
231
|
+
- 'spec/cell_validation_spec.rb'
|
232
|
+
- 'spec/column_validation_spec.rb'
|
233
|
+
- 'spec/excel_templating_spec.rb'
|
234
|
+
|
235
|
+
# Offense count: 2
|
236
|
+
Lint/FloatComparison:
|
237
|
+
Exclude:
|
238
|
+
- 'lib/excel_templating/rspec_excel_matcher.rb'
|
239
|
+
|
240
|
+
# Offense count: 1
|
241
|
+
# This cop supports safe autocorrection (--autocorrect).
|
242
|
+
Lint/RedundantStringCoercion:
|
243
|
+
Exclude:
|
244
|
+
- 'lib/excel_templating/excel_abstraction/sheet.rb'
|
245
|
+
|
246
|
+
# Offense count: 1
|
247
|
+
# This cop supports safe autocorrection (--autocorrect).
|
248
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
249
|
+
Lint/UnusedMethodArgument:
|
250
|
+
Exclude:
|
251
|
+
- 'lib/excel_templating/excel_abstraction/cell_range.rb'
|
252
|
+
|
253
|
+
# Offense count: 1
|
254
|
+
Lint/UselessAssignment:
|
255
|
+
Exclude:
|
256
|
+
- 'spec/excel_abstraction/row_spec.rb'
|
257
|
+
|
258
|
+
# Offense count: 2
|
259
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
260
|
+
Metrics/AbcSize:
|
261
|
+
Max: 26
|
262
|
+
|
263
|
+
# Offense count: 17
|
264
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
265
|
+
# AllowedMethods: refine
|
266
|
+
Metrics/BlockLength:
|
267
|
+
Max: 128
|
268
|
+
|
269
|
+
# Offense count: 1
|
270
|
+
# Configuration parameters: CountComments, CountAsOne.
|
271
|
+
Metrics/ClassLength:
|
272
|
+
Max: 180
|
273
|
+
|
274
|
+
# Offense count: 3
|
275
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
276
|
+
Metrics/MethodLength:
|
277
|
+
Max: 19
|
278
|
+
|
279
|
+
# Offense count: 1
|
280
|
+
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
|
281
|
+
Metrics/ParameterLists:
|
282
|
+
Max: 6
|
283
|
+
|
284
|
+
# Offense count: 1
|
285
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
286
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
287
|
+
Naming/MemoizedInstanceVariableName:
|
288
|
+
Exclude:
|
289
|
+
- 'lib/excel_templating/render_helper.rb'
|
290
|
+
|
291
|
+
# Offense count: 1
|
292
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
|
293
|
+
# NamePrefix: is_, has_, have_
|
294
|
+
# ForbiddenPrefixes: is_, has_, have_
|
295
|
+
# AllowedMethods: is_a?
|
296
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
297
|
+
Naming/PredicateName:
|
298
|
+
Exclude:
|
299
|
+
- 'spec/**/*'
|
300
|
+
- 'lib/excel_templating/document/data_source_registry.rb'
|
301
|
+
|
302
|
+
# Offense count: 4
|
303
|
+
# This cop supports safe autocorrection (--autocorrect).
|
304
|
+
# Configuration parameters: EnforcedStyle.
|
305
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
306
|
+
Style/Alias:
|
307
|
+
Exclude:
|
308
|
+
- 'lib/excel_templating/excel_abstraction/cell_range.rb'
|
309
|
+
- 'lib/excel_templating/excel_abstraction/row.rb'
|
310
|
+
|
311
|
+
# Offense count: 7
|
312
|
+
# This cop supports safe autocorrection (--autocorrect).
|
313
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
314
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
315
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
316
|
+
# FunctionalMethods: let, let!, subject, watch
|
317
|
+
# AllowedMethods: lambda, proc, it
|
318
|
+
Style/BlockDelimiters:
|
319
|
+
Exclude:
|
320
|
+
- 'lib/excel_templating/document/data_source_registry.rb'
|
321
|
+
- 'spec/cell_validation_spec.rb'
|
322
|
+
- 'spec/column_validation_spec.rb'
|
323
|
+
- 'spec/excel_abstraction/spread_sheet_spec.rb'
|
324
|
+
- 'spec/excel_templating_spec.rb'
|
325
|
+
|
326
|
+
# Offense count: 2
|
327
|
+
# This cop supports safe autocorrection (--autocorrect).
|
328
|
+
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
|
329
|
+
Style/CaseEquality:
|
330
|
+
Exclude:
|
331
|
+
- 'lib/excel_templating/excel_abstraction/sheet.rb'
|
332
|
+
|
333
|
+
# Offense count: 6
|
334
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
335
|
+
# Configuration parameters: EnforcedStyle.
|
336
|
+
# SupportedStyles: nested, compact
|
337
|
+
Style/ClassAndModuleChildren:
|
338
|
+
Exclude:
|
339
|
+
- 'lib/excel_templating/document/data_source_registry.rb'
|
340
|
+
- 'lib/excel_templating/document/data_source_registry/registry_list.rb'
|
341
|
+
- 'lib/excel_templating/document/data_source_registry/registry_renderer.rb'
|
342
|
+
- 'lib/excel_templating/document/sheet.rb'
|
343
|
+
- 'lib/excel_templating/document/sheet/repeated_row.rb'
|
344
|
+
- 'lib/excel_templating/rspec_excel_matcher.rb'
|
345
|
+
|
346
|
+
# Offense count: 2
|
347
|
+
# This cop supports safe autocorrection (--autocorrect).
|
348
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
349
|
+
# AllowedMethods: ==, equal?, eql?
|
350
|
+
Style/ClassEqualityComparison:
|
351
|
+
Exclude:
|
352
|
+
- 'lib/excel_templating/rspec_excel_matcher.rb'
|
353
|
+
|
354
|
+
# Offense count: 2
|
355
|
+
# This cop supports safe autocorrection (--autocorrect).
|
356
|
+
# Configuration parameters: Keywords, RequireColon.
|
357
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
|
358
|
+
Style/CommentAnnotation:
|
359
|
+
Exclude:
|
360
|
+
- 'lib/excel_templating/renderer.rb'
|
361
|
+
|
362
|
+
# Offense count: 13
|
363
|
+
# Configuration parameters: AllowedConstants.
|
364
|
+
Style/Documentation:
|
365
|
+
Exclude:
|
366
|
+
- 'spec/**/*'
|
367
|
+
- 'test/**/*'
|
368
|
+
- 'lib/excel_templating/excel_abstraction.rb'
|
369
|
+
- 'lib/excel_templating/excel_abstraction/active_cell_reference.rb'
|
370
|
+
- 'lib/excel_templating/excel_abstraction/cell.rb'
|
371
|
+
- 'lib/excel_templating/excel_abstraction/cell_range.rb'
|
372
|
+
- 'lib/excel_templating/excel_abstraction/cell_reference.rb'
|
373
|
+
- 'lib/excel_templating/excel_abstraction/date.rb'
|
374
|
+
- 'lib/excel_templating/excel_abstraction/row.rb'
|
375
|
+
- 'lib/excel_templating/excel_abstraction/sheet.rb'
|
376
|
+
- 'lib/excel_templating/excel_abstraction/spread_sheet.rb'
|
377
|
+
- 'lib/excel_templating/excel_abstraction/time.rb'
|
378
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
379
|
+
- 'lib/excel_templating/render_helper.rb'
|
380
|
+
- 'lib/excel_templating/renderer.rb'
|
381
|
+
|
382
|
+
# Offense count: 2
|
383
|
+
# This cop supports safe autocorrection (--autocorrect).
|
384
|
+
Style/Encoding:
|
385
|
+
Exclude:
|
386
|
+
- 'Rakefile'
|
387
|
+
- 'excel_templating.gemspec'
|
388
|
+
|
389
|
+
# Offense count: 1
|
390
|
+
# This cop supports safe autocorrection (--autocorrect).
|
391
|
+
Style/ExpandPathArguments:
|
392
|
+
Exclude:
|
393
|
+
- 'excel_templating.gemspec'
|
394
|
+
|
395
|
+
# Offense count: 1
|
396
|
+
# This cop supports safe autocorrection (--autocorrect).
|
397
|
+
Style/ExplicitBlockArgument:
|
398
|
+
Exclude:
|
399
|
+
- 'lib/excel_templating/excel_abstraction/cell_range.rb'
|
400
|
+
|
401
|
+
# Offense count: 41
|
402
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
403
|
+
# Configuration parameters: EnforcedStyle.
|
404
|
+
# SupportedStyles: always, always_true, never
|
405
|
+
Style/FrozenStringLiteralComment:
|
406
|
+
Enabled: false
|
407
|
+
|
408
|
+
# Offense count: 5
|
409
|
+
# This cop supports safe autocorrection (--autocorrect).
|
410
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
411
|
+
Style/GuardClause:
|
412
|
+
Exclude:
|
413
|
+
- 'lib/excel_templating/document/data_source_registry/registry_list.rb'
|
414
|
+
- 'lib/excel_templating/document/sheet.rb'
|
415
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
416
|
+
- 'lib/excel_templating/renderer.rb'
|
417
|
+
|
418
|
+
# Offense count: 1
|
419
|
+
# This cop supports safe autocorrection (--autocorrect).
|
420
|
+
# Configuration parameters: AllowSplatArgument.
|
421
|
+
Style/HashConversion:
|
422
|
+
Exclude:
|
423
|
+
- 'lib/excel_templating/renderer.rb'
|
424
|
+
|
425
|
+
# Offense count: 4
|
426
|
+
# This cop supports safe autocorrection (--autocorrect).
|
427
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
428
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
429
|
+
# SupportedShorthandSyntax: always, never, either, consistent
|
430
|
+
Style/HashSyntax:
|
431
|
+
Exclude:
|
432
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
433
|
+
|
434
|
+
# Offense count: 1
|
435
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
436
|
+
Style/HashTransformKeys:
|
437
|
+
Exclude:
|
438
|
+
- 'lib/excel_templating/renderer.rb'
|
439
|
+
|
440
|
+
# Offense count: 4
|
441
|
+
# This cop supports safe autocorrection (--autocorrect).
|
442
|
+
Style/IfUnlessModifier:
|
443
|
+
Exclude:
|
444
|
+
- 'lib/excel_templating/document/data_source_registry/registry_list.rb'
|
445
|
+
- 'lib/excel_templating/document/sheet.rb'
|
446
|
+
- 'lib/excel_templating/excel_abstraction/work_book.rb'
|
447
|
+
- 'lib/excel_templating/renderer.rb'
|
448
|
+
|
449
|
+
# Offense count: 1
|
450
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
451
|
+
Style/LineEndConcatenation:
|
452
|
+
Exclude:
|
453
|
+
- 'lib/excel_templating/document/data_source_registry/registry_renderer.rb'
|
454
|
+
|
455
|
+
# Offense count: 3
|
456
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
457
|
+
# Configuration parameters: EnforcedStyle.
|
458
|
+
# SupportedStyles: literals, strict
|
459
|
+
Style/MutableConstant:
|
460
|
+
Exclude:
|
461
|
+
- 'lib/excel_templating/excel_abstraction/time.rb'
|
462
|
+
- 'lib/excel_templating/version.rb'
|
463
|
+
|
464
|
+
# Offense count: 1
|
465
|
+
# This cop supports safe autocorrection (--autocorrect).
|
466
|
+
# Configuration parameters: IncludeSemanticChanges.
|
467
|
+
Style/NonNilCheck:
|
468
|
+
Exclude:
|
469
|
+
- 'lib/excel_templating/rspec_excel_matcher.rb'
|
470
|
+
|
471
|
+
# Offense count: 11
|
472
|
+
# This cop supports safe autocorrection (--autocorrect).
|
473
|
+
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
|
474
|
+
Style/NumericLiterals:
|
475
|
+
MinDigits: 7
|
476
|
+
|
477
|
+
# Offense count: 1
|
478
|
+
# Configuration parameters: AllowedMethods.
|
479
|
+
# AllowedMethods: respond_to_missing?
|
480
|
+
Style/OptionalBooleanParameter:
|
481
|
+
Exclude:
|
482
|
+
- 'lib/excel_templating/document_dsl.rb'
|
483
|
+
|
484
|
+
# Offense count: 5
|
485
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
486
|
+
# Configuration parameters: EnforcedStyle.
|
487
|
+
# SupportedStyles: short, verbose
|
488
|
+
Style/PreferredHashMethods:
|
489
|
+
Exclude:
|
490
|
+
- 'lib/excel_templating/document/data_source_registry.rb'
|
491
|
+
- 'lib/excel_templating/document/sheet.rb'
|
492
|
+
- 'lib/excel_templating/document/sheet/repeated_row.rb'
|
493
|
+
- 'lib/excel_templating/renderer.rb'
|
494
|
+
|
495
|
+
# Offense count: 3
|
496
|
+
# This cop supports safe autocorrection (--autocorrect).
|
497
|
+
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
|
498
|
+
# SupportedStyles: compact, exploded
|
499
|
+
Style/RaiseArgs:
|
500
|
+
Exclude:
|
501
|
+
- 'lib/excel_templating/excel_abstraction/active_cell_reference.rb'
|
502
|
+
- 'lib/excel_templating/excel_abstraction/cell.rb'
|
503
|
+
|
504
|
+
# Offense count: 2
|
505
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
506
|
+
# Configuration parameters: SafeForConstants.
|
507
|
+
Style/RedundantFetchBlock:
|
508
|
+
Exclude:
|
509
|
+
- 'lib/excel_templating/excel_abstraction/cell_reference.rb'
|
510
|
+
|
511
|
+
# Offense count: 1
|
512
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
513
|
+
Style/RedundantInterpolation:
|
514
|
+
Exclude:
|
515
|
+
- 'lib/excel_templating/document/data_source_registry/registry_renderer.rb'
|
516
|
+
|
517
|
+
# Offense count: 1
|
518
|
+
# This cop supports safe autocorrection (--autocorrect).
|
519
|
+
Style/RedundantParentheses:
|
520
|
+
Exclude:
|
521
|
+
- 'lib/excel_templating/renderer.rb'
|
522
|
+
|
523
|
+
# Offense count: 8
|
524
|
+
# This cop supports safe autocorrection (--autocorrect).
|
525
|
+
Style/RedundantSelf:
|
526
|
+
Exclude:
|
527
|
+
- 'lib/excel_templating/excel_abstraction/active_cell_reference.rb'
|
528
|
+
- 'lib/excel_templating/excel_abstraction/cell_range.rb'
|
529
|
+
- 'lib/excel_templating/excel_abstraction/cell_reference.rb'
|
530
|
+
|
531
|
+
# Offense count: 1
|
532
|
+
# This cop supports safe autocorrection (--autocorrect).
|
533
|
+
# Configuration parameters: EnforcedStyle.
|
534
|
+
# SupportedStyles: implicit, explicit
|
535
|
+
Style/RescueStandardError:
|
536
|
+
Exclude:
|
537
|
+
- 'lib/excel_templating/rspec_excel_matcher.rb'
|
538
|
+
|
539
|
+
# Offense count: 1
|
540
|
+
# This cop supports safe autocorrection (--autocorrect).
|
541
|
+
Style/SelfAssignment:
|
542
|
+
Exclude:
|
543
|
+
- 'lib/excel_templating/excel_abstraction/sheet.rb'
|
544
|
+
|
545
|
+
# Offense count: 2
|
546
|
+
# This cop supports safe autocorrection (--autocorrect).
|
547
|
+
# Configuration parameters: AllowModifier.
|
548
|
+
Style/SoleNestedConditional:
|
549
|
+
Exclude:
|
550
|
+
- 'lib/excel_templating/excel_abstraction/sheet.rb'
|
551
|
+
|
552
|
+
# Offense count: 1
|
553
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
554
|
+
# Configuration parameters: RequireEnglish.
|
555
|
+
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
556
|
+
Style/SpecialGlobalVars:
|
557
|
+
EnforcedStyle: use_perl_names
|
558
|
+
|
559
|
+
# Offense count: 1
|
560
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
561
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
|
562
|
+
# AllowedMethods: define_method
|
563
|
+
Style/SymbolProc:
|
564
|
+
Exclude:
|
565
|
+
- 'lib/excel_templating/document/data_source_registry.rb'
|
566
|
+
|
567
|
+
# Offense count: 1
|
568
|
+
# This cop supports safe autocorrection (--autocorrect).
|
569
|
+
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
570
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
571
|
+
Style/TernaryParentheses:
|
572
|
+
Exclude:
|
573
|
+
- 'lib/excel_templating/excel_abstraction/cell_reference.rb'
|
574
|
+
|
575
|
+
# Offense count: 3
|
576
|
+
# This cop supports safe autocorrection (--autocorrect).
|
577
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
578
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
579
|
+
Style/TrailingCommaInArguments:
|
580
|
+
Exclude:
|
581
|
+
- 'spec/cell_validation_spec.rb'
|
582
|
+
- 'spec/column_validation_spec.rb'
|
583
|
+
|
584
|
+
# Offense count: 6
|
585
|
+
# This cop supports safe autocorrection (--autocorrect).
|
586
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
587
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
588
|
+
Style/TrailingCommaInHashLiteral:
|
589
|
+
Exclude:
|
590
|
+
- 'spec/cell_validation_spec.rb'
|
591
|
+
- 'spec/excel_templating_spec.rb'
|
592
|
+
|
593
|
+
# Offense count: 2
|
594
|
+
# This cop supports safe autocorrection (--autocorrect).
|
595
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
|
596
|
+
# AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
597
|
+
Style/TrivialAccessors:
|
598
|
+
Exclude:
|
599
|
+
- 'lib/excel_templating/document.rb'
|
600
|
+
|
601
|
+
# Offense count: 6
|
602
|
+
# This cop supports safe autocorrection (--autocorrect).
|
603
|
+
# Configuration parameters: MinSize, WordRegex.
|
604
|
+
# SupportedStyles: percent, brackets
|
605
|
+
Style/WordArray:
|
606
|
+
EnforcedStyle: brackets
|
607
|
+
|
608
|
+
# Offense count: 4
|
609
|
+
# This cop supports safe autocorrection (--autocorrect).
|
610
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
|
611
|
+
# URISchemes: http, https
|
612
|
+
Layout/LineLength:
|
613
|
+
Max: 149
|
data/Rakefile
CHANGED
data/excel_templating.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
|
+
gem.required_ruby_version = "> 2.6", "< 3.2"
|
19
20
|
|
20
21
|
gem.add_dependency "mustache"
|
21
22
|
gem.add_dependency "roo", ">= 2.0.0beta1", "< 3"
|
@@ -23,10 +24,12 @@ Gem::Specification.new do |gem|
|
|
23
24
|
gem.add_dependency "write_xlsx"
|
24
25
|
gem.add_dependency "writeexcel"
|
25
26
|
|
26
|
-
gem.add_development_dependency 'bundler', '
|
27
|
+
gem.add_development_dependency 'bundler', '> 1.17', '< 3'
|
27
28
|
gem.add_development_dependency 'rake', '~> 0.8'
|
28
29
|
gem.add_development_dependency 'rspec', '~> 3.3'
|
30
|
+
gem.add_development_dependency 'rubocop_challenger'
|
29
31
|
gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
|
32
|
+
gem.add_development_dependency "simplecov"
|
30
33
|
gem.add_development_dependency 'yard', '~> 0.8'
|
31
34
|
gem.add_development_dependency 'rspec-its'
|
32
35
|
end
|
@@ -8,8 +8,8 @@ module ExcelAbstraction
|
|
8
8
|
@active_cell_reference = ExcelAbstraction::ActiveCellReference.new
|
9
9
|
end
|
10
10
|
|
11
|
-
def header(value, options
|
12
|
-
cell(value, {bold: 1}.merge(options))
|
11
|
+
def header(value, **options)
|
12
|
+
cell(value, **{bold: 1}.merge(options))
|
13
13
|
self
|
14
14
|
end
|
15
15
|
|
@@ -47,8 +47,8 @@ module ExcelAbstraction
|
|
47
47
|
active_cell_reference.newline
|
48
48
|
end
|
49
49
|
|
50
|
-
def cells(array, options
|
51
|
-
Array(array).each { |value| cell(value, options) }
|
50
|
+
def cells(array, **options)
|
51
|
+
Array(array).each { |value| cell(value, **options) }
|
52
52
|
self
|
53
53
|
end
|
54
54
|
|
@@ -78,7 +78,7 @@ module ExcelTemplating
|
|
78
78
|
if column_styles || default_style
|
79
79
|
roo_columns(template_sheet).each do |column_number|
|
80
80
|
style = column_styles[column_number] || default_style
|
81
|
-
active_sheet.style_col(column_number - 1, style) # Note: Styling columns is zero indexed
|
81
|
+
active_sheet.style_col(column_number - 1, **style) # Note: Styling columns is zero indexed
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
require '
|
2
|
-
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.minimum_coverage 97
|
3
|
+
SimpleCov.start 'rails'
|
4
|
+
|
3
5
|
require 'rspec'
|
4
6
|
require 'excel_templating/version'
|
5
7
|
require 'excel_templating'
|
6
8
|
require 'excel_helper'
|
7
9
|
require 'excel_templating/rspec_excel_matcher'
|
8
10
|
require 'rspec/its'
|
9
|
-
require 'byebug'
|
10
11
|
|
11
12
|
RSpec.configure do |config|
|
12
13
|
config.include ExcelHelper
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excel_templating
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bramski
|
8
8
|
- Mykola Kyryk
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mustache
|
@@ -91,16 +91,22 @@ dependencies:
|
|
91
91
|
name: bundler
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.17'
|
97
|
+
- - "<"
|
95
98
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
99
|
+
version: '3'
|
97
100
|
type: :development
|
98
101
|
prerelease: false
|
99
102
|
version_requirements: !ruby/object:Gem::Requirement
|
100
103
|
requirements:
|
101
|
-
- - "
|
104
|
+
- - ">"
|
102
105
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
106
|
+
version: '1.17'
|
107
|
+
- - "<"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3'
|
104
110
|
- !ruby/object:Gem::Dependency
|
105
111
|
name: rake
|
106
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +135,20 @@ dependencies:
|
|
129
135
|
- - "~>"
|
130
136
|
- !ruby/object:Gem::Version
|
131
137
|
version: '3.3'
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: rubocop_challenger
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
type: :development
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
132
152
|
- !ruby/object:Gem::Dependency
|
133
153
|
name: rubygems-tasks
|
134
154
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,6 +163,20 @@ dependencies:
|
|
143
163
|
- - "~>"
|
144
164
|
- !ruby/object:Gem::Version
|
145
165
|
version: '0.2'
|
166
|
+
- !ruby/object:Gem::Dependency
|
167
|
+
name: simplecov
|
168
|
+
requirement: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
type: :development
|
174
|
+
prerelease: false
|
175
|
+
version_requirements: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
146
180
|
- !ruby/object:Gem::Dependency
|
147
181
|
name: yard
|
148
182
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,11 +212,13 @@ extensions: []
|
|
178
212
|
extra_rdoc_files: []
|
179
213
|
files:
|
180
214
|
- ".document"
|
215
|
+
- ".github/workflows/rubocop-challenger.yml"
|
216
|
+
- ".github/workflows/test-suite.yml"
|
181
217
|
- ".gitignore"
|
182
218
|
- ".rspec"
|
183
|
-
- ".rubocop.hound.yml"
|
184
219
|
- ".rubocop.ph.yml"
|
185
220
|
- ".rubocop.yml"
|
221
|
+
- ".rubocop_todo.yml"
|
186
222
|
- ".yardopts"
|
187
223
|
- ChangeLog.md
|
188
224
|
- Gemfile
|
@@ -190,6 +226,13 @@ files:
|
|
190
226
|
- README.md
|
191
227
|
- Rakefile
|
192
228
|
- excel_templating.gemspec
|
229
|
+
- gemfiles/Gemfile.rails-5.0.x
|
230
|
+
- gemfiles/Gemfile.rails-5.1.x
|
231
|
+
- gemfiles/Gemfile.rails-5.2.x
|
232
|
+
- gemfiles/Gemfile.rails-6.0.x
|
233
|
+
- gemfiles/Gemfile.rails-6.1.x
|
234
|
+
- gemfiles/Gemfile.rails-7.0.x
|
235
|
+
- gemfiles/Gemfile.rails-edge
|
193
236
|
- lib/excel_templating.rb
|
194
237
|
- lib/excel_templating/document.rb
|
195
238
|
- lib/excel_templating/document/data_source_registry.rb
|
@@ -238,23 +281,26 @@ homepage: https://github.com/payrollhero/excel_templating
|
|
238
281
|
licenses:
|
239
282
|
- MIT
|
240
283
|
metadata: {}
|
241
|
-
post_install_message:
|
284
|
+
post_install_message:
|
242
285
|
rdoc_options: []
|
243
286
|
require_paths:
|
244
287
|
- lib
|
245
288
|
required_ruby_version: !ruby/object:Gem::Requirement
|
246
289
|
requirements:
|
247
|
-
- - "
|
290
|
+
- - ">"
|
248
291
|
- !ruby/object:Gem::Version
|
249
|
-
version: '
|
292
|
+
version: '2.6'
|
293
|
+
- - "<"
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '3.2'
|
250
296
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
297
|
requirements:
|
252
298
|
- - ">="
|
253
299
|
- !ruby/object:Gem::Version
|
254
300
|
version: '0'
|
255
301
|
requirements: []
|
256
|
-
rubygems_version: 3.
|
257
|
-
signing_key:
|
302
|
+
rubygems_version: 3.2.33
|
303
|
+
signing_key:
|
258
304
|
specification_version: 4
|
259
305
|
summary: A library which allows you to slam data into excel files using mustaching.
|
260
306
|
test_files:
|
data/.rubocop.hound.yml
DELETED
@@ -1,261 +0,0 @@
|
|
1
|
-
# this is the default from hound's github, do not modify
|
2
|
-
AllCops:
|
3
|
-
Exclude:
|
4
|
-
- db/schema.rb
|
5
|
-
|
6
|
-
AccessorMethodName:
|
7
|
-
Enabled: false
|
8
|
-
|
9
|
-
ActionFilter:
|
10
|
-
Enabled: false
|
11
|
-
|
12
|
-
Alias:
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
ArrayJoin:
|
16
|
-
Enabled: false
|
17
|
-
|
18
|
-
AsciiComments:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
AsciiIdentifiers:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Attr:
|
25
|
-
Enabled: false
|
26
|
-
|
27
|
-
BlockNesting:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
CaseEquality:
|
31
|
-
Enabled: false
|
32
|
-
|
33
|
-
CharacterLiteral:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
ClassAndModuleChildren:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
ClassLength:
|
40
|
-
Enabled: false
|
41
|
-
|
42
|
-
ClassVars:
|
43
|
-
Enabled: false
|
44
|
-
|
45
|
-
CollectionMethods:
|
46
|
-
PreferredMethods:
|
47
|
-
find: detect
|
48
|
-
reduce: inject
|
49
|
-
collect: map
|
50
|
-
find_all: select
|
51
|
-
|
52
|
-
ColonMethodCall:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
CommentAnnotation:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
CyclomaticComplexity:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Delegate:
|
62
|
-
Enabled: false
|
63
|
-
|
64
|
-
DeprecatedHashMethods:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
Documentation:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
DotPosition:
|
71
|
-
EnforcedStyle: trailing
|
72
|
-
|
73
|
-
DoubleNegation:
|
74
|
-
Enabled: false
|
75
|
-
|
76
|
-
EachWithObject:
|
77
|
-
Enabled: false
|
78
|
-
|
79
|
-
EmptyLiteral:
|
80
|
-
Enabled: false
|
81
|
-
|
82
|
-
Encoding:
|
83
|
-
Enabled: false
|
84
|
-
|
85
|
-
EvenOdd:
|
86
|
-
Enabled: false
|
87
|
-
|
88
|
-
FileName:
|
89
|
-
Enabled: false
|
90
|
-
|
91
|
-
FlipFlop:
|
92
|
-
Enabled: false
|
93
|
-
|
94
|
-
FormatString:
|
95
|
-
Enabled: false
|
96
|
-
|
97
|
-
GlobalVars:
|
98
|
-
Enabled: false
|
99
|
-
|
100
|
-
GuardClause:
|
101
|
-
Enabled: false
|
102
|
-
|
103
|
-
IfUnlessModifier:
|
104
|
-
Enabled: false
|
105
|
-
|
106
|
-
IfWithSemicolon:
|
107
|
-
Enabled: false
|
108
|
-
|
109
|
-
InlineComment:
|
110
|
-
Enabled: false
|
111
|
-
|
112
|
-
Lambda:
|
113
|
-
Enabled: false
|
114
|
-
|
115
|
-
LambdaCall:
|
116
|
-
Enabled: false
|
117
|
-
|
118
|
-
LineEndConcatenation:
|
119
|
-
Enabled: false
|
120
|
-
|
121
|
-
LineLength:
|
122
|
-
Max: 120
|
123
|
-
AllowURI: true
|
124
|
-
|
125
|
-
MethodLength:
|
126
|
-
Enabled: false
|
127
|
-
|
128
|
-
ModuleFunction:
|
129
|
-
Enabled: false
|
130
|
-
|
131
|
-
NegatedIf:
|
132
|
-
Enabled: false
|
133
|
-
|
134
|
-
NegatedWhile:
|
135
|
-
Enabled: false
|
136
|
-
|
137
|
-
Next:
|
138
|
-
Enabled: false
|
139
|
-
|
140
|
-
NilComparison:
|
141
|
-
Enabled: false
|
142
|
-
|
143
|
-
Not:
|
144
|
-
Enabled: false
|
145
|
-
|
146
|
-
NumericLiterals:
|
147
|
-
Enabled: false
|
148
|
-
|
149
|
-
OneLineConditional:
|
150
|
-
Enabled: false
|
151
|
-
|
152
|
-
OpMethod:
|
153
|
-
Enabled: false
|
154
|
-
|
155
|
-
ParameterLists:
|
156
|
-
Enabled: false
|
157
|
-
|
158
|
-
PercentLiteralDelimiters:
|
159
|
-
Enabled: false
|
160
|
-
|
161
|
-
PerlBackrefs:
|
162
|
-
Enabled: false
|
163
|
-
|
164
|
-
PredicateName:
|
165
|
-
NamePrefixBlacklist:
|
166
|
-
- is_
|
167
|
-
|
168
|
-
Proc:
|
169
|
-
Enabled: false
|
170
|
-
|
171
|
-
RaiseArgs:
|
172
|
-
Enabled: false
|
173
|
-
|
174
|
-
RegexpLiteral:
|
175
|
-
Enabled: false
|
176
|
-
|
177
|
-
SelfAssignment:
|
178
|
-
Enabled: false
|
179
|
-
|
180
|
-
SingleLineBlockParams:
|
181
|
-
Enabled: false
|
182
|
-
|
183
|
-
SingleLineMethods:
|
184
|
-
Enabled: false
|
185
|
-
|
186
|
-
SignalException:
|
187
|
-
Enabled: false
|
188
|
-
|
189
|
-
SpecialGlobalVars:
|
190
|
-
Enabled: false
|
191
|
-
|
192
|
-
StringLiterals:
|
193
|
-
EnforcedStyle: double_quotes
|
194
|
-
|
195
|
-
VariableInterpolation:
|
196
|
-
Enabled: false
|
197
|
-
|
198
|
-
TrailingComma:
|
199
|
-
Enabled: false
|
200
|
-
|
201
|
-
TrivialAccessors:
|
202
|
-
Enabled: false
|
203
|
-
|
204
|
-
VariableInterpolation:
|
205
|
-
Enabled: false
|
206
|
-
|
207
|
-
WhenThen:
|
208
|
-
Enabled: false
|
209
|
-
|
210
|
-
WhileUntilModifier:
|
211
|
-
Enabled: false
|
212
|
-
|
213
|
-
WordArray:
|
214
|
-
Enabled: false
|
215
|
-
|
216
|
-
# Lint
|
217
|
-
|
218
|
-
AmbiguousOperator:
|
219
|
-
Enabled: false
|
220
|
-
|
221
|
-
AmbiguousRegexpLiteral:
|
222
|
-
Enabled: false
|
223
|
-
|
224
|
-
AssignmentInCondition:
|
225
|
-
Enabled: false
|
226
|
-
|
227
|
-
ConditionPosition:
|
228
|
-
Enabled: false
|
229
|
-
|
230
|
-
DeprecatedClassMethods:
|
231
|
-
Enabled: false
|
232
|
-
|
233
|
-
ElseLayout:
|
234
|
-
Enabled: false
|
235
|
-
|
236
|
-
HandleExceptions:
|
237
|
-
Enabled: false
|
238
|
-
|
239
|
-
InvalidCharacterLiteral:
|
240
|
-
Enabled: false
|
241
|
-
|
242
|
-
LiteralInCondition:
|
243
|
-
Enabled: false
|
244
|
-
|
245
|
-
LiteralInInterpolation:
|
246
|
-
Enabled: false
|
247
|
-
|
248
|
-
Loop:
|
249
|
-
Enabled: false
|
250
|
-
|
251
|
-
ParenthesesAsGroupedExpression:
|
252
|
-
Enabled: false
|
253
|
-
|
254
|
-
RequireParentheses:
|
255
|
-
Enabled: false
|
256
|
-
|
257
|
-
UnderscorePrefixedVariableName:
|
258
|
-
Enabled: false
|
259
|
-
|
260
|
-
Void:
|
261
|
-
Enabled: false
|