friendly_fk 1.0.17 → 1.0.20
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/.rubocop.yml +1 -126
- data/.travis.yml +4 -4
- data/Gemfile.lock +48 -51
- data/friendly_fk.gemspec +3 -2
- data/lib/friendly_fk/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64bfd86b74842b7da67dde6bcd7f0e51cf8cf1bfaaf60012d277d29e82a12891
|
|
4
|
+
data.tar.gz: 452f186cf3b0f435dffabf4e117da82d6fd04bc15657d3876d4872374e151f46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 134c5aca94866116894251c40cb95229aa90677aed89ff9dc656b39659ca6a1d03508638ceba9deb87e72547182ed2c2213161e8267b47a4343dcee63ed550b5
|
|
7
|
+
data.tar.gz: 857bf0ad1147508aea1d2b7664fe07db110f9fa2f60cdbc2d763c8dff8f6e20a0e83b29ff36d883bca3bc14bd5bbf737c3649b6536957dd32c510c8a606d198a
|
data/.rubocop.yml
CHANGED
|
@@ -6,7 +6,7 @@ require:
|
|
|
6
6
|
inherit_from: .rubocop_todo.yml
|
|
7
7
|
|
|
8
8
|
AllCops:
|
|
9
|
-
TargetRubyVersion: 2.
|
|
9
|
+
TargetRubyVersion: 2.6
|
|
10
10
|
# Cop names are not d§splayed in offense messages by default. Change behavior
|
|
11
11
|
# by overriding DisplayCopNames, or by giving the -D/--display-cop-names
|
|
12
12
|
# option.
|
|
@@ -18,17 +18,7 @@ AllCops:
|
|
|
18
18
|
|
|
19
19
|
NewCops: enable
|
|
20
20
|
|
|
21
|
-
# Gems in consecutive lines should be alphabetically sorted
|
|
22
|
-
Bundler/OrderedGems:
|
|
23
|
-
TreatCommentsAsGroupSeparators: true
|
|
24
|
-
|
|
25
|
-
Gemspec/OrderedDependencies:
|
|
26
|
-
Enabled: true
|
|
27
|
-
|
|
28
21
|
# Layout ######################################################################
|
|
29
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
|
30
|
-
Enabled: true
|
|
31
|
-
|
|
32
22
|
Layout/LineLength:
|
|
33
23
|
Max: 120
|
|
34
24
|
|
|
@@ -55,9 +45,6 @@ Layout/MultilineOperationIndentation:
|
|
|
55
45
|
Enabled: true
|
|
56
46
|
EnforcedStyle: indented
|
|
57
47
|
|
|
58
|
-
Layout/SpaceAroundMethodCallOperator:
|
|
59
|
-
Enabled: true
|
|
60
|
-
|
|
61
48
|
# Checks for padding/surrounding spaces inside string interpolation.
|
|
62
49
|
Layout/SpaceInsideStringInterpolation:
|
|
63
50
|
EnforcedStyle: no_space
|
|
@@ -178,26 +165,11 @@ Metrics/PerceivedComplexity:
|
|
|
178
165
|
Lint/AmbiguousRegexpLiteral:
|
|
179
166
|
Enabled: false
|
|
180
167
|
|
|
181
|
-
Lint/DeprecatedOpenSSLConstant:
|
|
182
|
-
Enabled: true
|
|
183
|
-
|
|
184
|
-
Lint/DuplicateElsifCondition:
|
|
185
|
-
Enabled: true
|
|
186
|
-
|
|
187
|
-
Lint/MixedRegexpCaptureTypes:
|
|
188
|
-
Enabled: true
|
|
189
|
-
|
|
190
|
-
Lint/RaiseException:
|
|
191
|
-
Enabled: true
|
|
192
|
-
|
|
193
168
|
# This cop looks for use of the same name as outer local variables
|
|
194
169
|
# for block arguments or block local variables.
|
|
195
170
|
Lint/ShadowingOuterLocalVariable:
|
|
196
171
|
Enabled: false
|
|
197
172
|
|
|
198
|
-
Lint/StructNewOverride:
|
|
199
|
-
Enabled: true
|
|
200
|
-
|
|
201
173
|
# RSpec #######################################################################
|
|
202
174
|
|
|
203
175
|
# Checks for long example.
|
|
@@ -241,100 +213,3 @@ RSpec/NamedSubject:
|
|
|
241
213
|
RSpec/NotToNot:
|
|
242
214
|
EnforcedStyle: not_to
|
|
243
215
|
Enabled: true
|
|
244
|
-
|
|
245
|
-
# Style #######################################################################
|
|
246
|
-
|
|
247
|
-
Style/AccessorGrouping:
|
|
248
|
-
Enabled: true
|
|
249
|
-
|
|
250
|
-
# Use alias_method instead of alias.
|
|
251
|
-
Style/Alias:
|
|
252
|
-
EnforcedStyle: prefer_alias_method
|
|
253
|
-
Enabled: true
|
|
254
|
-
|
|
255
|
-
Style/ArrayCoercion:
|
|
256
|
-
Enabled: true
|
|
257
|
-
|
|
258
|
-
Style/AsciiComments:
|
|
259
|
-
Enabled: false
|
|
260
|
-
StyleGuide: http://relaxed.ruby.style/#styleasciicomments
|
|
261
|
-
|
|
262
|
-
Style/BisectedAttrAccessor:
|
|
263
|
-
Enabled: true
|
|
264
|
-
|
|
265
|
-
Style/CaseLikeIf:
|
|
266
|
-
Enabled: true
|
|
267
|
-
|
|
268
|
-
# This cop checks that comment annotation keywords are written according
|
|
269
|
-
# to guidelines.
|
|
270
|
-
Style/CommentAnnotation:
|
|
271
|
-
Enabled: false
|
|
272
|
-
|
|
273
|
-
# Document classes and non-namespace modules.
|
|
274
|
-
Style/Documentation:
|
|
275
|
-
Enabled: false
|
|
276
|
-
|
|
277
|
-
Style/ExponentialNotation:
|
|
278
|
-
Enabled: true
|
|
279
|
-
|
|
280
|
-
# Checks if there is a magic comment to enforce string literals
|
|
281
|
-
Style/FrozenStringLiteralComment:
|
|
282
|
-
Enabled: false
|
|
283
|
-
|
|
284
|
-
Style/HashAsLastArrayItem:
|
|
285
|
-
Enabled: true
|
|
286
|
-
|
|
287
|
-
Style/HashEachMethods:
|
|
288
|
-
Enabled: true
|
|
289
|
-
|
|
290
|
-
Style/HashLikeCase:
|
|
291
|
-
Enabled: true
|
|
292
|
-
|
|
293
|
-
Style/HashTransformKeys:
|
|
294
|
-
Enabled: true
|
|
295
|
-
|
|
296
|
-
Style/HashTransformValues:
|
|
297
|
-
Enabled: true
|
|
298
|
-
|
|
299
|
-
Style/RedundantAssignment:
|
|
300
|
-
Enabled: true
|
|
301
|
-
|
|
302
|
-
Style/RedundantFetchBlock:
|
|
303
|
-
Enabled: true
|
|
304
|
-
|
|
305
|
-
Style/RedundantFileExtensionInRequire:
|
|
306
|
-
Enabled: true
|
|
307
|
-
|
|
308
|
-
# Checks for %q/%Q when single quotes or double quotes would do.
|
|
309
|
-
Style/RedundantPercentQ:
|
|
310
|
-
Enabled: false
|
|
311
|
-
|
|
312
|
-
Style/RedundantRegexpCharacterClass:
|
|
313
|
-
Enabled: true
|
|
314
|
-
|
|
315
|
-
Style/RedundantRegexpEscape:
|
|
316
|
-
Enabled: true
|
|
317
|
-
|
|
318
|
-
Style/RegexpLiteral:
|
|
319
|
-
EnforcedStyle: mixed
|
|
320
|
-
Enabled: false
|
|
321
|
-
|
|
322
|
-
# Checks for proper usage of fail and raise.
|
|
323
|
-
Style/SignalException:
|
|
324
|
-
EnforcedStyle: only_raise
|
|
325
|
-
Enabled: true
|
|
326
|
-
|
|
327
|
-
Style/SlicingWithRange:
|
|
328
|
-
Enabled: true
|
|
329
|
-
|
|
330
|
-
# Check for the usage of parentheses around stabby lambda arguments.
|
|
331
|
-
Style/StabbyLambdaParentheses:
|
|
332
|
-
EnforcedStyle: require_parentheses
|
|
333
|
-
Enabled: true
|
|
334
|
-
|
|
335
|
-
# Checks if configured preferred methods are used over non-preferred.
|
|
336
|
-
Style/StringMethods:
|
|
337
|
-
PreferredMethods:
|
|
338
|
-
intern: to_sym
|
|
339
|
-
Enabled: true
|
|
340
|
-
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,92 +1,89 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
friendly_fk (1.0.
|
|
4
|
+
friendly_fk (1.0.19)
|
|
5
5
|
activerecord
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activemodel (
|
|
11
|
-
activesupport (=
|
|
12
|
-
activerecord (
|
|
13
|
-
activemodel (=
|
|
14
|
-
activesupport (=
|
|
15
|
-
activesupport (
|
|
10
|
+
activemodel (7.0.3)
|
|
11
|
+
activesupport (= 7.0.3)
|
|
12
|
+
activerecord (7.0.3)
|
|
13
|
+
activemodel (= 7.0.3)
|
|
14
|
+
activesupport (= 7.0.3)
|
|
15
|
+
activesupport (7.0.3)
|
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
17
17
|
i18n (>= 1.6, < 2)
|
|
18
18
|
minitest (>= 5.1)
|
|
19
19
|
tzinfo (~> 2.0)
|
|
20
|
-
zeitwerk (~> 2.3)
|
|
21
20
|
ast (2.4.2)
|
|
22
|
-
concurrent-ruby (1.1.
|
|
23
|
-
diff-lcs (1.
|
|
24
|
-
docile (1.
|
|
21
|
+
concurrent-ruby (1.1.10)
|
|
22
|
+
diff-lcs (1.5.0)
|
|
23
|
+
docile (1.4.0)
|
|
25
24
|
fuubar (2.5.1)
|
|
26
25
|
rspec-core (~> 3.0)
|
|
27
26
|
ruby-progressbar (~> 1.4)
|
|
28
|
-
i18n (1.
|
|
27
|
+
i18n (1.10.0)
|
|
29
28
|
concurrent-ruby (~> 1.0)
|
|
30
|
-
minitest (5.
|
|
31
|
-
mysql2 (0.5.
|
|
32
|
-
parallel (1.
|
|
33
|
-
parser (3.
|
|
29
|
+
minitest (5.16.1)
|
|
30
|
+
mysql2 (0.5.4)
|
|
31
|
+
parallel (1.22.1)
|
|
32
|
+
parser (3.1.2.0)
|
|
34
33
|
ast (~> 2.4.1)
|
|
35
|
-
pg (1.
|
|
36
|
-
rack (2.2.3)
|
|
37
|
-
rainbow (3.
|
|
38
|
-
rake (13.0.
|
|
39
|
-
regexp_parser (2.
|
|
34
|
+
pg (1.4.0)
|
|
35
|
+
rack (2.2.3.1)
|
|
36
|
+
rainbow (3.1.1)
|
|
37
|
+
rake (13.0.6)
|
|
38
|
+
regexp_parser (2.5.0)
|
|
40
39
|
rexml (3.2.5)
|
|
41
|
-
rspec (3.
|
|
42
|
-
rspec-core (~> 3.
|
|
43
|
-
rspec-expectations (~> 3.
|
|
44
|
-
rspec-mocks (~> 3.
|
|
45
|
-
rspec-core (3.
|
|
46
|
-
rspec-support (~> 3.
|
|
47
|
-
rspec-expectations (3.
|
|
40
|
+
rspec (3.11.0)
|
|
41
|
+
rspec-core (~> 3.11.0)
|
|
42
|
+
rspec-expectations (~> 3.11.0)
|
|
43
|
+
rspec-mocks (~> 3.11.0)
|
|
44
|
+
rspec-core (3.11.0)
|
|
45
|
+
rspec-support (~> 3.11.0)
|
|
46
|
+
rspec-expectations (3.11.0)
|
|
48
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
49
|
-
rspec-support (~> 3.
|
|
50
|
-
rspec-mocks (3.
|
|
48
|
+
rspec-support (~> 3.11.0)
|
|
49
|
+
rspec-mocks (3.11.1)
|
|
51
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
52
|
-
rspec-support (~> 3.
|
|
53
|
-
rspec-support (3.
|
|
54
|
-
rubocop (1.
|
|
51
|
+
rspec-support (~> 3.11.0)
|
|
52
|
+
rspec-support (3.11.0)
|
|
53
|
+
rubocop (1.30.1)
|
|
55
54
|
parallel (~> 1.10)
|
|
56
|
-
parser (>= 3.
|
|
55
|
+
parser (>= 3.1.0.0)
|
|
57
56
|
rainbow (>= 2.2.2, < 4.0)
|
|
58
57
|
regexp_parser (>= 1.8, < 3.0)
|
|
59
|
-
rexml
|
|
60
|
-
rubocop-ast (>= 1.
|
|
58
|
+
rexml (>= 3.2.5, < 4.0)
|
|
59
|
+
rubocop-ast (>= 1.18.0, < 2.0)
|
|
61
60
|
ruby-progressbar (~> 1.7)
|
|
62
61
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
63
|
-
rubocop-ast (1.
|
|
64
|
-
parser (>=
|
|
65
|
-
rubocop-performance (1.
|
|
66
|
-
rubocop (>=
|
|
62
|
+
rubocop-ast (1.18.0)
|
|
63
|
+
parser (>= 3.1.1.0)
|
|
64
|
+
rubocop-performance (1.14.2)
|
|
65
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
67
66
|
rubocop-ast (>= 0.4.0)
|
|
68
|
-
rubocop-rails (2.
|
|
67
|
+
rubocop-rails (2.15.0)
|
|
69
68
|
activesupport (>= 4.2.0)
|
|
70
69
|
rack (>= 1.1)
|
|
71
|
-
rubocop (>=
|
|
72
|
-
rubocop-rake (0.
|
|
73
|
-
rubocop
|
|
74
|
-
rubocop-rspec (2.2.0)
|
|
70
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
71
|
+
rubocop-rake (0.6.0)
|
|
75
72
|
rubocop (~> 1.0)
|
|
76
|
-
|
|
73
|
+
rubocop-rspec (2.11.1)
|
|
74
|
+
rubocop (~> 1.19)
|
|
77
75
|
ruby-progressbar (1.11.0)
|
|
78
76
|
simplecov (0.21.2)
|
|
79
77
|
docile (~> 1.1)
|
|
80
78
|
simplecov-html (~> 0.11)
|
|
81
79
|
simplecov_json_formatter (~> 0.1)
|
|
82
80
|
simplecov-html (0.12.3)
|
|
83
|
-
simplecov-rcov (0.
|
|
81
|
+
simplecov-rcov (0.3.1)
|
|
84
82
|
simplecov (>= 0.4.1)
|
|
85
|
-
simplecov_json_formatter (0.1.
|
|
83
|
+
simplecov_json_formatter (0.1.4)
|
|
86
84
|
tzinfo (2.0.4)
|
|
87
85
|
concurrent-ruby (~> 1.0)
|
|
88
|
-
unicode-display_width (2.
|
|
89
|
-
zeitwerk (2.4.2)
|
|
86
|
+
unicode-display_width (2.1.0)
|
|
90
87
|
|
|
91
88
|
PLATFORMS
|
|
92
89
|
ruby
|
|
@@ -108,4 +105,4 @@ DEPENDENCIES
|
|
|
108
105
|
simplecov-rcov
|
|
109
106
|
|
|
110
107
|
BUNDLED WITH
|
|
111
|
-
1.17.
|
|
108
|
+
1.17.3
|
data/friendly_fk.gemspec
CHANGED
|
@@ -16,10 +16,11 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
'bug_tracker_uri' => 'https://github.com/marinazzio/friendly_fk/issues',
|
|
17
17
|
'documentation_uri' => 'https://github.com/marinazzio/friendly_fk/blob/master/README.md',
|
|
18
18
|
'homepage_uri' => 'https://github.com/marinazzio/friendly_fk',
|
|
19
|
-
'source_code_uri' => 'https://github.com/marinazzio/friendly_fk'
|
|
19
|
+
'source_code_uri' => 'https://github.com/marinazzio/friendly_fk',
|
|
20
|
+
'rubygems_mfa_required' => 'true'
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
spec.required_ruby_version = '>= 2.
|
|
23
|
+
spec.required_ruby_version = '>= 2.6.0'
|
|
23
24
|
|
|
24
25
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
|
25
26
|
|
data/lib/friendly_fk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: friendly_fk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Kiselyov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -124,6 +124,7 @@ metadata:
|
|
|
124
124
|
documentation_uri: https://github.com/marinazzio/friendly_fk/blob/master/README.md
|
|
125
125
|
homepage_uri: https://github.com/marinazzio/friendly_fk
|
|
126
126
|
source_code_uri: https://github.com/marinazzio/friendly_fk
|
|
127
|
+
rubygems_mfa_required: 'true'
|
|
127
128
|
allowed_push_host: https://rubygems.org
|
|
128
129
|
post_install_message:
|
|
129
130
|
rdoc_options: []
|
|
@@ -133,14 +134,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
133
134
|
requirements:
|
|
134
135
|
- - ">="
|
|
135
136
|
- !ruby/object:Gem::Version
|
|
136
|
-
version: 2.
|
|
137
|
+
version: 2.6.0
|
|
137
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
139
|
requirements:
|
|
139
140
|
- - ">="
|
|
140
141
|
- !ruby/object:Gem::Version
|
|
141
142
|
version: '0'
|
|
142
143
|
requirements: []
|
|
143
|
-
rubygems_version: 3.
|
|
144
|
+
rubygems_version: 3.3.7
|
|
144
145
|
signing_key:
|
|
145
146
|
specification_version: 4
|
|
146
147
|
summary: Creates foreign keys with friendly names
|