friendly_fk 1.0.15 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a9b514b9339a5fb3b464acb32105557a25204147f9945886884a5702c92fd29
4
- data.tar.gz: c740cfc7179fa3b9b9d9e41f1da3f44a684adee19718603d77b3595f47036331
3
+ metadata.gz: 4f02bc472ee699ce3daaf2a1081075eac957eff10f9a5a5f262dbb561c163ed0
4
+ data.tar.gz: 519bf45a6946435e909692b05387f54de41d0e12771ded70f44708bb90689e09
5
5
  SHA512:
6
- metadata.gz: 12c675762332abcf6bd29eb9a447008cccd3a6bcaa99534755753d0d2f0860a25933d03196180e5f6b07030755240f0bffbb327a39567f380ac4d694e0ed774e
7
- data.tar.gz: b9aa67cd103d5bed6bb01b0deb7a280253803c1702091ef0ed7a738b6d9c08cee19e050ca4b9bbeab91acef9b65ace487a8b6d2437a719ebe7b328a1be9c75d4
6
+ metadata.gz: 879e69157b0f9bc0d3926c3cbfe9aceba36845c72ea3458d59cb09525c702dbf0a62750413dbe2d659d76752266274c6f952a0108a8e59eac70558abd40b070b
7
+ data.tar.gz: '039f57e3fd6415887c2a9ad3d74f70078fde93ba04dcf727f0e28025bfe1a60394e3e66f7d15b33afbab93f191f93d584aaa2f2579a53a1159eebcbd87f0ad6c'
data/.rubocop.yml CHANGED
@@ -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.
@@ -16,14 +16,12 @@ AllCops:
16
16
  # -S/--display-style-guide option.
17
17
  DisplayStyleGuide: false
18
18
 
19
- # Gems in consecutive lines should be alphabetically sorted
20
- Bundler/OrderedGems:
21
- TreatCommentsAsGroupSeparators: true
22
-
23
- Gemspec/OrderedDependencies:
24
- Enabled: true
19
+ NewCops: enable
25
20
 
26
21
  # Layout ######################################################################
22
+ Layout/LineLength:
23
+ Max: 120
24
+
27
25
  # Checks that the closing brace in an array literal is either on the same line
28
26
  # as the last array element, or a new line.
29
27
  Layout/MultilineArrayBraceLayout:
@@ -112,7 +110,7 @@ Style/StringMethods:
112
110
  Enabled: true
113
111
 
114
112
  # Checks for %q/%Q when single quotes or double quotes would do.
115
- Style/UnneededPercentQ:
113
+ Style/RedundantPercentQ:
116
114
  Enabled: false
117
115
 
118
116
  # Metrics #####################################################################
@@ -142,10 +140,6 @@ Metrics/CyclomaticComplexity:
142
140
  Enabled: true
143
141
  Max: 17
144
142
 
145
- # Limit lines to 80 characters.
146
- Metrics/LineLength:
147
- Max: 120
148
-
149
143
  # Avoid methods longer than 10 lines of code.
150
144
  Metrics/MethodLength:
151
145
  Max: 50
@@ -176,34 +170,6 @@ Lint/AmbiguousRegexpLiteral:
176
170
  Lint/ShadowingOuterLocalVariable:
177
171
  Enabled: false
178
172
 
179
- # Performance #################################################################
180
-
181
- # This cop identifies places where `Hash#merge!` can be replaced by
182
- # `Hash#[]=`.
183
- Performance/RedundantMerge:
184
- Enabled: true
185
- MaxKeyValuePairs: 1
186
-
187
- # Rails #######################################################################
188
-
189
- # Enables Rails cops.
190
- Rails:
191
- Enabled: true
192
-
193
- # Enforces consistent use of action filter methods.
194
- Rails/ActionFilter:
195
- Enabled: true
196
- EnforcedStyle: action
197
-
198
- # Prefer has_many :through to has_and_belongs_to_many.
199
- Rails/HasAndBelongsToMany:
200
- Enabled: false
201
-
202
- # This cop checks that environments called with Rails.env predicates exist.
203
- Rails/UnknownEnv:
204
- Enabled: true
205
- Environments: development, test, production, stage
206
-
207
173
  # RSpec #######################################################################
208
174
 
209
175
  # Checks for long example.
data/.travis.yml CHANGED
@@ -1,10 +1,9 @@
1
- sudo: false
2
1
  language: ruby
3
2
  rvm:
4
- - 2.3.8
5
- - 2.4.5
6
- - 2.5.5
7
- - 2.6.2
3
+ - 2.5.9
4
+ - 2.6.7
5
+ - 2.7.3
6
+ - 3.0.1
8
7
 
9
8
  services:
10
9
  - mysql
@@ -19,7 +18,7 @@ before_script:
19
18
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'CREATE DATABASE friendly_fk_test;' -U postgres; fi"
20
19
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS friendly_fk_test; CREATE DATABASE IF NOT EXISTS friendly_fk_test;'; fi"
21
20
 
22
- before_install: gem install bundler -v 1.16.6
21
+ before_install: gem install bundler -v 1.17.2
23
22
  script:
24
23
  - bundle exec rspec spec
25
24
  - bundle exec rubocop
data/Gemfile CHANGED
@@ -9,6 +9,9 @@ end
9
9
 
10
10
  group :test do
11
11
  gem 'rubocop', require: false
