friendly_fk 1.0.26 → 1.0.28

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: fa6c5dccdbefbe91446ef9a4b19ffb4b9895e9ef98f67a1d5a21397e0fe58fa6
4
- data.tar.gz: b194539b114f767893aabc3330797197a49b2d4b81479d46673bfa3363f5beb6
3
+ metadata.gz: de3071aab50dee03c60e3a2b7ccdd43610b9291800b56aea659c3fe5194a476f
4
+ data.tar.gz: 302509fea7c97eea8dba6cfe82ec4c0415146e31af6abf52e0b1536dbd57b313
5
5
  SHA512:
6
- metadata.gz: 7c0b6af47ea121b4c6c4b5ea1ba29df202da03cc8d7964d89a01da487b00252ef301af10bcdf5b825554144b1cb2dac91d8f5d3b7c122c314a5b504a6cb7b9be
7
- data.tar.gz: be5ec8e2e1bef05c0f8a33da4c41964f0fbe3561080fe134ab6fc3ca160c1698e1f49a996bb5012e34ede215969b0eda9ea3d7f0b500ffcb41f45849d291dc69
6
+ metadata.gz: d6a167a0488d9c9112f54faeb95ba9086dea71d76dc29999a58002c109b3db7780a85dae2069ed06478459598b23496559ac9d317787c6400afc35f290af230f
7
+ data.tar.gz: 3422245bb4be15e8cfdb565e81435c3e448f5ed9cf9ab14652a056a0d961544055070e1f651c96b4bb0d7ccd7f712baadefed0b7f93841e128e83964464f4d53
@@ -15,7 +15,7 @@ jobs:
15
15
  - name: Set up Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: '3.2.2'
18
+ ruby-version: '3.4.3'
19
19
  bundler-cache: true
20
20
 
21
21
  - name: Bundle audit
@@ -0,0 +1,25 @@
1
+ name: Build and Publish Gem
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ permissions:
12
+ contents: write
13
+ id-token: write
14
+
15
+ steps:
16
+ # Set up
17
+ - uses: actions/checkout@v4
18
+ - name: Set up Ruby
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ bundler-cache: true
22
+ ruby-version: ruby
23
+
24
+ # Release
25
+ - uses: rubygems/release-gem@v1
@@ -8,7 +8,7 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  strategy:
10
10
  matrix:
11
- ruby-version: ['3.1', '3.2', '3.3']
11
+ ruby-version: ['3.2', '3.3', '3.4']
12
12
 
13
13
  env:
14
14
  TEST_DATABASE_URL: mysql2://root:root@localhost:3306/friendly_fk_test
@@ -8,7 +8,7 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  strategy:
10
10
  matrix:
11
- ruby-version: ['3.1', '3.2', '3.3']
11
+ ruby-version: ['3.2', '3.3', '3.4']
12
12
 
13
13
  env:
14
14
  TEST_DATABASE_URL: postgres://test_user:test_user@localhost:5432/friendly_fk_test
@@ -8,7 +8,7 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  strategy:
10
10
  matrix:
11
- ruby-version: ['3.1', '3.2', '3.3']
11
+ ruby-version: ['3.2', '3.3', '3.4']
12
12
  steps:
13
13
  - name: Checkout
14
14
  uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -7,8 +7,8 @@ require:
7
7
  inherit_from: .rubocop_todo.yml
8
8
 
9
9
  AllCops:
10
- TargetRubyVersion: 2.6
11
- # Cop names are not d§splayed in offense messages by default. Change behavior
10
+ TargetRubyVersion: 3.2
11
+ # Cop names are not displayed in offense messages by default. Change behavior
12
12
  # by overriding DisplayCopNames, or by giving the -D/--display-cop-names
13
13
  # option.
14
14
  DisplayCopNames: true
@@ -187,13 +187,6 @@ RSpec/ExampleWording:
187
187
  not: does not
188
188
  IgnoredWords: []
189
189
 
190
- # Checks the file and folder naming of the spec file.
191
- RSpec/FilePath:
192
- Enabled: true
193
- CustomTransform:
194
- RuboCop: rubocop
195
- RSpec: rspec
196
-
197
190
  RSpec/ImplicitExpect:
198
191
  EnforcedStyle: should
199
192
  Enabled: true
data/Gemfile.lock CHANGED
@@ -1,123 +1,126 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- friendly_fk (1.0.26)
4
+ friendly_fk (1.0.28)
5
5
  activerecord
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.1.3.4)
11
- activesupport (= 7.1.3.4)
12
- activerecord (7.1.3.4)
13
- activemodel (= 7.1.3.4)
14
- activesupport (= 7.1.3.4)
10
+ activemodel (8.0.2)
11
+ activesupport (= 8.0.2)
12
+ activerecord (8.0.2)
13
+ activemodel (= 8.0.2)
14
+ activesupport (= 8.0.2)
15
15
  timeout (>= 0.4.0)
