rfcommerce_auth 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/Gemfile +35 -0
  2. data/LICENSE +26 -0
  3. data/README.md +36 -0
  4. data/app/controllers/admin_controller_decorator.rb +7 -0
  5. data/app/controllers/admin_orders_controller_decorator.rb +15 -0
  6. data/app/controllers/admin_resource_controller_decorator.rb +3 -0
  7. data/app/controllers/checkout_controller_decorator.rb +42 -0
  8. data/app/controllers/orders_controller_decorator.rb +17 -0
  9. data/app/controllers/resource_controller_decorator.rb +25 -0
  10. data/app/controllers/spree/base_controller_decorator.rb +49 -0
  11. data/app/controllers/user_passwords_controller.rb +20 -0
  12. data/app/controllers/user_registrations_controller.rb +64 -0
  13. data/app/controllers/user_sessions_controller.rb +81 -0
  14. data/app/controllers/users_controller.rb +54 -0
  15. data/app/helpers/users_helper.rb +13 -0
  16. data/app/models/ability.rb +64 -0
  17. data/app/models/order_decorator.rb +12 -0
  18. data/app/models/spree_auth_configuration.rb +4 -0
  19. data/app/models/spree_current_order_decorator.rb +14 -0
  20. data/app/models/tokenized_permission.rb +3 -0
  21. data/app/models/user.rb +85 -0
  22. data/app/models/user_mailer.rb +13 -0
  23. data/app/views/checkout/registration.html.erb +20 -0
  24. data/app/views/layouts/admin/_login_nav.html.erb +8 -0
  25. data/app/views/shared/_flashes.html.erb +9 -0
  26. data/app/views/shared/_login.html.erb +20 -0
  27. data/app/views/shared/_login_bar.html.erb +6 -0
  28. data/app/views/shared/_user_form.html.erb +17 -0
  29. data/app/views/shared/unauthorized.html.erb +0 -0
  30. data/app/views/user_mailer/reset_password_instructions.text.erb +10 -0
  31. data/app/views/user_passwords/edit.html.erb +15 -0
  32. data/app/views/user_passwords/new.html.erb +13 -0
  33. data/app/views/user_registrations/new.html.erb +23 -0
  34. data/app/views/user_sessions/authorization_failure.html.erb +4 -0
  35. data/app/views/user_sessions/new.html.erb +13 -0
  36. data/app/views/users/edit.html.erb +11 -0
  37. data/app/views/users/show.html.erb +50 -0
  38. data/config/cucumber.yml +10 -0
  39. data/config/initializers/devise.rb +136 -0
  40. data/config/locales/en.yml +46 -0
  41. data/config/routes.rb +28 -0
  42. data/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  43. data/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  44. data/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  45. data/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  46. data/db/sample/users.rb +53 -0
  47. data/lib/spree/auth/config.rb +22 -0
  48. data/lib/spree/token_resource.rb +23 -0
  49. data/lib/spree_auth.rb +29 -0
  50. data/lib/spree_auth_hooks.rb +6 -0
  51. data/lib/tasks/auth.rake +8 -0
  52. data/lib/tasks/install.rake +23 -0
  53. metadata +196 -0