12
+ gem 'rubocop-performance', require: false
13
+ gem 'rubocop-rails', require: false
14
+ gem 'rubocop-rake', require: false
12
15
  gem 'rubocop-rspec', require: false
13
16
  gem 'simplecov', require: false
14
17
  gem 'simplecov-rcov', require: false
data/Gemfile.lock CHANGED
@@ -1,79 +1,92 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- friendly_fk (1.0.15)
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 (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.1.4.1)
11
+ activesupport (= 6.1.4.1)
12
+ activerecord (6.1.4.1)
13
+ activemodel (= 6.1.4.1)
14
+ activesupport (= 6.1.4.1)
15
+ activesupport (6.1.4.1)
17
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- 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)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ zeitwerk (~> 2.3)
21
+ ast (2.4.2)
22
+ concurrent-ruby (1.1.9)
23
+ diff-lcs (1.4.4)
24
+ docile (1.4.0)
25
+ fuubar (2.5.1)
27
26
  rspec-core (~> 3.0)
28
27
  ruby-progressbar (~> 1.4)
29
- i18n (1.6.0)
28
+ i18n (1.8.10)
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.4)
31
+ mysql2 (0.5.3)
32
+ parallel (1.20.1)
33
+ parser (3.0.2.0)
34
+ ast (~> 2.4.1)
35
+ pg (1.2.3)
36
+ rack (2.2.3)
40
37
  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)
38
+ rake (13.0.6)
39
+ regexp_parser (2.1.1)
40
+ rexml (3.2.5)
41
+ rspec (3.10.0)
42
+ rspec-core (~> 3.10.0)
43
+ rspec-expectations (~> 3.10.0)
44
+ rspec-mocks (~> 3.10.0)
45
+ rspec-core (3.10.1)
46
+ rspec-support (~> 3.10.0)
47
+ rspec-expectations (3.10.1)
49
48
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-mocks (3.8.0)
49
+ rspec-support (~> 3.10.0)
50
+ rspec-mocks (3.10.2)
52
51
  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)
52
+ rspec-support (~> 3.10.0)
53
+ rspec-support (3.10.2)
54
+ rubocop (1.20.0)
57
55
  parallel (~> 1.10)
58
- parser (>= 2.5, != 2.5.1.1)
59
- psych (>= 3.1.0)
56
+ parser (>= 3.0.0.0)
60
57
  rainbow (>= 2.2.2, < 4.0)
58
+ regexp_parser (>= 1.8, < 3.0)
59
+ rexml
60
+ rubocop-ast (>= 1.9.1, < 2.0)
61
61
  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)
62
+ unicode-display_width (>= 1.4.0, < 3.0)
63
+ rubocop-ast (1.11.0)
64
+ parser (>= 3.0.1.1)
65
+ rubocop-performance (1.11.5)
66
+ rubocop (>= 1.7.0, < 2.0)
67
+ rubocop-ast (>= 0.4.0)
68
+ rubocop-rails (2.11.3)
69
+ activesupport (>= 4.2.0)
70
+ rack (>= 1.1)
71
+ rubocop (>= 1.7.0, < 2.0)
72
+ rubocop-rake (0.6.0)
73
+ rubocop (~> 1.0)
74
+ rubocop-rspec (2.4.0)
75
+ rubocop (~> 1.0)
76
+ rubocop-ast (>= 1.1.0)
77
+ ruby-progressbar (1.11.0)
78
+ simplecov (0.21.2)
67
79
  docile (~> 1.1)
68
- json (>= 1.8, < 3)
69
- simplecov-html (~> 0.10.0)
70
- simplecov-html (0.10.2)
80
+ simplecov-html (~> 0.11)
81
+ simplecov_json_formatter (~> 0.1)
82
+ simplecov-html (0.12.3)
71
83
  simplecov-rcov (0.2.3)
72
84
  simplecov (>= 0.4.1)
73
- thread_safe (0.3.6)
74
- tzinfo (1.2.5)
75
- thread_safe (~> 0.1)
76
- unicode-display_width (1.5.0)
85
+ simplecov_json_formatter (0.1.3)
86
+ tzinfo (2.0.4)
87
+ concurrent-ruby (~> 1.0)
88
+ unicode-display_width (2.0.0)
89
+ zeitwerk (2.4.2)
77
90
 
78
91
  PLATFORMS
79
92
  ruby
@@ -87,6 +100,9 @@ DEPENDENCIES
87
100
  rake
88
101
  rspec
89
102
  rubocop
103
+ rubocop-performance
104
+ rubocop-rails
105
+ rubocop-rake
90
106
  rubocop-rspec
91
107
  simplecov
92
108
  simplecov-rcov
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/friendly_fk.svg)](https://badge.fury.io/rb/friendly_fk)
2
+ [![Build Status](https://travis-ci.org/marinazzio/friendly_fk.svg?branch=master)](https://travis-ci.org/marinazzio/friendly_fk)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/73f1cc07c4bce785ee76/maintainability)](https://codeclimate.com/github/marinazzio/friendly_fk/maintainability)
4
+
1
5
  # FriendlyFk
2
6
 
3
7
  Uses child and parent table names to give FK name by default. It doesn't use hash tail, so use it carefully, 'cause it may generate non-unique names.
data/friendly_fk.gemspec CHANGED
@@ -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.9'
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.19'.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.19
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: 2021-08-27 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.9
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.1.4
145
144
  signing_key:
146
145
  specification_version: 4
147
146
  summary: Creates foreign keys with friendly names