friendly_fk 1.0.15 → 1.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a9b514b9339a5fb3b464acb32105557a25204147f9945886884a5702c92fd29
4
- data.tar.gz: c740cfc7179fa3b9b9d9e41f1da3f44a684adee19718603d77b3595f47036331
3
+ metadata.gz: 99404ee582646c13fcefb6771c11068a915fd767d70b481b71df44ccc422f1c9
4
+ data.tar.gz: 2d725f8d8845509f50d51a9f2ac51dcac5b42b1cc1c49ab2a33c7dc4026ef967
5
5
  SHA512:
6
- metadata.gz: 12c675762332abcf6bd29eb9a447008cccd3a6bcaa99534755753d0d2f0860a25933d03196180e5f6b07030755240f0bffbb327a39567f380ac4d694e0ed774e
7
- data.tar.gz: b9aa67cd103d5bed6bb01b0deb7a280253803c1702091ef0ed7a738b6d9c08cee19e050ca4b9bbeab91acef9b65ace487a8b6d2437a719ebe7b328a1be9c75d4
6
+ metadata.gz: 53c17aa1844ccd85b63f9c5dce6ba3837ffde6244b4a7bc08b1c7acb10b16040d019a30ef2bed0c14df231d21f76a2e689f12d99c36f709b7c85bd56e5605cd7
7
+ data.tar.gz: 284bba181be3aeca9f018ed36e0c53157cb4c971fc945a70d7ba9bd9e56d71560c0579cf70ae523a770a7d7f896b0a3ffe454ecc4dabd7843c5171be78bd9090
@@ -6,7 +6,7 @@ require:
6
6
  inherit_from: .rubocop_todo.yml
7
7
 
8
8
  AllCops:
9
- TargetRubyVersion: 2.3
9
+ TargetRubyVersion: 2.5
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.
@@ -24,6 +24,12 @@ Gemspec/OrderedDependencies:
24
24
  Enabled: true
25
25
 
26
26
  # Layout ######################################################################
27
+ Layout/EmptyLinesAroundAttributeAccessor:
28
+ Enabled: true
29
+
30
+ Layout/LineLength:
31
+ Max: 120
32
+
27
33
  # Checks that the closing brace in an array literal is either on the same line
28
34
  # as the last array element, or a new line.
29
35
  Layout/MultilineArrayBraceLayout:
@@ -47,6 +53,9 @@ Layout/MultilineOperationIndentation:
47
53
  Enabled: true
48
54
  EnforcedStyle: indented
49
55
 
56
+ Layout/SpaceAroundMethodCallOperator:
57
+ Enabled: true
58
+
50
59
  # Checks for padding/surrounding spaces inside string interpolation.
51
60
  Layout/SpaceInsideStringInterpolation:
52
61
  EnforcedStyle: no_space
@@ -68,53 +77,6 @@ Naming/VariableNumber:
68
77
  Enabled: false
69
78
 
70
79
 
71
- # Style #######################################################################
72
- # Use alias_method instead of alias.
73
- Style/Alias:
74
- EnforcedStyle: prefer_alias_method
75
- Enabled: true
76
-
77
- Style/AsciiComments:
78
- Enabled: false
79
- StyleGuide: http://relaxed.ruby.style/#styleasciicomments
80
-
81
- # This cop checks that comment annotation keywords are written according
82
- # to guidelines.
83
- Style/CommentAnnotation:
84
- Enabled: false
85
-
86
- # Document classes and non-namespace modules.
87
- Style/Documentation:
88
- Enabled: false
89
-
90
- # Checks if there is a magic comment to enforce string literals
91
- Style/FrozenStringLiteralComment:
92
- Enabled: false
93
-
94
- Style/RegexpLiteral:
95
- EnforcedStyle: mixed
96
- Enabled: false
97
-
98
- # Checks for proper usage of fail and raise.
99
- Style/SignalException:
100
- EnforcedStyle: only_raise
101
- Enabled: true
102
-
103
- # Check for the usage of parentheses around stabby lambda arguments.
104
- Style/StabbyLambdaParentheses:
105
- EnforcedStyle: require_parentheses
106
- Enabled: true
107
-
108
- # Checks if configured preferred methods are used over non-preferred.
109
- Style/StringMethods:
110
- PreferredMethods:
111
- intern: to_sym
112
- Enabled: true
113
-
114
- # Checks for %q/%Q when single quotes or double quotes would do.
115
- Style/UnneededPercentQ:
116
- Enabled: false
117
-
118
80
  # Metrics #####################################################################
