refinerycms-stores 0.0.14 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/Gemfile +12 -12
  2. data/Rakefile +3 -3
  3. data/VERSION +1 -1
  4. data/app/assets/stylesheets/refinery/refinerycms-stores.sass +10 -0
  5. data/app/controllers/refinery/customers/customers_controller.rb +76 -0
  6. data/app/controllers/refinery/orders/orders_controller.rb +1 -0
  7. data/app/controllers/refinery/stores/stores_controller.rb +1 -0
  8. data/app/helpers/refinery/stores/stores_helper.rb +27 -0
  9. data/app/models/refinery/addresses/address.rb +3 -0
  10. data/app/models/refinery/customers/customer.rb +17 -0
  11. data/app/models/refinery/orders/order.rb +2 -1
  12. data/app/views/refinery/customers/edit.html.haml +17 -0
  13. data/app/views/refinery/customers/new.html.haml +17 -0
  14. data/app/views/refinery/products/products/show.html.haml +38 -0
  15. data/app/views/refinery/stores/stores/_cart.html.haml +20 -0
  16. data/app/views/refinery/stores/stores/_cart_item.html.haml +9 -0
  17. data/app/views/refinery/stores/stores/_customer_head.html.haml +12 -0
  18. data/app/views/refinery/stores/stores/_list_product.html.haml +11 -0
  19. data/app/views/refinery/stores/stores/index.html.haml +6 -0
  20. data/app/views/refinery/stores/stores/show.html.haml +14 -0
  21. data/config/locales/en.yml +23 -0
  22. data/config/locales/es.yml +24 -0
  23. data/config/locales/fr.yml +23 -0
  24. data/config/locales/nb.yml +24 -0
  25. data/config/locales/nl.yml +24 -0
  26. data/config/routes.rb +17 -11
  27. data/db/migrate/6_create_customers_customers.rb +22 -0
  28. data/lib/refinery/customers.rb +21 -0
  29. data/lib/refinery/customers/engine.rb +31 -0
  30. data/lib/refinerycms-stores.rb +1 -0
  31. data/refinerycms-stores.gemspec +21 -445
  32. metadata +37 -1612
  33. data/Gemfile.lock +0 -338
  34. data/app/views/refinery/products/products/show.html.erb +0 -76
  35. data/app/views/refinery/stores/stores/_cart.html.erb +0 -22
  36. data/app/views/refinery/stores/stores/_cart_item.html.erb +0 -9
  37. data/app/views/refinery/stores/stores/_list_product.html.erb +0 -16
  38. data/app/views/refinery/stores/stores/index.html.erb +0 -11
  39. data/app/views/refinery/stores/stores/show.html.erb +0 -29
