clearance 2.9.3 → 2.10.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: 63e1102563fe30d25f825d35b7b9cfb97e9c7a63966350d249550786301aef68
4
- data.tar.gz: 0445a9f0883f00671b612e6bddb07adcba4f5d1ba0b42946ecd5aee9eac3cb1f
3
+ metadata.gz: de05cd0a5de1a6373d585b84992faf9c5edc1262d8463cd66d72e4dce220be54
4
+ data.tar.gz: 1c5fea0c9f0c01a7af11eaf783afd7d541bda115bda975d7b5ae5e09824ab9e4
5
5
  SHA512:
6
- metadata.gz: 90f4330cc836c066594314824eb212bdf463ce7187803bc99123d30bf59b5223298d390af5bea1891199d126692c679682382b59e320ea7e1ad27d979e03a90f
7
- data.tar.gz: 23f8e1faebcadf721cfd2434b4ef61f05fc3d17b4374ea6830ae612905c730d6939bb87a495ff9fd191a9a5d84143d0a74f42b23bf064b7fc5d954a58cbfc0f1
6
+ metadata.gz: a19c23e19e4d6b39fbca0eaa799710d239393d6986bdc255870c6a52cbf1f7fc30b4d0ed93dbcc1316b344f5d6931f5cecd5e3127afae157996f0ff12579d981
7
+ data.tar.gz: 6b88a9ed2644c019b2d019a43da9a1c58e2b6725f6c612b3f831ac6a950f77fb3187b9cdea0897c8be60e8ccfce7fcfba296798c63813654ef5e9d9456db37e7
@@ -16,17 +16,12 @@ jobs:
16
16
  fail-fast: false
17
17
  matrix:
18
18
  gemfile:
19
- - "7.0"
20
19
  - "7.1"
21
20
  - "7.2"
22
21
  - "8.0"
23
22
  ruby:
24
- - "3.1.6"
25
- - "3.2.5"
26
- - "3.3.5"
27
- exclude:
28
- - ruby: "3.1.6"
29
- gemfile: "8.0"
23
+ - "3.2.8"
24
+ - "3.3.7"
30
25
 
31
26
  env:
32
27
  BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile
data/Appraisals CHANGED
@@ -1,12 +1,3 @@
1
- appraise "rails_7.0" do
2
- gem "railties", "~> 7.0.0"
3
- # The following gems will not be bundled with Ruby 3.4
4
- gem "base64", require: false
5
- gem "bigdecimal", require: false
6
- gem "drb", require: false
7
- gem "mutex_m", require: false
8
- end
9
-
10
1
  appraise "rails_7.1" do
11
2
  gem "railties", "~> 7.1.0"
12
3
  end