119
81
 
120
82
  # A calculated magnitude based on number of assignments,
@@ -142,10 +104,6 @@ Metrics/CyclomaticComplexity:
142
104
  Enabled: true
143
105
  Max: 17
144
106
 
145
- # Limit lines to 80 characters.
146
- Metrics/LineLength:
147
- Max: 120
148
-
149
107
  # Avoid methods longer than 10 lines of code.
150
108
  Metrics/MethodLength:
151
109
  Max: 50
@@ -171,38 +129,25 @@ Metrics/PerceivedComplexity:
171
129
  Lint/AmbiguousRegexpLiteral:
172
130
  Enabled: false
173
131
 
174
- # This cop looks for use of the same name as outer local variables
175
- # for block arguments or block local variables.
176
- Lint/ShadowingOuterLocalVariable:
177
- Enabled: false
178
-
179
- # Performance #################################################################
180
-
181
- # This cop identifies places where `Hash#merge!` can be replaced by
182
- # `Hash#[]=`.
183
- Performance/RedundantMerge:
132
+ Lint/DeprecatedOpenSSLConstant:
184
133
  Enabled: true
185
- MaxKeyValuePairs: 1
186
134
 
187
- # Rails #######################################################################
135
+ Lint/DuplicateElsifCondition:
136
+ Enabled: true
188
137
 
189
- # Enables Rails cops.
190
- Rails:
138
+ Lint/MixedRegexpCaptureTypes:
191
139
  Enabled: true
192
140
 
193
- # Enforces consistent use of action filter methods.
194
- Rails/ActionFilter:
141
+ Lint/RaiseException:
195
142
  Enabled: true
196
- EnforcedStyle: action
197
143
 
198
- # Prefer has_many :through to has_and_belongs_to_many.
199
- Rails/HasAndBelongsToMany:
144
+ # This cop looks for use of the same name as outer local variables
145
+ # for block arguments or block local variables.
146
+ Lint/ShadowingOuterLocalVariable:
200
147
  Enabled: false
201
148
 
202
- # This cop checks that environments called with Rails.env predicates exist.
203
- Rails/UnknownEnv:
149
+ Lint/StructNewOverride:
204
150
  Enabled: true
205
- Environments: development, test, production, stage
206
151
 
207
152
  # RSpec #######################################################################
208
153
 
@@ -247,3 +192,100 @@ RSpec/NamedSubject:
247
192
  RSpec/NotToNot:
248
193
  EnforcedStyle: not_to
249
194
  Enabled: true
