dep_shield 0.3.1 → 0.4.0

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: '0873b127895d18f989212d2d7a911d9e9e9af44ae7ab4fe3f6edeaaabc1a6246'
4
- data.tar.gz: 4350068c64cabbb77df759640e9b3ebd909c49370d747a457b15f3c47aa0dfa2
3
+ metadata.gz: 6b03a368226ff09823025471fadcc20dee9ccfbc2bed9ce4c103142b5916f2b0
4
+ data.tar.gz: 4a788683af5db59b566c338dd168784d2bb5994c2c9dd51b11895ea8e9ac9749
5
5
  SHA512:
6
- metadata.gz: 5b59846fb7bb65cd035fe6aaa725de366abf1cf9d551b3f0fa5b535fc1f04ac417299b6f03db92fd9517d1264214eed8b971e2071c9ab997a30cab91a6af7d7d
7
- data.tar.gz: 5e712d06b10fc4ce717eace43cbcc040fdce6c7697719908e7534fb82ff739a1d2058d3d90c98d463071a02b31ba4bfaf35da6fab7ffc5e99b18a343260655d6
6
+ metadata.gz: 1cf4daf73a8aae17fd934a18eb176e1a737c975e6e4fe3e65a9e70c694c4cee565ab5f6e0fa4440c696fc491d2e946a67161bfadf8c6856589449bebcfbb711a
7
+ data.tar.gz: 14d6a0391c2a58493dd6d9767d03109fbb59189aa5d9874abeb3e6db15236083914829278db5345a375eeeba396266ea7807b02fce7e9732e0d1b067d6dfc106
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ require:
2
2
  - rubocop-powerhome
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.7
5
+ TargetRubyVersion: 3.0
6
6
 
7
7
  Style/StringLiterals:
8
8
  Enabled: true
@@ -14,3 +14,21 @@ Style/StringLiteralsInInterpolation:
14
14
 
15
15
  Layout/LineLength:
16
16
  Max: 120
17
+
18
+ Rails/HelperInstanceVariable:
19
+ Exclude:
20
+ - 'lib/dep_shield/todos.rb'
21
+ - 'lib/dep_shield/deprecation.rb'
22
+
23
+ Rails/EnvironmentVariableAccess:
24
+ Exclude:
25
+ - 'lib/dep_shield/deprecation.rb'
26
+
27
+ Rails/ActionFilter:
28
+ Enabled: false
29
+
30
+ Rails/ActionOrder:
31
+ Enabled: false
32
+
33
+ Rails/FilePath:
34
+ Enabled: false
data/Appraisals CHANGED
@@ -1,13 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise "rails-6-0" do
4
- gem "rails", "6.0.6.1"
3
+ appraise "rails-7-1" do
4
+ gem "rails", "7.1.5.2"
5
5
  end
6
6
 
7
- appraise "rails-6-1" do
8
- gem "rails", "6.1.7.4"
7
+ appraise "rails-7-2" do
8
+ gem "rails", "7.2.3.1"
9
9
  end
10
10
 
11
- appraise "rails-7-0" do
12
- gem "rails", "7.0.6"
11
+ appraise "rails-8-0" do
12
+ gem "rails", "8.0.5"
13
+ end
14
+
15
+ appraise "rails-8-1" do
16
+ gem "rails", "8.1.3"
13
17
  end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.0] - 2026-07-28
