warning_signs 0.6.1 → 0.7.0

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: 1f21801f5c06e7f5c646ba63b5848fb7fa11eee423e53bcdb74cd16932cc683a
4
- data.tar.gz: 746c5de984d08d217a4cebe9c8aaf89f403ffe7961ad299499be81f0147b6384
3
+ metadata.gz: 9bfc16654193ca2b783f0b88ace982a4341189e251703a24c566151fe801a36d
4
+ data.tar.gz: 4f9f4b7d1a3021c72ee7d4b9b877fed7e385a9f004ce6a4350bcbb5fb0c65eea
5
5
  SHA512:
6
- metadata.gz: e666ef9d2789d74761fe39d56af39495f151d389da2ad97c791027b8f71f1890476254822db03e1beb220e5268b870d45deccf147fcfddc034a4d891903fc6e5
7
- data.tar.gz: c5e79fcd7beab816f16883d6e3ac6a0f5001f8426ab25cfe5a2a4411ec821f6aac56beccbf5cf911bb1e852abac43bfb3aa508c03a455ad51ff8fb0773904838
6
+ metadata.gz: 627d50204e83cc361cae85269e6c23f101eed45dbac65b351ac8b16ff0c9b6ad20bc2c135f4b9e59dcdc751c18dbeca120dca7959707450c85c03c3af9fab20a
7
+ data.tar.gz: f92804570653f31f2ac25f41fb2f9827c13c0e07d8189f64e046fd5efd4e6bd75cdd9a883d618e383a2305edd0ce0b9a220d1545a14da5550289b3f0ed58cf51
@@ -10,14 +10,20 @@ on:
10
10
  jobs:
11
11
  build:
12
12
  runs-on: ubuntu-latest
13
- name: Ruby ${{ matrix.ruby }}
13
+ name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
14
14
  strategy:
15
15
  matrix:
16
16
  ruby:
17
+ - "3.3"
17
18
  - "3.2"
18
19
  - "3.1"
19
20
  - "3.0"
20
- - "2.7"
21
+ rails:
22
+ - "6_1"
23
+ - "7_0"
24
+ - "7_1"
25
+ env:
26
+ BUNDLE_GEMFILE: "gemfiles/rails_${{matrix.rails}}.gemfile"
21
27
 
22
28
  steps:
23
29
  - uses: actions/checkout@v3
@@ -26,7 +32,8 @@ jobs:
26
32
  with:
27
33
  ruby-version: ${{ matrix.ruby }}
28
34
  bundler-cache: true
29
- - name: StandardRB Linter
30
- run: bundle exec standardrb
35
+ # Commenting this because standard has different results with different Rubies
36
+ # - name: StandardRB Linter
37
+ # run: bundle exec standardrb
31
38
  - name: Run the default task
32
39
  run: bundle exec rake
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.6
1
+ 3.3.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.7.0 Jan 22, 2024
2
+
3
+ * Dropped matrix testing for Ruby 2.7
4
+ * Added matrix testing for Ruby 3.3
5
+ * Added support for Rails 7.1
6
+
1
7
  ## 0.6.1 Dec 15, 2023
2
8
 
3
9
  * Warning Signs error message makes it clearer that Warning Signs is
data/Gemfile CHANGED
@@ -2,5 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in warning_signs.gemspec
6
5
  gemspec
6
+ gem "awesome_print"
7
+ gem "railties", "~> 7.1.0"
data/Gemfile.lock CHANGED
@@ -1,157 +1,196 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- warning_signs (0.6.1)
5
- awesome_print
6
- railties (<= 7.1.0)
4
+ warning_signs (0.7.0)
7
5
 
8
6
  GEM
9
7
  remote: https://rubygems.org/
10
8
  specs:
