auto_increment 1.7.0 → 1.7.1

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: 6e6fac57cfcbd6ca149f29207cd476b1962f324ec814f940614d945bbb4fe96b
4
- data.tar.gz: 723f6146d6346ef0593f67b611f0f54fb42c0d973ee3cd390a8fedf4384c6b69
3
+ metadata.gz: 0b8701c7b3e4b518cb5445dc684c249af1f2994130b0edc4ab98ef9fbfab63f7
4
+ data.tar.gz: 96eceadd52db5836d6d37ad9f672aafb166a7c2a6fc54302029b82a6c5386235
5
5
  SHA512:
6
- metadata.gz: 5dbe5d91f2566e78b34fbbe610dfc831740b1433d255ab22f7c43c8d8eb39babb070559d2e70f67266ae475dcb2691cebb801b803346bae23fa6b83834bc24ea
7
- data.tar.gz: f30c9187c8fd7b3dd97805841578e818278f50664552aa964d75ee408cc41b672c9f56112d1c800703c4ff2a81987dc7821e4a7a3f0c006a7277265b4f2c1ff4
6
+ metadata.gz: 1e320f7ea7cf46fdb0650ad3beca614dec810d49bf35915d45263597be6437842882a4c32ff658fa43ffc7b358c5a99f567bf76545fbf7c0572806c08d1f3e85
7
+ data.tar.gz: a2681a0089dd7edfece34ce71002fbd55acf5fe27222fa0421ec8a17e755f0b16f055fca4152d503f9a3aa511cf2f9647cbafecea7d6af14ea71754a4c76adc3
@@ -22,14 +22,14 @@ jobs:
22
22
  strategy:
23
23
  fail-fast: false
24
24
  matrix:
25
- ruby: ["3.3.11", "3.4.9", "4.0.5"]
25
+ ruby: ["3.3.13", "3.4.12", "4.0.9"]
26
26
  gemfile: [rails_7_1, rails_7_2, rails_8_0, rails_8_1]
27
27
  exclude:
28
- - ruby: "3.3.11"
28
+ - ruby: "3.3.13"
29
29
  gemfile: rails_8_0
30
- - ruby: "3.3.11"
30
+ - ruby: "3.3.13"
31
31
  gemfile: rails_8_1
32
- - ruby: "4.0.5"
32
+ - ruby: "4.0.9"
33
33
  gemfile: rails_7_1
34
34
  runs-on: ubuntu-latest
35
35
  permissions:
@@ -40,7 +40,7 @@ jobs:
40
40
  - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
41
41
  with:
42
42
  persist-credentials: false
43
- - uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.313.0
43
+ - uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
44
44
  with:
45
45
  ruby-version: ${{ matrix.ruby }}
46
46
  bundler-cache: true
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
- --drb
2
1
  --format Fuubar
3
2
  --color
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.4.9
1
+ 4.0.9
data/CHANGELOG.md CHANGED
@@ -1,10 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.7.1] - 2026-11-11
4
+
5
+ ### Changed
6
+
7
+ - Updated supported Ruby versions to 3.3.13, 3.4.12, and 4.0.9
8
+ - Refreshed development dependencies and CI setup
9
+ - Clarified gem metadata, compatibility guidance, blank value handling, and the limits of database row locking
10
+
3
11
  ## [1.7.0] - 2026-06-28
4
12
 
5
13
  ### Added
6
14
 
7
- - Thread safety via `lock:` option, acquires a DB row lock when computing the next value
15
+ - Added `lock:` option to request a database row lock when computing the next value (behavior depends on the database adapter and query; this does not guarantee uniqueness under concurrent inserts)
8
16
  - Automatic type-aware default for `initial`, inferred from the database column type (`"1"` for string/text, `1` for integer)
9
17
  - Deprecation warning when `initial` type doesn't match the database column type
10
18
 
@@ -43,7 +51,7 @@
43
51
 
44
52
  ### Deprecated
45
53
 
46
- - `scope:` parameter is deprecated in favor of `model_scope:`
54
+ - Deprecated the legacy `scope:` option for applying model scopes, in favor of `model_scope:`. The current `scope:` option filters sequence values by matching record attributes.
47
55
 
48
56
  ### Changed
49
57
 
data/Gemfile CHANGED
@@ -6,14 +6,12 @@ gemspec
6
6
 
7
7
  group :development do
8
8
  gem "appraisal"
9
- gem "bundler"
10
9
  gem "database_cleaner"
11
10
  gem "fuubar"
12
11
  gem "guard"
13
12
  gem "guard-rspec"
14
13
  gem "rake"
15
14
  gem "rspec"
16
- gem "rspec-nc"
17
- gem "sqlite3", "~> 2.9.5"
15
+ gem "sqlite3", "~> 2.10.2"
18
16
  gem "standard"
19
17
  end
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auto_increment (1.7.0)
4
+ auto_increment (1.7.1)
5
5
  activerecord (>= 7.1)
