radiant-shop-extension 0.90.0 → 0.90.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +6 -6
- data/VERSION +1 -1
- data/app/.DS_Store +0 -0
- data/app/controllers/admin/shop/categories_controller.rb +3 -3
- data/app/controllers/admin/shop/customers_controller.rb +2 -1
- data/app/controllers/admin/shop/orders_controller.rb +1 -0
- data/app/models/form_checkout.rb +65 -45
- data/app/models/shop_product_attachment.rb +2 -0
- data/app/views/.DS_Store +0 -0
- data/app/views/admin/.DS_Store +0 -0
- data/app/views/admin/shop/customers/index/_foot.html.haml +6 -4
- data/app/views/admin/shop/orders/index/_foot.html.haml +6 -4
- data/lib/radiant-shop-extension.rb +1 -0
- data/lib/shop/interface/customers.rb +1 -1
- data/lib/shop/interface/orders.rb +1 -1
- data/lib/shop/tags/card.rb +5 -5
- data/public/stylesheets/sass/admin/extensions/shop/index.sass +3 -1
- data/radiant-shop-extension.gemspec +266 -269
- data/shop_extension.rb +19 -26
- data/spec/controllers/admin/shop/categories_controller_spec.rb +1 -1
- data/spec/controllers/admin/shop/customers_controller_spec.rb +1 -1
- data/spec/controllers/admin/shop/orders_controller_spec.rb +1 -1
- data/spec/controllers/admin/shop/products/images_controller_spec.rb +1 -1
- data/spec/controllers/admin/shop/products_controller_spec.rb +1 -1
- data/spec/controllers/admin/shops_controller_spec.rb +1 -1
- data/spec/lib/shop/models/image_spec.rb +1 -1
- data/spec/lib/shop/models/page_spec.rb +1 -1
- data/spec/lib/shop/tags/address_spec.rb +1 -1
- data/spec/lib/shop/tags/card_spec.rb +4 -5
- data/spec/lib/shop/tags/cart_spec.rb +1 -2
- data/spec/lib/shop/tags/category_spec.rb +1 -1
- data/spec/lib/shop/tags/core_spec.rb +1 -1
- data/spec/lib/shop/tags/helpers_spec.rb +1 -1
- data/spec/lib/shop/tags/item_spec.rb +1 -1
- data/spec/lib/shop/tags/product_spec.rb +1 -1
- data/spec/lib/shop/tags/tax_spec.rb +1 -1
- data/spec/models/form_address_spec.rb +1 -1
- data/spec/models/form_checkout_spec.rb +39 -32
- data/spec/models/shop_address_spec.rb +1 -1
- data/spec/models/shop_category_page_spec.rb +1 -1
- data/spec/models/shop_category_spec.rb +1 -1
- data/spec/models/shop_customer_spec.rb +1 -1
- data/spec/models/shop_line_item_spec.rb +1 -1
- data/spec/models/shop_order_spec.rb +1 -1
- data/spec/models/shop_payment_spec.rb +1 -1
- data/spec/models/shop_product_attachment_spec.rb +1 -1
- data/spec/models/shop_product_page_spec.rb +1 -1
- data/spec/models/shop_product_spec.rb +1 -1
- metadata +46 -35
- data/.gitignore +0 -6
- data/config/shop_cart.yml +0 -16
- data/vendor/plugins/acts_as_list/README +0 -23
- data/vendor/plugins/acts_as_list/init.rb +0 -3
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +0 -256
- data/vendor/plugins/acts_as_list/test/list_test.rb +0 -332
data/Rakefile
CHANGED
@@ -10,12 +10,12 @@ begin
|
|
10
10
|
gem.add_dependency 'radiant', '>= 0.9.1'
|
11
11
|
gem.add_dependency 'activemerchant', '>= 1.8.0'
|
12
12
|
gem.add_dependency 'fastercsv', '>= 1.5.3'
|
13
|
+
gem.add_dependency 'acts_as_list', '>= 0.1.2'
|
13
14
|
gem.add_dependency 'radiant-settings-extension', '>= 1.1.1'
|
14
|
-
gem.add_dependency 'radiant-images-extension', '>= 0.4.
|
15
|
-
gem.add_dependency 'radiant-forms-extension', '>= 3.2.
|
16
|
-
gem.add_dependency 'radiant-users-extension', '>= 0.0.
|
17
|
-
gem.add_dependency 'radiant-
|
18
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
gem.add_dependency 'radiant-images-extension', '>= 0.4.1'
|
16
|
+
gem.add_dependency 'radiant-forms-extension', '>= 3.2.6'
|
17
|
+
gem.add_dependency 'radiant-users-extension', '>= 0.0.2'
|
18
|
+
gem.add_dependency 'radiant-drag_order-extension','>= 0.3.8'
|
19
19
|
end
|
20
20
|
Jeweler::GemcutterTasks.new
|
21
21
|
rescue LoadError
|
@@ -69,7 +69,7 @@ namespace :spec do
|
|
69
69
|
desc "Run all specs in spec directory with RCov"
|
70
70
|
Spec::Rake::SpecTask.new(:rcov) do |t|
|
71
71
|
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
72
|
-
t.spec_files = FileList[
|
72
|
+
t.spec_files = FileList["#{extension_root}/spec/**/*_spec.rb"]
|
73
73
|
t.rcov = true
|
74
74
|
t.rcov_opts = ['--exclude', 'spec', '--rails']
|
75
75
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.90.
|
1
|
+
0.90.1
|
data/app/.DS_Store
ADDED
Binary file
|
@@ -164,11 +164,11 @@ private
|
|
164
164
|
|
165
165
|
def set_layouts_and_page
|
166
166
|
@shop_category.page = Page.new(
|
167
|
-
:layout_id => Layout.find_by_name(Radiant::Config['shop.layout_category']).id,
|
168
|
-
:parent_id => Radiant::Config['shop.root_page_id'],
|
167
|
+
:layout_id => (Layout.find_by_name(Radiant::Config['shop.layout_category']).id rescue nil),
|
168
|
+
:parent_id => (Radiant::Config['shop.root_page_id'] rescue 1),
|
169
169
|
:parts => [PagePart.new]
|
170
170
|
)
|
171
|
-
@shop_category.product_layout = Layout.find_by_name(Radiant::Config['shop.
|
171
|
+
@shop_category.product_layout = (Layout.find_by_name(Radiant::Config['shop.layout_product']) rescue nil)
|
172
172
|
end
|
173
173
|
|
174
174
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class Admin::Shop::CustomersController < Admin::ResourceController
|
2
2
|
model_class ShopCustomer
|
3
|
-
|
3
|
+
paginate_models :per_page => 15
|
4
|
+
|
4
5
|
before_filter :config_global
|
5
6
|
before_filter :config_new, :only => [ :new, :create ]
|
6
7
|
before_filter :config_edit, :only => [ :edit, :update ]
|
data/app/models/form_checkout.rb
CHANGED
@@ -5,39 +5,12 @@ class FormCheckout
|
|
5
5
|
attr_accessor :config, :data, :result, :gateway, :card
|
6
6
|
|
7
7
|
def create
|
8
|
-
redirect = @form.redirect_to
|
9
|
-
|
10
|
-
@form.redirect_to = :back
|
11
8
|
find_current_order # locate the @order object
|
12
9
|
|
13
10
|
create_result_object # A default response object
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
if gateway.present?
|
18
|
-
prepare_gateway # Create the @gateway object
|
19
|
-
prepare_credit_card if card.present?# Create the @card object
|
20
|
-
|
21
|
-
if @result[:gateway] and @result[:card]
|
22
|
-
purchase! # Use @card to pay through @gateway
|
23
|
-
|
24
|
-
# We have a paid for order with a billing address
|
25
|
-
if success?
|
26
|
-
# The form was configured to send a payment email
|
27
|
-
if extensions.present?
|
28
|
-
configure_success_extensions # Create some configuration variables for mailing
|
29
|
-
end
|
30
|
-
|
31
|
-
finalize_cart
|
32
|
-
@form.redirect_to = redirect
|
33
|
-
else
|
34
|
-
@result[:payment] = false
|
35
|
-
end
|
36
|
-
end
|
37
|
-
else
|
38
|
-
@result[:gateway] = false
|
39
|
-
end
|
40
|
-
end
|
12
|
+
create_order_payments
|
13
|
+
|
41
14
|
@result
|
42
15
|
end
|
43
16
|
|
@@ -53,6 +26,46 @@ class FormCheckout
|
|
53
26
|
}
|
54
27
|
end
|
55
28
|
|
29
|
+
def create_order_payments
|
30
|
+
if @order.billing.present?
|
31
|
+
if gateway.present?
|
32
|
+
|
33
|
+
prepare_gateway # Create the @gateway object
|
34
|
+
|
35
|
+
if @result[:gateway]
|
36
|
+
|
37
|
+
if card.present?
|
38
|
+
|
39
|
+
prepare_credit_card # Create the @card object
|
40
|
+
|
41
|
+
if @result[:card]
|
42
|
+
|
43
|
+
if purchase.success?
|
44
|
+
finalize_checkout # We have a paid for order with a billing address
|
45
|
+
@result[:message] = "Order successfully processed"
|
46
|
+
end
|
47
|
+
|
48
|
+
else
|
49
|
+
@result[:message] = @card.errors.full_messages.to_sentence
|
50
|
+
end
|
51
|
+
|
52
|
+
else
|
53
|
+
@result[:message] = "Credit card details were not sent"
|
54
|
+
end
|
55
|
+
else
|
56
|
+
@result[:message] = "The Payment Gateway '#{gateway_name}' doesn't exist to ActiveMerchant"
|
57
|
+
end
|
58
|
+
else
|
59
|
+
@result[:message] = "Payment gateway has not been configured"
|
60
|
+
end
|
61
|
+
else
|
62
|
+
@result[:message] = "Billing Address has not been set"
|
63
|
+
end
|
64
|
+
|
65
|
+
# If the payment wasn't successful redirect back
|
66
|
+
@form.redirect_to = @result[:payment] ? @form.redirect_to : :back
|
67
|
+
end
|
68
|
+
|
56
69
|
# Creates a gateway instance variable based off the form configuration
|
57
70
|
def prepare_gateway
|
58
71
|
ActiveMerchant::Billing::Base.mode = gateway_mode
|
@@ -90,15 +103,33 @@ class FormCheckout
|
|
90
103
|
})
|
91
104
|
|
92
105
|
if @card.valid?
|
93
|
-
@result[:card]
|
106
|
+
@result[:card] = true
|
94
107
|
else
|
95
|
-
@result[:card]
|
96
|
-
@result[:message] = "Credit Card Invalid: #{@card.errors.full_messages.join('. ')}"
|
108
|
+
@result[:card] = false
|
97
109
|
end
|
98
110
|
end
|
99
111
|
|
112
|
+
# Uses the gateway and card objects to carry out an ActiveMerchant purchase
|
113
|
+
def purchase
|
114
|
+
result = @gateway.purchase(amount, @card, options)
|
115
|
+
|
116
|
+
if result.success?
|
117
|
+
create_payment
|
118
|
+
end
|
119
|
+
|
120
|
+
result
|
121
|
+
end
|
122
|
+
|
123
|
+
def finalize_checkout
|
124
|
+
if extensions.present?
|
125
|
+
finalize_extensions # Create some configuration variables for mailing
|
126
|
+
end
|
127
|
+
|
128
|
+
finalize_cart
|
129
|
+
end
|
130
|
+
|
100
131
|
# Sets up mail to send an invoice to the billing email address
|
101
|
-
def
|
132
|
+
def finalize_extensions
|
102
133
|
extensions.each do |name, config|
|
103
134
|
if config[:extension].include?('mail')
|
104
135
|
config[:to] = @order.billing.email unless config[:to].present?
|
@@ -112,17 +143,6 @@ class FormCheckout
|
|
112
143
|
end
|
113
144
|
end
|
114
145
|
|
115
|
-
# Uses the gateway and card objects to carry out an ActiveMerchant purchase
|
116
|
-
def purchase!
|
117
|
-
result = @gateway.purchase(amount, @card, options)
|
118
|
-
|
119
|
-
@result[:message] = result.message
|
120
|
-
|
121
|
-
if result.success?
|
122
|
-
create_payment
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
146
|
def finalize_cart
|
127
147
|
@order.update_attribute(:status, 'paid') # The order is now considered paid
|
128
148
|
end
|
@@ -134,7 +154,7 @@ class FormCheckout
|
|
134
154
|
|
135
155
|
# Returns the name of the gateway (Eway)
|
136
156
|
def gateway_name
|
137
|
-
gateway[:name]
|
157
|
+
gateway[:name]
|
138
158
|
end
|
139
159
|
|
140
160
|
# Returns Gateway username and password etc
|
data/app/views/.DS_Store
ADDED
Binary file
|
Binary file
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
2
|
-
-
|
3
|
-
|
4
|
-
%li= link_to image('plus') + " " + t("add_customer"), new_admin_shop_customer_path
|
1
|
+
- render_region :foot do |foot|
|
2
|
+
- foot.buttons do
|
3
|
+
%ul.buttons
|
4
|
+
%li= link_to image('plus') + " " + t("add_customer"), new_admin_shop_customer_path
|
5
|
+
- foot.pagination do
|
6
|
+
= pagination_for(@shop_customers)
|
@@ -1,5 +1,7 @@
|
|
1
|
-
|
2
|
-
-
|
3
|
-
|
1
|
+
- render_region :foot do |foot|
|
2
|
+
- foot.buttons do
|
3
|
+
%ul.buttons
|
4
4
|
- @buttons.each do |button|
|
5
|
-
%li= render :partial => "admin/shop/orders/index/buttons/#{button}"
|
5
|
+
%li= render :partial => "admin/shop/orders/index/buttons/#{button}"
|
6
|
+
- foot.pagination do
|
7
|
+
= pagination_for(@shop_orders)
|
@@ -0,0 +1 @@
|
|
1
|
+
# Nothing to see here
|
@@ -22,7 +22,7 @@ module Shop
|
|
22
22
|
customers.index = Radiant::AdminUI::RegionSet.new do |index|
|
23
23
|
index.head.concat %w{buttons}
|
24
24
|
index.body.concat %w{name modify}
|
25
|
-
index.foot.concat %w{
|
25
|
+
index.foot.concat %w{buttons pagination}
|
26
26
|
end
|
27
27
|
customers.remove = customers.index
|
28
28
|
end
|
@@ -22,7 +22,7 @@ module Shop
|
|
22
22
|
orders.index = Radiant::AdminUI::RegionSet.new do |index|
|
23
23
|
index.head.concat %w{}
|
24
24
|
index.body.concat %w{price status updated customer}
|
25
|
-
index.foot.concat %w{buttons}
|
25
|
+
index.foot.concat %w{buttons pagination}
|
26
26
|
end
|
27
27
|
orders.remove = orders.index
|
28
28
|
end
|
data/lib/shop/tags/card.rb
CHANGED
@@ -3,10 +3,10 @@ module Shop
|
|
3
3
|
module Card
|
4
4
|
|
5
5
|
CARD_TYPES = {
|
6
|
-
'visa'
|
7
|
-
'
|
8
|
-
'diners'
|
9
|
-
'amex'
|
6
|
+
'visa' => 'Visa',
|
7
|
+
'master' => 'Master Card',
|
8
|
+
'diners' => 'Diners Club',
|
9
|
+
'amex' => 'American Express'
|
10
10
|
}
|
11
11
|
|
12
12
|
include Radiant::Taggable
|
@@ -46,7 +46,7 @@ module Shop
|
|
46
46
|
desc %{ Ouputs a list of years for credit cards }
|
47
47
|
tag 'form:card:year' do |tag|
|
48
48
|
content = %{<select name="card[year]" id="card_year">\n}
|
49
|
-
(Time.new.year ... Time.new.year +
|
49
|
+
(Time.new.year ... Time.new.year + 15).each do |year|
|
50
50
|
content << %{<option value="#{year}">#{year}</option>\n}
|
51
51
|
end
|
52
52
|
content << %{</select>}
|
@@ -1,282 +1,276 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-shop-extension}
|
8
|
-
s.version = "0.90.
|
8
|
+
s.version = "0.90.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dirk Kelly", "John Barker", "Darcy Laycock"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-24}
|
13
13
|
s.description = %q{Radiant Shop is an attempt at a simple but complete store. It includes Products, Categories, Orders and Credit Card Payments}
|
14
14
|
s.email = %q{dk@dirkkelly.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
".
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
"spec/spec_helper.rb",
|
225
|
-
"vendor/plugins/acts_as_list/README",
|
226
|
-
"vendor/plugins/acts_as_list/init.rb",
|
227
|
-
"vendor/plugins/acts_as_list/lib/active_record/acts/list.rb",
|
228
|
-
"vendor/plugins/acts_as_list/test/list_test.rb"
|
20
|
+
"HISTORY.md",
|
21
|
+
"LICENSE",
|
22
|
+
"README.md",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"app/.DS_Store",
|
26
|
+
"app/controllers/admin/shop/categories_controller.rb",
|
27
|
+
"app/controllers/admin/shop/customers_controller.rb",
|
28
|
+
"app/controllers/admin/shop/orders_controller.rb",
|
29
|
+
"app/controllers/admin/shop/products/images_controller.rb",
|
30
|
+
"app/controllers/admin/shop/products_controller.rb",
|
31
|
+
"app/controllers/admin/shops_controller.rb",
|
32
|
+
"app/helpers/shop_helper.rb",
|
33
|
+
"app/models/form_address.rb",
|
34
|
+
"app/models/form_checkout.rb",
|
35
|
+
"app/models/form_line_item.rb",
|
36
|
+
"app/models/shop_address.rb",
|
37
|
+
"app/models/shop_category.rb",
|
38
|
+
"app/models/shop_category_page.rb",
|
39
|
+
"app/models/shop_customer.rb",
|
40
|
+
"app/models/shop_line_item.rb",
|
41
|
+
"app/models/shop_order.rb",
|
42
|
+
"app/models/shop_page.rb",
|
43
|
+
"app/models/shop_payment.rb",
|
44
|
+
"app/models/shop_product.rb",
|
45
|
+
"app/models/shop_product_attachment.rb",
|
46
|
+
"app/models/shop_product_page.rb",
|
47
|
+
"app/views/.DS_Store",
|
48
|
+
"app/views/admin/.DS_Store",
|
49
|
+
"app/views/admin/shop/categories/edit.html.haml",
|
50
|
+
"app/views/admin/shop/categories/edit/_foot.html.haml",
|
51
|
+
"app/views/admin/shop/categories/edit/_form.html.haml",
|
52
|
+
"app/views/admin/shop/categories/edit/_head.html.haml",
|
53
|
+
"app/views/admin/shop/categories/edit/_inputs.html.haml",
|
54
|
+
"app/views/admin/shop/categories/edit/_meta.html.haml",
|
55
|
+
"app/views/admin/shop/categories/edit/_parts.html.haml",
|
56
|
+
"app/views/admin/shop/categories/edit/_popups.html.haml",
|
57
|
+
"app/views/admin/shop/categories/edit/inputs/_name.html.haml",
|
58
|
+
"app/views/admin/shop/categories/edit/meta/_handle.html.haml",
|
59
|
+
"app/views/admin/shop/categories/edit/meta/_layouts.html.haml",
|
60
|
+
"app/views/admin/shop/categories/edit/meta/_page.html.haml",
|
61
|
+
"app/views/admin/shop/categories/edit/meta/_status.html.haml",
|
62
|
+
"app/views/admin/shop/categories/edit/parts/_description.html.haml",
|
63
|
+
"app/views/admin/shop/categories/index/_category.html.haml",
|
64
|
+
"app/views/admin/shop/categories/new.html.haml",
|
65
|
+
"app/views/admin/shop/categories/remove.html.haml",
|
66
|
+
"app/views/admin/shop/customers/edit.html.haml",
|
67
|
+
"app/views/admin/shop/customers/edit/_foot.html.haml",
|
68
|
+
"app/views/admin/shop/customers/edit/_form.html.haml",
|
69
|
+
"app/views/admin/shop/customers/edit/_head.html.haml",
|
70
|
+
"app/views/admin/shop/customers/edit/_inputs.html.haml",
|
71
|
+
"app/views/admin/shop/customers/edit/_meta.html.haml",
|
72
|
+
"app/views/admin/shop/customers/edit/_parts.html.haml",
|
73
|
+
"app/views/admin/shop/customers/edit/_popups.html.haml",
|
74
|
+
"app/views/admin/shop/customers/edit/inputs/_email.html.haml",
|
75
|
+
"app/views/admin/shop/customers/edit/inputs/_name.html.haml",
|
76
|
+
"app/views/admin/shop/customers/edit/meta/_login.html.haml",
|
77
|
+
"app/views/admin/shop/customers/edit/meta/_password.html.haml",
|
78
|
+
"app/views/admin/shop/customers/edit/meta/_password_confirmation.html.haml",
|
79
|
+
"app/views/admin/shop/customers/edit/parts/_address.html.haml",
|
80
|
+
"app/views/admin/shop/customers/edit/parts/_addresses.html.haml",
|
81
|
+
"app/views/admin/shop/customers/edit/parts/_orders.html.haml",
|
82
|
+
"app/views/admin/shop/customers/index.html.haml",
|
83
|
+
"app/views/admin/shop/customers/index/_customer.html.haml",
|
84
|
+
"app/views/admin/shop/customers/index/_foot.html.haml",
|
85
|
+
"app/views/admin/shop/customers/index/_head.html.haml",
|
86
|
+
"app/views/admin/shop/customers/new.html.haml",
|
87
|
+
"app/views/admin/shop/customers/remove.html.haml",
|
88
|
+
"app/views/admin/shop/orders/edit.html.haml",
|
89
|
+
"app/views/admin/shop/orders/edit/_foot.html.haml",
|
90
|
+
"app/views/admin/shop/orders/edit/_form.html.haml",
|
91
|
+
"app/views/admin/shop/orders/edit/_head.html.haml",
|
92
|
+
"app/views/admin/shop/orders/edit/_inputs.html.haml",
|
93
|
+
"app/views/admin/shop/orders/edit/_meta.html.haml",
|
94
|
+
"app/views/admin/shop/orders/edit/_parts.html.haml",
|
95
|
+
"app/views/admin/shop/orders/edit/_popups.html.haml",
|
96
|
+
"app/views/admin/shop/orders/edit/parts/_address.html.haml",
|
97
|
+
"app/views/admin/shop/orders/edit/parts/_addresses.html.haml",
|
98
|
+
"app/views/admin/shop/orders/edit/parts/_customer.html.haml",
|
99
|
+
"app/views/admin/shop/orders/edit/parts/_items.html.haml",
|
100
|
+
"app/views/admin/shop/orders/index.html.haml",
|
101
|
+
"app/views/admin/shop/orders/index/_foot.html.haml",
|
102
|
+
"app/views/admin/shop/orders/index/_head.html.haml",
|
103
|
+
"app/views/admin/shop/orders/index/_order.html.haml",
|
104
|
+
"app/views/admin/shop/orders/index/buttons/_all.html.haml",
|
105
|
+
"app/views/admin/shop/orders/index/buttons/_new.html.haml",
|
106
|
+
"app/views/admin/shop/orders/index/buttons/_paid.html.haml",
|
107
|
+
"app/views/admin/shop/orders/index/buttons/_shipped.html.haml",
|
108
|
+
"app/views/admin/shop/products/edit.html.haml",
|
109
|
+
"app/views/admin/shop/products/edit/_foot.html.haml",
|
110
|
+
"app/views/admin/shop/products/edit/_form.html.haml",
|
111
|
+
"app/views/admin/shop/products/edit/_head.html.haml",
|
112
|
+
"app/views/admin/shop/products/edit/_inputs.html.haml",
|
113
|
+
"app/views/admin/shop/products/edit/_meta.html.haml",
|
114
|
+
"app/views/admin/shop/products/edit/_parts.html.haml",
|
115
|
+
"app/views/admin/shop/products/edit/_popups.html.haml",
|
116
|
+
"app/views/admin/shop/products/edit/buttons/_browse_images.html.haml",
|
117
|
+
"app/views/admin/shop/products/edit/buttons/_new_image.html.haml",
|
118
|
+
"app/views/admin/shop/products/edit/inputs/_name.html.haml",
|
119
|
+
"app/views/admin/shop/products/edit/inputs/_price.html.haml",
|
120
|
+
"app/views/admin/shop/products/edit/meta/_category.html.haml",
|
121
|
+
"app/views/admin/shop/products/edit/meta/_layout.html.haml",
|
122
|
+
"app/views/admin/shop/products/edit/meta/_page.html.haml",
|
123
|
+
"app/views/admin/shop/products/edit/meta/_sku.html.haml",
|
124
|
+
"app/views/admin/shop/products/edit/meta/_status.html.haml",
|
125
|
+
"app/views/admin/shop/products/edit/parts/_customers.html.haml",
|
126
|
+
"app/views/admin/shop/products/edit/parts/_description.html.haml",
|
127
|
+
"app/views/admin/shop/products/edit/parts/_images.html.haml",
|
128
|
+
"app/views/admin/shop/products/edit/popups/_browse_images.html.haml",
|
129
|
+
"app/views/admin/shop/products/edit/popups/_new_image.html.haml",
|
130
|
+
"app/views/admin/shop/products/edit/shared/_image.html.haml",
|
131
|
+
"app/views/admin/shop/products/index.html.haml",
|
132
|
+
"app/views/admin/shop/products/index/_foot.html.haml",
|
133
|
+
"app/views/admin/shop/products/index/_head.html.haml",
|
134
|
+
"app/views/admin/shop/products/index/_product.html.haml",
|
135
|
+
"app/views/admin/shop/products/index/buttons/_add_category.html.haml",
|
136
|
+
"app/views/admin/shop/products/new.html.haml",
|
137
|
+
"app/views/admin/shop/products/remove.html.haml",
|
138
|
+
"config/locales/en.yml",
|
139
|
+
"config/routes.rb",
|
140
|
+
"db/migrate/20101011063133_setup_shop.rb",
|
141
|
+
"db/seed.rb",
|
142
|
+
"db/seeds/forms.rb",
|
143
|
+
"db/seeds/layouts.rb",
|
144
|
+
"db/seeds/pages.rb",
|
145
|
+
"db/seeds/products.rb",
|
146
|
+
"db/seeds/snippets.rb",
|
147
|
+
"lib/radiant-shop-extension.rb",
|
148
|
+
"lib/shop/controllers/application_controller.rb",
|
149
|
+
"lib/shop/controllers/site_controller.rb",
|
150
|
+
"lib/shop/interface/categories.rb",
|
151
|
+
"lib/shop/interface/customers.rb",
|
152
|
+
"lib/shop/interface/discounts.rb",
|
153
|
+
"lib/shop/interface/orders.rb",
|
154
|
+
"lib/shop/interface/products.rb",
|
155
|
+
"lib/shop/models/form_extension.rb",
|
156
|
+
"lib/shop/models/image.rb",
|
157
|
+
"lib/shop/models/page.rb",
|
158
|
+
"lib/shop/models/user.rb",
|
159
|
+
"lib/shop/tags/address.rb",
|
160
|
+
"lib/shop/tags/card.rb",
|
161
|
+
"lib/shop/tags/cart.rb",
|
162
|
+
"lib/shop/tags/category.rb",
|
163
|
+
"lib/shop/tags/core.rb",
|
164
|
+
"lib/shop/tags/helpers.rb",
|
165
|
+
"lib/shop/tags/item.rb",
|
166
|
+
"lib/shop/tags/product.rb",
|
167
|
+
"lib/shop/tags/tax.rb",
|
168
|
+
"lib/tasks/shop_extension_tasks.rake",
|
169
|
+
"public/images/admin/extensions/shop/products/sort.png",
|
170
|
+
"public/javascripts/admin/extensions/shop/edit.js",
|
171
|
+
"public/javascripts/admin/extensions/shop/products/edit.js",
|
172
|
+
"public/javascripts/admin/extensions/shop/products/index.js",
|
173
|
+
"public/stylesheets/sass/admin/extensions/shop/edit.sass",
|
174
|
+
"public/stylesheets/sass/admin/extensions/shop/index.sass",
|
175
|
+
"public/stylesheets/sass/admin/extensions/shop/products/edit.sass",
|
176
|
+
"public/stylesheets/sass/admin/extensions/shop/products/index.sass",
|
177
|
+
"radiant-shop-extension.gemspec",
|
178
|
+
"shop_extension.rb",
|
179
|
+
"spec/controllers/admin/shop/categories_controller_spec.rb",
|
180
|
+
"spec/controllers/admin/shop/customers_controller_spec.rb",
|
181
|
+
"spec/controllers/admin/shop/orders_controller_spec.rb",
|
182
|
+
"spec/controllers/admin/shop/products/images_controller_spec.rb",
|
183
|
+
"spec/controllers/admin/shop/products_controller_spec.rb",
|
184
|
+
"spec/controllers/admin/shops_controller_spec.rb",
|
185
|
+
"spec/datasets/forms.rb",
|
186
|
+
"spec/datasets/shop_addresses.rb",
|
187
|
+
"spec/datasets/shop_categories.rb",
|
188
|
+
"spec/datasets/shop_config.rb",
|
189
|
+
"spec/datasets/shop_customers.rb",
|
190
|
+
"spec/datasets/shop_line_items.rb",
|
191
|
+
"spec/datasets/shop_orders.rb",
|
192
|
+
"spec/datasets/shop_payments.rb",
|
193
|
+
"spec/datasets/shop_product_attachments.rb",
|
194
|
+
"spec/datasets/shop_products.rb",
|
195
|
+
"spec/datasets/tags.rb",
|
196
|
+
"spec/helpers/nested_tag_helper.rb",
|
197
|
+
"spec/lib/shop/models/image_spec.rb",
|
198
|
+
"spec/lib/shop/models/page_spec.rb",
|
199
|
+
"spec/lib/shop/tags/address_spec.rb",
|
200
|
+
"spec/lib/shop/tags/card_spec.rb",
|
201
|
+
"spec/lib/shop/tags/cart_spec.rb",
|
202
|
+
"spec/lib/shop/tags/category_spec.rb",
|
203
|
+
"spec/lib/shop/tags/core_spec.rb",
|
204
|
+
"spec/lib/shop/tags/helpers_spec.rb",
|
205
|
+
"spec/lib/shop/tags/item_spec.rb",
|
206
|
+
"spec/lib/shop/tags/product_spec.rb",
|
207
|
+
"spec/lib/shop/tags/tax_spec.rb",
|
208
|
+
"spec/matchers/comparison.rb",
|
209
|
+
"spec/matchers/render_matcher.rb",
|
210
|
+
"spec/models/form_address_spec.rb",
|
211
|
+
"spec/models/form_checkout_spec.rb",
|
212
|
+
"spec/models/shop_address_spec.rb",
|
213
|
+
"spec/models/shop_category_page_spec.rb",
|
214
|
+
"spec/models/shop_category_spec.rb",
|
215
|
+
"spec/models/shop_customer_spec.rb",
|
216
|
+
"spec/models/shop_line_item_spec.rb",
|
217
|
+
"spec/models/shop_order_spec.rb",
|
218
|
+
"spec/models/shop_payment_spec.rb",
|
219
|
+
"spec/models/shop_product_attachment_spec.rb",
|
220
|
+
"spec/models/shop_product_page_spec.rb",
|
221
|
+
"spec/models/shop_product_spec.rb",
|
222
|
+
"spec/spec.opts",
|
223
|
+
"spec/spec_helper.rb"
|
229
224
|
]
|
230
225
|
s.homepage = %q{http://github.com/squaretalent/radiant-shop-extension}
|
231
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
232
226
|
s.require_paths = ["lib"]
|
233
227
|
s.rubygems_version = %q{1.3.7}
|
234
228
|
s.summary = %q{Shop Extension for Radiant CMS}
|
235
229
|
s.test_files = [
|
236
230
|
"spec/controllers/admin/shop/categories_controller_spec.rb",
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
231
|
+
"spec/controllers/admin/shop/customers_controller_spec.rb",
|
232
|
+
"spec/controllers/admin/shop/orders_controller_spec.rb",
|
233
|
+
"spec/controllers/admin/shop/products/images_controller_spec.rb",
|
234
|
+
"spec/controllers/admin/shop/products_controller_spec.rb",
|
235
|
+
"spec/controllers/admin/shops_controller_spec.rb",
|
236
|
+
"spec/datasets/forms.rb",
|
237
|
+
"spec/datasets/shop_addresses.rb",
|
238
|
+
"spec/datasets/shop_categories.rb",
|
239
|
+
"spec/datasets/shop_config.rb",
|
240
|
+
"spec/datasets/shop_customers.rb",
|
241
|
+
"spec/datasets/shop_line_items.rb",
|
242
|
+
"spec/datasets/shop_orders.rb",
|
243
|
+
"spec/datasets/shop_payments.rb",
|
244
|
+
"spec/datasets/shop_product_attachments.rb",
|
245
|
+
"spec/datasets/shop_products.rb",
|
246
|
+
"spec/datasets/tags.rb",
|
247
|
+
"spec/helpers/nested_tag_helper.rb",
|
248
|
+
"spec/lib/shop/models/image_spec.rb",
|
249
|
+
"spec/lib/shop/models/page_spec.rb",
|
250
|
+
"spec/lib/shop/tags/address_spec.rb",
|
251
|
+
"spec/lib/shop/tags/card_spec.rb",
|
252
|
+
"spec/lib/shop/tags/cart_spec.rb",
|
253
|
+
"spec/lib/shop/tags/category_spec.rb",
|
254
|
+
"spec/lib/shop/tags/core_spec.rb",
|
255
|
+
"spec/lib/shop/tags/helpers_spec.rb",
|
256
|
+
"spec/lib/shop/tags/item_spec.rb",
|
257
|
+
"spec/lib/shop/tags/product_spec.rb",
|
258
|
+
"spec/lib/shop/tags/tax_spec.rb",
|
259
|
+
"spec/matchers/comparison.rb",
|
260
|
+
"spec/matchers/render_matcher.rb",
|
261
|
+
"spec/models/form_address_spec.rb",
|
262
|
+
"spec/models/form_checkout_spec.rb",
|
263
|
+
"spec/models/shop_address_spec.rb",
|
264
|
+
"spec/models/shop_category_page_spec.rb",
|
265
|
+
"spec/models/shop_category_spec.rb",
|
266
|
+
"spec/models/shop_customer_spec.rb",
|
267
|
+
"spec/models/shop_line_item_spec.rb",
|
268
|
+
"spec/models/shop_order_spec.rb",
|
269
|
+
"spec/models/shop_payment_spec.rb",
|
270
|
+
"spec/models/shop_product_attachment_spec.rb",
|
271
|
+
"spec/models/shop_product_page_spec.rb",
|
272
|
+
"spec/models/shop_product_spec.rb",
|
273
|
+
"spec/spec_helper.rb"
|
280
274
|
]
|
281
275
|
|
282
276
|
if s.respond_to? :specification_version then
|
@@ -287,30 +281,33 @@ Gem::Specification.new do |s|
|
|
287
281
|
s.add_runtime_dependency(%q<radiant>, [">= 0.9.1"])
|
288
282
|
s.add_runtime_dependency(%q<activemerchant>, [">= 1.8.0"])
|
289
283
|
s.add_runtime_dependency(%q<fastercsv>, [">= 1.5.3"])
|
284
|
+
s.add_runtime_dependency(%q<acts_as_list>, [">= 0.1.2"])
|
290
285
|
s.add_runtime_dependency(%q<radiant-settings-extension>, [">= 1.1.1"])
|
291
|
-
s.add_runtime_dependency(%q<radiant-images-extension>, [">= 0.4.
|
292
|
-
s.add_runtime_dependency(%q<radiant-forms-extension>, [">= 3.2.
|
293
|
-
s.add_runtime_dependency(%q<radiant-users-extension>, [">= 0.0.
|
294
|
-
s.add_runtime_dependency(%q<radiant-
|
286
|
+
s.add_runtime_dependency(%q<radiant-images-extension>, [">= 0.4.1"])
|
287
|
+
s.add_runtime_dependency(%q<radiant-forms-extension>, [">= 3.2.6"])
|
288
|
+
s.add_runtime_dependency(%q<radiant-users-extension>, [">= 0.0.2"])
|
289
|
+
s.add_runtime_dependency(%q<radiant-drag_order-extension>, [">= 0.3.8"])
|
295
290
|
else
|
296
291
|
s.add_dependency(%q<radiant>, [">= 0.9.1"])
|
297
292
|
s.add_dependency(%q<activemerchant>, [">= 1.8.0"])
|
298
293
|
s.add_dependency(%q<fastercsv>, [">= 1.5.3"])
|
294
|
+
s.add_dependency(%q<acts_as_list>, [">= 0.1.2"])
|
299
295
|
s.add_dependency(%q<radiant-settings-extension>, [">= 1.1.1"])
|
300
|
-
s.add_dependency(%q<radiant-images-extension>, [">= 0.4.
|
301
|
-
s.add_dependency(%q<radiant-forms-extension>, [">= 3.2.
|
302
|
-
s.add_dependency(%q<radiant-users-extension>, [">= 0.0.
|
303
|
-
s.add_dependency(%q<radiant-
|
296
|
+
s.add_dependency(%q<radiant-images-extension>, [">= 0.4.1"])
|
297
|
+
s.add_dependency(%q<radiant-forms-extension>, [">= 3.2.6"])
|
298
|
+
s.add_dependency(%q<radiant-users-extension>, [">= 0.0.2"])
|
299
|
+
s.add_dependency(%q<radiant-drag_order-extension>, [">= 0.3.8"])
|
304
300
|
end
|
305
301
|
else
|
306
302
|
s.add_dependency(%q<radiant>, [">= 0.9.1"])
|
307
303
|
s.add_dependency(%q<activemerchant>, [">= 1.8.0"])
|
308
304
|
s.add_dependency(%q<fastercsv>, [">= 1.5.3"])
|
305
|
+
s.add_dependency(%q<acts_as_list>, [">= 0.1.2"])
|
309
306
|
s.add_dependency(%q<radiant-settings-extension>, [">= 1.1.1"])
|
310
|
-
s.add_dependency(%q<radiant-images-extension>, [">= 0.4.
|
311
|
-
s.add_dependency(%q<radiant-forms-extension>, [">= 3.2.
|
312
|
-
s.add_dependency(%q<radiant-users-extension>, [">= 0.0.
|
313
|
-
s.add_dependency(%q<radiant-
|
307
|
+
s.add_dependency(%q<radiant-images-extension>, [">= 0.4.1"])
|
308
|
+
s.add_dependency(%q<radiant-forms-extension>, [">= 3.2.6"])
|
309
|
+
s.add_dependency(%q<radiant-users-extension>, [">= 0.0.2"])
|
310
|
+
s.add_dependency(%q<radiant-drag_order-extension>, [">= 0.3.8"])
|
314
311
|
end
|
315
312
|
end
|
316
313
|
|