sparkly-auth 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.txt ADDED
@@ -0,0 +1,5 @@
1
+ * 1.0.1 - 08-09-2010
2
+ * Added /[user]/login and /[user]/logout to routes ([user]_login_path and [user]_logout_path, respectively)
3
+
4
+ * 1.0.0 - 08-09-2010
5
+ * Initial release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/rails/routes.rb CHANGED
@@ -9,9 +9,21 @@ if Auth.generate_routes?
9
9
  throw :missing
10
10
  end
11
11
 
12
- map.resource model.name.underscore, :controller => model.accounts_controller,
13
- :requirements => { :model => model.name } do |model_res|
12
+ map.resource model.name.underscore,
13
+ :controller => model.accounts_controller,
14
+ :requirements => { :model => model.name } do |model_res|
14
15
  model_res.resource :session, :controller => model.sessions_controller, :requirements => { :model => model.name }
16
+
17
+ # map some shorthand routes
18
+ model_res.login "login",
19
+ :controller => model.sessions_controller,
20
+ :action => 'new',
21
+ :requirements => { :model => model.name }
22
+
23
+ model_res.logout "logout",
24
+ :controller => model.sessions_controller,
25
+ :action => 'destroy',
26
+ :requirements => { :model => model.name }
15
27
  end
16
28
  end
17
29
  end
data/sparkly-auth.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sparkly-auth}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Colin MacKenzie IV"]
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
- "LICENSE",
19
+ "HISTORY.txt",
20
+ "LICENSE",
20
21
  "README.rdoc",
21
22
  "Rakefile",
22
23
  "VERSION",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Colin MacKenzie IV
@@ -96,6 +96,7 @@ extensions: []
96
96
  extra_rdoc_files:
97
97
  - README.rdoc
98
98
  files:
99
+ - HISTORY.txt
99
100
  - LICENSE
100
101
  - README.rdoc
101
102
  - Rakefile