Skip to content

Commit f9d5677

Browse files
committed
roda 2.0
1 parent ad79515 commit f9d5677

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

Gemfile.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
PATH
22
remote: .
33
specs:
4-
roda-auth (0.0.1)
4+
roda-auth (0.0.2)
55
bcrypt (~> 3)
6-
roda (~> 1.2)
6+
roda (~> 2)
77
warden (~> 1.2)
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
bcrypt (3.1.9)
12+
bcrypt (3.1.10)
1313
minitest (5.5.0)
1414
rack (1.6.0)
1515
rack-test (0.6.2)
1616
rack (>= 1.0)
1717
rake (10.4.2)
18-
roda (1.3.0)
18+
roda (2.0.0)
1919
rack
2020
warden (1.2.3)
2121
rack (>= 1.0)

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ require 'roda/auth'
2121

2222
class App < Roda
2323

24+
# plugin options, all optional
2425
# supports 3 auth types: :basic (default), :form, or :token
2526
# :user_class defaults to ::User
26-
# :redirect defaults to '/login'
27+
# :redirect - url for login page, defaults to '/login'
28+
# :cookie - options hash for session cookie, see Rack::Session::Cookie
2729

28-
plugin :auth, :form, user_class: MyUser, redirect: '/login'
30+
plugin :auth, :form, user_class: MyUser, redirect: '/login', cookie: {secret:'secret'}
2931

3032
route do |r|
3133
r.post 'login' do

roda-auth.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'roda-auth'
3-
s.version = '0.0.1'
3+
s.version = '0.0.2'
44
s.date = '2014-12-21'
55
s.summary = "Roda authentication"
66
s.description = "A Roda plugin for authentication with Warden"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
1010
s.homepage = 'http://github.com/beno/roda-auth'
1111
s.license = 'MIT'
1212

13-
s.add_runtime_dependency 'roda', '~> 1.2'
13+
s.add_runtime_dependency 'roda', '~> 2'
1414
s.add_runtime_dependency 'warden', '~> 1.2'
1515
s.add_runtime_dependency 'bcrypt', '~> 3'
1616

0 commit comments

Comments
 (0)