data/Gemfile.lock DELETED
@@ -1,338 +0,0 @@
1
- GIT
2
- remote: https://github.com/stripe/stripe-ruby
3
- revision: 9178c63f089fa5709b32c989955133df83692be3
4
- specs:
5
- stripe (1.6.2)
6
- rest-client (~> 1.4)
7
-
8
- PATH
9
- remote: .
10
- specs:
11
- refinerycms-stores (0.0.13)
12
- aasm (> 3.0)
13
- haml-rails
14
- hpricot
15
- jquery-rails
16
- refinerycms (~> 2.0.0)
17
- refinerycms-stores
18
- ruby_parser
19
- stripe
20
-
21
- GEM
22
- remote: http://rubygems.org/
23
- specs:
24
- aasm (3.0.3)
25
- activerecord
26
- actionmailer (3.2.2)
27
- actionpack (= 3.2.2)
28
- mail (~> 2.4.0)
29
- actionpack (3.2.2)
30
- activemodel (= 3.2.2)
31
- activesupport (= 3.2.2)
32
- builder (~> 3.0.0)
33
- erubis (~> 2.7.0)
34
- journey (~> 1.0.1)
35
- rack (~> 1.4.0)
36
- rack-cache (~> 1.1)
37
- rack-test (~> 0.6.1)
38
- sprockets (~> 2.1.2)
39
- activemodel (3.2.2)
40
- activesupport (= 3.2.2)
41
- builder (~> 3.0.0)
42
- activerecord (3.2.2)
43
- activemodel (= 3.2.2)
44
- activesupport (= 3.2.2)
45
- arel (~> 3.0.2)
46
- tzinfo (~> 0.3.29)
47
- activerecord-jdbc-adapter (1.2.2)
48
- activerecord-jdbcmysql-adapter (1.2.2)
49
- activerecord-jdbc-adapter (~> 1.2.2)
50
- jdbc-mysql (~> 5.1.0)
51
- activerecord-jdbcpostgresql-adapter (1.2.2)
52
- activerecord-jdbc-adapter (~> 1.2.2)
53
- jdbc-postgres (>= 9.0, < 9.2)
54
- activerecord-jdbcsqlite3-adapter (1.2.2)
55
- activerecord-jdbc-adapter (~> 1.2.2)
56
- jdbc-sqlite3 (~> 3.7.2)
57
- activeresource (3.2.2)
58
- activemodel (= 3.2.2)
59
- activesupport (= 3.2.2)
60
- activesupport (3.2.2)
61
- i18n (~> 0.6)
62
- multi_json (~> 1.0)
63
- acts_as_indexed (0.7.7)
64
- addressable (2.2.7)
65
- arel (3.0.2)
66
- awesome_nested_set (2.1.2)
67
- activerecord (>= 3.0.0)
68
- babosa (0.3.5)
69
- bcrypt-ruby (3.0.1)
70
- builder (3.0.0)
71
- capybara (1.1.2)
72
- mime-types (>= 1.16)
73
- nokogiri (>= 1.3.3)
74
- rack (>= 1.0.0)
75
- rack-test (>= 0.5.4)
76
- selenium-webdriver (~> 2.0)
77
- xpath (~> 0.1.4)
78
- childprocess (0.3.1)
79
- ffi (~> 1.0.6)
80
- coffee-rails (3.2.2)
81
- coffee-script (>= 2.2.0)
82
- railties (~> 3.2.0)
83
- coffee-script (2.2.0)
84
- coffee-script-source
85
- execjs
86
- coffee-script-source (1.2.0)
87
- database_cleaner (0.7.1)
88
- devise (2.0.4)
89
- bcrypt-ruby (~> 3.0)
90
- orm_adapter (~> 0.0.3)
91
- railties (~> 3.1)
92
- warden (~> 1.1.1)
93
- diff-lcs (1.1.3)
94
- dragonfly (0.9.10)
95
- rack
96
- erubis (2.7.0)
97
- execjs (1.3.0)
98
- multi_json (~> 1.0)
99
- factory_girl (2.5.2)
100
- activesupport (>= 2.3.9)
101
- factory_girl_rails (1.6.0)
102
- factory_girl (~> 2.5.0)
103
- railties (>= 3.0.0)
104
- ffi (1.0.11)
105
- friendly_id (4.0.1)
106
- fuubar (1.0.0)
107
- rspec (~> 2.0)
108
- rspec-instafail (~> 0.2.0)
109
- ruby-progressbar (~> 0.0.10)
110
- generator_spec (0.8.5)
111
- rails (>= 3.0, < 4.0)
112
- rspec-rails
113
- git (1.2.5)
114
- globalize3 (0.2.0)
115
- activemodel (>= 3.0.0)
116
- activerecord (>= 3.0.0)
117
- paper_trail (~> 2)
118
- guard (1.0.0)
119
- ffi (>= 0.5.0)
120
- thor (~> 0.14.6)
121
- guard-rspec (0.6.0)
122
- guard (>= 0.10.0)
123
- guard-spork (0.5.2)
124
- guard (>= 0.10.0)
125
- spork (>= 0.8.4)
126
- haml (3.1.4)
127
- haml-rails (0.3.4)
128
- actionpack (~> 3.0)
129
- activesupport (~> 3.0)
130
- haml (~> 3.0)
131
- railties (~> 3.0)
132
- hike (1.2.1)
133
- hpricot (0.8.6)
134
- i18n (0.6.0)
135
- jdbc-mysql (5.1.13)
136
- jdbc-postgres (9.1.901)
137
- jdbc-sqlite3 (3.7.2)
138
- jeweler (1.8.3)
139
- bundler (~> 1.0)
140
- git (>= 1.2.5)
141
- rake
142
- rdoc
143
- journey (1.0.3)
144
- jquery-rails (2.0.1)
145
- railties (>= 3.2.0, < 5.0)
146
- thor (~> 0.14)
147
- json (1.6.5)
148
- json_pure (1.6.5)
149
- launchy (2.0.5)
150
- addressable (~> 2.2.6)
151
- libnotify (0.1.4)
152
- ffi (>= 0.6.2)
153
- libv8 (3.3.10.4)
154
- mail (2.4.1)
155
- i18n (>= 0.4.0)
156
- mime-types (~> 1.16)
157
- treetop (~> 1.4.8)
158
- mime-types (1.17.2)
159
- multi_json (1.1.0)
160
- mysql2 (0.3.11)
161
- nokogiri (1.5.0)
162
- orm_adapter (0.0.6)
163
- paper_trail (2.6.0)
164
- rails (~> 3)
165
- pg (0.13.2)
166
- polyglot (0.3.3)
167
- rack (1.4.1)
168
- rack-cache (1.2)
169
- rack (>= 0.4)
170
- rack-ssl (1.3.2)
171
- rack
172
- rack-test (0.6.1)
173
- rack (>= 1.0)
174
- rails (3.2.2)
175
- actionmailer (= 3.2.2)
176
- actionpack (= 3.2.2)
177
- activerecord (= 3.2.2)
178
- activeresource (= 3.2.2)
179
- activesupport (= 3.2.2)
180
- bundler (~> 1.0)
181
- railties (= 3.2.2)
182
- railties (3.2.2)
183
- actionpack (= 3.2.2)
184
- activesupport (= 3.2.2)
185
- rack-ssl (~> 1.3.2)
186
- rake (>= 0.8.7)
187
- rdoc (~> 3.4)
188
- thor (~> 0.14.6)
189
- rake (0.9.2.2)
190
- rb-fchange (0.0.5)
191
- ffi
192
- rb-inotify (0.8.8)
193
- ffi (>= 0.5.0)
194
- rb-notifu (0.0.4)
195
- rdoc (3.12)
196
- json (~> 1.4)
197
- refinerycms (2.0.1)
198
- bundler (~> 1.0)
199
- refinerycms-authentication (= 2.0.1)
200
- refinerycms-core (= 2.0.1)
201
- refinerycms-dashboard (= 2.0.1)
202
- refinerycms-images (= 2.0.1)
203
- refinerycms-pages (= 2.0.1)
204
- refinerycms-resources (= 2.0.1)
205
- refinerycms-authentication (2.0.1)
206
- devise (~> 2.0.0)
207
- refinerycms-core (= 2.0.1)
208
- refinerycms-core (2.0.1)
209
- acts_as_indexed (~> 0.7.7)
210
- awesome_nested_set (~> 2.1.0)
211
- coffee-rails (~> 3.2.1)
212
- friendly_id (~> 4.0.1)
213
- globalize3 (~> 0.2.0)
214
- jquery-rails (~> 2.0.0)
215
- rails (>= 3.1.3, < 3.3)
216
- sass-rails (~> 3.2.3)
217
- truncate_html (~> 0.5)
218
- uglifier (>= 1.0.3)
219
- will_paginate (~> 3.0.2)
220
- refinerycms-dashboard (2.0.1)
221
- refinerycms-core (= 2.0.1)
222
- refinerycms-images (2.0.1)
223
- dragonfly (~> 0.9.8)
224
- rack-cache (>= 0.5.3)
225
- refinerycms-core (= 2.0.1)
226
- refinerycms-pages (2.0.1)
227
- awesome_nested_set (~> 2.1.0)
228
- babosa (!= 0.3.6)
229
- refinerycms-core (= 2.0.1)
230
- seo_meta (~> 1.2.0)
231
- refinerycms-resources (2.0.1)
232
- dragonfly (~> 0.9.8)
233
- rack-cache (>= 0.5.3)
234
- refinerycms-core (= 2.0.1)
235
- refinerycms-testing (2.0.1)
236
- capybara (~> 1.1.0)
237
- database_cleaner (~> 0.7.1)
238
- factory_girl_rails (~> 1.6.0)
239
- fuubar
240
- guard-rspec (~> 0.6.0)
241
- guard-spork (~> 0.5.2)
242
- json_pure
243
- launchy
244
- rack-test (~> 0.6.0)
245
- refinerycms-core (= 2.0.1)
246
- rspec-instafail
247
- rspec-rails (~> 2.8.1)
248
- rest-client (1.6.7)
249
- mime-types (>= 1.16)
250
- rspec (2.8.0)
251
- rspec-core (~> 2.8.0)
252
- rspec-expectations (~> 2.8.0)
253
- rspec-mocks (~> 2.8.0)
254
- rspec-core (2.8.0)
255
- rspec-expectations (2.8.0)
256
- diff-lcs (~> 1.1.2)
257
- rspec-instafail (0.2.2)
258
- rspec-mocks (2.8.0)
259
- rspec-rails (2.8.1)
260
- actionpack (>= 3.0)
261
- activesupport (>= 3.0)
262
- railties (>= 3.0)
263
- rspec (~> 2.8.0)
264
- ruby-progressbar (0.0.10)
265
- ruby_parser (2.3.1)
266
- sexp_processor (~> 3.0)
267
- rubyzip (0.9.6.1)
268
- sass (3.1.15)
269
- sass-rails (3.2.4)
270
- railties (~> 3.2.0)
271
- sass (>= 3.1.10)
272
- tilt (~> 1.3)
273
- selenium-webdriver (2.20.0)
274
- childprocess (>= 0.2.5)
275
- ffi (~> 1.0)
276
- multi_json (~> 1.0)
277
- rubyzip
278
- seo_meta (1.2.0)
279
- railties (>= 3.0.0)
280
- sexp_processor (3.1.0)
281
- simplecov (0.6.1)
282
- multi_json (~> 1.0)
283
- simplecov-html (~> 0.5.3)
284
- simplecov-html (0.5.3)
285
- spork (0.9.0.rc9)
286
- sprockets (2.1.2)
287
- hike (~> 1.2)
288
- rack (~> 1.0)
289
- tilt (~> 1.1, != 1.3.0)
290
- sqlite3 (1.3.5)
291
- therubyracer (0.9.10)
292
- libv8 (~> 3.3.10)
293
- thor (0.14.6)
294
- tilt (1.3.3)
295
- treetop (1.4.10)
296
- polyglot
297
- polyglot (>= 0.3.1)
298
- truncate_html (0.5.4)
299
- tzinfo (0.3.32)
300
- uglifier (1.2.3)
301
- execjs (>= 0.3.0)
302
- multi_json (>= 1.0.2)
303
- warden (1.1.1)
304
- rack (>= 1.0)
305
- will_paginate (3.0.3)
306
- xpath (0.1.4)
307
- nokogiri (~> 1.3)
308
-
309
- PLATFORMS
310
- ruby
311
-
312
- DEPENDENCIES
313
- aasm (> 3.0)
314
- activerecord-jdbcmysql-adapter
315
- activerecord-jdbcpostgresql-adapter
316
- activerecord-jdbcsqlite3-adapter
317
- factory_girl_rails
318
- generator_spec
319
- guard-spork
320
- haml-rails
321
- hpricot
322
- jeweler
323
- jquery-rails
324
- libnotify (~> 0.1.3)
325
- mysql2
326
- pg
327
- rb-fchange (~> 0.0.5)
328
- rb-inotify (>= 0.5.1)
329
- rb-notifu (~> 0.0.4)
330
- refinerycms (~> 2.0.0)
331
- refinerycms-stores!
332
- refinerycms-testing (~> 2.0.0)
333
- ruby_parser
334
- simplecov
335
- spork (= 0.9.0.rc9)
336
- sqlite3
337
- stripe!
338
- therubyracer
@@ -1,76 +0,0 @@
1
- <% content_for :body_content_title do %>
2
- <%= @product.name %>
3
- <% end %>
4
-
5
- <% content_for :body_content_left do %>
6
- <section id="product">
7
-
8
- <div class="product_show">
9
-
10
- <div class="product_photo">
11
-
12
- <% if @product.main_pic_id -%>
13
- <%= image_fu @product.main_pic, Refinery::Images.user_image_sizes[:large], :class => "product-pic", :alt => @product.name %>
14
- <% else -%>
15
- &nbsp;
16
- <% end %>
17
-
18
- </div>
19
-
20
- <div class="product_text">
21
-
22
- <h1> <%= @product.name %> </h1>
23
- <p>
24
- <%= raw @product.description %>
25
- </p>
26
-
27
- </div>
28
-
29
- </div>
30
-
31
- <div class="product_spec">
32
-
33
- <div class="product_code">
34
-
35
- <p>
36
- code: <%= @product.code %> <br/>
37
- size:
38
- <%= number_with_precision(@product.size_width, :precision => 1) %> x
39
- <%= number_with_precision(@product.size_height, :precision => 1) %> x
40
- <%= number_with_precision(@product.size_depth, :precision => 1) %> <br/>
41
- weight:
42
- <%= number_with_precision(@product.weight, :precision => 1) %> lbs
43
-
44
- <% unless @product.digital_download_id.blank? %>
45
- <i>digital download</i>
46
- <% end -%>
47
- </p>
48
-
49
- </div>
50
-
51
- <div class="product_pricebuy">
52
-
53
- <h2>
54
- <%= number_to_currency(@product.price) %>
55
- </h2>
56
-
57
- <div class="product-action">
58
- <%= button_to( "add to cart", refinery.add_to_cart_stores_stores_path(:id => @product), :class => "add-to-cart" ) %>
59
- </div>
60
-
61
- </div>
62
-
63
- </div>
64
-
65
- </section>
66
-
67
- <% end %>
68
-
69
- <% content_for :body_content_right do %>
70
- <aside>
71
- <%= render( :partial => "refinery/stores/stores/cart", :object => @cart ) %>
72
- </aside>
73
-
74
- <% end %>
75
-
76
- <%= render '/refinery/content_page' %>
@@ -1,22 +0,0 @@
1
- <div id='cart'>
2
-
3
- <div class="cart-title">
4
- <h3><%= cart.store_name %> Cart</h3>
5
- <% if cart.items.empty? -%>
6
- <p><i>Your cart is empty; click add-to-cart to add products.</i></p>
7
- <% end -%>
8
- </div>
9
-
10
- <table>
11
- <%= render(:partial => "refinery/stores/stores/cart_item", :collection => cart.items) %>
12
- <tr class="total-line">
13
- <td colspan="2">Total</td>
14
- <td class="total-cell"><%= number_to_currency(cart.total_price) %></td>
15
- </tr>
16
- <tr>
17
- <td> <%= button_to( "checkout", refinery.checkout_stores_stores_path(), :class => "checkout-cart" )%></td>
18
- <td> <%= button_to( "empty cart", refinery.empty_cart_stores_stores_path(), :class => "empty-cart" ) %></td>
19
- </tr>
20
- </table>
21
-
22
- </div>
@@ -1,9 +0,0 @@
1
- <% if cart_item == @current_item %>
2
- <tr id="current_item">
3
- <% else %>
4
- <tr>
5
- <% end %>
6
- <td><%= cart_item.quantity %> &times; </td>
7
- <td><%= h(cart_item.name) %></td>
8
- <td class="item-price"><%= number_to_currency(cart_item.price) %></td>
9
- </tr>