data/CHANGELOG.md CHANGED
@@ -5,7 +5,12 @@ complete changelog, see the git history for each version via the version links.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
- [Unreleased]: https://github.com/thoughtbot/clearance/compare/v2.9.3...main
8
+ [Unreleased]: https://github.com/thoughtbot/clearance/compare/v2.10.0...main
9
+
10
+ ## [2.10.0] - March 28, 2025
11
+ - Drop support for Rails 7.0 and Ruby 3.1 (#1045)
12
+
13
+ [2.10.0]: https://github.com/thoughtbot/clearance/compare/v2.9.3...v2.10.0
9
14
 
10
15
  ## [2.9.3] - November 26, 2024
11
16
  - Add Rails 8 to testing matrix (#1038) Hamed Asghari
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clearance (2.9.3)
4
+ clearance (2.10.0)
5
5
  actionmailer (>= 5.0)
6
6
  activemodel (>= 5.0)
7
7
  activerecord (>= 5.0)
@@ -67,10 +67,10 @@ GEM
67
67
  bundler
68
68
  rake
69
69
  thor (>= 0.14.0)
70
- argon2 (2.3.0)
70
+ argon2 (2.3.2)
71
71
  ffi (~> 1.15)
72
72
  ffi-compiler (~> 1.0)
73
- ast (2.4.2)
73
+ ast (2.4.3)
74
74
  base64 (0.2.0)
75
75
  bcrypt (3.1.20)
76
76
  better_html (2.1.1)
@@ -80,7 +80,7 @@ GEM
80
80
  erubi (~> 1.4)
81
81
  parser (>= 2.4)
82
82
  smart_properties
83
- bigdecimal (3.1.8)
83
+ bigdecimal (3.1.9)
84
84
  builder (3.3.0)
85
85
  capybara (3.40.0)
86
86
  addressable
@@ -92,8 +92,8 @@ GEM
92
92
  regexp_parser (>= 1.5, < 3.0)
93
93
  xpath (~> 3.2)
94
94
  coderay (1.1.3)
95
- concurrent-ruby (1.3.4)
96
- connection_pool (2.4.1)
95
+ concurrent-ruby (1.3.5)
96
+ connection_pool (2.5.0)
97
97
  crass (1.0.6)
98
98
  database_cleaner (2.0.2)
99
99
  database_cleaner-active_record (>= 2, < 3)
@@ -101,40 +101,41 @@ GEM
101
101
  activerecord (>= 5.a)
102
102
  database_cleaner-core (~> 2.0.0)
103
103
  database_cleaner-core (2.0.1)
104
- date (3.4.0)
104
+ date (3.4.1)
105
105
  diff-lcs (1.5.1)
106
106
  drb (2.2.1)
107
107
  email_validator (2.2.4)
108
108
  activemodel
109
- erb_lint (0.6.0)
109
+ erb_lint (0.9.0)
110
110
  activesupport
111
111
  better_html (>= 2.0.1)
112
112
  parser (>= 2.7.1.4)
113
113
  rainbow
114
114
  rubocop (>= 1)
115
115
  smart_properties
116
- erubi (1.13.0)
116
+ erubi (1.13.1)
117
117
  factory_bot (6.4.6)
118
118
  activesupport (>= 5.0.0)
119
119
  factory_bot_rails (6.4.3)
120
120
  factory_bot (~> 6.4)
121
121
  railties (>= 5.0.0)
122
- ffi (1.17.0)
122
+ ffi (1.17.1)
123
123
  ffi-compiler (1.3.2)
124
124
  ffi (>= 1.15.5)
125
125
  rake
126
126
  globalid (1.2.1)
127
127
  activesupport (>= 6.1)
128
- i18n (1.14.5)
128
+ i18n (1.14.7)
129
129
  concurrent-ruby (~> 1.0)
130
130
  io-console (0.7.2)
131
131
  irb (1.14.0)
132
132
  rdoc (>= 4.0.0)
133
133
  reline (>= 0.4.2)
134
- json (2.7.2)
135
- language_server-protocol (3.17.0.3)
136
- logger (1.6.0)
137
- loofah (2.22.0)
134
+ json (2.10.2)
135
+ language_server-protocol (3.17.0.4)
136
+ lint_roller (1.1.0)
137
+ logger (1.7.0)
138
+ loofah (2.24.0)
138
139
  crass (~> 1.0.2)
139
140
  nokogiri (>= 1.12.0)
140
141
  mail (2.8.1)
@@ -145,24 +146,25 @@ GEM
145
146
  matrix (0.4.2)
146
147
  method_source (1.1.0)
147
148
  mini_mime (1.1.5)
148
- mini_portile2 (2.8.7)
149
- minitest (5.25.1)
150
- net-imap (0.5.1)
149
+ mini_portile2 (2.8.8)
150
+ minitest (5.25.5)
151
+ net-imap (0.5.6)
151
152
  date
152
153
  net-protocol
153
154
  net-pop (0.1.2)
154
155
  net-protocol
155
156
  net-protocol (0.2.2)
156
157
  timeout
157
- net-smtp (0.5.0)
158
+ net-smtp (0.5.1)
158
159
  net-protocol
159
- nokogiri (1.16.7)
160
+ nokogiri (1.18.6)
160
161
  mini_portile2 (~> 2.8.2)
161
162
  racc (~> 1.4)
162
163
  parallel (1.26.3)
163
- parser (3.3.4.2)
164
+ parser (3.3.7.3)
164
165
  ast (~> 2.4.1)
165
166
  racc
167
+ prism (1.4.0)
166
168
  pry (0.14.2)
167
169
  coderay (~> 1.1)
168
170
  method_source (~> 1.0)
@@ -186,9 +188,9 @@ GEM
186
188
  activesupport (>= 5.0.0)
187
189
  minitest
188
190
  nokogiri (>= 1.6)
189
- rails-html-sanitizer (1.6.0)
191
+ rails-html-sanitizer (1.6.2)
190
192
  loofah (~> 2.21)
191
- nokogiri (~> 1.14)
193
+ 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)
192
194
  railties (7.2.0)
193
195
  actionpack (= 7.2.0)
194
196
  activesupport (= 7.2.0)
@@ -201,11 +203,9 @@ GEM
201
203
  rake (13.2.1)
202
204
  rdoc (6.7.0)
203
205
  psych (>= 4.0.0)
204
- regexp_parser (2.9.2)
206
+ regexp_parser (2.10.0)
205
207
  reline (0.5.9)
206
208
  io-console (~> 0.5)
207
- rexml (3.3.5)
208
- strscan
209
209
  rspec-core (3.13.0)
210
210
  rspec-support (~> 3.13.0)
211
211
  rspec-expectations (3.13.1)
@@ -223,33 +223,35 @@ GEM
223
223
  rspec-mocks (~> 3.13)
224
224
  rspec-support (~> 3.13)
225
225
  rspec-support (3.13.1)
226
- rubocop (1.65.1)
226
+ rubocop (1.75.1)
227
227
  json (~> 2.3)
228
- language_server-protocol (>= 3.17.0)
228
+ language_server-protocol (~> 3.17.0.2)
229
+ lint_roller (~> 1.1.0)
229
230
  parallel (~> 1.10)
230
231
  parser (>= 3.3.0.2)
231
232
  rainbow (>= 2.2.2, < 4.0)
232
- regexp_parser (>= 2.4, < 3.0)
233
- rexml (>= 3.2.5, < 4.0)
234
- rubocop-ast (>= 1.31.1, < 2.0)
233
+ regexp_parser (>= 2.9.3, < 3.0)
234
+ rubocop-ast (>= 1.43.0, < 2.0)
235
235
  ruby-progressbar (~> 1.7)
236
- unicode-display_width (>= 2.4.0, < 3.0)
237
- rubocop-ast (1.32.1)
238
- parser (>= 3.3.1.0)
236
+ unicode-display_width (>= 2.4.0, < 4.0)
237
+ rubocop-ast (1.43.0)
238
+ parser (>= 3.3.7.2)
239
+ prism (~> 1.4)
239
240
  ruby-progressbar (1.13.0)
240
- securerandom (0.3.1)
241
+ securerandom (0.4.1)
241
242
  shoulda-matchers (6.4.0)
242
243
  activesupport (>= 5.2.0)
243
244
  smart_properties (1.17.0)
244
245
  sqlite3 (1.7.3)
245
246
  mini_portile2 (~> 2.8.0)
246
247
  stringio (3.1.1)
247
- strscan (3.1.0)
248
248
  thor (1.3.1)
249
249
  timeout (0.4.1)
250
250
  tzinfo (2.0.6)
251
251
  concurrent-ruby (~> 1.0)
252
- unicode-display_width (2.5.0)
252
+ unicode-display_width (3.1.4)
253
+ unicode-emoji (~> 4.0, >= 4.0.4)
254
+ unicode-emoji (4.0.4)
253
255
  useragent (0.16.10)
254
256
  webrick (1.8.1)
255
257
  xpath (3.2.0)
data/README.md CHANGED
@@ -18,7 +18,7 @@ monitored by contributors.
18
18
 
19
19
  ## Getting Started
20
20
 
21
- Clearance is a Rails engine tested against Rails `>= 7.0` and Ruby `>= 3.1.6`.
21
+ Clearance is a Rails engine tested against Rails `>= 7.1` and Ruby `>= 3.2.8`.
22
22
 
23
23
  You can add it to your Gemfile with:
24
24
 
@@ -1,3 +1,3 @@
1
1
  module Clearance
2
- VERSION = "2.9.3".freeze
2
+ VERSION = "2.10.0".freeze
3
3
  end
@@ -33,7 +33,7 @@ describe Clearance::PasswordsController do
33
33
  }