195
+
196
+ # Style #######################################################################
197
+
198
+ Style/AccessorGrouping:
199
+ Enabled: true
200
+
201
+ # Use alias_method instead of alias.
202
+ Style/Alias:
203
+ EnforcedStyle: prefer_alias_method
204
+ Enabled: true
205
+
206
+ Style/ArrayCoercion:
207
+ Enabled: true
208
+
209
+ Style/AsciiComments:
210
+ Enabled: false
211
+ StyleGuide: http://relaxed.ruby.style/#styleasciicomments
212
+
213
+ Style/BisectedAttrAccessor:
214
+ Enabled: true
215
+
216
+ Style/CaseLikeIf:
217
+ Enabled: true
218
+
219
+ # This cop checks that comment annotation keywords are written according
220
+ # to guidelines.
221
+ Style/CommentAnnotation:
222
+ Enabled: false
223
+
224
+ # Document classes and non-namespace modules.
225
+ Style/Documentation:
226
+ Enabled: false
227
+
228
+ Style/ExponentialNotation:
229
+ Enabled: true
230
+
231
+ # Checks if there is a magic comment to enforce string literals
232
+ Style/FrozenStringLiteralComment:
233
+ Enabled: false
234
+
235
+ Style/HashAsLastArrayItem:
236
+ Enabled: true
237
+
238
+ Style/HashEachMethods:
239
+ Enabled: true
240
+
241
+ Style/HashLikeCase:
242
+ Enabled: true
243
+
244
+ Style/HashTransformKeys:
245
+ Enabled: true
246
+
247
+ Style/HashTransformValues:
248
+ Enabled: true
249
+
250
+ Style/RedundantAssignment:
251
+ Enabled: true
252
+
253
+ Style/RedundantFetchBlock:
254
+ Enabled: true
255
+
256
+ Style/RedundantFileExtensionInRequire:
257
+ Enabled: true
258
+
259
+ # Checks for %q/%Q when single quotes or double quotes would do.
260
+ Style/RedundantPercentQ:
261
+ Enabled: false
262
+
263
+ Style/RedundantRegexpCharacterClass:
264
+ Enabled: true
265
+
266
+ Style/RedundantRegexpEscape:
267
+ Enabled: true
268
+
269
+ Style/RegexpLiteral:
270
+ EnforcedStyle: mixed
271
+ Enabled: false
272
+
273
+ # Checks for proper usage of fail and raise.
274
+ Style/SignalException:
275
+ EnforcedStyle: only_raise
276
+ Enabled: true
277
+
278
+ Style/SlicingWithRange:
279
+ Enabled: true
280
+
281
+ # Check for the usage of parentheses around stabby lambda arguments.
282
+ Style/StabbyLambdaParentheses:
283
+ EnforcedStyle: require_parentheses
284
+ Enabled: true
285
+
286
+ # Checks if configured preferred methods are used over non-preferred.
287
+ Style/StringMethods:
288
+ PreferredMethods:
289
+ intern: to_sym
290
+ Enabled: true
291
+
@@ -1,10 +1,9 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.8
5
- - 2.4.5
6
- - 2.5.5
7
- - 2.6.2
4
+ - 2.5.8
5
+ - 2.6.6
6
+ - 2.7.1
8
7
 
9
8
  services:
10
9
  - mysql
@@ -7,73 +7,74 @@ PATH
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (5.2.2.1)
11
- activesupport (= 5.2.2.1)
12
- activerecord (5.2.2.1)
13
- activemodel (= 5.2.2.1)
14
- activesupport (= 5.2.2.1)
15
- arel (>= 9.0)
16
- activesupport (5.2.2.1)
10
+ activemodel (6.0.3.2)
11
+ activesupport (= 6.0.3.2)
12
+ activerecord (6.0.3.2)
13
+ activemodel (= 6.0.3.2)
14
+ activesupport (= 6.0.3.2)
15
+ activesupport (6.0.3.2)
17
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
17
  i18n (>= 0.7, < 2)
19
18
  minitest (~> 5.1)
20
19
  tzinfo (~> 1.1)
21
- arel (9.0.0)
22
- ast (2.4.0)
23
- concurrent-ruby (1.1.5)
24
- diff-lcs (1.3)
25
- docile (1.3.1)
26
- fuubar (2.3.2)
20
+ zeitwerk (~> 2.2, >= 2.2.2)
21
+ ast (2.4.1)
22
+ concurrent-ruby (1.1.6)
23
+ diff-lcs (1.4.4)
24
+ docile (1.3.2)
25
+ fuubar (2.5.0)
27
26
  rspec-core (~> 3.0)
28
27
  ruby-progressbar (~> 1.4)
29
- i18n (1.6.0)
28
+ i18n (1.8.5)
30
29
  concurrent-ruby (~> 1.0)
31
- jaro_winkler (1.5.2)
32
- json (2.2.0)
33
- minitest (5.11.3)
34
- mysql2 (0.5.2)
35
- parallel (1.14.0)
36
- parser (2.6.2.0)
37
- ast (~> 2.4.0)
38
- pg (1.1.4)
39
- psych (3.1.0)
30
+ minitest (5.14.1)
31
+ mysql2 (0.5.3)
32
+ parallel (1.19.2)
33
+ parser (2.7.1.4)
34
+ ast (~> 2.4.1)
35
+ pg (1.2.3)
40
36
  rainbow (3.0.0)
