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
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Template rendering", type: :feature do
4
+
5
+ after do
6
+ Capybara.ignore_hidden_elements = true
7
+ end
8
+
9
+ before do
10
+ Capybara.ignore_hidden_elements = false
11
+ end
12
+
13
+ it 'layout should have canonical tag referencing site url' do
14
+ Spree::Store.create!(code: 'spree', name: 'My Spree Store', url: 'spreestore.example.com', mail_from_address: 'test@example.com')
15
+
16
+ visit spree.root_path
17
+ expect(find('link[rel=canonical]')[:href]).to eql('http://spreestore.example.com/')
18
+ end
19
+ end
@@ -0,0 +1,57 @@
1
+ require 'spec_helper'
2
+
3
+ module Spree
4
+ describe FrontendHelper, type: :helper do
5
+ # Regression test for #2034
6
+ context "flash_message" do
7
+ let(:flash) { { "notice" => "ok", "foo" => "foo", "bar" => "bar" } }
8
+
9
+ it "should output all flash content" do
10
+ flash_messages
11
+ html = Nokogiri::HTML(helper.output_buffer)
12
+ expect(html.css(".alert-notice").text).to eq("ok")
13
+ expect(html.css(".alert-foo").text).to eq("foo")
14
+ expect(html.css(".alert-bar").text).to eq("bar")
15
+ end
16
+
17
+ it "should output flash content except one key" do
18
+ flash_messages(ignore_types: :bar)
19
+ html = Nokogiri::HTML(helper.output_buffer)
20
+ expect(html.css(".alert-notice").text).to eq("ok")
21
+ expect(html.css(".alert-foo").text).to eq("foo")
22
+ expect(html.css(".alert-bar").text).to be_empty
23
+ end
24
+
25
+ it "should output flash content except some keys" do
26
+ flash_messages(ignore_types: [:foo, :bar])
27
+ html = Nokogiri::HTML(helper.output_buffer)
28
+ expect(html.css(".alert-notice").text).to eq("ok")
29
+ expect(html.css(".alert-foo").text).to be_empty
30
+ expect(html.css(".alert-bar").text).to be_empty
31
+ expect(helper.output_buffer).to eq("<div class=\"alert alert-notice\">ok</div>")
32
+ end
33
+ end
34
+
35
+ # Regression test for #2759
36
+ it "nested_taxons_path works with a Taxon object" do
37
+ taxon = create(:taxon, name: "iphone")
38
+ expect(spree.nested_taxons_path(taxon)).to eq("/t/iphone")
39
+ end
40
+
41
+ context '#checkout_progress' do
42
+ before do
43
+ @order = create(:order, state: 'address')
44
+ end
45
+
46
+ it 'does not include numbers by default' do
47
+ output = checkout_progress
48
+ expect(output).to_not include('1.')
49
+ end
50
+
51
+ it 'has option to include numbers' do
52
+ output = checkout_progress(numbers: true)
53
+ expect(output).to include('1.')
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree::TaxonsHelper, type: :helper do
4
+ # Regression test for #4382
5
+ it "#taxon_preview" do
6
+ taxon = create(:taxon)
7
+ child_taxon = create(:taxon, parent: taxon)
8
+ product_1 = create(:product)
9
+ product_2 = create(:product)
10
+ product_3 = create(:product)
11
+ taxon.products << product_1
12
+ taxon.products << product_2
13
+ child_taxon.products << product_3
14
+
15
+ expect(taxon_preview(taxon.reload)).to eql([product_1, product_2, product_3])
16
+ end
17
+ end
@@ -0,0 +1,126 @@
1
+ if ENV["COVERAGE"]
2
+ # Run Coverage report
3
+ require 'simplecov'
4
+ SimpleCov.start do
5
+ add_group 'Controllers', 'app/controllers'
6
+ add_group 'Helpers', 'app/helpers'
7
+ add_group 'Mailers', 'app/mailers'
8
+ add_group 'Models', 'app/models'
9
+ add_group 'Views', 'app/views'
10
+ add_group 'Libraries', 'lib'
11
+ end
12
+ end
13
+
14
+ # This file is copied to ~/spec when you run 'ruby script/generate rspec'
15
+ # from the project root directory.
16
+ ENV["RAILS_ENV"] ||= 'test'
17
+
18
+ begin
19
+ require File.expand_path("../dummy/config/environment", __FILE__)
20
+ rescue LoadError
21
+ puts "Could not load dummy application. Please ensure you have run `bundle exec rake test_app`"
22
+ exit
23
+ end
24
+
25
+ require 'rspec/rails'
26
+ require 'ffaker'
27
+
28
+ # Requires supporting files with custom matchers and macros, etc,
29
+ # in ./support/ and its subdirectories.
30
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
31
+
32
+ require 'database_cleaner'
33
+
34
+ if ENV["CHECK_TRANSLATIONS"]
35
+ require "spree/testing_support/i18n"
36
+ end
37
+
38
+ require 'spree/testing_support/authorization_helpers'
39
+ require 'spree/testing_support/capybara_ext'
40
+ require 'spree/testing_support/factories'
41
+ require 'spree/testing_support/preferences'
42
+ require 'spree/testing_support/controller_requests'
43
+ require 'spree/testing_support/flash'
44
+ require 'spree/testing_support/url_helpers'
45
+ require 'spree/testing_support/order_walkthrough'
46
+ require 'spree/testing_support/caching'
47
+ require 'spree/testing_support/shoulda_matcher_configuration'
48
+ require 'spree/testing_support/microdata'
49
+
50
+ require 'paperclip/matchers'
51
+
52
+ require 'capybara-screenshot/rspec'
53
+ Capybara.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']
54
+
55
+ if ENV['WEBDRIVER'] == 'accessible'
56
+ require 'capybara/accessible'
57
+ Capybara.javascript_driver = :accessible
58
+ else
59
+ require 'capybara/poltergeist'
60
+ Capybara.javascript_driver = :poltergeist
61
+ end
62
+
63
+ RSpec.configure do |config|
64
+ config.color = true
65
+ config.fail_fast = ENV['FAIL_FAST'] || false
66
+ config.fixture_path = File.join(File.expand_path(File.dirname(__FILE__)), "fixtures")
67
+ config.infer_spec_type_from_file_location!
68
+ config.mock_with :rspec
69
+ config.raise_errors_for_deprecations!
70
+
71
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
72
+ # examples within a transaction, comment the following line or assign false
73
+ # instead of true.
74
+ config.use_transactional_fixtures = false
75
+
76
+ if ENV['WEBDRIVER'] == 'accessible'
77
+ config.around(:each, inaccessible: true) do |example|
78
+ Capybara::Accessible.skip_audit { example.run }
79
+ end
80
+ end
81
+
82
+ # Ensure DB is clean, so that transaction isolated specs see
83
+ # pristine state.
84
+ config.before(:suite) do
85
+ DatabaseCleaner.strategy = :truncation
86
+ DatabaseCleaner.clean
87
+ end
88
+
89
+ config.before(:each) do
90
+ WebMock.disable!
91
+ if RSpec.current_example.metadata[:js]
92
+ DatabaseCleaner.strategy = :truncation
93
+ else
94
+ DatabaseCleaner.strategy = :transaction
95
+ end
96
+ # TODO: Find out why open_transactions ever gets below 0
97
+ # See issue #3428
98
+ if ApplicationRecord.connection.open_transactions < 0
99
+ ApplicationRecord.connection.increment_open_transactions
100
+ end
101
+ DatabaseCleaner.start
102
+ reset_spree_preferences
103
+ end
104
+
105
+ config.after(:each) do
106
+ DatabaseCleaner.clean
107
+ end
108
+
109
+ config.after(:each, type: :feature) do |example|
110
+ missing_translations = page.body.scan(/translation missing: #{I18n.locale}\.(.*?)[\s<\"&]/)
111
+ if missing_translations.any?
112
+ puts "Found missing translations: #{missing_translations.inspect}"
113
+ puts "In spec: #{example.location}"
114
+ end
115
+ end
116
+
117
+
118
+ config.include FactoryGirl::Syntax::Methods
119
+
120
+ config.include Spree::TestingSupport::Preferences
121
+ config.include Spree::TestingSupport::UrlHelpers
122
+ config.include Spree::TestingSupport::ControllerRequests, type: :controller
123
+ config.include Spree::TestingSupport::Flash
124
+
125
+ config.include Paperclip::Shoulda::Matchers
126
+ end
@@ -0,0 +1,10 @@
1
+ shared_context 'checkout setup' do
2
+ let!(:country) { create(:country, states_required: true) }
3
+ let!(:state) { create(:state, country: country) }
4
+ let!(:shipping_method) { create(:shipping_method) }
5
+ let!(:stock_location) { create(:stock_location) }
6
+ let!(:mug) { create(:product, name: "RoR Mug") }
7
+ let!(:payment_method) { create(:check_payment_method) }
8
+ let!(:zone) { create(:zone) }
9
+ let!(:store) { create(:store) }
10
+ end
@@ -0,0 +1,25 @@
1
+ shared_context "custom products" do
2
+ before(:each) do
3
+ taxonomy = FactoryGirl.create(:taxonomy, name: 'Categories')
4
+ root = taxonomy.root
5
+ clothing_taxon = FactoryGirl.create(:taxon, name: 'Clothing', parent_id: root.id)
6
+ bags_taxon = FactoryGirl.create(:taxon, name: 'Bags', parent_id: root.id)
7
+ mugs_taxon = FactoryGirl.create(:taxon, name: 'Mugs', parent_id: root.id)
8
+
9
+ taxonomy = FactoryGirl.create(:taxonomy, name: 'Brands')
10
+ root = taxonomy.root
11
+ apache_taxon = FactoryGirl.create(:taxon, name: 'Apache', parent_id: root.id)
12
+ rails_taxon = FactoryGirl.create(:taxon, name: 'Ruby on Rails', parent_id: root.id)
13
+ ruby_taxon = FactoryGirl.create(:taxon, name: 'Ruby', parent_id: root.id)
14
+
15
+ FactoryGirl.create(:custom_product, name: 'Ruby on Rails Ringer T-Shirt', price: '19.99', taxons: [rails_taxon, clothing_taxon])
16
+ FactoryGirl.create(:custom_product, name: 'Ruby on Rails Mug', price: '15.99', taxons: [rails_taxon, mugs_taxon])
17
+ FactoryGirl.create(:custom_product, name: 'Ruby on Rails Tote', price: '15.99', taxons: [rails_taxon, bags_taxon])
18
+ FactoryGirl.create(:custom_product, name: 'Ruby on Rails Bag', price: '22.99', taxons: [rails_taxon, bags_taxon])
19
+ FactoryGirl.create(:custom_product, name: 'Ruby on Rails Baseball Jersey', price: '19.99', taxons: [rails_taxon, clothing_taxon])
20
+ FactoryGirl.create(:custom_product, name: 'Ruby on Rails Stein', price: '16.99', taxons: [rails_taxon, mugs_taxon])
21
+ FactoryGirl.create(:custom_product, name: 'Ruby on Rails Jr. Spaghetti', price: '19.99', taxons: [rails_taxon, clothing_taxon])
22
+ FactoryGirl.create(:custom_product, name: 'Ruby Baseball Jersey', price: '19.99', taxons: [ruby_taxon, clothing_taxon])
23
+ FactoryGirl.create(:custom_product, name: 'Apache Baseball Jersey', price: '19.99', taxons: [apache_taxon, clothing_taxon])
24
+ end
25
+ end
@@ -0,0 +1,30 @@
1
+ shared_context "product prototype" do
2
+
3
+ def build_option_type_with_values(name, values)
4
+ ot = FactoryGirl.create(:option_type, name: name)
5
+ values.each do |val|
6
+ ot.option_values.create(name: val.downcase, presentation: val)
7
+ end
8
+ ot
9
+ end
10
+
11
+ let(:product_attributes) do
12
+ # FactoryGirl.attributes_for is un-deprecated!
13
+ # https://github.com/thoughtbot/factory_girl/issues/274#issuecomment-3592054
14
+ FactoryGirl.attributes_for(:base_product)
15
+ end
16
+
17
+ let(:prototype) do
18
+ size = build_option_type_with_values("size", %w(Small Medium Large))
19
+ FactoryGirl.create(:prototype, name: "Size", option_types: [ size ])
20
+ end
21
+
22
+ let(:option_values_hash) do
23
+ hash = {}
24
+ prototype.option_types.each do |i|
25
+ hash[i.id.to_s] = i.option_value_ids
26
+ end
27
+ hash
28
+ end
29
+
30
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe "spree/checkout/_summary.html.erb", type: :view do
4
+ # Regression spec for #4223
5
+ it "does not use the @order instance variable" do
6
+ order = stub_model(Spree::Order)
7
+ expect do
8
+ render partial: "spree/checkout/summary", locals: {order: order}
9
+ end.not_to raise_error
10
+ end
11
+ end
@@ -8,12 +8,15 @@ Gem::Specification.new do |s|
8
8
  s.summary = 'Frontend e-commerce functionality for the Spree project.'
9
9
  s.description = s.summary
10
10
 
11
+ s.required_ruby_version = '>= 2.2.2'
12
+
11
13
  s.author = 'Sean Schofield'
12
14
  s.email = 'sean@spreecommerce.com'
13
15
  s.homepage = 'https://spreecommerce.com'
14
- s.license = 'BSD-3'
16
+ s.license = 'BSD-3-Clause'
15
17
 
16
- s.files = `git ls-files`.split("\n").reject { |f| f.match(/^spec/) && !f.match(/^spec\/fixtures/) }
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
20
  s.require_path = 'lib'
18
21
  s.requirements << 'none'
19
22
 
@@ -21,7 +24,7 @@ Gem::Specification.new do |s|
21
24
  s.add_dependency 'spree_core', s.version
22
25
 
23
26
  s.add_dependency 'bootstrap-sass', '>= 3.3.5.1', '< 3.4'
24
- s.add_dependency 'canonical-rails', '~> 0.0.4'
27
+ s.add_dependency 'canonical-rails', '~> 0.1.0'
25
28
  s.add_dependency 'jquery-rails', '~> 4.1'
26
29
 
27
30
  s.add_development_dependency 'capybara-accessible'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.14
4
+ version: 3.2.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-24 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.14
19
+ version: 3.2.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.1.14
26
+ version: 3.2.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.1.14
33
+ version: 3.2.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.1.14
40
+ version: 3.2.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bootstrap-sass
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.0.4
67
+ version: 0.1.0
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.0.4
74
+ version: 0.1.0
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: jquery-rails
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -133,260 +133,14 @@ files:
133
133
  - app/assets/images/credit_cards/master_cid.jpg
134
134
  - app/assets/images/credit_cards/visa_cid.gif
135
135
  - app/assets/images/favicon.ico
136
- - app/assets/images/flags/ad.png
137
- - app/assets/images/flags/ae.png
138
- - app/assets/images/flags/af.png
139
- - app/assets/images/flags/ag.png
140
- - app/assets/images/flags/ai.png
141
- - app/assets/images/flags/al.png
142
- - app/assets/images/flags/am.png
143
- - app/assets/images/flags/an.png
144
- - app/assets/images/flags/ao.png
145
- - app/assets/images/flags/ar.png
146
- - app/assets/images/flags/as.png
147
- - app/assets/images/flags/at.png
148
- - app/assets/images/flags/au.png
149
- - app/assets/images/flags/aw.png
150
- - app/assets/images/flags/ax.png
151
- - app/assets/images/flags/az.png
152
- - app/assets/images/flags/ba.png
153
- - app/assets/images/flags/bb.png
154
- - app/assets/images/flags/bd.png
155
- - app/assets/images/flags/be.png
156
- - app/assets/images/flags/bf.png
157
- - app/assets/images/flags/bg.png
158
- - app/assets/images/flags/bh.png
159
- - app/assets/images/flags/bi.png
160
- - app/assets/images/flags/bj.png
161
- - app/assets/images/flags/bm.png
162
- - app/assets/images/flags/bn.png
163
- - app/assets/images/flags/bo.png
164
- - app/assets/images/flags/br.png
165
- - app/assets/images/flags/bs.png
166
- - app/assets/images/flags/bt.png
167
- - app/assets/images/flags/bv.png
168
- - app/assets/images/flags/bw.png
169
- - app/assets/images/flags/by.png
170
- - app/assets/images/flags/bz.png
171
- - app/assets/images/flags/ca.png
172
- - app/assets/images/flags/catalonia.png
173
- - app/assets/images/flags/cc.png
174
- - app/assets/images/flags/cd.png
175
- - app/assets/images/flags/cf.png
176
- - app/assets/images/flags/cg.png
177
- - app/assets/images/flags/ch.png
178
- - app/assets/images/flags/ci.png
179
- - app/assets/images/flags/ck.png
180
- - app/assets/images/flags/cl.png
181
- - app/assets/images/flags/cm.png
182
- - app/assets/images/flags/cn.png
183
- - app/assets/images/flags/co.png
184
- - app/assets/images/flags/cr.png
185
- - app/assets/images/flags/cs.png
186
- - app/assets/images/flags/cu.png
187
- - app/assets/images/flags/cv.png
188
- - app/assets/images/flags/cx.png
189
- - app/assets/images/flags/cy.png
190
- - app/assets/images/flags/cz.png
191
- - app/assets/images/flags/de.png
192
- - app/assets/images/flags/dj.png
193
- - app/assets/images/flags/dk.png
194
- - app/assets/images/flags/dm.png
195
- - app/assets/images/flags/do.png
196
- - app/assets/images/flags/dz.png
197
- - app/assets/images/flags/ec.png
198
- - app/assets/images/flags/ee.png
199
- - app/assets/images/flags/eg.png
200
- - app/assets/images/flags/eh.png
201
- - app/assets/images/flags/england.png
202
- - app/assets/images/flags/er.png
203
- - app/assets/images/flags/es.png
204
- - app/assets/images/flags/et.png
205
- - app/assets/images/flags/europeanunion.png
206
- - app/assets/images/flags/fam.png
207
- - app/assets/images/flags/fi.png
208
- - app/assets/images/flags/fj.png
209
- - app/assets/images/flags/fk.png
210
- - app/assets/images/flags/fm.png
211
- - app/assets/images/flags/fo.png
212
- - app/assets/images/flags/fr.png
213
- - app/assets/images/flags/ga.png
214
- - app/assets/images/flags/gb.png
215
- - app/assets/images/flags/gd.png
216
- - app/assets/images/flags/ge.png
217
- - app/assets/images/flags/gf.png
218
- - app/assets/images/flags/gh.png
219
- - app/assets/images/flags/gi.png
220
- - app/assets/images/flags/gl.png
221
- - app/assets/images/flags/gm.png
222
- - app/assets/images/flags/gn.png
223
- - app/assets/images/flags/gp.png
224
- - app/assets/images/flags/gq.png
225
- - app/assets/images/flags/gr.png
226
- - app/assets/images/flags/gs.png
227
- - app/assets/images/flags/gt.png
228
- - app/assets/images/flags/gu.png
229
- - app/assets/images/flags/gw.png
230
- - app/assets/images/flags/gy.png
231
- - app/assets/images/flags/hk.png
232
- - app/assets/images/flags/hm.png
233
- - app/assets/images/flags/hn.png
234
- - app/assets/images/flags/hr.png
235
- - app/assets/images/flags/ht.png
236
- - app/assets/images/flags/hu.png
237
- - app/assets/images/flags/id.png
238
- - app/assets/images/flags/ie.png
239
- - app/assets/images/flags/il.png
240
- - app/assets/images/flags/in.png
241
- - app/assets/images/flags/io.png
242
- - app/assets/images/flags/iq.png
243
- - app/assets/images/flags/ir.png
244
- - app/assets/images/flags/is.png
245
- - app/assets/images/flags/it.png
246
- - app/assets/images/flags/ja.png
247
- - app/assets/images/flags/jm.png
248
- - app/assets/images/flags/jo.png
249
- - app/assets/images/flags/ke.png
250
- - app/assets/images/flags/kg.png
251
- - app/assets/images/flags/kh.png
252
- - app/assets/images/flags/ki.png
253
- - app/assets/images/flags/km.png
254
- - app/assets/images/flags/kn.png
255
- - app/assets/images/flags/kp.png
256
- - app/assets/images/flags/kr.png
257
- - app/assets/images/flags/kw.png
258
- - app/assets/images/flags/ky.png
259
- - app/assets/images/flags/kz.png
260
- - app/assets/images/flags/la.png
261
- - app/assets/images/flags/lb.png
262
- - app/assets/images/flags/lc.png
263
- - app/assets/images/flags/li.png
264
- - app/assets/images/flags/lk.png
265
- - app/assets/images/flags/lr.png
266
- - app/assets/images/flags/ls.png
267
- - app/assets/images/flags/lt.png
268
- - app/assets/images/flags/lu.png
269
- - app/assets/images/flags/lv.png
270
- - app/assets/images/flags/ly.png
271
- - app/assets/images/flags/ma.png
272
- - app/assets/images/flags/mc.png
273
- - app/assets/images/flags/md.png
274
- - app/assets/images/flags/me.png
275
- - app/assets/images/flags/mg.png
276
- - app/assets/images/flags/mh.png
277
- - app/assets/images/flags/mk.png
278
- - app/assets/images/flags/ml.png
279
- - app/assets/images/flags/mm.png
280
- - app/assets/images/flags/mn.png
281
- - app/assets/images/flags/mo.png
282
- - app/assets/images/flags/mp.png
283
- - app/assets/images/flags/mq.png
284
- - app/assets/images/flags/mr.png
285
- - app/assets/images/flags/ms.png
286
- - app/assets/images/flags/mt.png
287
- - app/assets/images/flags/mu.png
288
- - app/assets/images/flags/mv.png
289
- - app/assets/images/flags/mw.png
290
- - app/assets/images/flags/mx.png
291
- - app/assets/images/flags/my.png
292
- - app/assets/images/flags/mz.png
293
- - app/assets/images/flags/na.png
294
- - app/assets/images/flags/nc.png
295
- - app/assets/images/flags/ne.png
296
- - app/assets/images/flags/nf.png
297
- - app/assets/images/flags/ng.png
298
- - app/assets/images/flags/ni.png
299
- - app/assets/images/flags/nl.png
300
- - app/assets/images/flags/no.png
301
- - app/assets/images/flags/np.png
302
- - app/assets/images/flags/nr.png
303
- - app/assets/images/flags/nu.png
304
- - app/assets/images/flags/nz.png
305
- - app/assets/images/flags/om.png
306
- - app/assets/images/flags/pa.png
307
- - app/assets/images/flags/pe.png
308
- - app/assets/images/flags/pf.png
309
- - app/assets/images/flags/pg.png
310
- - app/assets/images/flags/ph.png
311
- - app/assets/images/flags/pk.png
312
- - app/assets/images/flags/pl.png
313
- - app/assets/images/flags/pm.png
314
- - app/assets/images/flags/pn.png
315
- - app/assets/images/flags/pr.png
316
- - app/assets/images/flags/ps.png
317
- - app/assets/images/flags/pt.png
318
- - app/assets/images/flags/pw.png
319
- - app/assets/images/flags/py.png
320
- - app/assets/images/flags/qa.png
321
- - app/assets/images/flags/re.png
322
- - app/assets/images/flags/ro.png
323
- - app/assets/images/flags/rs.png
324
- - app/assets/images/flags/ru.png
325
- - app/assets/images/flags/rw.png
326
- - app/assets/images/flags/sa.png
327
- - app/assets/images/flags/sb.png
328
- - app/assets/images/flags/sc.png
329
- - app/assets/images/flags/scotland.png
330
- - app/assets/images/flags/sd.png
331
- - app/assets/images/flags/se.png
332
- - app/assets/images/flags/sg.png
333
- - app/assets/images/flags/sh.png
334
- - app/assets/images/flags/si.png
335
- - app/assets/images/flags/sj.png
336
- - app/assets/images/flags/sk.png
337
- - app/assets/images/flags/sl.png
338
- - app/assets/images/flags/sm.png
339
- - app/assets/images/flags/sn.png
340
- - app/assets/images/flags/so.png
341
- - app/assets/images/flags/sr.png
342
- - app/assets/images/flags/st.png
343
- - app/assets/images/flags/sv.png
344
- - app/assets/images/flags/sy.png
345
- - app/assets/images/flags/sz.png
346
- - app/assets/images/flags/tc.png
347
- - app/assets/images/flags/td.png
348
- - app/assets/images/flags/tf.png
349
- - app/assets/images/flags/tg.png
350
- - app/assets/images/flags/th.png
351
- - app/assets/images/flags/tj.png
352
- - app/assets/images/flags/tk.png
353
- - app/assets/images/flags/tl.png
354
- - app/assets/images/flags/tm.png
355
- - app/assets/images/flags/tn.png
356
- - app/assets/images/flags/to.png
357
- - app/assets/images/flags/tr.png
358
- - app/assets/images/flags/tt.png
359
- - app/assets/images/flags/tv.png
360
- - app/assets/images/flags/tw.png
361
- - app/assets/images/flags/tz.png
362
- - app/assets/images/flags/ua.png
363
- - app/assets/images/flags/ug.png
364
- - app/assets/images/flags/um.png
365
- - app/assets/images/flags/us.png
366
- - app/assets/images/flags/uy.png
367
- - app/assets/images/flags/uz.png
368
- - app/assets/images/flags/va.png
369
- - app/assets/images/flags/vc.png
370
- - app/assets/images/flags/ve.png
371
- - app/assets/images/flags/vg.png
372
- - app/assets/images/flags/vi.png
373
- - app/assets/images/flags/vn.png
374
- - app/assets/images/flags/vu.png
375
- - app/assets/images/flags/wales.png
376
- - app/assets/images/flags/wf.png
377
- - app/assets/images/flags/ws.png
378
- - app/assets/images/flags/ye.png
379
- - app/assets/images/flags/yt.png
380
- - app/assets/images/flags/za.png
381
- - app/assets/images/flags/zm.png
382
- - app/assets/images/flags/zw.png
383
136
  - app/assets/images/logo/spree_50.png
384
- - app/assets/images/spree_header.jpg
385
137
  - app/assets/javascripts/spree/frontend.js
386
138
  - app/assets/javascripts/spree/frontend/cart.js.coffee
387
139
  - app/assets/javascripts/spree/frontend/checkout.js.coffee
388
140
  - app/assets/javascripts/spree/frontend/checkout/address.js.coffee
389
141
  - app/assets/javascripts/spree/frontend/checkout/payment.js.coffee
142
+ - app/assets/javascripts/spree/frontend/checkout/shipment.js.coffee
143
+ - app/assets/javascripts/spree/frontend/coupon_manager.js.coffee
390
144
  - app/assets/javascripts/spree/frontend/product.js.coffee
391
145
  - app/assets/stylesheets/spree/frontend.css
392
146
  - app/assets/stylesheets/spree/frontend/_variables.scss
@@ -433,7 +187,6 @@ files:
433
187
  - app/views/spree/orders/show.html.erb
434
188
  - app/views/spree/payments/_payment.html.erb
435
189
  - app/views/spree/products/_cart_form.html.erb
436
- - app/views/spree/products/_image.html.erb
437
190
  - app/views/spree/products/_promotions.html.erb
438
191
  - app/views/spree/products/_properties.html.erb
439
192
  - app/views/spree/products/_taxons.html.erb
@@ -460,6 +213,7 @@ files:
460
213
  - app/views/spree/shared/_shipment_tracking.html.erb
461
214
  - app/views/spree/shared/_sidebar.html.erb
462
215
  - app/views/spree/shared/_taxonomies.html.erb
216
+ - app/views/spree/shared/_translations.html.erb
463
217
  - app/views/spree/shared/forbidden.html.erb
464
218
  - app/views/spree/shared/unauthorized.html.erb
465
219
  - app/views/spree/store/cart_link.html.erb
@@ -476,7 +230,44 @@ files:
476
230
  - lib/tasks/rake_util.rb
477
231
  - lib/tasks/taxon.rake
478
232
  - script/rails
233
+ - spec/controllers/controller_extension_spec.rb
234
+ - spec/controllers/controller_helpers_spec.rb
235
+ - spec/controllers/spree/checkout_controller_spec.rb
236
+ - spec/controllers/spree/checkout_controller_with_views_spec.rb
237
+ - spec/controllers/spree/content_controller_spec.rb
238
+ - spec/controllers/spree/current_order_tracking_spec.rb
239
+ - spec/controllers/spree/home_controller_spec.rb
240
+ - spec/controllers/spree/orders_controller_ability_spec.rb
241
+ - spec/controllers/spree/orders_controller_spec.rb
242
+ - spec/controllers/spree/orders_controller_transitions_spec.rb
243
+ - spec/controllers/spree/products_controller_spec.rb
244
+ - spec/controllers/spree/taxons_controller_spec.rb
245
+ - spec/features/address_spec.rb
246
+ - spec/features/automatic_promotion_adjustments_spec.rb
247
+ - spec/features/caching/products_spec.rb
248
+ - spec/features/caching/taxons_spec.rb
249
+ - spec/features/cart_spec.rb
250
+ - spec/features/checkout_spec.rb
251
+ - spec/features/checkout_unshippable_spec.rb
252
+ - spec/features/coupon_code_spec.rb
253
+ - spec/features/currency_spec.rb
254
+ - spec/features/delivery_spec.rb
255
+ - spec/features/free_shipping_promotions_spec.rb
256
+ - spec/features/locale_spec.rb
257
+ - spec/features/microdata_spec.rb
258
+ - spec/features/order_spec.rb
259
+ - spec/features/page_promotions_spec.rb
260
+ - spec/features/products_spec.rb
261
+ - spec/features/taxons_spec.rb
262
+ - spec/features/template_rendering_spec.rb
479
263
  - spec/fixtures/thinking-cat.jpg
264
+ - spec/helpers/frontend_helper_spec.rb
265
+ - spec/helpers/taxons_helper_spec.rb
266
+ - spec/spec_helper.rb
267
+ - spec/support/shared_contexts/checkout_setup.rb
268
+ - spec/support/shared_contexts/custom_products.rb
269
+ - spec/support/shared_contexts/product_prototypes.rb
270
+ - spec/views/spree/checkout/_summary_spec.rb
480
271
  - spree_frontend.gemspec
481
272
  - vendor/assets/javascripts/jquery.validate/additional-methods.min.js
482
273
  - vendor/assets/javascripts/jquery.validate/jquery.validate.min.js
@@ -530,7 +321,7 @@ files:
530
321
  - vendor/assets/javascripts/jquery.validate/localization/methods_pt.js
531
322
  homepage: https://spreecommerce.com
532
323
  licenses:
533
- - BSD-3
324
+ - BSD-3-Clause
534
325
  metadata: {}
535
326
  post_install_message:
536
327
  rdoc_options: []
@@ -540,17 +331,55 @@ required_ruby_version: !ruby/object:Gem::Requirement
540
331
  requirements:
541
332
  - - ">="
542
333
  - !ruby/object:Gem::Version
543
- version: '0'
334
+ version: 2.2.2
544
335
  required_rubygems_version: !ruby/object:Gem::Requirement
545
336
  requirements:
546
- - - ">="
337
+ - - ">"
547
338
  - !ruby/object:Gem::Version
548
- version: '0'
339
+ version: 1.3.1
549
340
  requirements:
550
341
  - none
551
342
  rubyforge_project:
552
- rubygems_version: 2.6.10
343
+ rubygems_version: 2.5.1
553
344
  signing_key:
554
345
  specification_version: 4
555
346
  summary: Frontend e-commerce functionality for the Spree project.
556
- test_files: []
347
+ test_files:
348
+ - spec/controllers/controller_extension_spec.rb
349
+ - spec/controllers/controller_helpers_spec.rb
350
+ - spec/controllers/spree/checkout_controller_spec.rb
351
+ - spec/controllers/spree/checkout_controller_with_views_spec.rb
352
+ - spec/controllers/spree/content_controller_spec.rb
353
+ - spec/controllers/spree/current_order_tracking_spec.rb
354
+ - spec/controllers/spree/home_controller_spec.rb
355
+ - spec/controllers/spree/orders_controller_ability_spec.rb
356
+ - spec/controllers/spree/orders_controller_spec.rb
357
+ - spec/controllers/spree/orders_controller_transitions_spec.rb
358
+ - spec/controllers/spree/products_controller_spec.rb
359
+ - spec/controllers/spree/taxons_controller_spec.rb
360
+ - spec/features/address_spec.rb
361
+ - spec/features/automatic_promotion_adjustments_spec.rb
362
+ - spec/features/caching/products_spec.rb
363
+ - spec/features/caching/taxons_spec.rb
364
+ - spec/features/cart_spec.rb
365
+ - spec/features/checkout_spec.rb
366
+ - spec/features/checkout_unshippable_spec.rb
367
+ - spec/features/coupon_code_spec.rb
368
+ - spec/features/currency_spec.rb
369
+ - spec/features/delivery_spec.rb
370
+ - spec/features/free_shipping_promotions_spec.rb
371
+ - spec/features/locale_spec.rb
372
+ - spec/features/microdata_spec.rb
373
+ - spec/features/order_spec.rb
374
+ - spec/features/page_promotions_spec.rb
375
+ - spec/features/products_spec.rb
376
+ - spec/features/taxons_spec.rb
377
+ - spec/features/template_rendering_spec.rb
378
+ - spec/fixtures/thinking-cat.jpg
379
+ - spec/helpers/frontend_helper_spec.rb
380
+ - spec/helpers/taxons_helper_spec.rb
381
+ - spec/spec_helper.rb
382
+ - spec/support/shared_contexts/checkout_setup.rb
383
+ - spec/support/shared_contexts/custom_products.rb
384
+ - spec/support/shared_contexts/product_prototypes.rb
385
+ - spec/views/spree/checkout/_summary_spec.rb