@@ -0,0 +1,6 @@
1
+ class SpreeAuthHooks < Spree::ThemeSupport::HookListener
2
+
3
+ replace :admin_login_navigation_bar, :partial => "layouts/admin/login_nav"
4
+ replace :shared_login_bar, :partial => "shared/login_bar"
5
+
6
+ end
@@ -0,0 +1,8 @@
1
+ namespace :db do
2
+ namespace :admin do
3
+ desc "Create admin username and password"
4
+ task :create => :environment do
5
+ require File.join(Rails.root, 'db', 'sample', 'users.rb')
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,23 @@
1
+ namespace :spree_auth do
2
+ desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
3
+ task :install do
4
+ Rake::Task['spree_auth:install:migrations'].invoke
5
+ Rake::Task['spree_auth:install:assets'].invoke
6
+ end
7
+
8
+ namespace :install do
9
+
10
+ desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
11
+ task :migrations do
12
+ source = File.join(File.dirname(__FILE__), '..', '..', 'db')
13
+ destination = File.join(Rails.root, 'db')
14
+ Spree::FileUtilz.mirror_files(source, destination)
15
+ end
16
+
17
+ desc "Copies all assets (NOTE: This will be obsolete with Rails 3.1)"
18
+ task :assets do
19
+ # No assets
20
+ end
21
+
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rfcommerce_auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - santosh
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rfcommerce_core
16
+ requirement: &81360980 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 0.0.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *81360980
25
+ - !ruby/object:Gem::Dependency
26
+ name: rfcommerce_api
27
+ requirement: &81360220 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
32
+ version: 0.0.3
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *81360220
36
+ - !ruby/object:Gem::Dependency
37
+ name: rfcommerce_auth
38
+ requirement: &81359450 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
43
+ version: 0.0.3
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *81359450
47
+ - !ruby/object:Gem::Dependency
48
+ name: rfcommerce_sample
49
+ requirement: &81358630 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - =
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.3
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *81358630
58
+ - !ruby/object:Gem::Dependency
59
+ name: rfcommerce_promo
60
+ requirement: &81357820 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - =
64
+ - !ruby/object:Gem::Version
65
+ version: 0.0.3
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *81357820
69
+ - !ruby/object:Gem::Dependency
70
+ name: rfcommerce_dash
71
+ requirement: &81356920 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - =
75
+ - !ruby/object:Gem::Version
76
+ version: 0.0.3
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *81356920
80
+ - !ruby/object:Gem::Dependency
81
+ name: rfcommerce_checkout
82
+ requirement: &81356470 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - =
86
+ - !ruby/object:Gem::Version
87
+ version: 0.0.3
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *81356470
91
+ - !ruby/object:Gem::Dependency
92
+ name: devise
93
+ requirement: &81355870 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - =
97
+ - !ruby/object:Gem::Version
98
+ version: 1.3.3
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *81355870
102
+ - !ruby/object:Gem::Dependency
103
+ name: cancan
104
+ requirement: &81354510 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - =
108
+ - !ruby/object:Gem::Version
109
+ version: 1.6.4
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *81354510
113
+ description: Required dependancy for Rfcommerce
114
+ email: santosh@railsfactory.org
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - LICENSE
120
+ - README.md
121
+ - app/helpers/users_helper.rb
122
+ - app/models/ability.rb
123
+ - app/models/user.rb
124
+ - app/models/user_mailer.rb
125
+ - app/models/order_decorator.rb
126
+ - app/models/tokenized_permission.rb
127
+ - app/models/spree_current_order_decorator.rb
128
+ - app/models/spree_auth_configuration.rb
129
+ - app/controllers/admin_orders_controller_decorator.rb
130
+ - app/controllers/admin_resource_controller_decorator.rb
131
+ - app/controllers/resource_controller_decorator.rb
132
+ - app/controllers/user_sessions_controller.rb
133
+ - app/controllers/checkout_controller_decorator.rb
134
+ - app/controllers/admin_controller_decorator.rb
135
+ - app/controllers/spree/base_controller_decorator.rb
136
+ - app/controllers/users_controller.rb
137
+ - app/controllers/user_registrations_controller.rb
138
+ - app/controllers/orders_controller_decorator.rb
139
+ - app/controllers/user_passwords_controller.rb
140
+ - app/views/user_passwords/edit.html.erb
141
+ - app/views/user_passwords/new.html.erb
142
+ - app/views/checkout/registration.html.erb
143
+ - app/views/user_sessions/authorization_failure.html.erb
144
+ - app/views/user_sessions/new.html.erb
145
+ - app/views/shared/_login_bar.html.erb
146
+ - app/views/shared/_login.html.erb
147
+ - app/views/shared/unauthorized.html.erb
148
+ - app/views/shared/_user_form.html.erb
149
+ - app/views/shared/_flashes.html.erb
150
+ - app/views/user_mailer/reset_password_instructions.text.erb
151
+ - app/views/user_registrations/new.html.erb
152
+ - app/views/layouts/admin/_login_nav.html.erb
153
+ - app/views/users/show.html.erb
154
+ - app/views/users/edit.html.erb
155
+ - config/cucumber.yml
156
+ - config/routes.rb
157
+ - config/initializers/devise.rb
158
+ - config/locales/en.yml
159
+ - lib/spree_auth.rb
160
+ - lib/tasks/install.rake
161
+ - lib/tasks/auth.rake
162
+ - lib/spree_auth_hooks.rb
163
+ - lib/spree/token_resource.rb
164
+ - lib/spree/auth/config.rb
165
+ - db/migrate/20101214150824_convert_user_remember_field.rb
166
+ - db/migrate/20101219201531_tokens_for_legacy_orders.rb
167
+ - db/migrate/20101217012656_create_tokenized_permissions.rb
168
+ - db/migrate/20101026184950_rename_columns_for_devise.rb
169
+ - db/sample/users.rb
170
+ - Gemfile
171
+ homepage: http://www.railsfactory.org
172
+ licenses: []
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ! '>='
181
+ - !ruby/object:Gem::Version
182
+ version: 1.8.7
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ none: false
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ requirements:
190
+ - none
191
+ rubyforge_project: rfcommerce_auth
192
+ rubygems_version: 1.8.17
193
+ signing_key:
194
+ specification_version: 3
195
+ summary: Provides authentication and authorization services for use with Rfcommerce.
196
+ test_files: []