16
- activesupport (7.1.3.4)
16
+ activesupport (8.0.2)
17
17
  base64
18
+ benchmark (>= 0.3)
18
19
  bigdecimal
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ concurrent-ruby (~> 1.0, >= 1.3.1)
20
21
  connection_pool (>= 2.2.5)
21
22
  drb
22
23
  i18n (>= 1.6, < 2)
24
+ logger (>= 1.4.2)
23
25
  minitest (>= 5.1)
24
- mutex_m
25
- tzinfo (~> 2.0)
26
- ast (2.4.2)
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0, >= 2.0.5)
28
+ uri (>= 0.13.1)
29
+ ast (2.4.3)
27
30
  base64 (0.2.0)
28
- bigdecimal (3.1.8)
29
- bundler-audit (0.9.1)
31
+ benchmark (0.4.0)
32
+ bigdecimal (3.1.9)
33
+ bundler-audit (0.9.2)
30
34
  bundler (>= 1.2.0, < 3)
31
35
  thor (~> 1.0)
32
- concurrent-ruby (1.3.3)
33
- connection_pool (2.4.1)
34
- diff-lcs (1.5.1)
35
- docile (1.4.0)
36
+ concurrent-ruby (1.3.5)
37
+ connection_pool (2.5.2)
38
+ diff-lcs (1.6.1)
39
+ docile (1.4.1)
36
40
  drb (2.2.1)
37
41
  fuubar (2.5.1)
38
42
  rspec-core (~> 3.0)
39
43
  ruby-progressbar (~> 1.4)
40
- i18n (1.14.5)
44
+ i18n (1.14.7)
41
45
  concurrent-ruby (~> 1.0)
42
- json (2.7.2)
43
- language_server-protocol (3.17.0.3)
44
- minitest (5.23.1)
45
- mutex_m (0.2.0)
46
+ json (2.10.2)
47
+ language_server-protocol (3.17.0.4)
48
+ lint_roller (1.1.0)
49
+ logger (1.7.0)
50
+ minitest (5.25.5)
46
51
  mysql2 (0.5.6)
47
- parallel (1.25.1)
48
- parser (3.3.2.0)
52
+ parallel (1.27.0)
53
+ parser (3.3.8.0)
49
54
  ast (~> 2.4.1)
50
55
  racc
51
- pg (1.5.6)
52
- racc (1.8.0)
53
- rack (3.1.0)
56
+ pg (1.5.9)
57
+ prism (1.4.0)
58
+ racc (1.8.1)
59
+ rack (3.1.13)
54
60
  rainbow (3.1.1)
55
61
  rake (13.2.1)
56
- regexp_parser (2.9.2)
57
- rexml (3.3.0)
58
- strscan
62
+ regexp_parser (2.10.0)
59
63
  rspec (3.13.0)
60
64
  rspec-core (~> 3.13.0)
61
65
  rspec-expectations (~> 3.13.0)
62
66
  rspec-mocks (~> 3.13.0)
63
- rspec-core (3.13.0)
67
+ rspec-core (3.13.3)
64
68
  rspec-support (~> 3.13.0)
65
- rspec-expectations (3.13.0)
69
+ rspec-expectations (3.13.3)
66
70
  diff-lcs (>= 1.2.0, < 2.0)
67
71
  rspec-support (~> 3.13.0)
68
- rspec-mocks (3.13.1)
72
+ rspec-mocks (3.13.2)
69
73
  diff-lcs (>= 1.2.0, < 2.0)
70
74
  rspec-support (~> 3.13.0)
71
- rspec-support (3.13.1)
72
- rubocop (1.64.1)
75
+ rspec-support (3.13.2)
76
+ rubocop (1.75.3)
73
77
  json (~> 2.3)
74
- language_server-protocol (>= 3.17.0)
78
+ language_server-protocol (~> 3.17.0.2)
79
+ lint_roller (~> 1.1.0)
75
80
  parallel (~> 1.10)
76
81
  parser (>= 3.3.0.2)
77
82
  rainbow (>= 2.2.2, < 4.0)
78
- regexp_parser (>= 1.8, < 3.0)
79
- rexml (>= 3.2.5, < 4.0)
80
- rubocop-ast (>= 1.31.1, < 2.0)
83
+ regexp_parser (>= 2.9.3, < 3.0)
84
+ rubocop-ast (>= 1.44.0, < 2.0)
81
85
  ruby-progressbar (~> 1.7)
