active_registration 0.1.0 → 0.1.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 +4 -4
- data/lib/active_registration/version.rb +1 -1
- data/lib/generators/active_registration/install_generator.rb +1 -1
- data/lib/generators/active_registration/templates/confirmation_mailer.rb +1 -1
- data/lib/generators/active_registration/templates/registrations_controller.rb +2 -0
- data/lib/generators/active_registration/templates/views/confirmation_mailer/confirmation_instructions.html.erb +0 -2
- metadata +4 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5656724118790f297b2fbe83b1e5dcc23294e3222ac8061b62e700e16e055f6f
|
4
|
+
data.tar.gz: 3e29abf66e92085e9cfa2f6f96381d293e6de86cee4dd5fd7c2ceccfd562bc7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f26543712959a6d7df2f013decfe077a00e796f60b22c0b04248338a568dc1ddce47d84e5eb3fe43523d078825b6b753b33d7414d1709fd430f7457be615605
|
7
|
+
data.tar.gz: 92b71eb24908c29b96267d4558114f8a7ef01220ccfc3c010f617f4962ca8d12b3caa6623246616cd7356a7ca88e4358892fde16b21c9804eb9db51dd9cfa90c
|
@@ -23,7 +23,7 @@ module ActiveRegistration
|
|
23
23
|
# TODO implement edit and update in the future
|
24
24
|
# resource :registration, only: [:new, :create, :edit, :update] do
|
25
25
|
route <<~ROUTE
|
26
|
-
resource :registration, only: [:new, :create] do
|
26
|
+
resource :registration, only: [ :new, :create ] do
|
27
27
|
get :confirm, on: :collection
|
28
28
|
end
|
29
29
|
ROUTE
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class ConfirmationMailer < ApplicationMailer
|
2
2
|
def confirmation_instructions(user)
|
3
3
|
@user = user
|
4
|
-
@confirmation_url =
|
4
|
+
@confirmation_url = confirm_registration_url(token: @user.confirmation_token)
|
5
5
|
mail(to: @user.email_address, subject: "Confirm Your Email")
|
6
6
|
end
|
7
7
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_registration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salanoid
|
@@ -13,9 +13,6 @@ dependencies:
|
|
13
13
|
name: rails
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "~>"
|
17
|
-
- !ruby/object:Gem::Version
|
18
|
-
version: '8.0'
|
19
16
|
- - ">="
|
20
17
|
- !ruby/object:Gem::Version
|
21
18
|
version: 8.0.2
|
@@ -23,14 +20,11 @@ dependencies:
|
|
23
20
|
prerelease: false
|
24
21
|
version_requirements: !ruby/object:Gem::Requirement
|
25
22
|
requirements:
|
26
|
-
- - "~>"
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: '8.0'
|
29
23
|
- - ">="
|
30
24
|
- !ruby/object:Gem::Version
|
31
25
|
version: 8.0.2
|
32
|
-
description:
|
33
|
-
confirmation to your rails 8+ application, that uses Rails Authentication Generator
|
26
|
+
description: A drop-in Rails engine that adds secure user registration with email
|
27
|
+
confirmation to your rails 8+ application, that uses Rails Authentication Generator.
|
34
28
|
email:
|
35
29
|
- salanoid@gmail.com
|
36
30
|
executables: []
|
@@ -54,7 +48,6 @@ homepage: https://rubygems.org/gems/active_registration
|
|
54
48
|
licenses:
|
55
49
|
- MIT
|
56
50
|
metadata:
|
57
|
-
allowed_push_host: https://rubygems.org/
|
58
51
|
homepage_uri: https://rubygems.org/gems/active_registration
|
59
52
|
source_code_uri: https://github.com/Salanoid/active_registration
|
60
53
|
changelog_uri: https://github.com/Salanoid/active_registration/blob/main/CHANGELOG.md
|
@@ -65,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
58
|
requirements:
|
66
59
|
- - ">="
|
67
60
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
61
|
+
version: '0'
|
69
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
63
|
requirements:
|
71
64
|
- - ">="
|