34
34
 
35
35
  email = ActionMailer::Base.deliveries.last
36
- expect(email.subject).to match(translated_string("passwords.edit.title"))
36
+ expect(email.subject).to match(I18n.t("passwords.edit.title"))
37
37
  end
38
38
 
39
39
  it "re-renders the page when turbo is enabled" do
@@ -53,7 +53,7 @@ describe Clearance::PasswordsController do
53
53
  password: {},
54
54
  }
55
55
 
56
- expect(flash.now[:alert]).to match(translated_string("flashes.failure_when_missing_email"))
56
+ expect(flash.now[:alert]).to match(I18n.t("flashes.failure_when_missing_email"))
57
57
  expect(response).to render_template(:new)
58
58
  end
59
59
 
@@ -74,7 +74,7 @@ describe Clearance::PasswordsController do
74
74
  },
75
75
  }
76
76
 
77
- expect(flash.now[:alert]).to match(translated_string("flashes.failure_when_missing_email"))
77
+ expect(flash.now[:alert]).to match(I18n.t("flashes.failure_when_missing_email"))
78
78
  expect(response).to render_template(:new)
79
79
  end
80
80
 
@@ -164,7 +164,7 @@ describe Clearance::PasswordsController do
164
164
  }
165
165
 
166
166
  expect(response).to render_template(:new)
