spree_auth 0.50.4 → 0.60.0.RC1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree_auth might be problematic. Click here for more details.
@@ -0,0 +1,15 @@
|
|
1
|
+
Admin::OrdersController.class_eval do
|
2
|
+
before_filter :check_authorization
|
3
|
+
|
4
|
+
private
|
5
|
+
|
6
|
+
def check_authorization
|
7
|
+
load_order
|
8
|
+
session[:access_token] ||= params[:token]
|
9
|
+
|
10
|
+
resource = @order || Order
|
11
|
+
action = params[:action].to_sym
|
12
|
+
|
13
|
+
authorize! action, resource, session[:access_token]
|
14
|
+
end
|
15
|
+
end
|
@@ -14,7 +14,7 @@ class RenameColumnsForDevise < ActiveRecord::Migration
|
|
14
14
|
add_column :users, :authentication_token, :string
|
15
15
|
add_column :users, :unlock_token, :string
|
16
16
|
add_column :users, :locked_at, :datetime
|
17
|
-
remove_column :users, :api_key
|
17
|
+
remove_column :users, :api_key rescue Exception
|
18
18
|
remove_column :users, :openid_identifier
|
19
19
|
end
|
20
20
|
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 11094359
|
5
|
+
prerelease: 7
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 60
|
9
|
+
- 0
|
10
|
+
- RC
|
11
|
+
- 1
|
12
|
+
version: 0.60.0.RC1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- Sean Schofield
|
@@ -15,42 +17,47 @@ autorequire:
|
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
19
|
|
18
|
-
date: 2011-
|
20
|
+
date: 2011-05-03 00:00:00 -04:00
|
21
|
+
default_executable:
|
19
22
|
dependencies:
|
20
23
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
24
|
+
name: spree_core
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
27
|
none: false
|
23
28
|
requirements:
|
24
29
|
- - "="
|
25
30
|
- !ruby/object:Gem::Version
|
26
|
-
hash:
|
31
|
+
hash: 11094359
|
27
32
|
segments:
|
28
33
|
- 0
|
29
|
-
-
|
30
|
-
-
|
31
|
-
|
32
|
-
|
34
|
+
- 60
|
35
|
+
- 0
|
36
|
+
- RC
|
37
|
+
- 1
|
38
|
+
version: 0.60.0.RC1
|
33
39
|
type: :runtime
|
34
|
-
|
35
|
-
name: spree_core
|
40
|
+
version_requirements: *id001
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
|
-
|
42
|
+
name: devise
|
43
|
+
prerelease: false
|
44
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
45
|
none: false
|
39
46
|
requirements:
|
40
47
|
- - "="
|
41
48
|
- !ruby/object:Gem::Version
|
42
|
-
hash:
|
49
|
+
hash: 29
|
43
50
|
segments:
|
44
51
|
- 1
|
45
52
|
- 3
|
46
|
-
-
|
47
|
-
version: 1.3.
|
48
|
-
requirement: *id002
|
53
|
+
- 3
|
54
|
+
version: 1.3.3
|
49
55
|
type: :runtime
|
50
|
-
|
51
|
-
name: devise
|
56
|
+
version_requirements: *id002
|
52
57
|
- !ruby/object:Gem::Dependency
|
53
|
-
|
58
|
+
name: cancan
|
59
|
+
prerelease: false
|
60
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
61
|
none: false
|
55
62
|
requirements:
|
56
63
|
- - "="
|
@@ -61,10 +68,8 @@ dependencies:
|
|
61
68
|
- 6
|
62
69
|
- 4
|
63
70
|
version: 1.6.4
|
64
|
-
requirement: *id003
|
65
71
|
type: :runtime
|
66
|
-
|
67
|
-
name: cancan
|
72
|
+
version_requirements: *id003
|
68
73
|
description: Required dependancy for Spree
|
69
74
|
email: sean@railsdog.com
|
70
75
|
executables: []
|
@@ -77,6 +82,8 @@ files:
|
|
77
82
|
- LICENSE
|
78
83
|
- README.md
|
79
84
|
- app/controllers/admin_controller_decorator.rb
|
85
|
+
- app/controllers/admin_orders_controller_decorator.rb
|
86
|
+
- app/controllers/admin_resource_controller_decorator.rb
|
80
87
|
- app/controllers/checkout_controller_decorator.rb
|
81
88
|
- app/controllers/orders_controller_decorator.rb
|
82
89
|
- app/controllers/resource_controller_decorator.rb
|
@@ -123,6 +130,7 @@ files:
|
|
123
130
|
- db/migrate/20101217012656_create_tokenized_permissions.rb
|
124
131
|
- db/migrate/20101219201531_tokens_for_legacy_orders.rb
|
125
132
|
- db/sample/users.rb
|
133
|
+
has_rdoc: true
|
126
134
|
homepage: http://spreecommerce.com
|
127
135
|
licenses: []
|
128
136
|
|
@@ -145,16 +153,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
154
|
none: false
|
147
155
|
requirements:
|
148
|
-
- - "
|
156
|
+
- - ">"
|
149
157
|
- !ruby/object:Gem::Version
|
150
|
-
hash:
|
158
|
+
hash: 25
|
151
159
|
segments:
|
152
|
-
-
|
153
|
-
|
160
|
+
- 1
|
161
|
+
- 3
|
162
|
+
- 1
|
163
|
+
version: 1.3.1
|
154
164
|
requirements:
|
155
165
|
- none
|
156
166
|
rubyforge_project: spree_auth
|
157
|
-
rubygems_version: 1.
|
167
|
+
rubygems_version: 1.4.2
|
158
168
|
signing_key:
|
159
169
|
specification_version: 3
|
160
170
|
summary: Provides authentication and authorization services for use with Spree.
|