ae_users_legacy 0.6.5 → 0.6.6

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.5
1
+ 0.6.6
@@ -1,119 +1,117 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ae_users_legacy}
8
- s.version = "0.6.5"
8
+ s.version = "0.6.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nat Budin"]
12
- s.date = %q{2011-03-29}
12
+ s.date = %q{2011-05-02}
13
13
  s.description = %q{Don't use this gem. Use something written in the last couple years instead.}
14
14
  s.email = %q{natbudin@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README"
17
+ "README"
18
18
  ]
19
19
  s.files = [
20
20
  "LICENSE",
21
- "README",
22
- "Rakefile",
23
- "VERSION",
24
- "ae_users_legacy.gemspec",
25
- "app/controllers/account_controller.rb",
26
- "app/controllers/auth_controller.rb",
27
- "app/controllers/permission_controller.rb",
28
- "app/helpers/account_helper.rb",
29
- "app/helpers/auth_helper.rb",
30
- "app/helpers/permission_helper.rb",
31
- "app/models/account.rb",
32
- "app/models/auth_notifier.rb",
33
- "app/models/auth_ticket.rb",
34
- "app/models/email_address.rb",
35
- "app/models/login.rb",
36
- "app/models/open_id_identity.rb",
37
- "app/models/permission.rb",
38
- "app/models/person.rb",
39
- "app/models/role.rb",
40
- "app/views/account/_personal_info.rhtml",
41
- "app/views/account/_procon_profile.rhtml",
42
- "app/views/account/_signup_form.html.erb",
43
- "app/views/account/activate.rhtml",
44
- "app/views/account/activation_error.rhtml",
45
- "app/views/account/change_password.rhtml",
46
- "app/views/account/edit_profile.rhtml",
47
- "app/views/account/signup.rhtml",
48
- "app/views/account/signup_noactivation.rhtml",
49
- "app/views/account/signup_success.rhtml",
50
- "app/views/auth/_auth_form.rhtml",
51
- "app/views/auth/_forgot_form.html.erb",
52
- "app/views/auth/_mini_auth_form.rhtml",
53
- "app/views/auth/_openid_auth_form.html.erb",
54
- "app/views/auth/_other_login_options.html.erb",
55
- "app/views/auth/auth_form.js.erb",
56
- "app/views/auth/forgot.rhtml",
57
- "app/views/auth/forgot_form.rhtml",
58
- "app/views/auth/index.css.erb",
59
- "app/views/auth/login.rhtml",
60
- "app/views/auth/needs_activation.rhtml",
61
- "app/views/auth/needs_person.html.erb",
62
- "app/views/auth/needs_profile.rhtml",
63
- "app/views/auth/openid_login.html.erb",
64
- "app/views/auth/resend_activation.rhtml",
65
- "app/views/auth_notifier/account_activation.rhtml",
66
- "app/views/auth_notifier/generated_password.rhtml",
67
- "app/views/permission/_add_grantee.rhtml",
68
- "app/views/permission/_role_member.rhtml",
69
- "app/views/permission/_show.rhtml",
70
- "app/views/permission/_userpicker.rhtml",
71
- "app/views/permission/add_role_member.rhtml",
72
- "app/views/permission/admin.rhtml",
73
- "app/views/permission/edit.rhtml",
74
- "app/views/permission/edit_role.rhtml",
75
- "app/views/permission/grant.rhtml",
76
- "db/migrate/002_create_accounts.rb",
77
- "db/migrate/003_create_email_addresses.rb",
78
- "db/migrate/004_create_people.rb",
79
- "db/migrate/013_simplify_signup.rb",
80
- "db/migrate/014_create_permissions.rb",
81
- "db/migrate/015_create_roles.rb",
82
- "db/migrate/016_refactor_people.rb",
83
- "db/migrate/017_people_permissions.rb",
84
- "generators/ae_users/USAGE",
85
- "generators/ae_users/ae_users_generator.rb",
86
- "generators/ae_users/templates/add.png",
87
- "generators/ae_users/templates/admin.png",
88
- "generators/ae_users/templates/group.png",
89
- "generators/ae_users/templates/logout.png",
90
- "generators/ae_users/templates/migration.rb",
91
- "generators/ae_users/templates/openid.gif",
92
- "generators/ae_users/templates/remove.png",
93
- "generators/ae_users/templates/user.png",
94
- "init.rb",
95
- "install.rb",
96
- "lib/ae_users.rb",
97
- "rails/init.rb",
98
- "schema.sql",
99
- "tasks/ae_users_tasks.rake",
100
- "test/ae_users_test.rb",
101
- "uninstall.rb"
21
+ "README",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "ae_users_legacy.gemspec",
25
+ "app/controllers/account_controller.rb",
26
+ "app/controllers/auth_controller.rb",
27
+ "app/controllers/permission_controller.rb",
28
+ "app/helpers/account_helper.rb",
29
+ "app/helpers/auth_helper.rb",
30
+ "app/helpers/permission_helper.rb",
31
+ "app/models/account.rb",
32
+ "app/models/auth_notifier.rb",
33
+ "app/models/auth_ticket.rb",
34
+ "app/models/email_address.rb",
35
+ "app/models/login.rb",
36
+ "app/models/open_id_identity.rb",
37
+ "app/models/permission.rb",
38
+ "app/models/person.rb",
39
+ "app/models/role.rb",
40
+ "app/views/account/_personal_info.rhtml",
41
+ "app/views/account/_procon_profile.rhtml",
42
+ "app/views/account/_signup_form.html.erb",
43
+ "app/views/account/activate.rhtml",
44
+ "app/views/account/activation_error.rhtml",
45
+ "app/views/account/change_password.rhtml",
46
+ "app/views/account/edit_profile.rhtml",
47
+ "app/views/account/signup.rhtml",
48
+ "app/views/account/signup_noactivation.rhtml",
49
+ "app/views/account/signup_success.rhtml",
50
+ "app/views/auth/_auth_form.rhtml",
51
+ "app/views/auth/_forgot_form.html.erb",
52
+ "app/views/auth/_mini_auth_form.rhtml",
53
+ "app/views/auth/_openid_auth_form.html.erb",
54
+ "app/views/auth/_other_login_options.html.erb",
55
+ "app/views/auth/auth_form.js.erb",
56
+ "app/views/auth/forgot.rhtml",
57
+ "app/views/auth/forgot_form.rhtml",
58
+ "app/views/auth/index.css.erb",
59
+ "app/views/auth/login.rhtml",
60
+ "app/views/auth/needs_activation.rhtml",
61
+ "app/views/auth/needs_person.html.erb",
62
+ "app/views/auth/needs_profile.rhtml",
63
+ "app/views/auth/openid_login.html.erb",
64
+ "app/views/auth/resend_activation.rhtml",
65
+ "app/views/auth_notifier/account_activation.rhtml",
66
+ "app/views/auth_notifier/generated_password.rhtml",
67
+ "app/views/permission/_add_grantee.rhtml",
68
+ "app/views/permission/_role_member.rhtml",
69
+ "app/views/permission/_show.rhtml",
70
+ "app/views/permission/_userpicker.rhtml",
71
+ "app/views/permission/add_role_member.rhtml",
72
+ "app/views/permission/admin.rhtml",
73
+ "app/views/permission/edit.rhtml",
74
+ "app/views/permission/edit_role.rhtml",
75
+ "app/views/permission/grant.rhtml",
76
+ "db/migrate/002_create_accounts.rb",
77
+ "db/migrate/003_create_email_addresses.rb",
78
+ "db/migrate/004_create_people.rb",
79
+ "db/migrate/013_simplify_signup.rb",
80
+ "db/migrate/014_create_permissions.rb",
81
+ "db/migrate/015_create_roles.rb",
82
+ "db/migrate/016_refactor_people.rb",
83
+ "db/migrate/017_people_permissions.rb",
84
+ "generators/ae_users/USAGE",
85
+ "generators/ae_users/ae_users_generator.rb",
86
+ "generators/ae_users/templates/add.png",
87
+ "generators/ae_users/templates/admin.png",
88
+ "generators/ae_users/templates/group.png",
89
+ "generators/ae_users/templates/logout.png",
90
+ "generators/ae_users/templates/migration.rb",
91
+ "generators/ae_users/templates/openid.gif",
92
+ "generators/ae_users/templates/remove.png",
93
+ "generators/ae_users/templates/user.png",
94
+ "init.rb",
95
+ "install.rb",
96
+ "lib/ae_users.rb",
97
+ "rails/init.rb",
98
+ "schema.sql",
99
+ "tasks/ae_users_tasks.rake",
100
+ "test/ae_users_test.rb",
101
+ "uninstall.rb"
102
102
  ]
103
103
  s.homepage = %q{http://github.com/nbudin/ae_users}
104
- s.rdoc_options = ["--charset=UTF-8"]
105
104
  s.require_paths = ["lib"]
106
- s.rubygems_version = %q{1.3.6}
105
+ s.rubygems_version = %q{1.5.0}
107
106
  s.summary = %q{Legacy authentication/authorization framework}
108
107
  s.test_files = [
109
108
  "test/ae_users_test.rb"
110
109
  ]
111
110
 
112
111
  if s.respond_to? :specification_version then
113
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
114
112
  s.specification_version = 3
115
113
 
116
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
114
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
117
115
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
118
116
  s.add_runtime_dependency(%q<ruby-openid>, [">= 2.0.4"])
119
117
  else
@@ -125,3 +123,4 @@ Gem::Specification.new do |s|
125
123
  s.add_dependency(%q<ruby-openid>, [">= 2.0.4"])
126
124
  end
127
125
  end
126
+
@@ -21,12 +21,13 @@ class AuthController < ApplicationController
21
21
  def login
22
22
  if request.post?
23
23
  unless @login.password or @login.have_password
24
- redirect_to :controller => "account", :action => "signup", :email => @login.email
24
+ return redirect_to(:controller => "account", :action => "signup", :email => @login.email)
25
25
  end
26
- end
27
- if request.post? and not logged_in?
28
- if attempt_login(@login)
29
- successful_login_redirect
26
+
27
+ unless logged_in?
28
+ if attempt_login(@login)
29
+ successful_login_redirect
30
+ end
30
31
  end
31
32
  end
32
33
  end
@@ -112,7 +113,7 @@ class AuthController < ApplicationController
112
113
  flash[:error_messages] = ["Couldn't find a person record with that ID.
113
114
  Something may have gone wrong internally. Please try again, and if the problem persists, please contact
114
115
  the site administrator."]
115
- redirect_to :back
116
+ return redirect_to(:back)
116
117
  end
117
118
 
118
119
  if not AeUsers.signup_allowed?
@@ -92,8 +92,8 @@ class PermissionController < ApplicationController
92
92
 
93
93
  def create_role
94
94
  @role = Role.create(params[:role])
95
- redirect_to :action => 'edit_role', :id => @role.id
96
95
  @role.grant(logged_in_person)
96
+ redirect_to :action => 'edit_role', :id => @role.id
97
97
  end
98
98
 
99
99
  before_filter :check_edit_role_perms, :only => [:edit_role, :delete_role]
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_users_legacy
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 11
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 6
8
- - 5
9
- version: 0.6.5
9
+ - 6
10
+ version: 0.6.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Nat Budin
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-03-29 00:00:00 -04:00
18
+ date: 2011-05-02 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: thoughtbot-shoulda
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
@@ -33,9 +36,11 @@ dependencies:
33
36
  name: ruby-openid
34
37
  prerelease: false
35
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
36
40
  requirements:
37
41
  - - ">="
38
42
  - !ruby/object:Gem::Version
43
+ hash: 7
39
44
  segments:
40
45
  - 2
41
46
  - 0
@@ -140,28 +145,32 @@ homepage: http://github.com/nbudin/ae_users
140
145
  licenses: []
141
146
 
142
147
  post_install_message:
143
- rdoc_options:
144
- - --charset=UTF-8
148
+ rdoc_options: []
149
+
145
150
  require_paths:
146
151
  - lib
147
152
  required_ruby_version: !ruby/object:Gem::Requirement
153
+ none: false
148
154
  requirements:
149
155
  - - ">="
150
156
  - !ruby/object:Gem::Version
157
+ hash: 3
151
158
  segments:
152
159
  - 0
153
160
  version: "0"
154
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
+ none: false
155
163
  requirements:
156
164
  - - ">="
157
165
  - !ruby/object:Gem::Version
166
+ hash: 3
158
167
  segments:
159
168
  - 0
160
169
  version: "0"
161
170
  requirements: []
162
171
 
163
172
  rubyforge_project:
164
- rubygems_version: 1.3.6
173
+ rubygems_version: 1.5.0
165
174
  signing_key:
166
175
  specification_version: 3
167
176
  summary: Legacy authentication/authorization framework