apispree_auth 0.0.0

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