sparkly-auth 1.0.0 → 1.0.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.
- data/HISTORY.txt +5 -0
- data/VERSION +1 -1
- data/rails/routes.rb +14 -2
- data/sparkly-auth.gemspec +3 -2
- metadata +3 -2
data/HISTORY.txt
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.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,
|
13
|
-
|
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.
|
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
|
-
"
|
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
|
-
-
|
9
|
-
version: 1.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
|