authentication-zero 2.2.2 → 2.2.3

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: ebc9ddc7618fcddba8022355329e17c9c2c57cef7a0fc01841f9a81a2aa2d02f
4
- data.tar.gz: 3c3c7f689a728dd430619b20e9436576e70bae5b8d0eb7846d604101cbe14de3
3
+ metadata.gz: b27407c78924deb810f7fbfce18aee02eece09440bd24f4820a4533cb7117155
4
+ data.tar.gz: 26f8c2e4cd81245f09b5b72c7f2bae9293f2ce9e6d459ca93346fb87c10f20ad
5
5
  SHA512:
6
- metadata.gz: 1d8d013ce1b98fc3103c3259de61a12550b4c54628f2d246bd45fbd90d464322869330c3d8ade099600a87aa58f10f4fa02d289ca3a71db4772f4242d2ee2933
7
- data.tar.gz: 464a5dad30c894bf3a3b5db0637589efff8b7cfbfe41190c4b40826365529f617c3b7e7ed977fef85294a133107445f3d4e35e0a3aea84882a548f1f85bd8502
6
+ metadata.gz: dce2fef3a2d068f362ea47d2dee94d86627e80503a002d15ebe7beec21d178b0cceef74b6fddfe954388281aab4a4f6797997bdc542ca5f31c713c6e78cfc52d
7
+ data.tar.gz: fd70bc3d6585b769d3ba044fbe36a9f49e6a0954ce56b9cc5032f558cd6420992aef2d8a4ddb9d4bd719d5909031e58ebcf192f20b9c1e124af5a5abb4fb1dae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authentication-zero (2.2.2)
4
+ authentication-zero (2.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -5,6 +5,7 @@ The purpose of authentication zero is to generate a pre-built authentication sys
5
5
  ## Features
6
6
 
7
7
  - **Simplest code ever (~200 lines of code)**
8
+ - **Inspired by hey.com**
8
9
  - Sign up
9
10
  - Email and password validations
10
11
  - Reset the user password and send reset instructions
@@ -61,17 +62,19 @@ Add these lines to your `app/views/home/index.html.erb`:
61
62
  </div>
62
63
 
63
64
  <div>
64
- <%= link_to "Change email", edit_email_path %>
65
+ <%= link_to "Change email address", edit_email_path %>
65
66
  </div>
66
67
 
67
68
  <div>
68
- <%= link_to "Manage Sessions", sessions_path %>
69
+ <%= link_to "Devices & Sessions", sessions_path %>
69
70
  </div>
70
71
 
71
72
  <div>
72
- <%= button_to "Cancel my account", registration_path, method: :delete %>
73
+ <%= button_to "Cancel my account & delete my data", registration_path, method: :delete %>
73
74
  </div>
74
75
 
76
+ <br>
77
+
75
78
  <%= button_to "Log out", Current.session, method: :delete %>
76
79
  ```
77
80
 
@@ -1,3 +1,3 @@
1
1
  module AuthenticationZero
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
@@ -3,7 +3,7 @@
3
3
  <%% if Current.<%= singular_table_name %>.verified? %>
4
4
  <h1>Change your email</h1>
5
5
  <%% else %>
6
- <h1>Verify your email </h1>
6
+ <h1>Verify your email</h1>
7
7
  <p>We sent a verification email to the address below. Check that email and follow those instructions to confirm it's your email address.</p>
8
8
  <p><%%= button_to "Re-send verification email", email_verification_path %></p>
9
9
  <%% end %>
@@ -6,7 +6,7 @@ class EmailsTest < ApplicationSystemTestCase
6
6
  end
7
7
 
8
8
  test "updating the email" do
9
- click_on "Change email"
9
+ click_on "Change email address"
10
10
 
11
11
  fill_in "Current password", with: "secret123"
12
12
  fill_in "New email", with: "new_email@hey.com"
@@ -18,7 +18,7 @@ class EmailsTest < ApplicationSystemTestCase
18
18
  test "sending a verification email" do
19
19
  @<%= singular_table_name %>.update! verified: false
20
20
 
21
- click_on "Change email"
21
+ click_on "Change email address"
22
22
  click_on "Re-send verification email"
23
23
 
24
24
  assert_text "We sent a verification email to your email address"
@@ -19,7 +19,7 @@ class RegistrationsTest < ApplicationSystemTestCase
19
19
 
20
20
  test "cancelling my account" do
21
21
  sign_in_as @<%= singular_table_name %>
22
- click_on "Cancel my account"
22
+ click_on "Cancel my account & delete my data"
23
23
 
24
24
  assert_text "Your account is closed"
25
25
  end
@@ -8,7 +8,7 @@ class SessionsTest < ApplicationSystemTestCase
8
8
  test "visiting the index" do
9
9
  sign_in_as @<%= singular_table_name %>
10
10
 
11
- click_on "Manage Sessions"
11
+ click_on "Devices & Sessions"
12
12
  assert_selector "h1", text: "Sessions"
13
13
  end
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentication-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon