spree_frontend 3.1.14 → 3.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (336) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/logo/spree_50.png +0 -0
  3. data/app/assets/javascripts/spree/frontend/cart.js.coffee +14 -1
  4. data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +11 -35
  5. data/app/assets/javascripts/spree/frontend/checkout/shipment.js.coffee +38 -0
  6. data/app/assets/javascripts/spree/frontend/coupon_manager.js.coffee +37 -0
  7. data/app/assets/stylesheets/spree/frontend/frontend_bootstrap.css.scss +3 -3
  8. data/app/controllers/spree/checkout_controller.rb +0 -14
  9. data/app/controllers/spree/content_controller.rb +3 -3
  10. data/app/controllers/spree/orders_controller.rb +7 -2
  11. data/app/controllers/spree/products_controller.rb +3 -2
  12. data/app/controllers/spree/store_controller.rb +0 -18
  13. data/app/helpers/spree/frontend_helper.rb +1 -1
  14. data/app/helpers/spree/orders_helper.rb +0 -9
  15. data/app/views/kaminari/twitter-bootstrap-3/_first_page.html.erb +1 -1
  16. data/app/views/kaminari/twitter-bootstrap-3/_last_page.html.erb +1 -1
  17. data/app/views/kaminari/twitter-bootstrap-3/_next_page.html.erb +1 -1
  18. data/app/views/kaminari/twitter-bootstrap-3/_page.html.erb +1 -1
  19. data/app/views/kaminari/twitter-bootstrap-3/_prev_page.html.erb +1 -1
  20. data/app/views/spree/address/_form.html.erb +16 -16
  21. data/app/views/spree/checkout/_address.html.erb +4 -4
  22. data/app/views/spree/checkout/_confirm.html.erb +2 -2
  23. data/app/views/spree/checkout/_delivery.html.erb +5 -3
  24. data/app/views/spree/checkout/_payment.html.erb +3 -3
  25. data/app/views/spree/checkout/_summary.html.erb +3 -3
  26. data/app/views/spree/checkout/edit.html.erb +1 -0
  27. data/app/views/spree/checkout/payment/_gateway.html.erb +8 -8
  28. data/app/views/spree/home/index.html.erb +3 -2
  29. data/app/views/spree/orders/_adjustment_row.html.erb +1 -1
  30. data/app/views/spree/orders/_adjustments.html.erb +3 -3
  31. data/app/views/spree/orders/edit.html.erb +15 -2
  32. data/app/views/spree/products/_properties.html.erb +1 -1
  33. data/app/views/spree/products/index.html.erb +5 -5
  34. data/app/views/spree/products/show.html.erb +6 -6
  35. data/app/views/spree/shared/_address.html.erb +3 -1
  36. data/app/views/spree/shared/_error_messages.html.erb +1 -1
  37. data/app/views/spree/shared/_filters.html.erb +2 -2
  38. data/app/views/spree/shared/_google_add_items.js.erb +5 -5
  39. data/app/views/spree/shared/_head.html.erb +2 -0
  40. data/app/views/spree/shared/_header.html.erb +2 -2
  41. data/app/views/spree/shared/_login.html.erb +4 -4
  42. data/app/views/spree/shared/_nav_bar.html.erb +1 -1
  43. data/app/views/spree/shared/_order_details.html.erb +2 -2
  44. data/app/views/spree/shared/_search.html.erb +3 -3
  45. data/app/views/spree/shared/_translations.html.erb +7 -0
  46. data/config/initializers/assets.rb +1 -1
  47. data/config/routes.rb +1 -6
  48. data/lib/tasks/taxon.rake +2 -2
  49. data/spec/controllers/controller_extension_spec.rb +126 -0
  50. data/spec/controllers/controller_helpers_spec.rb +122 -0
  51. data/spec/controllers/spree/checkout_controller_spec.rb +462 -0
  52. data/spec/controllers/spree/checkout_controller_with_views_spec.rb +36 -0
  53. data/spec/controllers/spree/content_controller_spec.rb +12 -0
  54. data/spec/controllers/spree/current_order_tracking_spec.rb +44 -0
  55. data/spec/controllers/spree/home_controller_spec.rb +47 -0
  56. data/spec/controllers/spree/orders_controller_ability_spec.rb +96 -0
  57. data/spec/controllers/spree/orders_controller_spec.rb +134 -0
  58. data/spec/controllers/spree/orders_controller_transitions_spec.rb +31 -0
  59. data/spec/controllers/spree/products_controller_spec.rb +87 -0
  60. data/spec/controllers/spree/taxons_controller_spec.rb +12 -0
  61. data/spec/features/address_spec.rb +93 -0
  62. data/spec/features/automatic_promotion_adjustments_spec.rb +47 -0
  63. data/spec/features/caching/products_spec.rb +59 -0
  64. data/spec/features/caching/taxons_spec.rb +22 -0
  65. data/spec/features/cart_spec.rb +132 -0
  66. data/spec/features/checkout_spec.rb +572 -0
  67. data/spec/features/checkout_unshippable_spec.rb +34 -0
  68. data/spec/features/coupon_code_spec.rb +88 -0
  69. data/spec/features/currency_spec.rb +18 -0
  70. data/spec/features/delivery_spec.rb +64 -0
  71. data/spec/features/free_shipping_promotions_spec.rb +59 -0
  72. data/spec/features/locale_spec.rb +60 -0
  73. data/spec/features/microdata_spec.rb +0 -0
  74. data/spec/features/order_spec.rb +107 -0
  75. data/spec/features/page_promotions_spec.rb +36 -0
  76. data/spec/features/products_spec.rb +334 -0
  77. data/spec/features/taxons_spec.rb +147 -0
  78. data/spec/features/template_rendering_spec.rb +19 -0
  79. data/spec/helpers/frontend_helper_spec.rb +57 -0
  80. data/spec/helpers/taxons_helper_spec.rb +17 -0
  81. data/spec/spec_helper.rb +126 -0
  82. data/spec/support/shared_contexts/checkout_setup.rb +10 -0
  83. data/spec/support/shared_contexts/custom_products.rb +25 -0
  84. data/spec/support/shared_contexts/product_prototypes.rb +30 -0
  85. data/spec/views/spree/checkout/_summary_spec.rb +11 -0
  86. data/spree_frontend.gemspec +6 -3
  87. metadata +92 -263
  88. data/app/assets/images/flags/ad.png +0 -0
  89. data/app/assets/images/flags/ae.png +0 -0
  90. data/app/assets/images/flags/af.png +0 -0
  91. data/app/assets/images/flags/ag.png +0 -0
  92. data/app/assets/images/flags/ai.png +0 -0
  93. data/app/assets/images/flags/al.png +0 -0
  94. data/app/assets/images/flags/am.png +0 -0
  95. data/app/assets/images/flags/an.png +0 -0
  96. data/app/assets/images/flags/ao.png +0 -0
  97. data/app/assets/images/flags/ar.png +0 -0
  98. data/app/assets/images/flags/as.png +0 -0
  99. data/app/assets/images/flags/at.png +0 -0
  100. data/app/assets/images/flags/au.png +0 -0
  101. data/app/assets/images/flags/aw.png +0 -0
  102. data/app/assets/images/flags/ax.png +0 -0
  103. data/app/assets/images/flags/az.png +0 -0
  104. data/app/assets/images/flags/ba.png +0 -0
  105. data/app/assets/images/flags/bb.png +0 -0
  106. data/app/assets/images/flags/bd.png +0 -0
  107. data/app/assets/images/flags/be.png +0 -0
  108. data/app/assets/images/flags/bf.png +0 -0
  109. data/app/assets/images/flags/bg.png +0 -0
  110. data/app/assets/images/flags/bh.png +0 -0
  111. data/app/assets/images/flags/bi.png +0 -0
  112. data/app/assets/images/flags/bj.png +0 -0
  113. data/app/assets/images/flags/bm.png +0 -0
  114. data/app/assets/images/flags/bn.png +0 -0
  115. data/app/assets/images/flags/bo.png +0 -0
  116. data/app/assets/images/flags/br.png +0 -0
  117. data/app/assets/images/flags/bs.png +0 -0
  118. data/app/assets/images/flags/bt.png +0 -0
  119. data/app/assets/images/flags/bv.png +0 -0
  120. data/app/assets/images/flags/bw.png +0 -0
  121. data/app/assets/images/flags/by.png +0 -0
  122. data/app/assets/images/flags/bz.png +0 -0
  123. data/app/assets/images/flags/ca.png +0 -0
  124. data/app/assets/images/flags/catalonia.png +0 -0
  125. data/app/assets/images/flags/cc.png +0 -0
  126. data/app/assets/images/flags/cd.png +0 -0
  127. data/app/assets/images/flags/cf.png +0 -0
  128. data/app/assets/images/flags/cg.png +0 -0
  129. data/app/assets/images/flags/ch.png +0 -0
  130. data/app/assets/images/flags/ci.png +0 -0
  131. data/app/assets/images/flags/ck.png +0 -0
  132. data/app/assets/images/flags/cl.png +0 -0
  133. data/app/assets/images/flags/cm.png +0 -0
  134. data/app/assets/images/flags/cn.png +0 -0
  135. data/app/assets/images/flags/co.png +0 -0
  136. data/app/assets/images/flags/cr.png +0 -0
  137. data/app/assets/images/flags/cs.png +0 -0
  138. data/app/assets/images/flags/cu.png +0 -0
  139. data/app/assets/images/flags/cv.png +0 -0
  140. data/app/assets/images/flags/cx.png +0 -0
  141. data/app/assets/images/flags/cy.png +0 -0
  142. data/app/assets/images/flags/cz.png +0 -0
  143. data/app/assets/images/flags/de.png +0 -0
  144. data/app/assets/images/flags/dj.png +0 -0
  145. data/app/assets/images/flags/dk.png +0 -0
  146. data/app/assets/images/flags/dm.png +0 -0
  147. data/app/assets/images/flags/do.png +0 -0
  148. data/app/assets/images/flags/dz.png +0 -0
  149. data/app/assets/images/flags/ec.png +0 -0
  150. data/app/assets/images/flags/ee.png +0 -0
  151. data/app/assets/images/flags/eg.png +0 -0
  152. data/app/assets/images/flags/eh.png +0 -0
  153. data/app/assets/images/flags/england.png +0 -0
  154. data/app/assets/images/flags/er.png +0 -0
  155. data/app/assets/images/flags/es.png +0 -0
  156. data/app/assets/images/flags/et.png +0 -0
  157. data/app/assets/images/flags/europeanunion.png +0 -0
  158. data/app/assets/images/flags/fam.png +0 -0
  159. data/app/assets/images/flags/fi.png +0 -0
  160. data/app/assets/images/flags/fj.png +0 -0
  161. data/app/assets/images/flags/fk.png +0 -0
  162. data/app/assets/images/flags/fm.png +0 -0
  163. data/app/assets/images/flags/fo.png +0 -0
  164. data/app/assets/images/flags/fr.png +0 -0
  165. data/app/assets/images/flags/ga.png +0 -0
  166. data/app/assets/images/flags/gb.png +0 -0
  167. data/app/assets/images/flags/gd.png +0 -0
  168. data/app/assets/images/flags/ge.png +0 -0
  169. data/app/assets/images/flags/gf.png +0 -0
  170. data/app/assets/images/flags/gh.png +0 -0
  171. data/app/assets/images/flags/gi.png +0 -0
  172. data/app/assets/images/flags/gl.png +0 -0
  173. data/app/assets/images/flags/gm.png +0 -0
  174. data/app/assets/images/flags/gn.png +0 -0
  175. data/app/assets/images/flags/gp.png +0 -0
  176. data/app/assets/images/flags/gq.png +0 -0
  177. data/app/assets/images/flags/gr.png +0 -0
  178. data/app/assets/images/flags/gs.png +0 -0
  179. data/app/assets/images/flags/gt.png +0 -0
  180. data/app/assets/images/flags/gu.png +0 -0
  181. data/app/assets/images/flags/gw.png +0 -0
  182. data/app/assets/images/flags/gy.png +0 -0
  183. data/app/assets/images/flags/hk.png +0 -0
  184. data/app/assets/images/flags/hm.png +0 -0
  185. data/app/assets/images/flags/hn.png +0 -0
  186. data/app/assets/images/flags/hr.png +0 -0
  187. data/app/assets/images/flags/ht.png +0 -0
  188. data/app/assets/images/flags/hu.png +0 -0
  189. data/app/assets/images/flags/id.png +0 -0
  190. data/app/assets/images/flags/ie.png +0 -0
  191. data/app/assets/images/flags/il.png +0 -0
  192. data/app/assets/images/flags/in.png +0 -0
  193. data/app/assets/images/flags/io.png +0 -0
  194. data/app/assets/images/flags/iq.png +0 -0
  195. data/app/assets/images/flags/ir.png +0 -0
  196. data/app/assets/images/flags/is.png +0 -0
  197. data/app/assets/images/flags/it.png +0 -0
  198. data/app/assets/images/flags/ja.png +0 -0
  199. data/app/assets/images/flags/jm.png +0 -0
  200. data/app/assets/images/flags/jo.png +0 -0
  201. data/app/assets/images/flags/ke.png +0 -0
  202. data/app/assets/images/flags/kg.png +0 -0
  203. data/app/assets/images/flags/kh.png +0 -0
  204. data/app/assets/images/flags/ki.png +0 -0
  205. data/app/assets/images/flags/km.png +0 -0
  206. data/app/assets/images/flags/kn.png +0 -0
  207. data/app/assets/images/flags/kp.png +0 -0
  208. data/app/assets/images/flags/kr.png +0 -0
  209. data/app/assets/images/flags/kw.png +0 -0
  210. data/app/assets/images/flags/ky.png +0 -0
  211. data/app/assets/images/flags/kz.png +0 -0
  212. data/app/assets/images/flags/la.png +0 -0
  213. data/app/assets/images/flags/lb.png +0 -0
  214. data/app/assets/images/flags/lc.png +0 -0
  215. data/app/assets/images/flags/li.png +0 -0
  216. data/app/assets/images/flags/lk.png +0 -0
  217. data/app/assets/images/flags/lr.png +0 -0
  218. data/app/assets/images/flags/ls.png +0 -0
  219. data/app/assets/images/flags/lt.png +0 -0
  220. data/app/assets/images/flags/lu.png +0 -0
  221. data/app/assets/images/flags/lv.png +0 -0
  222. data/app/assets/images/flags/ly.png +0 -0
  223. data/app/assets/images/flags/ma.png +0 -0
  224. data/app/assets/images/flags/mc.png +0 -0
  225. data/app/assets/images/flags/md.png +0 -0
  226. data/app/assets/images/flags/me.png +0 -0
  227. data/app/assets/images/flags/mg.png +0 -0
  228. data/app/assets/images/flags/mh.png +0 -0
  229. data/app/assets/images/flags/mk.png +0 -0
  230. data/app/assets/images/flags/ml.png +0 -0
  231. data/app/assets/images/flags/mm.png +0 -0
  232. data/app/assets/images/flags/mn.png +0 -0
  233. data/app/assets/images/flags/mo.png +0 -0
  234. data/app/assets/images/flags/mp.png +0 -0
  235. data/app/assets/images/flags/mq.png +0 -0
  236. data/app/assets/images/flags/mr.png +0 -0
  237. data/app/assets/images/flags/ms.png +0 -0
  238. data/app/assets/images/flags/mt.png +0 -0
  239. data/app/assets/images/flags/mu.png +0 -0
  240. data/app/assets/images/flags/mv.png +0 -0
  241. data/app/assets/images/flags/mw.png +0 -0
  242. data/app/assets/images/flags/mx.png +0 -0
  243. data/app/assets/images/flags/my.png +0 -0
  244. data/app/assets/images/flags/mz.png +0 -0
  245. data/app/assets/images/flags/na.png +0 -0
  246. data/app/assets/images/flags/nc.png +0 -0
  247. data/app/assets/images/flags/ne.png +0 -0
  248. data/app/assets/images/flags/nf.png +0 -0
  249. data/app/assets/images/flags/ng.png +0 -0
  250. data/app/assets/images/flags/ni.png +0 -0
  251. data/app/assets/images/flags/nl.png +0 -0
  252. data/app/assets/images/flags/no.png +0 -0
  253. data/app/assets/images/flags/np.png +0 -0
  254. data/app/assets/images/flags/nr.png +0 -0
  255. data/app/assets/images/flags/nu.png +0 -0
  256. data/app/assets/images/flags/nz.png +0 -0
  257. data/app/assets/images/flags/om.png +0 -0
  258. data/app/assets/images/flags/pa.png +0 -0
  259. data/app/assets/images/flags/pe.png +0 -0
  260. data/app/assets/images/flags/pf.png +0 -0
  261. data/app/assets/images/flags/pg.png +0 -0
  262. data/app/assets/images/flags/ph.png +0 -0
  263. data/app/assets/images/flags/pk.png +0 -0
  264. data/app/assets/images/flags/pl.png +0 -0
  265. data/app/assets/images/flags/pm.png +0 -0
  266. data/app/assets/images/flags/pn.png +0 -0
  267. data/app/assets/images/flags/pr.png +0 -0
  268. data/app/assets/images/flags/ps.png +0 -0
  269. data/app/assets/images/flags/pt.png +0 -0
  270. data/app/assets/images/flags/pw.png +0 -0
  271. data/app/assets/images/flags/py.png +0 -0
  272. data/app/assets/images/flags/qa.png +0 -0
  273. data/app/assets/images/flags/re.png +0 -0
  274. data/app/assets/images/flags/ro.png +0 -0
  275. data/app/assets/images/flags/rs.png +0 -0
  276. data/app/assets/images/flags/ru.png +0 -0
  277. data/app/assets/images/flags/rw.png +0 -0
  278. data/app/assets/images/flags/sa.png +0 -0
  279. data/app/assets/images/flags/sb.png +0 -0
  280. data/app/assets/images/flags/sc.png +0 -0
  281. data/app/assets/images/flags/scotland.png +0 -0
  282. data/app/assets/images/flags/sd.png +0 -0
  283. data/app/assets/images/flags/se.png +0 -0
  284. data/app/assets/images/flags/sg.png +0 -0
  285. data/app/assets/images/flags/sh.png +0 -0
  286. data/app/assets/images/flags/si.png +0 -0
  287. data/app/assets/images/flags/sj.png +0 -0
  288. data/app/assets/images/flags/sk.png +0 -0
  289. data/app/assets/images/flags/sl.png +0 -0
  290. data/app/assets/images/flags/sm.png +0 -0
  291. data/app/assets/images/flags/sn.png +0 -0
  292. data/app/assets/images/flags/so.png +0 -0
  293. data/app/assets/images/flags/sr.png +0 -0
  294. data/app/assets/images/flags/st.png +0 -0
  295. data/app/assets/images/flags/sv.png +0 -0
  296. data/app/assets/images/flags/sy.png +0 -0
  297. data/app/assets/images/flags/sz.png +0 -0
  298. data/app/assets/images/flags/tc.png +0 -0
  299. data/app/assets/images/flags/td.png +0 -0
  300. data/app/assets/images/flags/tf.png +0 -0
  301. data/app/assets/images/flags/tg.png +0 -0
  302. data/app/assets/images/flags/th.png +0 -0
  303. data/app/assets/images/flags/tj.png +0 -0
  304. data/app/assets/images/flags/tk.png +0 -0
  305. data/app/assets/images/flags/tl.png +0 -0
  306. data/app/assets/images/flags/tm.png +0 -0
  307. data/app/assets/images/flags/tn.png +0 -0
  308. data/app/assets/images/flags/to.png +0 -0
  309. data/app/assets/images/flags/tr.png +0 -0
  310. data/app/assets/images/flags/tt.png +0 -0
  311. data/app/assets/images/flags/tv.png +0 -0
  312. data/app/assets/images/flags/tw.png +0 -0
  313. data/app/assets/images/flags/tz.png +0 -0
  314. data/app/assets/images/flags/ua.png +0 -0
  315. data/app/assets/images/flags/ug.png +0 -0
  316. data/app/assets/images/flags/um.png +0 -0
  317. data/app/assets/images/flags/us.png +0 -0
  318. data/app/assets/images/flags/uy.png +0 -0
  319. data/app/assets/images/flags/uz.png +0 -0
  320. data/app/assets/images/flags/va.png +0 -0
  321. data/app/assets/images/flags/vc.png +0 -0
  322. data/app/assets/images/flags/ve.png +0 -0
  323. data/app/assets/images/flags/vg.png +0 -0
  324. data/app/assets/images/flags/vi.png +0 -0
  325. data/app/assets/images/flags/vn.png +0 -0
  326. data/app/assets/images/flags/vu.png +0 -0
  327. data/app/assets/images/flags/wales.png +0 -0
  328. data/app/assets/images/flags/wf.png +0 -0
  329. data/app/assets/images/flags/ws.png +0 -0
  330. data/app/assets/images/flags/ye.png +0 -0
  331. data/app/assets/images/flags/yt.png +0 -0
  332. data/app/assets/images/flags/za.png +0 -0
  333. data/app/assets/images/flags/zm.png +0 -0
  334. data/app/assets/images/flags/zw.png +0 -0
  335. data/app/assets/images/spree_header.jpg +0 -0
  336. data/app/views/spree/products/_image.html.erb +0 -5
@@ -1,5 +0,0 @@
1
- <% if defined?(image) && image %>
2
- <%= image_tag image.attachment.url(:product), :itemprop => "image" %>
3
- <% else %>
4
- <%= product_image(@product, :itemprop => "image") %>
5
- <% end %>