simply_auth 0.7.0 → 0.7.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: 750533d97a9a4c3cf78e8edbba37de4de5747551c95de6635dddf1b296b1f067
4
- data.tar.gz: 1ac2b5510e6fddeaa74aa5ea27e1c31f2e15554c7c572bec4cf8b116e2ccef1e
3
+ metadata.gz: 4e9f86479105c9737bea8fe71e7416fc4bb0bb0e298099254b96bae2b4d05290
4
+ data.tar.gz: 832d719ea70fb1d990996f5a48ad4eb27faf712aa72e5ec0899e3c7c1c6f6b68
5
5
  SHA512:
6
- metadata.gz: 8c1954bf11a7d3c6e2e8660dcf53376e5e6143d476a03197a9fa83277a6fcc21a21e5c1380e427e98ecdedb91ef0c7116c657bef52e05234f9f87eb125f77dba
7
- data.tar.gz: 5cd9bef3147731ad68e3563e121b1ea51a1d39a8771f940851456c8bfb42bed99222d3f1d5caadf52b31b7c057ac2dc042ca98845e7b4abec3b9aafee7f7e245
6
+ metadata.gz: eec3ef1a9f3c0b2fee189294c95abb2604554ea67fc073973f48a497ad13781e4d218a6c36ef0bec48715e2f25d4ae181cc8764fe8fd9340df2c1a40d7410356
7
+ data.tar.gz: cfa29ecae43822c9431bf18e8337fd68cfffa1c7ea1c107ec7ba8529c2201af2b3a906e320bb8c1c1c8c80e109a60a81f0dfbd8fa70f740a254a1baae2f290d0
@@ -1 +1 @@
1
- <%= @html.html_safe %>
1
+ <%= @html.gsub("{{authenticity_token}}", form_authenticity_token).html_safe %>
@@ -1,3 +1,3 @@
1
1
  module SimplyAuth
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Fogle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-17 00:00:00.000000000 Z
11
+ date: 2018-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -88,7 +88,6 @@ files:
88
88
  - app/views/simply_auth/passwords/new.html.erb
89
89
  - app/views/simply_auth/registrations/_additional_fields.html.erb
90
90
  - app/views/simply_auth/registrations/new.html.erb
91
- - app/views/simply_auth/registrations/old-new.html.erb
92
91
  - app/views/simply_auth/sessions/new.html.erb
93
92
  - config/routes.rb
94
93
  - lib/simply_auth.rb
@@ -1,72 +0,0 @@
1
- <div class='container'>
2
- <div class='d-flex flex-row'>
3
- <h2 class='mr-auto'>Sign Up</h2>
4
- <div>
5
- <span class='mr-2'>Already a member?</span>
6
- <%= link_to "Log In", new_session_path, class: "btn btn-secondary" %>
7
- </div>
8
- </div>
9
- <%= form_for @user, url: [:registrations], html: {class: "needs-validation", novalidate: true} do |f| %>
10
- <div class='form-group'>
11
- <%= f.label :name, "Name *" %>
12
- <%= f.text_field :name, class: "form-control #{"is-invalid" if @user.errors[:name].any? }", required: true %>
13
- <div class='invalid-feedback'>
14
- <% if @user.errors[:name].any? %>
15
- <%= @user.errors[:name].map{|m| "Name #{m}."}.join(" ") %>
16
- <% else %>
17
- Please provide your name.
18
- <% end %>
19
- </div>
20
- </div>
21
- <div class='form-group'>
22
- <%= f.label :email, "Email *" %>
23
- <%= f.text_field :email, class: "form-control #{"is-invalid" if @user.errors[:email].any? }", required: true, type: :email %>
24
- <div class='invalid-feedback'>
25
- <% if @user.errors[:email].grep(/taken/).any? %>
26
- That email is already registered. Would you like to <%= link_to "sign in", new_session_path(session: {email: @user.email}) %>?
27
- <% elsif @user.errors[:email].any? %>
28
- <%= @user.errors[:email].map{|m| "Email #{m}."}.join(" ") %>
29
- <% else %>
30
- Please provide your email.
31
- <% end %>
32
- </div>
33
- </div>
34
- <div class='form-group'>
35
- <%= f.label :password, "Password *" %>
36
- <%= f.password_field :password, class: "form-control #{"is-invalid" if @user.errors[:password].any? }", required: true %>
37
- <div class='invalid-feedback'>
38
- <% if @user.errors[:password].any? %>
39
- <%= @user.errors[:password].map{|m| "Password #{m}."}.join(" ") %>
40
- <% else %>
41
- Please provide a password.
42
- <% end %>
43
- </div>
44
- </div>
45
- <%= render partial: "additional_fields", locals: {form: f} %>
46
- <%= f.submit "Sign Up", class: "btn btn-primary" %>
47
- <% end %>
48
-
49
- <script>
50
- (function() {
51
- 'use strict';
52
- window.addEventListener('load', function() {
53
- var forms = document.getElementsByClassName('needs-validation');
54
- var validation = Array.prototype.filter.call(forms, function(form) {
55
- form.addEventListener('submit', function(event) {
56
- if (form.checkValidity() === false) {
57
- event.preventDefault();
58
- event.stopPropagation();
59
- }
60
- form.classList.add('was-validated');
61
- }, false);
62
- });
63
- }, false);
64
- })();
65
- </script>
66
- <style>
67
- .field_with_errors ~ .invalid-feedback,
68
- .field_with_errors ~ .invalid-tooltip {
69
- display: block;
70
- }
71
- </style>
72
- </div>