6
6
  activesupport (>= 7.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (8.1.3)
12
- activesupport (= 8.1.3)
13
- activerecord (8.1.3)
14
- activemodel (= 8.1.3)
15
- activesupport (= 8.1.3)
11
+ activemodel (8.1.4.1)
12
+ activesupport (= 8.1.4.1)
13
+ activerecord (8.1.4.1)
14
+ activemodel (= 8.1.4.1)
15
+ activesupport (= 8.1.4.1)
16
16
  timeout (>= 0.4.0)
17
- activesupport (8.1.3)
17
+ activesupport (8.1.4.1)
18
18
  base64
19
19
  bigdecimal
20
20
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -33,9 +33,9 @@ GEM
33
33
  thor (>= 0.14.0)
34
34
  ast (2.4.3)
35
35
  base64 (0.3.0)
36
- bigdecimal (4.1.2)
36
+ bigdecimal (4.1.3)
37
37
  coderay (1.1.3)
38
- concurrent-ruby (1.3.7)
38
+ concurrent-ruby (1.3.8)
39
39
  connection_pool (3.0.2)
40
40
  database_cleaner (2.1.0)
41
41
  database_cleaner-active_record (>= 2, < 3)
@@ -52,7 +52,7 @@ GEM
52
52
  fuubar (2.5.1)
53
53
  rspec-core (~> 3.0)
54
54
  ruby-progressbar (~> 1.4)
55
- guard (2.20.1)
55
+ guard (2.20.2)
56
56
  formatador (>= 0.2.4)
57
57
  listen (>= 2.7, < 4.0)
58
58
  logger (~> 1.6)
@@ -67,13 +67,13 @@ GEM
67
67
  guard (~> 2.1)
68
68
  guard-compat (~> 1.1)
69
69
  rspec (>= 2.99.0, < 4.0)
70
- i18n (1.14.8)
70
+ i18n (1.15.2)
71
71
  concurrent-ruby (~> 1.0)
72
- io-console (0.8.2)
73
- json (2.19.8)
74
- language_server-protocol (3.17.0.5)
72
+ io-console (0.9.5)
73
+ json (3.1.0)
74
+ language_server-protocol (3.17.0.6)
75
75
  lint_roller (1.1.0)
76
- listen (3.10.0)
76
+ listen (3.10.1)
77
77
  logger
78
78
  rb-fsevent (~> 0.10, >= 0.10.3)
79
79
  rb-inotify (~> 0.9, >= 0.9.10)
@@ -81,19 +81,20 @@ GEM
81
81
  lumberjack (1.4.2)
82
82
  method_source (1.1.0)
83
83
  mini_portile2 (2.8.9)
84
- minitest (6.0.6)
84
+ minitest (6.1.0)
85
85
  drb (~> 2.0)
86
- prism (~> 1.5)
86
+ prism (>= 1.5, < 3)
87
87
  nenv (0.3.0)
88
88
  notiffany (0.1.3)
89
89
  nenv (~> 0.1)
90
90
  shellany (~> 0.0)
91
- parallel (1.28.0)
92
- parser (3.3.11.1)
91
+ parallel (2.3.0)
92
+ parser (3.3.13.0)
93
93
  ast (~> 2.4.1)
94
94
  racc
95
- prism (1.9.0)
96
- pry (0.16.0)
95
+ prism (2.1.0)
96
+ prism (2.1.0-x86_64-linux-gnu)
97
+ pry (0.16.1)
97
98
  coderay (~> 1.1)
98
99
  method_source (~> 1.0)
99
100
  reline (>= 0.6.0)
@@ -103,39 +104,36 @@ GEM
103
104
  rb-fsevent (0.11.2)
104
105
  rb-inotify (0.11.1)
105
106
  ffi (~> 1.0)
106
- regexp_parser (2.12.0)
107
- reline (0.6.3)
107
+ regexp_parser (2.13.1)
108
+ reline (0.7.0)
108
109
  io-console (~> 0.5)
109
110
  rspec (3.13.2)
110
111
  rspec-core (~> 3.13.0)
111
112
  rspec-expectations (~> 3.13.0)
112
113
  rspec-mocks (~> 3.13.0)
113
- rspec-core (3.13.6)
114
+ rspec-core (3.13.7)
114
115
  rspec-support (~> 3.13.0)
115
- rspec-expectations (3.13.5)
116
+ rspec-expectations (3.13.6)
116
117
  diff-lcs (>= 1.2.0, < 2.0)
117
118
  rspec-support (~> 3.13.0)
118
- rspec-mocks (3.13.8)
119
+ rspec-mocks (3.13.9)
119
120
  diff-lcs (>= 1.2.0, < 2.0)
120
121
  rspec-support (~> 3.13.0)
121
- rspec-nc (0.3.0)
122
- rspec (>= 3)
123
- terminal-notifier (>= 1.4)
124
- rspec-support (3.13.7)
125
- rubocop (1.84.2)
126
- json (~> 2.3)
122
+ rspec-support (3.13.8)
123
+ rubocop (1.91.0)
124
+ json (>= 2.3)
127
125
  language_server-protocol (~> 3.17.0.2)
128
126
  lint_roller (~> 1.1.0)
129
- parallel (~> 1.10)
127
+ parallel (>= 1.10)
130
128
  parser (>= 3.3.0.2)
131
129
  rainbow (>= 2.2.2, < 4.0)
132
130
  regexp_parser (>= 2.9.3, < 3.0)
133
131
  rubocop-ast (>= 1.49.0, < 2.0)
134
132
  ruby-progressbar (~> 1.7)
135
133
  unicode-display_width (>= 2.4.0, < 4.0)
136
- rubocop-ast (1.49.1)
134
+ rubocop-ast (1.51.0)
137
135
  parser (>= 3.3.7.2)
138
- prism (~> 1.7)
136
+ prism (>= 1.7)
139
137
  rubocop-performance (1.26.1)
140
138
  lint_roller (~> 1.1)
141
139
  rubocop (>= 1.75.0, < 2.0)
@@ -143,13 +141,13 @@ GEM
143
141
  ruby-progressbar (1.13.0)
144
142
  securerandom (0.4.1)
145
143
  shellany (0.0.1)
146
- sqlite3 (2.9.5)
144
+ sqlite3 (2.10.2)
147
145
  mini_portile2 (~> 2.8.0)
148
- sqlite3 (2.9.5-x86_64-linux-gnu)
149
- standard (1.54.0)
146
+ sqlite3 (2.10.2-x86_64-linux-gnu)
147
+ standard (1.57.0)
150
148
  language_server-protocol (~> 3.17.0.2)
151
149
  lint_roller (~> 1.0)
152
- rubocop (~> 1.84.0)
150
+ rubocop (~> 1.91.0)
153
151
  standard-custom (~> 1.0.0)
154
152
  standard-performance (~> 1.8)
155
153
  standard-custom (1.0.2)
@@ -158,15 +156,14 @@ GEM
158
156
  standard-performance (1.9.0)
159
157
  lint_roller (~> 1.1)
160
158
  rubocop-performance (~> 1.26.0)
161
- terminal-notifier (2.0.0)
162
159
  thor (1.5.0)
163
160
  timeout (0.6.1)
164
161
  tzinfo (2.0.6)
165
162
  concurrent-ruby (~> 1.0)
166
- unicode-display_width (3.2.0)
167
- unicode-emoji (~> 4.1)
168
- unicode-emoji (4.2.0)
169
- uri (1.1.1)
163
+ unicode-display_width (3.3.0)
164
+ unicode-emoji (~> 4.3)
165
+ unicode-emoji (4.3.0)
166
+ uri (1.1.2)
170
167
 
171
168
  PLATFORMS
172
169
  ruby
@@ -175,15 +172,13 @@ PLATFORMS
175
172
  DEPENDENCIES
176
173
  appraisal
177
174
  auto_increment!
178
- bundler
179
175
  database_cleaner
180
176
  fuubar
181
177
  guard
182
178
  guard-rspec
183
179
  rake
184
180
  rspec
185
- rspec-nc
186
- sqlite3 (~> 2.9.5)
181
+ sqlite3 (~> 2.10.2)
187
182
  standard
188
183
 
189
184
  BUNDLED WITH
data/README.md CHANGED
@@ -213,7 +213,7 @@ end
213
213
 
214
214
  ### Overwriting Existing Values
215
215
 
216
- By default, manually assigned values are preserved.
216
+ By default, manually assigned nonblank values are preserved. Blank values (as defined by Active Support, including `nil`, `false`, `0`, and `""`) are treated as unset and will be generated.
217
217
 
218
218
  ```rb
219
219
  invoice.number = 500
@@ -228,13 +228,13 @@ auto_increment :number, force: true
228
228
 
229
229
  ### Concurrency
230
230
 
231
- For applications that may create records concurrently, enable locking:
231
+ To request a database row lock while calculating the next value, enable locking:
232
232
 
233
233
  ```rb
234
234
  auto_increment :number, lock: true
235
235
  ```
236
236
 
237
- This locks the record used to determine the next value before assigning it.
237
+ The lock is applied to the query used to find the current maximum. Its behavior depends on the database adapter and query; this option does not guarantee unique values under concurrent inserts. Add a unique database index on the generated column (or on the generated column together with its scope columns) to enforce uniqueness.
238
238
 
239
239
  ## Options
240
240
 
@@ -251,7 +251,7 @@ auto_increment :number,
251
251
  | Option | Description | Default |
252
252
  | ------------- | ------------------------------------------------------------------ | --------- |
253
253
  | `column` | Column to increment. Can be integer or string. | `:code` |
254
- | `initial` | Starting value. Must match the database column type (`Integer` for integer columns, `String` for string columns). When omitted, inferred from the column type. | `1` or `"1"` (inferred) |
254
+ | `initial` | Starting value. Should match the database column type (`Integer` for integer columns, `String` for string columns); a mismatch is deprecated. When omitted, inferred from the column type. | `1` or `"1"` (inferred) |
255
255
  | `scope` | Restricts the sequence to matching column values. | `nil` |
256
256
  | `model_scope` | Applies Active Record scopes before calculating the maximum value. | `nil` |
257
257
  | `force` | Overwrites an already assigned value. | `false` |
@@ -279,11 +279,7 @@ The generated value is stored in a normal database column and can be queried, in
279
279
  | 3.4 | 7.1, 7.2, 8.0, 8.1 |
280
280
  | 4.0 | 7.2, 8.0, 8.1 |
281
281
 
282
- For older Ruby and Rails versions, use:
283
-
284
- ```rb
285
- gem "auto_increment", "1.5.2"
286
- ```
282
+ This release supports Rails 7.1 and newer. The older 1.6.2 release supports Rails 6.1 and 7.0; for earlier Rails versions, see the [changelog](CHANGELOG.md) for the releases that added support.
287
283
 
288
284
  ## License
289
285
 
@@ -9,10 +9,11 @@ Gem::Specification.new do |s|
9
9
  s.licenses = "MIT"
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = ["Felipe Diesel"]
12
- s.email = ["diesel@hey.com"]
13
- s.homepage = "http://github.com/felipediesel/auto_increment"
12
+ s.email = ["felipediesel@gmail.com"]
13
+ s.homepage = "https://github.com/felipediesel/auto_increment"
14
14
  s.summary = "Auto increment a string or integer column"
15
- s.description = "Automatically increments an ActiveRecord column"
15
+ s.description = "Automatically generates sequential values for string or integer Active Record columns."
16
+ s.metadata["source_code_uri"] = "https://github.com/felipediesel/auto_increment"
16
17
 
17
18
  s.files = `git ls-files`.split("\n")
18
19
  s.require_paths = ["lib"]
@@ -7,15 +7,13 @@ gem "activesupport", "7.1.6"
7
7
 
8
8
  group :development do
9
9
  gem "appraisal"
10
- gem "bundler"
11
10
  gem "database_cleaner"
12
11
  gem "fuubar"
13
12
  gem "guard"
14
13
  gem "guard-rspec"
15
14
  gem "rake"
16
15
  gem "rspec"
17
- gem "rspec-nc"
18
- gem "sqlite3", "~> 2.9.5"
16
+ gem "sqlite3", "~> 2.10.2"
19
17
  gem "standard"
20
18
  end
21
19
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- auto_increment (1.7.0)
4
+ auto_increment (1.7.1)
5
5
  activerecord (>= 7.1)
6
6
  activesupport (>= 7.1)
7
7
 
@@ -53,7 +53,7 @@ GEM
53
53
  fuubar (2.5.1)
54
54
  rspec-core (~> 3.0)
55
55
  ruby-progressbar (~> 1.4)
56
- guard (2.20.1)
56
+ guard (2.20.2)
57
57
  formatador (>= 0.2.4)
58
58
  listen (>= 2.7, < 4.0)
59
59
  logger (~> 1.6)
@@ -70,11 +70,11 @@ GEM
70
70
  rspec (>= 2.99.0, < 4.0)
71
71
  i18n (1.15.2)
72
72
  concurrent-ruby (~> 1.0)
73
- io-console (0.8.2)
74
- json (2.20.0)
75
- language_server-protocol (3.17.0.5)
73
+ io-console (0.9.5)
74
+ json (3.1.0)
75
+ language_server-protocol (3.17.0.6)
76
76
  lint_roller (1.1.0)
77
- listen (3.10.0)
77
+ listen (3.10.1)
78
78
  logger
79
79
  rb-fsevent (~> 0.10, >= 0.10.3)
80
80
  rb-inotify (~> 0.9, >= 0.9.10)
@@ -89,12 +89,12 @@ GEM
89
89
  notiffany (0.1.3)
90
90
  nenv (~> 0.1)
91
91
  shellany (~> 0.0)
92
- parallel (2.1.0)
93
- parser (3.3.11.1)
92
+ parallel (2.3.0)
93
+ parser (3.3.13.0)
94
94
  ast (~> 2.4.1)
95
95
  racc
96
96
  prism (1.9.0)
97
- pry (0.16.0)
97
+ pry (0.16.1)
98
98
  coderay (~> 1.1)
99
99
  method_source (~> 1.0)
100
100
  reline (>= 0.6.0)
@@ -104,27 +104,24 @@ GEM
104
104
  rb-fsevent (0.11.2)
105
105
  rb-inotify (0.11.1)
106
106
  ffi (~> 1.0)
107
- regexp_parser (2.12.0)
108
- reline (0.6.3)
107
+ regexp_parser (2.13.1)
108
+ reline (0.7.0)
109
109
  io-console (~> 0.5)
110
110
  rspec (3.13.2)
111
111
  rspec-core (~> 3.13.0)
112
112
  rspec-expectations (~> 3.13.0)
113
113
  rspec-mocks (~> 3.13.0)
114
- rspec-core (3.13.6)
114
+ rspec-core (3.13.7)
115
115
  rspec-support (~> 3.13.0)
116
- rspec-expectations (3.13.5)
116
+ rspec-expectations (3.13.6)
117
117
  diff-lcs (>= 1.2.0, < 2.0)
118
118
  rspec-support (~> 3.13.0)
119
- rspec-mocks (3.13.8)
119
+ rspec-mocks (3.13.9)
120
120
  diff-lcs (>= 1.2.0, < 2.0)
121
121
  rspec-support (~> 3.13.0)
122
- rspec-nc (0.3.0)
123
- rspec (>= 3)
124
- terminal-notifier (>= 1.4)
125
- rspec-support (3.13.7)
126
- rubocop (1.87.0)
127
- json (~> 2.3)
122
+ rspec-support (3.13.8)
123
+ rubocop (1.91.0)
124
+ json (>= 2.3)
128
125
  language_server-protocol (~> 3.17.0.2)
129
126
  lint_roller (~> 1.1.0)
130
127
  parallel (>= 1.10)
@@ -134,9 +131,9 @@ GEM
134
131
  rubocop-ast (>= 1.49.0, < 2.0)
135
132
  ruby-progressbar (~> 1.7)
136
133
  unicode-display_width (>= 2.4.0, < 4.0)
137
- rubocop-ast (1.49.1)
134
+ rubocop-ast (1.51.0)
138
135
  parser (>= 3.3.7.2)
139
- prism (~> 1.7)
136
+ prism (>= 1.7)
140
137
  rubocop-performance (1.26.1)
141
138
  lint_roller (~> 1.1)
142
139
  rubocop (>= 1.75.0, < 2.0)
@@ -144,12 +141,12 @@ GEM
144
141
  ruby-progressbar (1.13.0)
145
142
  securerandom (0.4.1)
146
143
  shellany (0.0.1)
147
- sqlite3 (2.9.5-arm64-darwin)
148
- sqlite3 (2.9.5-x86_64-linux-gnu)
149
- standard (1.55.0)
144
+ sqlite3 (2.10.2-arm64-darwin)
145
+ sqlite3 (2.10.2-x86_64-linux-gnu)
146
+ standard (1.57.0)
150
147
  language_server-protocol (~> 3.17.0.2)
151
148
  lint_roller (~> 1.0)
152
- rubocop (~> 1.87.0)
149
+ rubocop (~> 1.91.0)
153
150
  standard-custom (~> 1.0.0)
154
151
  standard-performance (~> 1.8)
155
152
  standard-custom (1.0.2)
@@ -158,14 +155,13 @@ GEM
158
155
  standard-performance (1.9.0)
159
156
  lint_roller (~> 1.1)
160
157
  rubocop-performance (~> 1.26.0)
161
- terminal-notifier (2.0.0)
162
158
  thor (1.5.0)
163
159
  timeout (0.6.1)
164
160
  tzinfo (2.0.6)
165
161
  concurrent-ruby (~> 1.0)
166
- unicode-display_width (3.2.0)
167
- unicode-emoji (~> 4.1)
168
- unicode-emoji (4.2.0)
162
+ unicode-display_width (3.3.0)
163
+ unicode-emoji (~> 4.3)
164
+ unicode-emoji (4.3.0)
169
165
 
170
166
  PLATFORMS
171
167
  arm64-darwin-24
@@ -176,15 +172,13 @@ DEPENDENCIES
176
172
  activesupport (= 7.1.6)
177
173
  appraisal
178
174
  auto_increment!
179
- bundler
180
175
  database_cleaner
181
176
  fuubar
182
177
  guard
183
178
  guard-rspec
184
179
  rake
185
180
  rspec
186
- rspec-nc
187
- sqlite3 (~> 2.9.5)
181
+ sqlite3 (~> 2.10.2)
188
182
  standard
189
183
 
190
184
  BUNDLED WITH
@@ -7,15 +7,13 @@ gem "activesupport", "7.2.3.1"
7
7
 
8
8
  group :development do
9
9
  gem "appraisal"
10
- gem "bundler"
11
10
  gem "database_cleaner"
12
11
  gem "fuubar"
13
12
  gem "guard"
14
13
  gem "guard-rspec"
15
14
  gem "rake"
16
15
  gem "rspec"
17
- gem "rspec-nc"
18
- gem "sqlite3", "~> 2.9.5"
16
+ gem "sqlite3", "~> 2.10.2"
19
17
  gem "standard"
20
18
  end
21
19
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- auto_increment (1.7.0)
4
+ auto_increment (1.7.1)
5
5
  activerecord (>= 7.1)
6
6
  activesupport (>= 7.1)
7
7
 
@@ -52,7 +52,7 @@ GEM
52
52
  fuubar (2.5.1)
53
53
  rspec-core (~> 3.0)
54
54
  ruby-progressbar (~> 1.4)
55
- guard (2.20.1)
55
+ guard (2.20.2)
56
56
  formatador (>= 0.2.4)
57
57
  listen (>= 2.7, < 4.0)
58
58
  logger (~> 1.6)
@@ -69,11 +69,11 @@ GEM
69
69
  rspec (>= 2.99.0, < 4.0)
70
70
  i18n (1.15.2)
71
71
  concurrent-ruby (~> 1.0)
72
- io-console (0.8.2)
73
- json (2.20.0)
74
- language_server-protocol (3.17.0.5)
72
+ io-console (0.9.5)
73
+ json (3.1.0)
74
+ language_server-protocol (3.17.0.6)
75
75
  lint_roller (1.1.0)
76
- listen (3.10.0)
76
+ listen (3.10.1)
77
77
  logger
78
78
  rb-fsevent (~> 0.10, >= 0.10.3)
79
79
  rb-inotify (~> 0.9, >= 0.9.10)
@@ -85,12 +85,13 @@ GEM
85
85
  notiffany (0.1.3)
86
86
  nenv (~> 0.1)
87
87
  shellany (~> 0.0)
88
- parallel (2.1.0)
89
- parser (3.3.11.1)
88
+ parallel (2.3.0)
89
+ parser (3.3.13.0)
90
90
  ast (~> 2.4.1)
91
91
  racc
92
- prism (1.9.0)
93
- pry (0.16.0)
92
+ prism (2.1.0-arm64-darwin)
93
+ prism (2.1.0-x86_64-linux-gnu)
94
+ pry (0.16.1)
94
95
  coderay (~> 1.1)
95
96
  method_source (~> 1.0)
96
97
  reline (>= 0.6.0)
@@ -100,27 +101,24 @@ GEM
100
101
  rb-fsevent (0.11.2)
101
102
  rb-inotify (0.11.1)
102
103
  ffi (~> 1.0)
103
- regexp_parser (2.12.0)
104
- reline (0.6.3)
104
+ regexp_parser (2.13.1)
105
+ reline (0.7.0)
105
106
  io-console (~> 0.5)
106
107
  rspec (3.13.2)
107
108
  rspec-core (~> 3.13.0)
108
109
  rspec-expectations (~> 3.13.0)
109
110
  rspec-mocks (~> 3.13.0)
110
- rspec-core (3.13.6)
111
+ rspec-core (3.13.7)
111
112
  rspec-support (~> 3.13.0)
112
- rspec-expectations (3.13.5)
113
+ rspec-expectations (3.13.6)
113
114
  diff-lcs (>= 1.2.0, < 2.0)
114
115
  rspec-support (~> 3.13.0)
115
- rspec-mocks (3.13.8)
116
+ rspec-mocks (3.13.9)
116
117
  diff-lcs (>= 1.2.0, < 2.0)
117
118
  rspec-support (~> 3.13.0)
118
- rspec-nc (0.3.0)
119
- rspec (>= 3)
120
- terminal-notifier (>= 1.4)
121
- rspec-support (3.13.7)
122
- rubocop (1.87.0)
123
- json (~> 2.3)
119
+ rspec-support (3.13.8)
120
+ rubocop (1.91.0)
121
+ json (>= 2.3)
124
122
  language_server-protocol (~> 3.17.0.2)
125
123
  lint_roller (~> 1.1.0)
126
124
  parallel (>= 1.10)
@@ -130,9 +128,9 @@ GEM
130
128
  rubocop-ast (>= 1.49.0, < 2.0)
131
129
  ruby-progressbar (~> 1.7)
132
130
  unicode-display_width (>= 2.4.0, < 4.0)
133
- rubocop-ast (1.49.1)
131
+ rubocop-ast (1.51.0)
134
132
  parser (>= 3.3.7.2)
135
- prism (~> 1.7)
133
+ prism (>= 1.7)
136
134
  rubocop-performance (1.26.1)
137
135
  lint_roller (~> 1.1)
138
136
  rubocop (>= 1.75.0, < 2.0)
@@ -140,12 +138,12 @@ GEM
140
138
  ruby-progressbar (1.13.0)
141
139
  securerandom (0.4.1)
142
140
  shellany (0.0.1)
143
- sqlite3 (2.9.5-arm64-darwin)
144
- sqlite3 (2.9.5-x86_64-linux-gnu)
145
- standard (1.55.0)
141
+ sqlite3 (2.10.2-arm64-darwin)
142
+ sqlite3 (2.10.2-x86_64-linux-gnu)
143
+ standard (1.57.0)
146
144
  language_server-protocol (~> 3.17.0.2)
147
145
  lint_roller (~> 1.0)
148
- rubocop (~> 1.87.0)
146
+ rubocop (~> 1.91.0)
149
147
  standard-custom (~> 1.0.0)
150
148
  standard-performance (~> 1.8)
151
149
  standard-custom (1.0.2)
@@ -154,14 +152,13 @@ GEM
154
152
  standard-performance (1.9.0)
155
153
  lint_roller (~> 1.1)
156
154
  rubocop-performance (~> 1.26.0)
157
- terminal-notifier (2.0.0)
158
155
  thor (1.5.0)
159
156
  timeout (0.6.1)
160
157
  tzinfo (2.0.6)
161
158
  concurrent-ruby (~> 1.0)
162
- unicode-display_width (3.2.0)
163
- unicode-emoji (~> 4.1)
164
- unicode-emoji (4.2.0)
159
+ unicode-display_width (3.3.0)
160
+ unicode-emoji (~> 4.3)
161
+ unicode-emoji (4.3.0)
165
162
 
166
163
  PLATFORMS
167
164
  arm64-darwin-24
@@ -172,15 +169,13 @@ DEPENDENCIES
172
169
  activesupport (= 7.2.3.1)
173
170
  appraisal
174
171
  auto_increment!
175
- bundler
176
172
  database_cleaner
177
173
  fuubar
178
174
  guard
179
175
  guard-rspec
180
176
  rake
181
177
  rspec
182
- rspec-nc
183
- sqlite3 (~> 2.9.5)
178
+ sqlite3 (~> 2.10.2)
184
179
  standard
185
180
 
186
181
  BUNDLED WITH
@@ -7,15 +7,13 @@ gem "activesupport", "8.0.5"
7
7
 
8
8
  group :development do
9
9
  gem "appraisal"
10
- gem "bundler"
11
10
  gem "database_cleaner"
12
11
  gem "fuubar"
13
12
  gem "guard"
14
13
  gem "guard-rspec"
15
14
  gem "rake"
16
15
  gem "rspec"
17
- gem "rspec-nc"
18
- gem "sqlite3", "~> 2.9.5"
16
+ gem "sqlite3", "~> 2.10.2"
19
17
  gem "standard"
20
18
  end
21
19
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- auto_increment (1.7.0)
4
+ auto_increment (1.7.1)
5
5
  activerecord (>= 7.1)
6
6
  activesupport (>= 7.1)
7
7
 
@@ -53,7 +53,7 @@ GEM
53
53
  fuubar (2.5.1)
54
54
  rspec-core (~> 3.0)
55
55
  ruby-progressbar (~> 1.4)
56
- guard (2.20.1)
56
+ guard (2.20.2)
57
57
  formatador (>= 0.2.4)
58
58
  listen (>= 2.7, < 4.0)
59
59
  logger (~> 1.6)
@@ -70,11 +70,11 @@ GEM
70
70
  rspec (>= 2.99.0, < 4.0)
71
71
  i18n (1.15.2)
72
72
  concurrent-ruby (~> 1.0)
73
- io-console (0.8.2)
74
- json (2.20.0)
75
- language_server-protocol (3.17.0.5)
73
+ io-console (0.9.5)
74
+ json (3.1.0)
75
+ language_server-protocol (3.17.0.6)
76
76
  lint_roller (1.1.0)
77
- listen (3.10.0)
77
+ listen (3.10.1)
78
78
  logger
79
79
  rb-fsevent (~> 0.10, >= 0.10.3)
80
80
  rb-inotify (~> 0.9, >= 0.9.10)
@@ -88,12 +88,12 @@ GEM
88
88
  notiffany (0.1.3)
89
89
  nenv (~> 0.1)
90
90
  shellany (~> 0.0)
91
- parallel (2.1.0)
92
- parser (3.3.11.1)
91
+ parallel (2.3.0)
92
+ parser (3.3.13.0)
93
93
  ast (~> 2.4.1)
94
94
  racc
95
95
  prism (1.9.0)
96
- pry (0.16.0)
96
+ pry (0.16.1)
97
97
  coderay (~> 1.1)
98
98
  method_source (~> 1.0)
99
99
  reline (>= 0.6.0)
@@ -103,27 +103,24 @@ GEM
103
103
  rb-fsevent (0.11.2)
104
104
  rb-inotify (0.11.1)
105
105
  ffi (~> 1.0)
106
- regexp_parser (2.12.0)
107
- reline (0.6.3)
106
+ regexp_parser (2.13.1)
107
+ reline (0.7.0)
108
108
  io-console (~> 0.5)
109
109
  rspec (3.13.2)
110
110
  rspec-core (~> 3.13.0)
111
111
  rspec-expectations (~> 3.13.0)
112
112
  rspec-mocks (~> 3.13.0)
113
- rspec-core (3.13.6)
113
+ rspec-core (3.13.7)
114
114
  rspec-support (~> 3.13.0)
115
- rspec-expectations (3.13.5)
115
+ rspec-expectations (3.13.6)
116
116
  diff-lcs (>= 1.2.0, < 2.0)
117
117
  rspec-support (~> 3.13.0)
118
- rspec-mocks (3.13.8)
118
+ rspec-mocks (3.13.9)
119
119
  diff-lcs (>= 1.2.0, < 2.0)
120
120
  rspec-support (~> 3.13.0)
121
- rspec-nc (0.3.0)
122
- rspec (>= 3)
123
- terminal-notifier (>= 1.4)
124
- rspec-support (3.13.7)
125
- rubocop (1.87.0)
126
- json (~> 2.3)
121
+ rspec-support (3.13.8)
122
+ rubocop (1.91.0)
123
+ json (>= 2.3)
127
124
  language_server-protocol (~> 3.17.0.2)
128
125
  lint_roller (~> 1.1.0)
129
126
  parallel (>= 1.10)
@@ -133,9 +130,9 @@ GEM
133
130
  rubocop-ast (>= 1.49.0, < 2.0)
134
131
  ruby-progressbar (~> 1.7)
135
132
  unicode-display_width (>= 2.4.0, < 4.0)
136
- rubocop-ast (1.49.1)
133
+ rubocop-ast (1.51.0)
137
134
  parser (>= 3.3.7.2)
138
- prism (~> 1.7)
135
+ prism (>= 1.7)
139
136
  rubocop-performance (1.26.1)
140
137
  lint_roller (~> 1.1)
141
138
  rubocop (>= 1.75.0, < 2.0)
@@ -143,12 +140,12 @@ GEM
143
140
  ruby-progressbar (1.13.0)
144
141
  securerandom (0.4.1)
145
142
  shellany (0.0.1)
146
- sqlite3 (2.9.5-arm64-darwin)
147
- sqlite3 (2.9.5-x86_64-linux-gnu)
148
- standard (1.55.0)
143
+ sqlite3 (2.10.2-arm64-darwin)
144
+ sqlite3 (2.10.2-x86_64-linux-gnu)
145
+ standard (1.57.0)
149
146
  language_server-protocol (~> 3.17.0.2)
150
147
  lint_roller (~> 1.0)
151
- rubocop (~> 1.87.0)
148
+ rubocop (~> 1.91.0)
152
149
  standard-custom (~> 1.0.0)
153
150
  standard-performance (~> 1.8)
154
151
  standard-custom (1.0.2)
@@ -157,14 +154,13 @@ GEM
157
154
  standard-performance (1.9.0)
158
155
  lint_roller (~> 1.1)
159
156
  rubocop-performance (~> 1.26.0)
160
- terminal-notifier (2.0.0)
161
157
  thor (1.5.0)
162
158
  timeout (0.6.1)
163
159
  tzinfo (2.0.6)
164
160
  concurrent-ruby (~> 1.0)
165
- unicode-display_width (3.2.0)
166
- unicode-emoji (~> 4.1)
167
- unicode-emoji (4.2.0)
161
+ unicode-display_width (3.3.0)
162
+ unicode-emoji (~> 4.3)
163
+ unicode-emoji (4.3.0)
168
164
  uri (1.1.1)
169
165
 
170
166
  PLATFORMS
@@ -176,15 +172,13 @@ DEPENDENCIES
176
172
  activesupport (= 8.0.5)
177
173
  appraisal
178
174
  auto_increment!
179
- bundler
180
175
  database_cleaner
181
176
  fuubar
182
177
  guard
183
178
  guard-rspec
184
179
  rake
185
180
  rspec
186
- rspec-nc
187
- sqlite3 (~> 2.9.5)
181
+ sqlite3 (~> 2.10.2)
188
182
  standard
189
183
 
190
184
  BUNDLED WITH
@@ -7,15 +7,13 @@ gem "activesupport", "8.1.3"
7
7
 
8
8
  group :development do
9
9
  gem "appraisal"
10
- gem "bundler"
11
10
  gem "database_cleaner"
12
11
  gem "fuubar"
13
12
  gem "guard"
14
13
  gem "guard-rspec"
15
14
  gem "rake"
16
15
  gem "rspec"
17
- gem "rspec-nc"
18
- gem "sqlite3", "~> 2.9.5"
16
+ gem "sqlite3", "~> 2.10.2"
19
17
  gem "standard"
20
18
  end
21
19
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- auto_increment (1.7.0)
4
+ auto_increment (1.7.1)
5
5
  activerecord (>= 7.1)
6
6
  activesupport (>= 7.1)
7
7
 
@@ -52,7 +52,7 @@ GEM
52
52
  fuubar (2.5.1)
53
53
  rspec-core (~> 3.0)
54
54
  ruby-progressbar (~> 1.4)
55
- guard (2.20.1)
55
+ guard (2.20.2)
56
56
  formatador (>= 0.2.4)
57
57
  listen (>= 2.7, < 4.0)
58
58
  logger (~> 1.6)
@@ -69,11 +69,11 @@ GEM
69
69
  rspec (>= 2.99.0, < 4.0)
70
70
  i18n (1.15.2)
71
71
  concurrent-ruby (~> 1.0)
72
- io-console (0.8.2)
73
- json (2.20.0)
74
- language_server-protocol (3.17.0.5)
72
+ io-console (0.9.5)
73
+ json (3.1.0)
74
+ language_server-protocol (3.17.0.6)
75
75
  lint_roller (1.1.0)
76
- listen (3.10.0)
76
+ listen (3.10.1)
77
77
  logger
78
78
  rb-fsevent (~> 0.10, >= 0.10.3)
79
79
  rb-inotify (~> 0.9, >= 0.9.10)
@@ -87,12 +87,12 @@ GEM
87
87
  notiffany (0.1.3)
88
88
  nenv (~> 0.1)
89
89
  shellany (~> 0.0)
90
- parallel (2.1.0)
91
- parser (3.3.11.1)
90
+ parallel (2.3.0)
91
+ parser (3.3.13.0)
92
92
  ast (~> 2.4.1)
93
93
  racc
94
94
  prism (1.9.0)
95
- pry (0.16.0)
95
+ pry (0.16.1)
96
96
  coderay (~> 1.1)
97
97
  method_source (~> 1.0)
98
98
  reline (>= 0.6.0)
@@ -102,27 +102,24 @@ GEM
102
102
  rb-fsevent (0.11.2)
103
103
  rb-inotify (0.11.1)
104
104
  ffi (~> 1.0)
105
- regexp_parser (2.12.0)
106
- reline (0.6.3)
105
+ regexp_parser (2.13.1)
106
+ reline (0.7.0)
107
107
  io-console (~> 0.5)
108
108
  rspec (3.13.2)
109
109
  rspec-core (~> 3.13.0)
110
110
  rspec-expectations (~> 3.13.0)
111
111
  rspec-mocks (~> 3.13.0)
112
- rspec-core (3.13.6)
112
+ rspec-core (3.13.7)
113
113
  rspec-support (~> 3.13.0)
114
- rspec-expectations (3.13.5)
114
+ rspec-expectations (3.13.6)
115
115
  diff-lcs (>= 1.2.0, < 2.0)
116
116
  rspec-support (~> 3.13.0)
117
- rspec-mocks (3.13.8)
117
+ rspec-mocks (3.13.9)
118
118
  diff-lcs (>= 1.2.0, < 2.0)
119
119
  rspec-support (~> 3.13.0)
120
- rspec-nc (0.3.0)
121
- rspec (>= 3)
122
- terminal-notifier (>= 1.4)
123
- rspec-support (3.13.7)
124
- rubocop (1.87.0)
125
- json (~> 2.3)
120
+ rspec-support (3.13.8)
121
+ rubocop (1.91.0)
122
+ json (>= 2.3)
126
123
  language_server-protocol (~> 3.17.0.2)
127
124
  lint_roller (~> 1.1.0)
128
125
  parallel (>= 1.10)
@@ -132,9 +129,9 @@ GEM
132
129
  rubocop-ast (>= 1.49.0, < 2.0)
133
130
  ruby-progressbar (~> 1.7)
134
131
  unicode-display_width (>= 2.4.0, < 4.0)
135
- rubocop-ast (1.49.1)
132
+ rubocop-ast (1.51.0)
136
133
  parser (>= 3.3.7.2)
137
- prism (~> 1.7)
134
+ prism (>= 1.7)
138
135
  rubocop-performance (1.26.1)
139
136
  lint_roller (~> 1.1)
140
137
  rubocop (>= 1.75.0, < 2.0)
@@ -142,12 +139,12 @@ GEM
142
139
  ruby-progressbar (1.13.0)
143
140
  securerandom (0.4.1)
144
141
  shellany (0.0.1)
145
- sqlite3 (2.9.5-arm64-darwin)
146
- sqlite3 (2.9.5-x86_64-linux-gnu)
147
- standard (1.55.0)
142
+ sqlite3 (2.10.2-arm64-darwin)
143
+ sqlite3 (2.10.2-x86_64-linux-gnu)
144
+ standard (1.57.0)
148
145
  language_server-protocol (~> 3.17.0.2)
149
146
  lint_roller (~> 1.0)
150
- rubocop (~> 1.87.0)
147
+ rubocop (~> 1.91.0)
151
148
  standard-custom (~> 1.0.0)
152
149
  standard-performance (~> 1.8)
153
150
  standard-custom (1.0.2)
@@ -156,14 +153,13 @@ GEM
156
153
  standard-performance (1.9.0)
157
154
  lint_roller (~> 1.1)
158
155
  rubocop-performance (~> 1.26.0)
159
- terminal-notifier (2.0.0)
160
156
  thor (1.5.0)
161
157
  timeout (0.6.1)
162
158
  tzinfo (2.0.6)
163
159
  concurrent-ruby (~> 1.0)
164
- unicode-display_width (3.2.0)
165
- unicode-emoji (~> 4.1)
166
- unicode-emoji (4.2.0)
160
+ unicode-display_width (3.3.0)
161
+ unicode-emoji (~> 4.3)
162
+ unicode-emoji (4.3.0)
167
163
  uri (1.1.1)
168
164
 
169
165
  PLATFORMS
@@ -175,15 +171,13 @@ DEPENDENCIES
175
171
  activesupport (= 8.1.3)
176
172
  appraisal
177
173
  auto_increment!
178
- bundler
179
174
  database_cleaner
180
175
  fuubar
181
176
  guard
182
177
  guard-rspec
183
178
  rake
184
179
  rspec
185
- rspec-nc
186
- sqlite3 (~> 2.9.5)
180
+ sqlite3 (~> 2.10.2)
187
181
  standard
188
182
 
189
183
  BUNDLED WITH
@@ -2,5 +2,5 @@
2
2
 
3
3
  # +AutoIncrement::VERSION+
4
4
  module AutoIncrement
5
- VERSION = "1.7.0"
5
+ VERSION = "1.7.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_increment
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Diesel
@@ -37,9 +37,10 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '7.1'
40
- description: Automatically increments an ActiveRecord column
40
+ description: Automatically generates sequential values for string or integer Active
41
+ Record columns.
41
42
  email:
42
- - diesel@hey.com
43
+ - felipediesel@gmail.com
43
44
  executables: []
44
45
  extensions: []
45
46
  extra_rdoc_files: []
@@ -79,10 +80,11 @@ files:
79
80
  - spec/spec_helper.rb
80
81
  - spec/support/active_record.rb
81
82
  - spec/support/database_cleaner.rb
82
- homepage: http://github.com/felipediesel/auto_increment
83
+ homepage: https://github.com/felipediesel/auto_increment
83
84
  licenses:
84
85
  - MIT
85
86
  metadata:
87
+ source_code_uri: https://github.com/felipediesel/auto_increment
86
88
  rubygems_mfa_required: 'true'
87
89
  rdoc_options: []
88
90
  require_paths:
@@ -98,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
100
  - !ruby/object:Gem::Version
99
101
  version: '0'
100
102
  requirements: []
101
- rubygems_version: 3.6.9
103
+ rubygems_version: 4.0.20
102
104
  specification_version: 4
103
105
  summary: Auto increment a string or integer column
104
106
  test_files: []