167
- expect(flash.now[:alert]).to match(translated_string("flashes.failure_when_forbidden"))
167
+ expect(flash.now[:alert]).to match(I18n.t("flashes.failure_when_forbidden"))
168
168
  end
169
169
  end
170
170
 
@@ -178,7 +178,7 @@ describe Clearance::PasswordsController do
178
178
  }
179
179
 
180
180
  expect(response).to render_template(:new)
181
- expect(flash.now[:alert]).to match(translated_string("flashes.failure_when_forbidden"))
181
+ expect(flash.now[:alert]).to match(I18n.t("flashes.failure_when_forbidden"))
182
182
  end
183
183
  end
184
184
 
@@ -278,7 +278,7 @@ describe Clearance::PasswordsController do
278
278
  new_password: "",
279
279
  )
280
280
 
281
- expect(flash.now[:alert]).to match(translated_string("flashes.failure_after_update"))
281
+ expect(flash.now[:alert]).to match(I18n.t("flashes.failure_after_update"))
282
282
  expect(response).to have_http_status(:unprocessable_entity)
283
283
  expect(response).to render_template(:edit)
284
284
  end
@@ -58,7 +58,7 @@ describe PermissionsController do
58
58
  it "denies access to show and display a flash message" do
59
59
  get :show
60
60
 
61
- expect(flash[:alert]).to match(translated_string("flashes.failure_when_not_signed_in"))
61
+ expect(flash[:alert]).to match(I18n.t("flashes.failure_when_not_signed_in"))
62
62
  end
63
63
  end
64
64
 
@@ -41,7 +41,7 @@ describe Clearance::SessionsController do
41
41
  }
42
42
 
43
43
  expect(response).to render_template(:new)
44
- expect(flash[:alert]).to match(translated_string("flashes.failure_after_create"))
44
+ expect(flash[:alert]).to match(I18n.t("flashes.failure_after_create"))
45
45
  end
46
46
  end
47
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clearance
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.3
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2024-11-26 00:00:00.000000000 Z
30
+ date: 2025-03-28 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: bcrypt
@@ -185,7 +185,6 @@ files:
185
185
  - clearance.gemspec
186
186
  - config/locales/clearance.en.yml
187
187
  - config/routes.rb
188
- - gemfiles/rails_7.0.gemfile
189
188
  - gemfiles/rails_7.1.gemfile
190
189
  - gemfiles/rails_7.2.gemfile
191
190
  - gemfiles/rails_8.0.gemfile
@@ -302,7 +301,6 @@ files:
302
301
  - spec/support/fake_model_with_password_strategy.rb
303
302
  - spec/support/fake_model_without_password_strategy.rb
304
303
  - spec/support/generator_spec_helpers.rb
305
- - spec/support/html_escape_helper.rb
306
304
  - spec/support/request_with_remember_token.rb
307
305
  - spec/views/view_helpers_spec.rb
308
306
  homepage: https://github.com/thoughtbot/clearance
@@ -1,24 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "addressable"
6
- gem "ammeter"
7
- gem "appraisal"
8
- gem "capybara"
9
- gem "database_cleaner"
10
- gem "erb_lint", require: false
11
- gem "factory_bot_rails"
12
- gem "nokogiri"
13
- gem "pry", require: false
14
- gem "rails-controller-testing"
15
- gem "rspec-rails"
16
- gem "shoulda-matchers"
17
- gem "sqlite3", "~> 1.7"
18
- gem "railties", "~> 7.0.0"
19
- gem "base64", require: false
20
- gem "bigdecimal", require: false
21
- gem "drb", require: false
22
- gem "mutex_m", require: false
23
-
24
- gemspec path: "../"
@@ -1,13 +0,0 @@
1
- module HTMLEscapeHelper
2
- def translated_string(key)
3
- if [7.0].include?(Rails::VERSION::STRING.to_f)
4
- ERB::Util.html_escape_once(I18n.t(key))
5
- else
6
- I18n.t(key)
7
- end
8
- end
9
- end
10
-
11
- RSpec.configure do |config|
12
- config.include HTMLEscapeHelper
13
- end