rails_core_extensions 0.11.3 → 0.12.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/.github/workflows/ruby.yml +7 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails70.gemfile +6 -0
- data/lib/rails_core_extensions/version.rb +1 -1
- data/rails_core_extensions.gemspec +1 -3
- data/spec/support/coverage_loader.rb +0 -2
- metadata +5 -34
- data/.hound.yml +0 -2
- data/.ruby-style.yml +0 -217
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e362185defe03c222c8b0d0cf77b3281f0fac38fde27f90ed1273d026bb28d7
|
|
4
|
+
data.tar.gz: 4f91461d5666fdb4ce836c50e11d0808a27da50605f40343e3c0b17cf53e441f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b73a245c3f1039fed5d0b2246d3b758a452364a114af36972ecfbeef970c426389271b9eac2feab4da7d0147b133532477dea28506f5b9cdb486ab943b396b3d
|
|
7
|
+
data.tar.gz: 101efda04a0f37b08757be11b4e2d89314e99d3e8935de832d550bd0dae4046d3c69eb9ec124c428dd9c62d59341a2f9015fc98d6619ca8a16329818b2613e83
|
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
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
20
20
|
spec.require_paths = ['lib']
|
|
21
|
-
spec.required_ruby_version = '>= 2.
|
|
21
|
+
spec.required_ruby_version = '>= 2.7'
|
|
22
22
|
|
|
23
23
|
spec.add_dependency 'activerecord', ['>= 6.0.0']
|
|
24
24
|
spec.add_dependency 'actionpack', ['>= 6.0.0']
|
|
@@ -28,8 +28,6 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_development_dependency 'rspec'
|
|
29
29
|
spec.add_development_dependency 'activerecord-nulldb-adapter'
|
|
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 'rubocop'
|
|
34
32
|
spec.add_development_dependency 'sqlite3'
|
|
35
33
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_core_extensions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Noack
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-01-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
@@ -109,34 +109,6 @@ dependencies:
|
|
|
109
109
|
- - ">="
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
111
|
version: '0'
|
|
112
|
-
- !ruby/object:Gem::Dependency
|
|
113
|
-
name: simplecov-rcov
|
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
|
115
|
-
requirements:
|
|
116
|
-
- - ">="
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: '0'
|
|
119
|
-
type: :development
|
|
120
|
-
prerelease: false
|
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
-
requirements:
|
|
123
|
-
- - ">="
|
|
124
|
-
- !ruby/object:Gem::Version
|
|
125
|
-
version: '0'
|
|
126
|
-
- !ruby/object:Gem::Dependency
|
|
127
|
-
name: coveralls
|
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
|
129
|
-
requirements:
|
|
130
|
-
- - ">="
|
|
131
|
-
- !ruby/object:Gem::Version
|
|
132
|
-
version: '0'
|
|
133
|
-
type: :development
|
|
134
|
-
prerelease: false
|
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
136
|
-
requirements:
|
|
137
|
-
- - ">="
|
|
138
|
-
- !ruby/object:Gem::Version
|
|
139
|
-
version: '0'
|
|
140
112
|
- !ruby/object:Gem::Dependency
|
|
141
113
|
name: rubocop
|
|
142
114
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -176,9 +148,7 @@ files:
|
|
|
176
148
|
- ".github/workflows/release.yml"
|
|
177
149
|
- ".github/workflows/ruby.yml"
|
|
178
150
|
- ".gitignore"
|
|
179
|
-
- ".hound.yml"
|
|
180
151
|
- ".rspec"
|
|
181
|
-
- ".ruby-style.yml"
|
|
182
152
|
- ".ruby-version"
|
|
183
153
|
- CHANGELOG.md
|
|
184
154
|
- Gemfile
|
|
@@ -187,6 +157,7 @@ files:
|
|
|
187
157
|
- Rakefile
|
|
188
158
|
- gemfiles/rails60.gemfile
|
|
189
159
|
- gemfiles/rails61.gemfile
|
|
160
|
+
- gemfiles/rails70.gemfile
|
|
190
161
|
- lib/rails_core_extensions.rb
|
|
191
162
|
- lib/rails_core_extensions/action_controller_sortable.rb
|
|
192
163
|
- lib/rails_core_extensions/action_view_extensions.rb
|
|
@@ -233,14 +204,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
233
204
|
requirements:
|
|
234
205
|
- - ">="
|
|
235
206
|
- !ruby/object:Gem::Version
|
|
236
|
-
version: '2.
|
|
207
|
+
version: '2.7'
|
|
237
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
209
|
requirements:
|
|
239
210
|
- - ">="
|
|
240
211
|
- !ruby/object:Gem::Version
|
|
241
212
|
version: '0'
|
|
242
213
|
requirements: []
|
|
243
|
-
rubygems_version: 3.
|
|
214
|
+
rubygems_version: 3.3.3
|
|
244
215
|
signing_key:
|
|
245
216
|
specification_version: 4
|
|
246
217
|
summary: Set of extensions to core rails libraries.
|
data/.hound.yml
DELETED
data/.ruby-style.yml
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
Exclude:
|
|
3
|
-
- "vendor/**/*"
|
|
4
|
-
- "db/schema.rb"
|
|
5
|
-
UseCache: false
|
|
6
|
-
Style/CollectionMethods:
|
|
7
|
-
Description: Preferred collection methods.
|
|
8
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
|
|
9
|
-
Enabled: true
|
|
10
|
-
PreferredMethods:
|
|
11
|
-
collect: map
|
|
12
|
-
collect!: map!
|
|
13
|
-
find: detect
|
|
14
|
-
find_all: select
|
|
15
|
-
reduce: inject
|
|
16
|
-
Layout/DotPosition:
|
|
17
|
-
Description: Checks the position of the dot in multi-line method calls.
|
|
18
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
|
19
|
-
Enabled: true
|
|
20
|
-
EnforcedStyle: trailing
|
|
21
|
-
SupportedStyles:
|
|
22
|
-
- leading
|
|
23
|
-
- trailing
|
|
24
|
-
Naming/FileName:
|
|
25
|
-
Description: Use snake_case for source file names.
|
|
26
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
|
|
27
|
-
Enabled: false
|
|
28
|
-
Exclude: []
|
|
29
|
-
Style/GuardClause:
|
|
30
|
-
Description: Check for conditionals that can be replaced with guard clauses
|
|
31
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
|
|
32
|
-
Enabled: false
|
|
33
|
-
MinBodyLength: 1
|
|
34
|
-
Style/IfUnlessModifier:
|
|
35
|
-
Description: Favor modifier if/unless usage when you have a single-line body.
|
|
36
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
|
|
37
|
-
Enabled: false
|
|
38
|
-
Style/OptionHash:
|
|
39
|
-
Description: Don't use option hashes when you can use keyword arguments.
|
|
40
|
-
Enabled: false
|
|
41
|
-
Style/PercentLiteralDelimiters:
|
|
42
|
-
Description: Use `%`-literal delimiters consistently
|
|
43
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
|
|
44
|
-
Enabled: false
|
|
45
|
-
PreferredDelimiters:
|
|
46
|
-
"%": "()"
|
|
47
|
-
"%i": "()"
|
|
48
|
-
"%q": "()"
|
|
49
|
-
"%Q": "()"
|
|
50
|
-
"%r": "{}"
|
|
51
|
-
"%s": "()"
|
|
52
|
-
"%w": "()"
|
|
53
|
-
"%W": "()"
|
|
54
|
-
"%x": "()"
|
|
55
|
-
Naming/PredicateName:
|
|
56
|
-
Description: Check the names of predicate methods.
|
|
57
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
|
|
58
|
-
Enabled: true
|
|
59
|
-
NamePrefix:
|
|
60
|
-
- is_
|
|
61
|
-
- has_
|
|
62
|
-
- have_
|
|
63
|
-
NamePrefixBlacklist:
|
|
64
|
-
- is_
|
|
65
|
-
Exclude:
|
|
66
|
-
- spec/**/*
|
|
67
|
-
Style/RaiseArgs:
|
|
68
|
-
Description: Checks the arguments passed to raise/fail.
|
|
69
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
|
|
70
|
-
Enabled: false
|
|
71
|
-
EnforcedStyle: exploded
|
|
72
|
-
SupportedStyles:
|
|
73
|
-
- compact
|
|
74
|
-
- exploded
|
|
75
|
-
Style/SignalException:
|
|
76
|
-
Description: Checks for proper usage of fail and raise.
|
|
77
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
|
|
78
|
-
Enabled: false
|
|
79
|
-
EnforcedStyle: semantic
|
|
80
|
-
SupportedStyles:
|
|
81
|
-
- only_raise
|
|
82
|
-
- only_fail
|
|
83
|
-
- semantic
|
|
84
|
-
Style/SingleLineBlockParams:
|
|
85
|
-
Description: Enforces the names of some block params.
|
|
86
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
|
|
87
|
-
Enabled: false
|
|
88
|
-
Methods:
|
|
89
|
-
- reduce:
|
|
90
|
-
- a
|
|
91
|
-
- e
|
|
92
|
-
- inject:
|
|
93
|
-
- a
|
|
94
|
-
- e
|
|
95
|
-
Style/SingleLineMethods:
|
|
96
|
-
Description: Avoid single-line methods.
|
|
97
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
|
|
98
|
-
Enabled: false
|
|
99
|
-
AllowIfMethodIsEmpty: true
|
|
100
|
-
Style/TrailingCommaInArguments:
|
|
101
|
-
Description: Checks for trailing comma in argument lists.
|
|
102
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
|
|
103
|
-
EnforcedStyleForMultiline: comma
|
|
104
|
-
Enabled: true
|
|
105
|
-
Style/TrailingCommaInArrayLiteral:
|
|
106
|
-
Description: Checks for trailing comma in array and hash literals.
|
|
107
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
|
|
108
|
-
EnforcedStyleForMultiline: comma
|
|
109
|
-
Enabled: true
|
|
110
|
-
Metrics/AbcSize:
|
|
111
|
-
Description: A calculated magnitude based on number of assignments, branches, and
|
|
112
|
-
conditions.
|
|
113
|
-
Enabled: false
|
|
114
|
-
Max: 15
|
|
115
|
-
Metrics/ClassLength:
|
|
116
|
-
Description: Avoid classes longer than 100 lines of code.
|
|
117
|
-
Enabled: false
|
|
118
|
-
CountComments: false
|
|
119
|
-
Max: 100
|
|
120
|
-
Metrics/ModuleLength:
|
|
121
|
-
CountComments: false
|
|
122
|
-
Max: 100
|
|
123
|
-
Description: Avoid modules longer than 100 lines of code.
|
|
124
|
-
Enabled: false
|
|
125
|
-
Metrics/CyclomaticComplexity:
|
|
126
|
-
Description: A complexity metric that is strongly correlated to the number of test
|
|
127
|
-
cases needed to validate a method.
|
|
128
|
-
Enabled: false
|
|
129
|
-
Max: 6
|
|
130
|
-
Metrics/MethodLength:
|
|
131
|
-
Description: Avoid methods longer than 10 lines of code.
|
|
132
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
|
|
133
|
-
Enabled: false
|
|
134
|
-
CountComments: false
|
|
135
|
-
Max: 10
|
|
136
|
-
Metrics/ParameterLists:
|
|
137
|
-
Description: Avoid parameter lists longer than three or four parameters.
|
|
138
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
|
|
139
|
-
Enabled: false
|
|
140
|
-
Max: 5
|
|
141
|
-
CountKeywordArgs: true
|
|
142
|
-
Metrics/PerceivedComplexity:
|
|
143
|
-
Description: A complexity metric geared towards measuring complexity for a human
|
|
144
|
-
reader.
|
|
145
|
-
Enabled: false
|
|
146
|
-
Max: 7
|
|
147
|
-
Lint/AssignmentInCondition:
|
|
148
|
-
Description: Don't use assignment in conditions.
|
|
149
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
|
|
150
|
-
Enabled: false
|
|
151
|
-
AllowSafeAssignment: true
|
|
152
|
-
Style/InlineComment:
|
|
153
|
-
Description: Avoid inline comments.
|
|
154
|
-
Enabled: false
|
|
155
|
-
Naming/AccessorMethodName:
|
|
156
|
-
Description: Check the naming of accessor methods for get_/set_.
|
|
157
|
-
Enabled: false
|
|
158
|
-
Style/Alias:
|
|
159
|
-
Description: Use alias_method instead of alias.
|
|
160
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
|
|
161
|
-
Enabled: false
|
|
162
|
-
Style/Documentation:
|
|
163
|
-
Description: Document classes and non-namespace modules.
|
|
164
|
-
Enabled: false
|
|
165
|
-
Style/DoubleNegation:
|
|
166
|
-
Description: Checks for uses of double negation (!!).
|
|
167
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
|
|
168
|
-
Enabled: false
|
|
169
|
-
Style/EachWithObject:
|
|
170
|
-
Description: Prefer `each_with_object` over `inject` or `reduce`.
|
|
171
|
-
Enabled: false
|
|
172
|
-
Style/EmptyLiteral:
|
|
173
|
-
Description: Prefer literals to Array.new/Hash.new/String.new.
|
|
174
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
|
|
175
|
-
Enabled: false
|
|
176
|
-
Style/ModuleFunction:
|
|
177
|
-
Description: Checks for usage of `extend self` in modules.
|
|
178
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
|
|
179
|
-
Enabled: false
|
|
180
|
-
Style/OneLineConditional:
|
|
181
|
-
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
|
182
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
|
|
183
|
-
Enabled: false
|
|
184
|
-
Style/PerlBackrefs:
|
|
185
|
-
Description: Avoid Perl-style regex back references.
|
|
186
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
|
|
187
|
-
Enabled: false
|
|
188
|
-
Style/Send:
|
|
189
|
-
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
|
|
190
|
-
may overlap with existing methods.
|
|
191
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
|
|
192
|
-
Enabled: false
|
|
193
|
-
Style/SpecialGlobalVars:
|
|
194
|
-
Description: Avoid Perl-style global variables.
|
|
195
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
|
|
196
|
-
Enabled: false
|
|
197
|
-
Style/VariableInterpolation:
|
|
198
|
-
Description: Don't interpolate global, instance and class variables directly in
|
|
199
|
-
strings.
|
|
200
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
|
|
201
|
-
Enabled: false
|
|
202
|
-
Style/WhenThen:
|
|
203
|
-
Description: Use when x then ... for one-line cases.
|
|
204
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
|
|
205
|
-
Enabled: false
|
|
206
|
-
Lint/EachWithObjectArgument:
|
|
207
|
-
Description: Check for immutable argument given to each_with_object.
|
|
208
|
-
Enabled: true
|
|
209
|
-
Lint/HandleExceptions:
|
|
210
|
-
Description: Don't suppress exception.
|
|
211
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
|
|
212
|
-
Enabled: false
|
|
213
|
-
Lint/LiteralInInterpolation:
|
|
214
|
-
Description: Checks for literals used in interpolation.
|
|
215
|
-
Enabled: false
|
|
216
|
-
Style/FrozenStringLiteralComment:
|
|
217
|
-
Enabled: false
|