apispree_auth 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +26 -0
- data/README.md +36 -0
- data/app/controllers/admin_controller_decorator.rb +7 -0
- data/app/controllers/admin_orders_controller_decorator.rb +15 -0
- data/app/controllers/admin_resource_controller_decorator.rb +3 -0
- data/app/controllers/checkout_controller_decorator.rb +42 -0
- data/app/controllers/orders_controller_decorator.rb +17 -0
- data/app/controllers/resource_controller_decorator.rb +25 -0
- data/app/controllers/spree/base_controller_decorator.rb +49 -0
- data/app/controllers/user_passwords_controller.rb +20 -0
- data/app/controllers/user_registrations_controller.rb +64 -0
- data/app/controllers/user_sessions_controller.rb +81 -0
- data/app/controllers/users_controller.rb +54 -0
- data/app/helpers/users_helper.rb +13 -0
- data/app/models/ability.rb +64 -0
- data/app/models/order_decorator.rb +12 -0
- data/app/models/spree_auth_configuration.rb +4 -0
- data/app/models/spree_current_order_decorator.rb +14 -0
- data/app/models/tokenized_permission.rb +3 -0
- data/app/models/user.rb +85 -0
- data/app/models/user_mailer.rb +13 -0
- data/app/views/checkout/registration.html.erb +20 -0
- data/app/views/layouts/admin/_login_nav.html.erb +8 -0
- data/app/views/shared/_flashes.html.erb +9 -0
- data/app/views/shared/_login.html.erb +20 -0
- data/app/views/shared/_login_bar.html.erb +6 -0
- data/app/views/shared/_user_form.html.erb +17 -0
- data/app/views/shared/unauthorized.html.erb +0 -0
- data/app/views/user_mailer/reset_password_instructions.text.erb +10 -0
- data/app/views/user_passwords/edit.html.erb +15 -0
- data/app/views/user_passwords/new.html.erb +13 -0
- data/app/views/user_registrations/new.html.erb +23 -0
- data/app/views/user_sessions/authorization_failure.html.erb +4 -0
- data/app/views/user_sessions/new.html.erb +13 -0
- data/app/views/users/edit.html.erb +11 -0
- data/app/views/users/show.html.erb +50 -0
- data/config/cucumber.yml +10 -0
- data/config/initializers/devise.rb +136 -0
- data/config/locales/en.yml +46 -0
- data/config/routes.rb +28 -0
- data/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
- data/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
- data/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
- data/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
- data/db/sample/users.rb +53 -0
- data/lib/apispree_auth.rb +29 -0
- data/lib/spree/auth/config.rb +22 -0
- data/lib/spree/token_resource.rb +23 -0
- data/lib/spree_auth_hooks.rb +6 -0
- data/lib/tasks/auth.rake +8 -0
- data/lib/tasks/install.rake +23 -0
- metadata +129 -0
data/lib/tasks/auth.rake
ADDED
@@ -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: []
|