monban 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.rdoc +6 -0
- data/README.md +6 -2
- data/lib/monban/configuration.rb +1 -1
- data/lib/monban/version.rb +2 -2
- data/spec/monban/configuration_spec.rb +11 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ac25191fae11dd25ac1ddda52af84f5eba6f047
|
4
|
+
data.tar.gz: 840b51a801541c1bb9ded597adc1a7fa6476ff44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aa388fa2a8b0de5977985f8a8d183b6cda66c018c7467385cc05fd20ed896ddcaf6674958ba9619b95879238a7fad2ef9f1795795ef4be530bfb665457eb3ef
|
7
|
+
data.tar.gz: 108534d568451cb69bf755bdc02285e1bfbc594fc080ebbf17747777e011403499c3c85bc205560f31554d78f13b31d56868389bffbdb0563456859ba84b7060
|
data/NEWS.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== 0.1.1
|
2
|
+
* Link to Rubydoc in documentation
|
3
|
+
* Fix header in documentation
|
4
|
+
* Fix no_login_redirect to default to a properly named controller
|
5
|
+
* Fix documentation reference to sign_up to mention user_params instead of user
|
6
|
+
|
1
7
|
== 0.1.0
|
2
8
|
* Fix PasswordStrategy to use configuration options
|
3
9
|
* Documentation
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Monban is designed to be a very simple and extensible user authentication
|
|
9
9
|
library for rails. Its goal is to give all the power to the developer instead
|
10
10
|
of forcing them to make Monban work with their system.
|
11
11
|
|
12
|
-
|
12
|
+
## Why use Monban?
|
13
13
|
|
14
14
|
Monban makes authentication simple:
|
15
15
|
|
@@ -23,6 +23,10 @@ Monban doesn't do the following:
|
|
23
23
|
- Doesn't force you to use engine based controllers or views
|
24
24
|
- Doesn't require you to make changes to your user model
|
25
25
|
|
26
|
+
## Documentation
|
27
|
+
|
28
|
+
You can read the full documentation at [rubydoc](http://rubydoc.info/github/halogenandtoast/monban)
|
29
|
+
|
26
30
|
## Installation
|
27
31
|
|
28
32
|
Monban was designed to work with Rails > 4.0. Add this line to your Gemfile:
|
@@ -55,7 +59,7 @@ Monban provides the following controller methods:
|
|
55
59
|
|
56
60
|
- `sign_in(user)`
|
57
61
|
- `sign_out`
|
58
|
-
- `sign_up(
|
62
|
+
- `sign_up(user_params)`
|
59
63
|
- `authenticate(user, password)`
|
60
64
|
- `authenticate_session(session_params)`
|
61
65
|
- `reset_password(user, password)`
|
data/lib/monban/configuration.rb
CHANGED
@@ -95,7 +95,7 @@ module Monban
|
|
95
95
|
@user_lookup_field = :email
|
96
96
|
@creation_method = default_creation_method
|
97
97
|
@find_method = default_find_method
|
98
|
-
@no_login_redirect = { controller: '/
|
98
|
+
@no_login_redirect = { controller: '/sessions', action: 'new' }
|
99
99
|
@no_login_handler = default_no_login_handler
|
100
100
|
end
|
101
101
|
|
data/lib/monban/version.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'warden'
|
3
|
+
|
4
|
+
module Monban
|
5
|
+
describe Configuration do
|
6
|
+
it 'sets the no login redirect to a resonable default' do
|
7
|
+
configuration = Configuration.new
|
8
|
+
expect(configuration.no_login_redirect).to eq({ controller: "/sessions", action: "new" })
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monban
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- halogenandtoast
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -179,6 +179,7 @@ files:
|
|
179
179
|
- spec/features/visitor/visitor_signs_up_spec.rb
|
180
180
|
- spec/features/visitor/visitor_tries_to_access_constrained_routes_spec.rb
|
181
181
|
- spec/features/visitor/visitor_uses_remember_token_spec.rb
|
182
|
+
- spec/monban/configuration_spec.rb
|
182
183
|
- spec/monban/controller_helpers_spec.rb
|
183
184
|
- spec/monban/field_map_spec.rb
|
184
185
|
- spec/monban/services/authentication_spec.rb
|
@@ -260,6 +261,7 @@ test_files:
|
|
260
261
|
- spec/features/visitor/visitor_signs_up_spec.rb
|
261
262
|
- spec/features/visitor/visitor_tries_to_access_constrained_routes_spec.rb
|
262
263
|
- spec/features/visitor/visitor_uses_remember_token_spec.rb
|
264
|
+
- spec/monban/configuration_spec.rb
|
263
265
|
- spec/monban/controller_helpers_spec.rb
|
264
266
|
- spec/monban/field_map_spec.rb
|
265
267
|
- spec/monban/services/authentication_spec.rb
|