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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 577eb04e3f980142f6288405a0115dd072b9e675810d429cb637f40192053067
4
- data.tar.gz: 02d8d1944363101ac074fba10c5f4907b045c7c09e18ac480f4684c920acb752
3
+ metadata.gz: 5656724118790f297b2fbe83b1e5dcc23294e3222ac8061b62e700e16e055f6f
4
+ data.tar.gz: 3e29abf66e92085e9cfa2f6f96381d293e6de86cee4dd5fd7c2ceccfd562bc7b
5
5
  SHA512:
6
- metadata.gz: 1faec3f65120b8f199c864bd8f39187f36c66e4ca3e90ce5d4909afe6c6ca9e6ae84ae853347b99d6dcdfdf7cdbbe33d287348c79f148468f44fa6099a13190d
7
- data.tar.gz: 74af47d7e060a06eae18e68ced4c2b206d12f7bfaf760455aa8e71161ec49d64a8da345ab64cdcab32973294747034e500d99d996faaae2cb016ab74d9911850
6
+ metadata.gz: 5f26543712959a6d7df2f013decfe077a00e796f60b22c0b04248338a568dc1ddce47d84e5eb3fe43523d078825b6b753b33d7414d1709fd430f7457be615605
7
+ data.tar.gz: 92b71eb24908c29b96267d4558114f8a7ef01220ccfc3c010f617f4962ca8d12b3caa6623246616cd7356a7ca88e4358892fde16b21c9804eb9db51dd9cfa90c
@@ -1,3 +1,3 @@
1
1
  module ActiveRegistration
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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 = registration_confirm_url(token: @user.confirmation_token)
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
@@ -1,4 +1,6 @@
1
1
  class RegistrationsController < ApplicationController
2
+ allow_unauthenticated_access
3
+
2
4
  def new
3
5
  @user = User.new
4
6
  end
@@ -1,4 +1,2 @@
1
1
  <h1>Confirm Your Email</h1>
2
2
  <%= link_to "Confirm Email", @confirmation_url %>
3
- Confirm your email:
4
- <%= @confirmation_url %>
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.0
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: "A drop-in Rails engine that adds secure user registration with email
33
- confirmation to your rails 8+ application, that uses Rails Authentication Generator.\n\n"
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: 3.4.0
61
+ version: '0'
69
62
  required_rubygems_version: !ruby/object:Gem::Requirement
70
63
  requirements:
71
64
  - - ">="