82
- unicode-display_width (>= 2.4.0, < 3.0)
83
- rubocop-ast (1.31.3)
84
- parser (>= 3.3.1.0)
85
- rubocop-capybara (2.21.0)
86
- rubocop (~> 1.41)
87
- rubocop-factory_bot (2.26.0)
88
- rubocop (~> 1.41)
89
- rubocop-performance (1.21.0)
90
- rubocop (>= 1.48.1, < 2.0)
91
- rubocop-ast (>= 1.31.1, < 2.0)
92
- rubocop-rails (2.25.0)
86
+ unicode-display_width (>= 2.4.0, < 4.0)
87
+ rubocop-ast (1.44.1)
88
+ parser (>= 3.3.7.2)
89
+ prism (~> 1.4)
90
+ rubocop-performance (1.25.0)
91
+ lint_roller (~> 1.1)
92
+ rubocop (>= 1.75.0, < 2.0)
93
+ rubocop-ast (>= 1.38.0, < 2.0)
94
+ rubocop-rails (2.31.0)
93
95
  activesupport (>= 4.2.0)
96
+ lint_roller (~> 1.1)
94
97
  rack (>= 1.1)
95
- rubocop (>= 1.33.0, < 2.0)
96
- rubocop-ast (>= 1.31.1, < 2.0)
97
- rubocop-rake (0.6.0)
98
- rubocop (~> 1.0)
99
- rubocop-rspec (2.31.0)
100
- rubocop (~> 1.40)
101
- rubocop-capybara (~> 2.17)
102
- rubocop-factory_bot (~> 2.22)
103
- rubocop-rspec_rails (~> 2.28)
104
- rubocop-rspec_rails (2.29.0)
105
- rubocop (~> 1.40)
98
+ rubocop (>= 1.75.0, < 2.0)
99
+ rubocop-ast (>= 1.38.0, < 2.0)
100
+ rubocop-rake (0.7.1)
101
+ lint_roller (~> 1.1)
102
+ rubocop (>= 1.72.1)
103
+ rubocop-rspec (3.6.0)
104
+ lint_roller (~> 1.1)
105
+ rubocop (~> 1.72, >= 1.72.1)
106
106
  ruby-progressbar (1.13.0)
107
+ securerandom (0.4.1)
107
108
  simplecov (0.22.0)
108
109
  docile (~> 1.1)
109
110
  simplecov-html (~> 0.11)
110
111
  simplecov_json_formatter (~> 0.1)
111
- simplecov-html (0.12.3)
112
+ simplecov-html (0.13.1)
112
113
  simplecov-rcov (0.3.7)
113
114
  simplecov (>= 0.4.1)
114
115
  simplecov_json_formatter (0.1.4)
115
- strscan (3.1.0)
116
- thor (1.3.1)
117
- timeout (0.4.1)
116
+ thor (1.3.2)
117
+ timeout (0.4.3)
118
118
  tzinfo (2.0.6)
119
119
  concurrent-ruby (~> 1.0)
120
- unicode-display_width (2.5.0)
120
+ unicode-display_width (3.1.4)
121
+ unicode-emoji (~> 4.0, >= 4.0.4)
122
+ unicode-emoji (4.0.4)
123
+ uri (1.0.3)
121
124
 
122
125
  PLATFORMS
123
126
  x86_64-linux
@@ -140,4 +143,4 @@ DEPENDENCIES
140
143
  simplecov-rcov
141
144
 
142
145
  BUNDLED WITH
143
- 2.4.12
146
+ 2.5.3
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Denis Kiselyov
3
+ Copyright (c) 2018-2025 Denis Kiselyov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/friendly_fk.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  'rubygems_mfa_required' => 'true'
21
21
  }
22
22
 
23
- spec.required_ruby_version = '>= 2.6.0'
23
+ spec.required_ruby_version = '>= 3.2.0'
24
24
 
25
25
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
26
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyFk
4
- VERSION = '1.0.26'
4
+ VERSION = '1.0.28'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_fk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.26
4
+ version: 1.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Kiselyov
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-06-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -33,6 +32,7 @@ extra_rdoc_files: []
33
32
  files:
34
33
  - ".github/dependabot.yml"
35
34
  - ".github/workflows/bundle-audit.yml"
35
+ - ".github/workflows/publish.yml"
36
36
  - ".github/workflows/rspec-mysql.yml"
37
37
  - ".github/workflows/rspec-pg.yml"
38
38
  - ".github/workflows/rubocop.yml"
@@ -60,7 +60,6 @@ metadata:
60
60
  source_code_uri: https://github.com/marinazzio/friendly_fk
61
61
  rubygems_mfa_required: 'true'
62
62
  allowed_push_host: https://rubygems.org
63
- post_install_message:
64
63
  rdoc_options: []
65
64
  require_paths:
66
65
  - lib
@@ -68,15 +67,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
67
  requirements:
69
68
  - - ">="
70
69
  - !ruby/object:Gem::Version
71
- version: 2.6.0
70
+ version: 3.2.0
72
71
  required_rubygems_version: !ruby/object:Gem::Requirement
73
72
  requirements:
74
73
  - - ">="
75
74
  - !ruby/object:Gem::Version
76
75
  version: '0'
77
76
  requirements: []
78
- rubygems_version: 3.4.10
79
- signing_key:
77
+ rubygems_version: 3.6.7
80
78
  specification_version: 4
81
79
  summary: Creates foreign keys with friendly names
82
80
  test_files: []