monban 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 4f3908fbff78befaa3da1b03f38c0d65d31727e0
4
- data.tar.gz: 084f52a5bd3751d14600a9f7f54a3eb5a279f555
3
+ metadata.gz: 1ac25191fae11dd25ac1ddda52af84f5eba6f047
4
+ data.tar.gz: 840b51a801541c1bb9ded597adc1a7fa6476ff44
5
5
  SHA512:
6
- metadata.gz: a71edfc56f62eaa9ce703b94e4475e1546a47da7960c426022f22d8f733989dad0106edf3a9c153ae9e4919e6f4ddfc27c0b71e2015a5219b9484d7bd82d50fc
7
- data.tar.gz: f8aa579c7a1e9c9f1b4dfaeb3c13f0173853487f12e63b7abbb618f19f9bddd1d71c11ff928e6ee68fa972ca715a04a5b303d7ca29856ba8b81b0eb9e033c591
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
- # Why use Monban?
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(user)`
62
+ - `sign_up(user_params)`
59
63
  - `authenticate(user, password)`
60
64
  - `authenticate_session(session_params)`
61
65
  - `reset_password(user, password)`
@@ -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: '/session', action: 'new' }
98
+ @no_login_redirect = { controller: '/sessions', action: 'new' }
99
99
  @no_login_handler = default_no_login_handler
100
100
  end
101
101
 
@@ -1,4 +1,4 @@
1
1
  module Monban
2
- # 0.1.0
3
- VERSION = "0.1.0"
2
+ # 0.1.1
3
+ VERSION = "0.1.1"
4
4
  end
@@ -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.0
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-05 00:00:00.000000000 Z
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