4
+
5
+ [HFH-4410 - Bump powertools for Rails 8.1.3 V2](https://github.com/powerhome/power-tools/pull/426)
6
+
7
+ - Upgrade Rails to 8.1.3 for Nitro and Runway compatability
8
+ - Drop support for Ruby < 3.3 and Rails < 7.1 [#396](https://github.com/powerhome/power-tools/pull/396)
9
+
10
+ ---
11
+
12
+ - Standardize all libs to support ruby 3.0, ruby 3.3 x rails 6.1 through rails 7.2 [#359](https://github.com/powerhome/power-tools/pull/359)
13
+ - Drop support for Ruby < 3.3 and Rails < 7.1 [#396](https://github.com/powerhome/power-tools/pull/396)
14
+ - Update to Rails 7.2.3.1 [#402](https://github.com/powerhome/power-tools/pull/402)
15
+
3
16
  ## [0.3.1]
4
17
 
5
18
  - Cleanup unnecessary dependencies and require of rails/all
data/docs/README.md CHANGED
@@ -10,6 +10,20 @@ After installing DepShield, load any todo lists in your application with:
10
10
 
11
11
  `DepShield.todos.load("path-to-deprecation_todos.yml")`
12
12
 
13
+ For a Rails application, you can simply put this line into an initializer: `config/initializers/dep_shield.rb`.
14
+
15
+ For an engine (component), add this to your lib/[component_name]/engine.rb file:
16
+
17
+ ```ruby
18
+ module MyEngine
19
+ class Engine < ::Rails::Engine
20
+ initializer "dep_shield.todo_list" do
21
+ DepShield.todos.load(config.root.join("./.deprecation_todo.yml"))
22
+ end
23
+ end
24
+ end
25
+ ```
26
+
13
27
  ## Usage
14
28
 
15
29
  `DepShield#raise_or_capture!` is used to mark methods as deprecated. When called, it will intelligently warn or raise exceptions to alert developers to the deprecated activity. The method expects two arguments, a `name` (ie, the name of the deprecation you're introducing), and a `message` (usually information about what is deprecated and how to fix it). Marking something as deprecated is pretty simple:
@@ -18,7 +32,7 @@ After installing DepShield, load any todo lists in your application with:
18
32
  # components/books/lib/books.rb
19
33
 
20
34
  def self.category
21
- NitroErrors.deprecate!(name: "books_default_category", message: "please use '.default_category' instead")
35
+ DepShield.raise_or_capture!(name: "books_default_category", message: "please use '.default_category' instead")
22
36
  "Science Fiction"
23
37
  end
24
38
  ```
@@ -4,8 +4,8 @@
4
4
 
5
5
  source "https://rubygems.org"
6
6
 
7
- gem "nokogiri", "< 1.16"
8
- gem "rails", "6.1.7.4"
7
+ gem "nitro_config", path: "../../nitro_config"
8
+ gem "rails", "7.1.5.2"
9
9
  gem "rake", "~> 13.0"
10
10
  gem "rspec", "~> 3.0"
11
11
  gem "rubocop-powerhome", path: "../../rubocop-powerhome"
@@ -0,0 +1,324 @@
1
+ PATH
2
+ remote: ../../nitro_config
3
+ specs:
4
+ nitro_config (0.3.0)
5
+ activesupport (>= 7.1, < 8.2)
6
+
7
+ PATH
8
+ remote: ../../rubocop-powerhome
9
+ specs:
10
+ rubocop-powerhome (0.7.0)
11
+ rubocop (= 1.82.1)
12
+ rubocop-performance
13
+ rubocop-rails
14
+ rubocop-rake
15
+ rubocop-rspec
16
+
17
+ PATH
18
+ remote: ..
19
+ specs:
20
+ dep_shield (0.4.0)
21
+ nitro_config
22
+ sentry-ruby (>= 5.5.0)
23
+
24
+ GEM
25
+ remote: https://rubygems.org/
26
+ specs:
27
+ actioncable (7.1.5.2)
28
+ actionpack (= 7.1.5.2)
29
+ activesupport (= 7.1.5.2)
30
+ nio4r (~> 2.0)
31
+ websocket-driver (>= 0.6.1)
32
+ zeitwerk (~> 2.6)
33
+ actionmailbox (7.1.5.2)
34
+ actionpack (= 7.1.5.2)
35
+ activejob (= 7.1.5.2)
36
+ activerecord (= 7.1.5.2)
37
+ activestorage (= 7.1.5.2)
38
+ activesupport (= 7.1.5.2)
39
+ mail (>= 2.7.1)
40
+ net-imap
41
+ net-pop
42
+ net-smtp
43
+ actionmailer (7.1.5.2)
44
+ actionpack (= 7.1.5.2)
45
+ actionview (= 7.1.5.2)
46
+ activejob (= 7.1.5.2)
47
+ activesupport (= 7.1.5.2)
48
+ mail (~> 2.5, >= 2.5.4)
49
+ net-imap
50
+ net-pop
51
+ net-smtp
52
+ rails-dom-testing (~> 2.2)
53
+ actionpack (7.1.5.2)
54
+ actionview (= 7.1.5.2)
55
+ activesupport (= 7.1.5.2)
56
+ nokogiri (>= 1.8.5)
57
+ racc
58
+ rack (>= 2.2.4)
59
+ rack-session (>= 1.0.1)
60
+ rack-test (>= 0.6.3)
61
+ rails-dom-testing (~> 2.2)
62
+ rails-html-sanitizer (~> 1.6)
63
+ actiontext (7.1.5.2)
64
+ actionpack (= 7.1.5.2)
65
+ activerecord (= 7.1.5.2)
66
+ activestorage (= 7.1.5.2)
67
+ activesupport (= 7.1.5.2)
68
+ globalid (>= 0.6.0)
69
+ nokogiri (>= 1.8.5)
70
+ actionview (7.1.5.2)
71
+ activesupport (= 7.1.5.2)
72
+ builder (~> 3.1)
73
+ erubi (~> 1.11)
74
+ rails-dom-testing (~> 2.2)
75
+ rails-html-sanitizer (~> 1.6)
76
+ activejob (7.1.5.2)
77
+ activesupport (= 7.1.5.2)
78
+ globalid (>= 0.3.6)
79
+ activemodel (7.1.5.2)
80
+ activesupport (= 7.1.5.2)
81
+ activerecord (7.1.5.2)
82
+ activemodel (= 7.1.5.2)
83
+ activesupport (= 7.1.5.2)
84
+ timeout (>= 0.4.0)
85
+ activestorage (7.1.5.2)
86
+ actionpack (= 7.1.5.2)
87
+ activejob (= 7.1.5.2)
88
+ activerecord (= 7.1.5.2)
89
+ activesupport (= 7.1.5.2)
90
+ marcel (~> 1.0)
91
+ activesupport (7.1.5.2)
92
+ base64
93
+ benchmark (>= 0.3)
94
+ bigdecimal
95
+ concurrent-ruby (~> 1.0, >= 1.0.2)
96
+ connection_pool (>= 2.2.5)
97
+ drb
98
+ i18n (>= 1.6, < 2)
99
+ logger (>= 1.4.2)
100
+ minitest (>= 5.1)
101
+ mutex_m
102
+ securerandom (>= 0.3)
103
+ tzinfo (~> 2.0)
104
+ appraisal (2.5.0)
105
+ bundler
106
+ rake
107
+ thor (>= 0.14.0)
108
+ ast (2.4.3)
109
+ base64 (0.3.0)
110
+ benchmark (0.5.0)
111
+ bigdecimal (4.1.2)
112
+ builder (3.3.0)
113
+ combustion (1.5.0)
114
+ activesupport (>= 3.0.0)
115
+ railties (>= 3.0.0)
116
+ thor (>= 0.14.6)
117
+ concurrent-ruby (1.3.6)
118
+ connection_pool (3.0.2)
119
+ crass (1.0.6)
120
+ csv (3.3.5)
121
+ date (3.5.1)
122
+ diff-lcs (1.6.2)
123
+ drb (2.2.3)
124
+ erb (6.0.2)
125
+ erubi (1.13.1)
126
+ globalid (1.3.0)
127
+ activesupport (>= 6.1)
128
+ i18n (1.14.8)
129
+ concurrent-ruby (~> 1.0)
130
+ io-console (0.8.2)
131
+ irb (1.17.0)
132
+ pp (>= 0.6.0)
133
+ prism (>= 1.3.0)
134
+ rdoc (>= 4.0.0)
135
+ reline (>= 0.4.2)
136
+ json (2.19.3)
137
+ language_server-protocol (3.17.0.5)
138
+ license_finder (7.2.1)
139
+ bundler
140
+ csv (~> 3.2)
141
+ rubyzip (>= 1, < 3)
142
+ thor (~> 1.2)
143
+ tomlrb (>= 1.3, < 2.1)
144
+ with_env (= 1.1.0)
145
+ xml-simple (~> 1.1.9)
146
+ lint_roller (1.1.0)
147
+ logger (1.7.0)
148
+ loofah (2.25.1)
149
+ crass (~> 1.0.2)
150
+ nokogiri (>= 1.12.0)
151
+ mail (2.9.0)
152
+ logger
153
+ mini_mime (>= 0.1.1)
154
+ net-imap
155
+ net-pop
156
+ net-smtp
157
+ marcel (1.1.0)
158
+ mini_mime (1.1.5)
159
+ minitest (6.0.6)
160
+ drb (~> 2.0)
161
+ prism (~> 1.5)
162
+ mutex_m (0.3.0)
163
+ net-imap (0.6.3)
164
+ date
165
+ net-protocol
166
+ net-pop (0.1.2)
167
+ net-protocol
168
+ net-protocol (0.2.2)
169
+ timeout
170
+ net-smtp (0.5.1)
171
+ net-protocol
172
+ nio4r (2.7.5)
173
+ nokogiri (1.19.2-arm64-darwin)
174
+ racc (~> 1.4)
175
+ nokogiri (1.19.2-x86_64-linux-gnu)
176
+ racc (~> 1.4)
177
+ parallel (1.28.0)
178
+ parser (3.3.11.1)
179
+ ast (~> 2.4.1)
180
+ racc
181
+ pp (0.6.3)
182
+ prettyprint
183
+ prettyprint (0.2.0)
184
+ prism (1.9.0)
185
+ psych (5.3.1)
186
+ date
187
+ stringio
188
+ racc (1.8.1)
189
+ rack (3.2.6)
190
+ rack-session (2.1.2)
191
+ base64 (>= 0.1.0)
192
+ rack (>= 3.0.0)
193
+ rack-test (2.2.0)
194
+ rack (>= 1.3)
195
+ rackup (2.3.1)
196
+ rack (>= 3)
197
+ rails (7.1.5.2)
198
+ actioncable (= 7.1.5.2)
199
+ actionmailbox (= 7.1.5.2)
200
+ actionmailer (= 7.1.5.2)
201
+ actionpack (= 7.1.5.2)
202
+ actiontext (= 7.1.5.2)
203
+ actionview (= 7.1.5.2)
204
+ activejob (= 7.1.5.2)
205
+ activemodel (= 7.1.5.2)
206
+ activerecord (= 7.1.5.2)
207
+ activestorage (= 7.1.5.2)
208
+ activesupport (= 7.1.5.2)
209
+ bundler (>= 1.15.0)
210
+ railties (= 7.1.5.2)
211
+ rails-dom-testing (2.3.0)
212
+ activesupport (>= 5.0.0)
213
+ minitest
214
+ nokogiri (>= 1.6)
215
+ rails-html-sanitizer (1.7.0)
216
+ loofah (~> 2.25)
217
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
218
+ railties (7.1.5.2)
219
+ actionpack (= 7.1.5.2)
220
+ activesupport (= 7.1.5.2)
221
+ irb
222
+ rackup (>= 1.0.0)
223
+ rake (>= 12.2)
224
+ thor (~> 1.0, >= 1.2.2)
225
+ zeitwerk (~> 2.6)
226
+ rainbow (3.1.1)
227
+ rake (13.3.1)
228
+ rdoc (7.2.0)
229
+ erb
230
+ psych (>= 4.0.0)
231
+ tsort
232
+ regexp_parser (2.12.0)
233
+ reline (0.6.3)
234
+ io-console (~> 0.5)
235
+ rexml (3.4.4)
236
+ rspec (3.13.2)
237
+ rspec-core (~> 3.13.0)
238
+ rspec-expectations (~> 3.13.0)
239
+ rspec-mocks (~> 3.13.0)
240
+ rspec-core (3.13.6)
241
+ rspec-support (~> 3.13.0)
242
+ rspec-expectations (3.13.5)
243
+ diff-lcs (>= 1.2.0, < 2.0)
244
+ rspec-support (~> 3.13.0)
245
+ rspec-mocks (3.13.8)
246
+ diff-lcs (>= 1.2.0, < 2.0)
247
+ rspec-support (~> 3.13.0)
248
+ rspec-support (3.13.7)
249
+ rubocop (1.82.1)
250
+ json (~> 2.3)
251
+ language_server-protocol (~> 3.17.0.2)
252
+ lint_roller (~> 1.1.0)
253
+ parallel (~> 1.10)
254
+ parser (>= 3.3.0.2)
255
+ rainbow (>= 2.2.2, < 4.0)
256
+ regexp_parser (>= 2.9.3, < 3.0)
257
+ rubocop-ast (>= 1.48.0, < 2.0)
258
+ ruby-progressbar (~> 1.7)
259
+ unicode-display_width (>= 2.4.0, < 4.0)
260
+ rubocop-ast (1.49.1)
261
+ parser (>= 3.3.7.2)
262
+ prism (~> 1.7)
263
+ rubocop-performance (1.26.1)
264
+ lint_roller (~> 1.1)
265
+ rubocop (>= 1.75.0, < 2.0)
266
+ rubocop-ast (>= 1.47.1, < 2.0)
267
+ rubocop-rails (2.34.3)
268
+ activesupport (>= 4.2.0)
269
+ lint_roller (~> 1.1)
270
+ rack (>= 1.1)
271
+ rubocop (>= 1.75.0, < 2.0)
272
+ rubocop-ast (>= 1.44.0, < 2.0)
273
+ rubocop-rake (0.7.1)
274
+ lint_roller (~> 1.1)
275
+ rubocop (>= 1.72.1)
276
+ rubocop-rspec (3.9.0)
277
+ lint_roller (~> 1.1)
278
+ rubocop (~> 1.81)
279
+ ruby-progressbar (1.13.0)
280
+ rubyzip (2.4.1)
281
+ securerandom (0.4.1)
282
+ sentry-ruby (6.5.0)
283
+ bigdecimal
284
+ concurrent-ruby (~> 1.0, >= 1.0.2)
285
+ logger
286
+ sqlite3 (1.7.3-arm64-darwin)
287
+ sqlite3 (1.7.3-x86_64-linux)
288
+ stringio (3.2.0)
289
+ thor (1.5.0)
290
+ timeout (0.6.1)
291
+ tomlrb (2.0.4)
292
+ tsort (0.2.0)
293
+ tzinfo (2.0.6)
294
+ concurrent-ruby (~> 1.0)
295
+ unicode-display_width (3.2.0)
296
+ unicode-emoji (~> 4.1)
297
+ unicode-emoji (4.2.0)
298
+ websocket-driver (0.8.0)
299
+ base64
300
+ websocket-extensions (>= 0.1.0)
301
+ websocket-extensions (0.1.5)
302
+ with_env (1.1.0)
303
+ xml-simple (1.1.9)
304
+ rexml
305
+ zeitwerk (2.7.5)
306
+
307
+ PLATFORMS
308
+ arm64-darwin
309
+ x86_64-linux
310
+
311
+ DEPENDENCIES
312
+ appraisal (~> 2.5.0)
313
+ combustion (~> 1.4)
314
+ dep_shield!
315
+ license_finder (>= 7.0)
316
+ nitro_config!
317
+ rails (= 7.1.5.2)
318
+ rake (~> 13.0)
319
+ rspec (~> 3.0)
320
+ rubocop-powerhome!
321
+ sqlite3 (~> 1.7.3)
322
+
323
+ BUNDLED WITH
324
+ 2.5.23
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file was generated by Appraisal
4
+
5
+ source "https://rubygems.org"
6
+
7
+ gem "nitro_config", path: "../../nitro_config"
8
+ gem "rails", "7.2.3.1"
9
+ gem "rake", "~> 13.0"
10
+ gem "rspec", "~> 3.0"
11
+ gem "rubocop-powerhome", path: "../../rubocop-powerhome"
12
+
13
+ gemspec path: "../"