monban-generators 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 924fb11bdeb71785b7ce57ff8a2cc2256c113775
4
- data.tar.gz: 5d062e6a0994b1cef26ea33932027b723fe9e38f
3
+ metadata.gz: 2a6704fdf1d9d2cdfdca7e03be4cd00934738f62
4
+ data.tar.gz: 3c0d14b7ab93988a3a32d2cd2285cf7fa370ec34
5
5
  SHA512:
6
- metadata.gz: e07e28aa82adfe7218bb214bff9a963e4c9c3e87205d47b6e7352c77b8f4dd922b71f0aaf29c4f3d87c7d4bf85533f74bcfa5cefbe6b61c1ab644053b37850c3
7
- data.tar.gz: 7b93004d943123a91caa7c959705b1956ffefc3edef2297922c96ea32fbe6e13ecd42600bd6a6cc2a7a21f459c65764f43b3fbfed70a374dd086d02001605cd6
6
+ metadata.gz: e02412f9ee4bdc5caccf3101f11902582f29d996335b22daad851b3fce9e45dcd308458fc4e6768cd8b6e1811498112c6bea387d8e1d957b763f84e9c4af4ad0
7
+ data.tar.gz: 7b48302447c59d621acc3b9633c9f30c88062cb26d1ea6224f1cf89086caee08e8dfe43e2edc828aae36e5c33833c3fec06fcd39f300ce488878281d11c90879
data/NEWS.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.5
2
+ * Add `raise: false` to `before_action`s for Rails 5 compatibility
3
+
1
4
  ## 0.0.4
2
5
  * Added locale file to generator
3
6
  * Added display of error messages on users#new
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Monban::Generators
2
2
 
3
- Rails generators for adding in authentication components.
3
+ Rails generators for adding in authentication components, using the
4
+ [Monban](https://github.com/halogenandtoast/monban) authentication library.
4
5
 
5
6
  ## Installation
6
7
 
@@ -34,7 +35,7 @@ and production environments in order to make the mailer work.
34
35
 
35
36
  ## Contributing
36
37
 
37
- 1. Fork it ( http://github.com/<my-github-username>/monban-generators/fork )
38
+ 1. [Fork it](http://github.com/halogenandtoast/monban-generators/fork)
38
39
  2. Create your feature branch (`git checkout -b my-new-feature`)
39
40
  3. Commit your changes (`git commit -am 'Add some feature'`)
40
41
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,5 +1,5 @@
1
1
  class PasswordResetsController < ApplicationController
2
- skip_before_action :require_login, only: [:new, :create, :edit, :update]
2
+ skip_before_action :require_login, only: [:new, :create, :edit, :update], raise: false
3
3
 
4
4
  def new
5
5
  @password_reset = PasswordReset.new
@@ -9,7 +9,7 @@ class PasswordResetsController < ApplicationController
9
9
  user = User.find_by(email: params[:password_reset][:email])
10
10
  if user
11
11
  password_reset = PasswordReset.create(user: user)
12
- PasswordResetMailer.change_password(password_reset).deliver # NOTE: You'll want to delay this
12
+ PasswordResetMailer.change_password(password_reset).deliver_now # NOTE: You'll want to delay this
13
13
  end
14
14
  end
15
15
 
@@ -1,5 +1,5 @@
1
1
  class SessionsController < ApplicationController
2
- skip_before_action :require_login, only: [:new, :create]
2
+ skip_before_action :require_login, only: [:new, :create], raise: false
3
3
 
4
4
  def new
5
5
  end
@@ -25,4 +25,3 @@ class SessionsController < ApplicationController
25
25
  params.require(:session).permit(:email, :password)
26
26
  end
27
27
  end
28
-
@@ -1,5 +1,5 @@
1
1
  class UsersController < ApplicationController
2
- skip_before_action :require_login, only: [:new, :create]
2
+ skip_before_action :require_login, only: [:new, :create], raise: false
3
3
 
4
4
  def new
5
5
  @user = User.new
@@ -22,4 +22,3 @@ class UsersController < ApplicationController
22
22
  params.require(:user).permit(:email, :password)
23
23
  end
24
24
  end
25
-
@@ -6,7 +6,7 @@
6
6
  <%= form_for [@user, @password_reset] do |form| %>
7
7
  <div class="password-field">
8
8
  <%= form.label :password %>
9
- <%= form.password_field :password %>
9
+ <%= form.password_field :password, require: true %>
10
10
  </div>
11
11
 
12
12
  <div class="submit-field">
@@ -6,7 +6,7 @@
6
6
  <%= form_for @password_reset do |form| %>
7
7
  <div class="text-field">
8
8
  <%= form.label :email %>
9
- <%= form.email_field :email %>
9
+ <%= form.email_field :email, require: true %>
10
10
  </div>
11
11
 
12
12
  <div class="submit-field">
@@ -11,11 +11,11 @@
11
11
 
12
12
  <div>
13
13
  <%= form.label :email %>
14
- <%= form.email_field :email %>
14
+ <%= form.email_field :email, require: true %>
15
15
  </div>
16
16
  <div>
17
17
  <%= form.label :password %>
18
- <%= form.password_field :password %>
18
+ <%= form.password_field :password, require: true %>
19
19
  </div>
20
20
  <div>
21
21
  <%= form.submit "Sign up" %>
@@ -1,5 +1,5 @@
1
1
  module Monban
2
2
  module Generators
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monban-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - halogenandtoast
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2016-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.3.0
111
+ rubygems_version: 2.4.5.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Rails generators for the monban authentication library