rails_simple_auth 1.0.11 → 1.0.12

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: 63f51b7959956bc2a4cecb47d58f131fa4e8a54d930d1a3acb29ae9d32602fe9
4
- data.tar.gz: '0844c3355030f1515b9d14dd5e4fdcbced5972b019bc90deb14f20c3dd6d686f'
3
+ metadata.gz: f04d475d2df6bde816e61e77f5d9391ffffc32dec83c9455e8efa361cda163df
4
+ data.tar.gz: 992d4ccd1da760c2fd9527c8237b88e7b382dba22611677f5697c0a92661b470
5
5
  SHA512:
6
- metadata.gz: d54493c3417312b731eaaf3fda92006be4a63e15b2328468b25094cc701f04d3533dd00d4a41b8f7cf47e85e54293993ceaaee0d28059f8f2521b2477b10df87
7
- data.tar.gz: 6d236f2ba54009287afe7d52aa0f374b3d9f9a09a4579bc6607606036a7ea05233db8bcaa7b8a690135bb8be27c320ea2218ead5bf2539b83e26c49fb651e3fb
6
+ metadata.gz: f4b2d0ee53b6280a1b51ebb29fc7314b8634c684b678c1a425a143be753f5dc308b82689e3179ddb865cdde63a2a657d4c7cbb851bf56f67ce6f1ab1717cd5e4
7
+ data.tar.gz: 1cee554dfa30dd85524754fdf2c04dd6aedb8d93912171951e3c4e018a81d3de4779fe42fa6567f28a9323040f41c406b59bccc71eb05b543e53073c7a36d29f
data/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.12] - 2026-01-19
11
+
12
+ ### Added
13
+
14
+ - **OAuth view helper** - Simple `oauth_display_name(provider)` helper for views
15
+ ```erb
16
+ Continue with <%= oauth_display_name(provider) %>
17
+ ```
18
+
10
19
  ## [1.0.11] - 2026-01-19
11
20
 
12
21
  ### Added
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RailsSimpleAuth
4
+ module OauthHelper
5
+ # Get display name for an OAuth provider
6
+ # Usage: oauth_display_name(:google_oauth2) => "Google"
7
+ def oauth_display_name(provider)
8
+ RailsSimpleAuth.configuration.oauth_provider_display_name(provider)
9
+ end
10
+ end
11
+ end
@@ -15,6 +15,10 @@ module RailsSimpleAuth
15
15
  include RailsSimpleAuth::Controllers::Concerns::Authentication
16
16
  include RailsSimpleAuth::Controllers::Concerns::SessionManagement
17
17
  end
18
+
19
+ ActiveSupport.on_load(:action_view) do
20
+ include RailsSimpleAuth::OauthHelper
21
+ end
18
22
  end
19
23
 
20
24
  initializer 'rails_simple_auth.model' do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsSimpleAuth
4
- VERSION = '1.0.11'
4
+ VERSION = '1.0.12'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_simple_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuznetsov
@@ -57,6 +57,7 @@ files:
57
57
  - app/controllers/rails_simple_auth/passwords_controller.rb
58
58
  - app/controllers/rails_simple_auth/registrations_controller.rb
59
59
  - app/controllers/rails_simple_auth/sessions_controller.rb
60
+ - app/helpers/rails_simple_auth/oauth_helper.rb
60
61
  - app/mailers/rails_simple_auth/auth_mailer.rb
61
62
  - app/views/layouts/rails_simple_auth.html.erb
62
63
  - app/views/rails_simple_auth/confirmations/new.html.erb