11
- actionpack (7.0.4.3)
12
- actionview (= 7.0.4.3)
13
- activesupport (= 7.0.4.3)
14
- rack (~> 2.0, >= 2.2.0)
9
+ actionpack (7.1.3)
10
+ actionview (= 7.1.3)
11
+ activesupport (= 7.1.3)
12
+ nokogiri (>= 1.8.5)
13
+ racc
14
+ rack (>= 2.2.4)
15
+ rack-session (>= 1.0.1)
15
16
  rack-test (>= 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
- actionview (7.0.4.3)
19
- activesupport (= 7.0.4.3)
17
+ rails-dom-testing (~> 2.2)
18
+ rails-html-sanitizer (~> 1.6)
19
+ actionview (7.1.3)
20
+ activesupport (= 7.1.3)
20
21
  builder (~> 3.1)
21
- erubi (~> 1.4)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
- activesupport (7.0.4.3)
22
+ erubi (~> 1.11)
23
+ rails-dom-testing (~> 2.2)
24
+ rails-html-sanitizer (~> 1.6)
25
+ activesupport (7.1.3)
26
+ base64
27
+ bigdecimal
25
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
29
+ connection_pool (>= 2.2.5)
30
+ drb
26
31
  i18n (>= 1.6, < 2)
27
32
  minitest (>= 5.1)
33
+ mutex_m
28
34
  tzinfo (~> 2.0)
29
35
  ast (2.4.2)
30
36
  awesome_print (1.9.2)
37
+ base64 (0.2.0)
38
+ bigdecimal (3.1.6)
31
39
  builder (3.2.4)
32
40
  byebug (11.1.3)
33
41
  coderay (1.1.3)
34
- concurrent-ruby (1.2.2)
42
+ concurrent-ruby (1.2.3)
43
+ connection_pool (2.4.1)
35
44
  crass (1.0.6)
45
+ debug (1.9.1)
46
+ irb (~> 1.10)
47
+ reline (>= 0.3.8)
36
48
  diff-lcs (1.5.0)
37
49
  docile (1.4.0)
50
+ drb (2.2.0)
51
+ ruby2_keywords
38
52
  erubi (1.12.0)
39
- i18n (1.13.0)
53
+ i18n (1.14.1)
40
54
  concurrent-ruby (~> 1.0)
41
- json (2.6.3)
55
+ io-console (0.7.2)
56
+ irb (1.11.1)
57
+ rdoc
58
+ reline (>= 0.4.2)
59
+ json (2.7.1)
42
60
  language_server-protocol (3.17.0.3)
43
- lint_roller (1.0.0)
44
- loofah (2.21.3)
61
+ lint_roller (1.1.0)
62
+ loofah (2.22.0)
45
63
  crass (~> 1.0.2)
46
64
  nokogiri (>= 1.12.0)
47
65
  method_source (1.0.0)
48
- minitest (5.18.0)
49
- nokogiri (1.15.0-arm64-darwin)
66
+ minitest (5.21.2)
67
+ mutex_m (0.2.0)
68
+ nokogiri (1.16.0-arm64-darwin)
50
69
  racc (~> 1.4)
51
- nokogiri (1.15.0-x86_64-darwin)
52
- racc (~> 1.4)
53
- nokogiri (1.15.0-x86_64-linux)
54
- racc (~> 1.4)
55
- parallel (1.23.0)
56
- parser (3.2.2.1)
70
+ parallel (1.24.0)
71
+ parser (3.3.0.5)
57
72
  ast (~> 2.4.1)
73
+ racc
58
74
  pry (0.14.2)
59
75
  coderay (~> 1.1)
60
76
  method_source (~> 1.0)
61
77
  pry-byebug (3.10.1)
62
78
  byebug (~> 11.0)
63
79
  pry (>= 0.13, < 0.15)
64
- racc (1.6.2)
65
- rack (2.2.7)
80
+ psych (5.1.2)
81
+ stringio
82
+ racc (1.7.3)
83
+ rack (3.0.8)
84
+ rack-session (2.0.0)
85
+ rack (>= 3.0.0)
66
86
  rack-test (2.1.0)
67
87
  rack (>= 1.3)
68
- rails-dom-testing (2.0.3)
69
- activesupport (>= 4.2.0)
88
+ rackup (2.1.0)
89
+ rack (>= 3)
90
+ webrick (~> 1.8)
91
+ rails-dom-testing (2.2.0)
92
+ activesupport (>= 5.0.0)
93
+ minitest
70
94
  nokogiri (>= 1.6)
71
- rails-html-sanitizer (1.5.0)
72
- loofah (~> 2.19, >= 2.19.1)
73
- railties (7.0.4.3)
74
- actionpack (= 7.0.4.3)
75
- activesupport (= 7.0.4.3)
76
- method_source
95
+ rails-html-sanitizer (1.6.0)
96
+ loofah (~> 2.21)
97
+ nokogiri (~> 1.14)
98
+ railties (7.1.3)
99
+ actionpack (= 7.1.3)
100
+ activesupport (= 7.1.3)
101
+ irb
102
+ rackup (>= 1.0.0)
77
103
  rake (>= 12.2)
78
- thor (~> 1.0)
79
- zeitwerk (~> 2.5)
104
+ thor (~> 1.0, >= 1.2.2)
105
+ zeitwerk (~> 2.6)
80
106
  rainbow (3.1.1)
81
- rake (12.3.3)
82
- regexp_parser (2.8.0)
83
- rexml (3.2.5)
107
+ rake (13.1.0)
108
+ rdoc (6.6.2)
109
+ psych (>= 4.0.0)
110
+ regexp_parser (2.9.0)
111
+ reline (0.4.2)
112
+ io-console (~> 0.5)
113
+ rexml (3.2.6)
84
114
  rspec (3.12.0)
85
115
  rspec-core (~> 3.12.0)
86
116
  rspec-expectations (~> 3.12.0)
87
117
  rspec-mocks (~> 3.12.0)
88
- rspec-collection_matchers (1.2.0)
118
+ rspec-collection_matchers (1.2.1)
89
119
  rspec-expectations (>= 2.99.0.beta1)
90
120
  rspec-core (3.12.2)
91
121
  rspec-support (~> 3.12.0)
92
122
  rspec-expectations (3.12.3)
93
123
  diff-lcs (>= 1.2.0, < 2.0)
94
124
  rspec-support (~> 3.12.0)
95
- rspec-mocks (3.12.5)
125
+ rspec-mocks (3.12.6)
96
126
  diff-lcs (>= 1.2.0, < 2.0)
97
127
  rspec-support (~> 3.12.0)
98
- rspec-support (3.12.0)
128
+ rspec-support (3.12.1)
99
129
  rspec_junit_formatter (0.6.0)
100
130
  rspec-core (>= 2, < 4, != 2.12.0)
101
- rubocop (1.50.2)
131
+ rubocop (1.59.0)
102
132
  json (~> 2.3)
133
+ language_server-protocol (>= 3.17.0)
103
134
  parallel (~> 1.10)
104
- parser (>= 3.2.0.0)
135
+ parser (>= 3.2.2.4)
105
136
  rainbow (>= 2.2.2, < 4.0)
106
137
  regexp_parser (>= 1.8, < 3.0)
107
138
  rexml (>= 3.2.5, < 4.0)
108
- rubocop-ast (>= 1.28.0, < 2.0)
139
+ rubocop-ast (>= 1.30.0, < 2.0)
109
140
  ruby-progressbar (~> 1.7)
110
141
  unicode-display_width (>= 2.4.0, < 3.0)
111
- rubocop-ast (1.28.1)
142
+ rubocop-ast (1.30.0)
112
143
  parser (>= 3.2.1.0)
113
- rubocop-performance (1.16.0)
114
- rubocop (>= 1.7.0, < 2.0)
115
- rubocop-ast (>= 0.4.0)
144
+ rubocop-performance (1.20.2)
145
+ rubocop (>= 1.48.1, < 2.0)
146
+ rubocop-ast (>= 1.30.0, < 2.0)
116
147
  ruby-progressbar (1.13.0)
148
+ ruby2_keywords (0.0.5)
117
149
  simplecov (0.17.1)
118
150
  docile (~> 1.1)
119
151
  json (>= 1.8, < 3)
120
152
  simplecov-html (~> 0.10.0)
121
153
  simplecov-html (0.10.2)
122
- standard (1.28.2)
154
+ standard (1.33.0)
123
155
  language_server-protocol (~> 3.17.0.2)
124
156
  lint_roller (~> 1.0)
125
- rubocop (~> 1.50.2)
157
+ rubocop (~> 1.59.0)
126
158
  standard-custom (~> 1.0.0)
127
- standard-performance (~> 1.0.1)
128
- standard-custom (1.0.0)
129
- lint_roller (~> 1.0)
130
- standard-performance (1.0.1)
159
+ standard-performance (~> 1.3)
160
+ standard-custom (1.0.2)
131
161
  lint_roller (~> 1.0)
132
- rubocop-performance (~> 1.16.0)
133
- thor (1.2.2)
162
+ rubocop (~> 1.50)
163
+ standard-performance (1.3.1)
164
+ lint_roller (~> 1.1)
165
+ rubocop-performance (~> 1.20.2)
166
+ stringio (3.1.0)
167
+ thor (1.3.0)
134
168
  tzinfo (2.0.6)
135
169
  concurrent-ruby (~> 1.0)
136
- unicode-display_width (2.4.2)
170
+ unicode-display_width (2.5.0)
171
+ webrick (1.8.1)
137
172
  yard (0.9.34)
138
- zeitwerk (2.6.8)
173
+ zeitwerk (2.6.12)
139
174
 
140
175
  PLATFORMS
141
176
  arm64-darwin-22
177
+ arm64-darwin-23
142
178
  x86_64-darwin-21
143
179
  x86_64-linux
144
180
 
145
181
  DEPENDENCIES
182
+ awesome_print
183
+ debug
146
184
  pry-byebug
147
- rake (~> 12.0)
148
- rspec (~> 3.4)
185
+ railties (~> 7.1.0)
186
+ rake
187
+ rspec
149
188
  rspec-collection_matchers
150
189
  rspec_junit_formatter
151
190
  simplecov (~> 0.17.0)
152
- standard (>= 1.0)
191
+ standard
153
192
  warning_signs!
154
193
  yard
155
194
 
156
195
  BUNDLED WITH
157
- 2.4.10
196
+ 2.4.19
data/README.md CHANGED
@@ -16,8 +16,6 @@ To install Warning Signs add
16
16
  to your gemfile, you will most likely want it to be in all environments, but
17
17
  under some use cases, you may not need it in production.
18
18
 
19
- ### Rails 7.1 is not supported yet, it changed intenral deprecation objects
20
-
21
19
  ## Using Warning Signs
22
20
 
23
21
  The Warning Signs gem looks for a `.warning_signs.yml` file when the Rails
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec path: "../"
6
+ gem "awesome_print"
7
+ gem "railties", "~> 6.1.0"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec path: "../"
6
+ gem "awesome_print"
7
+ gem "railties", "~> 7.0.0"
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec path: "../"
6
+ gem "awesome_print"
7
+ gem "railties", "~> 7.1.0"
@@ -1,3 +1,3 @@
1
1
  module WarningSigns
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -48,7 +48,11 @@ module WarningSigns
48
48
  end
49
49
 
50
50
  def rails_set_up
51
- ActiveSupport::Deprecation.behavior = :notify
51
+ if ActiveSupport.version >= Gem::Version.new("7.1.0")
52
+ Rails.application.deprecators.behavior = :notify
53
+ else
54
+ ActiveSupport::Deprecation.behavior = :notify
55
+ end
52
56
  end
53
57
  end
54
58
  end
@@ -30,14 +30,12 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  spec.add_development_dependency "pry-byebug"
33
- spec.add_development_dependency "rake", "~> 12.0"
34
- spec.add_development_dependency "rspec", "~> 3.4"
33
+ spec.add_development_dependency "debug"
34
+ spec.add_development_dependency "rake"
35
+ spec.add_development_dependency "rspec"
35
36
  spec.add_development_dependency "rspec-collection_matchers"
36
37
  spec.add_development_dependency "rspec_junit_formatter"
37
- spec.add_development_dependency "standard", ">= 1.0"
38
+ spec.add_development_dependency "standard"
38
39
  spec.add_development_dependency "simplecov", "~> 0.17.0"
39
40
  spec.add_development_dependency "yard"
40
-
41
- spec.add_runtime_dependency "awesome_print"
42
- spec.add_runtime_dependency "railties", "<= 7.1.0"
43
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warning_signs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noel Rappin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-15 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug
@@ -24,34 +24,48 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: debug
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '12.0'
47
+ version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '12.0'
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '3.4'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '3.4'
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec-collection_matchers
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +100,14 @@ dependencies:
86
100
  requirements:
87
101
  - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '1.0'
103
+ version: '0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '1.0'
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: simplecov
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -122,34 +136,6 @@ dependencies:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: awesome_print
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: railties
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "<="
144
- - !ruby/object:Gem::Version
145
- version: 7.1.0
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "<="
151
- - !ruby/object:Gem::Version
152
- version: 7.1.0
153
139
  description: A gem for managing ruby and rails deprecation warnings
154
140
  email:
155
141
  - noelrap@hey.com
@@ -169,6 +155,9 @@ files:
169
155
  - Rakefile
170
156
  - bin/console
171
157
  - bin/setup
158
+ - gemfiles/rails_6_1.gemfile
159
+ - gemfiles/rails_7_0.gemfile
160
+ - gemfiles/rails_7_1.gemfile
172
161
  - lib/warning_signs.rb
173
162
  - lib/warning_signs/behavior/base.rb
174
163
  - lib/warning_signs/behavior/ignore.rb
@@ -219,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
208
  - !ruby/object:Gem::Version
220
209
  version: '0'
221
210
  requirements: []
222
- rubygems_version: 3.2.33
211
+ rubygems_version: 3.5.5
223
212
  signing_key:
224
213
  specification_version: 4
225
214
  summary: A gem for managing ruby and rails deprecation warnings