authentication_with_registration_generator 0.3.1 → 0.3.2

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: 4f07ce09316587d1fdca12a470fb391994751beda2a253a2c7f4c1364a89e311
4
- data.tar.gz: b93764b9bfa9f606559b3e45f641aed8f83e25767b89b2697f08acf695d38440
3
+ metadata.gz: febeeccd2a93042a70d9b2f3aa950e6b4481d88f5ccee985a9e038f02dfed96a
4
+ data.tar.gz: a7b2ab6ea284d15c2c85a41cce2a06eba9b0baaf72387c7c1d82437466ae6504
5
5
  SHA512:
6
- metadata.gz: dc2d1419aae5ce7cdee1b8d26908c76d104c71ba1ede362c1714db1aee1301d6a151f13f9e05ba460189765e7d6ecabe47130c793811c15cc33577834ea124a8
7
- data.tar.gz: ccdb829c2453e877baa7602ae91b28ac5a99f62ede1e2342f1c04c78119f805e2d3d0da23b3c151da43116eef338f6a7bf27a7c77940125a7ec29f1a5db4f601
6
+ metadata.gz: b6c36f2105d2c32a042e93f3b77df1c572708337208b7c1ee7282a26ec26a28b2a9014a394fbd65d582f01880cdbacfce32153ee374d72080bf0b13201fd8634
7
+ data.tar.gz: a6e87fa43c9efd1a9a09c98647c354ec80bd878353478815675c6434a6e6a7edf44c75530a1da84a536324bfbf63200b3779daa86607e0fdf2730be63bec8994
@@ -10,7 +10,6 @@ module Authentication
10
10
  invoke "rails:authentication"
11
11
  end
12
12
  end
13
-
14
13
 
15
14
  def create_view
16
15
  template "registration_form.html.erb", "app/views/registrations/new.html.erb"
@@ -31,7 +30,7 @@ module Authentication
31
30
  session_view_path = "app/views/sessions/new.html.erb"
32
31
 
33
32
  # Check if the file exists before modifying it
34
- if File.exists?(session_view_path)
33
+ if File.exist?(session_view_path)
35
34
  # Replace the "Forgot password?" link with the new links
36
35
  gsub_file session_view_path, /<br>\s*<%= link_to "Forgot password\?", new_password_path %>/ do |match|
37
36
  "<p>\n <%= link_to 'Forgot password?', new_password_path %> | \n <%= link_to 'No Account? Register here', new_registration_path %>\n</p>"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AuthenticationGenerator
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentication_with_registration_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DAZ