spree_bushido_auth 0.60.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/LICENSE +26 -0
  2. data/README.md +36 -0
  3. data/app/controllers/admin_controller_decorator.rb +7 -0
  4. data/app/controllers/admin_orders_controller_decorator.rb +15 -0
  5. data/app/controllers/admin_resource_controller_decorator.rb +3 -0
  6. data/app/controllers/checkout_controller_decorator.rb +42 -0
  7. data/app/controllers/orders_controller_decorator.rb +17 -0
  8. data/app/controllers/resource_controller_decorator.rb +25 -0
  9. data/app/controllers/spree/base_controller_decorator.rb +49 -0
  10. data/app/controllers/user_passwords_controller.rb +20 -0
  11. data/app/controllers/user_registrations_controller.rb +64 -0
  12. data/app/controllers/user_sessions_controller.rb +58 -0
  13. data/app/controllers/users_controller.rb +54 -0
  14. data/app/helpers/users_helper.rb +13 -0
  15. data/app/models/ability.rb +64 -0
  16. data/app/models/order_decorator.rb +12 -0
  17. data/app/models/spree_auth_configuration.rb +3 -0
  18. data/app/models/spree_current_order_decorator.rb +14 -0
  19. data/app/models/tokenized_permission.rb +3 -0
  20. data/app/models/user.rb +102 -0
  21. data/app/models/user_mailer.rb +13 -0
  22. data/app/views/checkout/registration.html.erb +20 -0
  23. data/app/views/layouts/admin/_login_nav.html.erb +8 -0
  24. data/app/views/shared/_flashes.html.erb +9 -0
  25. data/app/views/shared/_login.html.erb +20 -0
  26. data/app/views/shared/_login_bar.html.erb +6 -0
  27. data/app/views/shared/_user_form.html.erb +17 -0
  28. data/app/views/shared/unauthorized.html.erb +0 -0
  29. data/app/views/user_mailer/reset_password_instructions.text.erb +10 -0
  30. data/app/views/user_passwords/edit.html.erb +15 -0
  31. data/app/views/user_passwords/new.html.erb +13 -0
  32. data/app/views/user_registrations/new.html.erb +23 -0
  33. data/app/views/user_sessions/authorization_failure.html.erb +4 -0
  34. data/app/views/user_sessions/new.html.erb +13 -0
  35. data/app/views/users/edit.html.erb +11 -0
  36. data/app/views/users/show.html.erb +50 -0
  37. data/config/cucumber.yml +10 -0
  38. data/config/initializers/devise.rb +136 -0
  39. data/config/locales/en.yml +46 -0
  40. data/config/routes.rb +28 -0
  41. data/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  42. data/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  43. data/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  44. data/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  45. data/db/migrate/20110825175814_add_bushido_authenticatable.rb +9 -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 +143 -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,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_bushido_auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.60.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Akash Manohar J
9
+ - Sean Schofield
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2011-08-26 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: spree_core
17
+ requirement: &70222255235680 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - =
21
+ - !ruby/object:Gem::Version
22
+ version: 0.60.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *70222255235680
26
+ - !ruby/object:Gem::Dependency
27
+ name: devise
28
+ requirement: &70222255235180 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - =
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *70222255235180
37
+ - !ruby/object:Gem::Dependency
38
+ name: devise_bushido_authenticatable
39
+ requirement: &70222255234680 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>'
43
+ - !ruby/object:Gem::Version
44
+ version: '0.1'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *70222255234680
48
+ - !ruby/object:Gem::Dependency
49
+ name: cancan
50
+ requirement: &70222255234100 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - =
54
+ - !ruby/object:Gem::Version
55
+ version: 1.6.4
56
+ type: :runtime
57
+ prerelease: false
58
+ version_requirements: *70222255234100
59
+ description: Required dependancy for Spree-Bushido
60
+ email:
61
+ - akash@akash.im
62
+ executables: []
63
+ extensions: []
64
+ extra_rdoc_files: []
65
+ files:
66
+ - LICENSE
67
+ - README.md
68
+ - app/controllers/admin_controller_decorator.rb
69
+ - app/controllers/admin_orders_controller_decorator.rb
70
+ - app/controllers/admin_resource_controller_decorator.rb
71
+ - app/controllers/checkout_controller_decorator.rb
72
+ - app/controllers/orders_controller_decorator.rb
73
+ - app/controllers/resource_controller_decorator.rb
74
+ - app/controllers/spree/base_controller_decorator.rb
75
+ - app/controllers/user_passwords_controller.rb
76
+ - app/controllers/user_registrations_controller.rb
77
+ - app/controllers/user_sessions_controller.rb
78
+ - app/controllers/users_controller.rb
79
+ - app/helpers/users_helper.rb
80
+ - app/models/ability.rb
81
+ - app/models/order_decorator.rb
82
+ - app/models/spree_auth_configuration.rb
83
+ - app/models/spree_current_order_decorator.rb
84
+ - app/models/tokenized_permission.rb
85
+ - app/models/user.rb
86
+ - app/models/user_mailer.rb
87
+ - app/views/checkout/registration.html.erb
88
+ - app/views/layouts/admin/_login_nav.html.erb
89
+ - app/views/shared/_flashes.html.erb
90
+ - app/views/shared/_login.html.erb
91
+ - app/views/shared/_login_bar.html.erb
92
+ - app/views/shared/_user_form.html.erb
93
+ - app/views/shared/unauthorized.html.erb
94
+ - app/views/user_mailer/reset_password_instructions.text.erb
95
+ - app/views/user_passwords/edit.html.erb
96
+ - app/views/user_passwords/new.html.erb
97
+ - app/views/user_registrations/new.html.erb
98
+ - app/views/user_sessions/authorization_failure.html.erb
99
+ - app/views/user_sessions/new.html.erb
100
+ - app/views/users/edit.html.erb
101
+ - app/views/users/show.html.erb
102
+ - config/cucumber.yml
103
+ - config/initializers/devise.rb
104
+ - config/locales/en.yml
105
+ - config/routes.rb
106
+ - lib/spree/auth/config.rb
107
+ - lib/spree/token_resource.rb
108
+ - lib/spree_auth.rb
109
+ - lib/spree_auth_hooks.rb
110
+ - lib/tasks/auth.rake
111
+ - lib/tasks/install.rake
112
+ - db/migrate/20101026184950_rename_columns_for_devise.rb
113
+ - db/migrate/20101214150824_convert_user_remember_field.rb
114
+ - db/migrate/20101217012656_create_tokenized_permissions.rb
115
+ - db/migrate/20101219201531_tokens_for_legacy_orders.rb
116
+ - db/migrate/20110825175814_add_bushido_authenticatable.rb
117
+ - db/sample/users.rb
118
+ homepage: http://spreecommerce.com
119
+ licenses: []
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: 1.8.7
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ requirements:
137
+ - none
138
+ rubyforge_project:
139
+ rubygems_version: 1.8.8
140
+ signing_key:
141
+ specification_version: 3
142
+ summary: Bushido authentication for use with Spree.
143
+ test_files: []