41
- rake (12.3.2)
42
- rspec (3.8.0)
43
- rspec-core (~> 3.8.0)
44
- rspec-expectations (~> 3.8.0)
45
- rspec-mocks (~> 3.8.0)
46
- rspec-core (3.8.0)
47
- rspec-support (~> 3.8.0)
48
- rspec-expectations (3.8.2)
37
+ rake (13.0.1)
38
+ regexp_parser (1.7.1)
39
+ rexml (3.2.4)
40
+ rspec (3.9.0)
41
+ rspec-core (~> 3.9.0)
42
+ rspec-expectations (~> 3.9.0)
43
+ rspec-mocks (~> 3.9.0)
44
+ rspec-core (3.9.2)
45
+ rspec-support (~> 3.9.3)
46
+ rspec-expectations (3.9.2)
49
47
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-mocks (3.8.0)
48
+ rspec-support (~> 3.9.0)
49
+ rspec-mocks (3.9.1)
52
50
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.8.0)
54
- rspec-support (3.8.0)
55
- rubocop (0.66.0)
56
- jaro_winkler (~> 1.5.1)
51
+ rspec-support (~> 3.9.0)
52
+ rspec-support (3.9.3)
53
+ rubocop (0.88.0)
57
54
  parallel (~> 1.10)
58
- parser (>= 2.5, != 2.5.1.1)
59
- psych (>= 3.1.0)
55
+ parser (>= 2.7.1.1)
60
56
  rainbow (>= 2.2.2, < 4.0)
57
+ regexp_parser (>= 1.7)
58
+ rexml
59
+ rubocop-ast (>= 0.1.0, < 1.0)
61
60
  ruby-progressbar (~> 1.7)
62
- unicode-display_width (>= 1.4.0, < 1.6)
63
- rubocop-rspec (1.32.0)
64
- rubocop (>= 0.60.0)
65
- ruby-progressbar (1.10.0)
66
- simplecov (0.16.1)
61
+ unicode-display_width (>= 1.4.0, < 2.0)
62
+ rubocop-ast (0.2.0)
63
+ parser (>= 2.7.0.1)
64
+ rubocop-rspec (1.42.0)
65
+ rubocop (>= 0.87.0)
66
+ ruby-progressbar (1.10.1)
67
+ simplecov (0.18.5)
67
68
  docile (~> 1.1)
68
- json (>= 1.8, < 3)
69
- simplecov-html (~> 0.10.0)
70
- simplecov-html (0.10.2)
69
+ simplecov-html (~> 0.11)
70
+ simplecov-html (0.12.2)
71
71
  simplecov-rcov (0.2.3)
72
72
  simplecov (>= 0.4.1)
73
73
  thread_safe (0.3.6)
74
- tzinfo (1.2.5)
74
+ tzinfo (1.2.7)
75
75
  thread_safe (~> 0.1)
76
- unicode-display_width (1.5.0)
76
+ unicode-display_width (1.7.0)
77
+ zeitwerk (2.4.0)
77
78
 
78
79
  PLATFORMS
79
80
  ruby
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  'source_code_uri' => 'https://github.com/marinazzio/friendly_fk'
20
20
  }
21
21
 
22
- spec.required_ruby_version = '>= 2.3.8'
22
+ spec.required_ruby_version = '>= 2.5.8'
23
23
 
24
24
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
25
25
 
@@ -1,3 +1,3 @@
1
1
  module FriendlyFk
2
- VERSION = '1.0.15'.freeze
2
+ VERSION = '1.0.16'.freeze
3
3
  end
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.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Kiselyov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -133,15 +133,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
- version: 2.3.8
136
+ version: 2.5.8
137
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubyforge_project:
144
- rubygems_version: 2.7.6
143
+ rubygems_version: 3.0.3
145
144
  signing_key:
146
145
  specification_version: 4
147
146
  summary: Creates foreign keys with friendly names