solidus_frontend 2.4.2 → 2.5.0.beta1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_frontend might be problematic. Click here for more details.

Files changed (132) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +1 -5
  3. data/Rakefile +7 -7
  4. data/app/assets/config/solidus_frontend_manifest.js +0 -2
  5. data/app/assets/javascripts/spree/frontend.js +0 -1
  6. data/app/assets/javascripts/spree/frontend/cart.js +30 -0
  7. data/app/assets/javascripts/spree/frontend/checkout.js +24 -0
  8. data/app/assets/javascripts/spree/frontend/checkout/address.js +128 -0
  9. data/app/assets/javascripts/spree/frontend/checkout/coupon-code.js +40 -0
  10. data/app/assets/javascripts/spree/frontend/checkout/payment.js +55 -0
  11. data/app/assets/javascripts/spree/frontend/product.js +81 -0
  12. data/app/assets/stylesheets/spree/frontend/_variables.scss +3 -0
  13. data/app/assets/stylesheets/spree/frontend/screen.css.scss +2 -2
  14. data/app/controllers/spree/checkout_controller.rb +3 -3
  15. data/app/controllers/spree/locale_controller.rb +2 -2
  16. data/app/controllers/spree/orders_controller.rb +5 -6
  17. data/app/controllers/spree/products_controller.rb +0 -1
  18. data/app/controllers/spree/store_controller.rb +1 -1
  19. data/app/controllers/spree/taxons_controller.rb +0 -1
  20. data/app/views/spree/address/_form.html.erb +23 -21
  21. data/app/views/spree/checkout/_address.html.erb +5 -5
  22. data/app/views/spree/checkout/_confirm.html.erb +3 -3
  23. data/app/views/spree/checkout/_delivery.html.erb +18 -14
  24. data/app/views/spree/checkout/_payment.html.erb +6 -6
  25. data/app/views/spree/checkout/_summary.html.erb +5 -5
  26. data/app/views/spree/checkout/edit.html.erb +2 -6
  27. data/app/views/spree/checkout/payment/_gateway.html.erb +9 -9
  28. data/app/views/spree/content/cvv.html.erb +1 -1
  29. data/app/views/spree/orders/_adjustments.html.erb +4 -4
  30. data/app/views/spree/orders/_form.html.erb +6 -6
  31. data/app/views/spree/orders/_line_item.html.erb +4 -4
  32. data/app/views/spree/orders/edit.html.erb +9 -9
  33. data/app/views/spree/orders/show.html.erb +4 -4
  34. data/app/views/spree/payments/_payment.html.erb +1 -1
  35. data/app/views/spree/products/_cart_form.html.erb +7 -7
  36. data/app/views/spree/products/_image.html.erb +2 -2
  37. data/app/views/spree/products/_promotions.html.erb +1 -1
  38. data/app/views/spree/products/_properties.html.erb +1 -1
  39. data/app/views/spree/products/_taxons.html.erb +1 -1
  40. data/app/views/spree/products/index.html.erb +1 -1
  41. data/app/views/spree/products/show.html.erb +1 -1
  42. data/app/views/spree/shared/_address.html.erb +2 -2
  43. data/app/views/spree/shared/_filters.html.erb +2 -2
  44. data/app/views/spree/shared/_footer.html.erb +1 -1
  45. data/app/views/spree/shared/_image.html.erb +12 -0
  46. data/app/views/spree/shared/_login_bar_items.html.erb +1 -0
  47. data/app/views/spree/shared/_main_nav_bar.html.erb +2 -2
  48. data/app/views/spree/shared/_nav_bar.html.erb +1 -0
  49. data/app/views/spree/shared/_order_details.html.erb +20 -20
  50. data/app/views/spree/shared/_products.html.erb +3 -3
  51. data/app/views/spree/shared/_search.html.erb +3 -3
  52. data/app/views/spree/shared/_shipment_tracking.html.erb +1 -1
  53. data/app/views/spree/shared/_taxonomies.html.erb +2 -2
  54. data/lib/generators/solidus/views/override_generator.rb +1 -0
  55. data/lib/spree/frontend.rb +4 -2
  56. data/solidus_frontend.gemspec +1 -2
  57. data/spec/controllers/spree/checkout_controller_spec.rb +12 -12
  58. data/spec/controllers/spree/current_order_tracking_spec.rb +1 -1
  59. data/spec/controllers/spree/orders_controller_ability_spec.rb +6 -4
  60. data/spec/controllers/spree/orders_controller_spec.rb +4 -3
  61. data/spec/controllers/spree/orders_controller_transitions_spec.rb +1 -1
  62. data/spec/controllers/spree/products_controller_spec.rb +3 -2
  63. data/spec/features/caching/products_spec.rb +7 -7
  64. data/spec/features/cart_spec.rb +1 -1
  65. data/spec/features/checkout_spec.rb +10 -9
  66. data/spec/features/coupon_code_spec.rb +12 -13
  67. data/spec/features/locale_spec.rb +0 -38
  68. data/spec/features/order_spec.rb +1 -1
  69. data/spec/features/products_spec.rb +4 -4
  70. data/spec/features/promotion_code_invalidation_spec.rb +3 -3
  71. data/spec/features/quantity_promotions_spec.rb +5 -5
  72. data/spec/generators/solidus/views/override_generator_spec.rb +2 -1
  73. data/spec/spec_helper.rb +19 -41
  74. data/spec/support/shared_contexts/custom_products.rb +17 -17
  75. metadata +19 -88
  76. data/Gemfile +0 -7
  77. data/app/assets/javascripts/spree/frontend/cart.js.coffee +0 -15
  78. data/app/assets/javascripts/spree/frontend/checkout.js.coffee +0 -17
  79. data/app/assets/javascripts/spree/frontend/checkout/address.js.coffee +0 -91
  80. data/app/assets/javascripts/spree/frontend/checkout/coupon-code.js.coffee +0 -34
  81. data/app/assets/javascripts/spree/frontend/checkout/payment.js.coffee +0 -42
  82. data/app/assets/javascripts/spree/frontend/product.js.coffee +0 -47
  83. data/vendor/assets/javascripts/jquery.validate/additional-methods.min.js +0 -12
  84. data/vendor/assets/javascripts/jquery.validate/jquery.validate.min.js +0 -12
  85. data/vendor/assets/javascripts/jquery.validate/localization/messages_ar.js +0 -25
  86. data/vendor/assets/javascripts/jquery.validate/localization/messages_bg.js +0 -25
  87. data/vendor/assets/javascripts/jquery.validate/localization/messages_ca.js +0 -25
  88. data/vendor/assets/javascripts/jquery.validate/localization/messages_cs.js +0 -25
  89. data/vendor/assets/javascripts/jquery.validate/localization/messages_da.js +0 -22
  90. data/vendor/assets/javascripts/jquery.validate/localization/messages_de.js +0 -22
  91. data/vendor/assets/javascripts/jquery.validate/localization/messages_el.js +0 -25
  92. data/vendor/assets/javascripts/jquery.validate/localization/messages_es.js +0 -25
  93. data/vendor/assets/javascripts/jquery.validate/localization/messages_et.js +0 -23
  94. data/vendor/assets/javascripts/jquery.validate/localization/messages_eu.js +0 -25
  95. data/vendor/assets/javascripts/jquery.validate/localization/messages_fa.js +0 -25
  96. data/vendor/assets/javascripts/jquery.validate/localization/messages_fi.js +0 -23
  97. data/vendor/assets/javascripts/jquery.validate/localization/messages_fr.js +0 -47
  98. data/vendor/assets/javascripts/jquery.validate/localization/messages_ge.js +0 -23
  99. data/vendor/assets/javascripts/jquery.validate/localization/messages_he.js +0 -25
  100. data/vendor/assets/javascripts/jquery.validate/localization/messages_hr.js +0 -25
  101. data/vendor/assets/javascripts/jquery.validate/localization/messages_hu.js +0 -24
  102. data/vendor/assets/javascripts/jquery.validate/localization/messages_it.js +0 -25
  103. data/vendor/assets/javascripts/jquery.validate/localization/messages_ja.js +0 -25
  104. data/vendor/assets/javascripts/jquery.validate/localization/messages_ka.js +0 -25
  105. data/vendor/assets/javascripts/jquery.validate/localization/messages_kk.js +0 -25
  106. data/vendor/assets/javascripts/jquery.validate/localization/messages_ko.js +0 -25
  107. data/vendor/assets/javascripts/jquery.validate/localization/messages_lt.js +0 -25
  108. data/vendor/assets/javascripts/jquery.validate/localization/messages_lv.js +0 -25
  109. data/vendor/assets/javascripts/jquery.validate/localization/messages_ms.js +0 -25
  110. data/vendor/assets/javascripts/jquery.validate/localization/messages_nl.js +0 -35
  111. data/vendor/assets/javascripts/jquery.validate/localization/messages_no.js +0 -25
  112. data/vendor/assets/javascripts/jquery.validate/localization/messages_pl.js +0 -25
  113. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptbr.js +0 -24
  114. data/vendor/assets/javascripts/jquery.validate/localization/messages_ptpt.js +0 -24
  115. data/vendor/assets/javascripts/jquery.validate/localization/messages_ro.js +0 -25
  116. data/vendor/assets/javascripts/jquery.validate/localization/messages_ru.js +0 -25
  117. data/vendor/assets/javascripts/jquery.validate/localization/messages_se.js +0 -23
  118. data/vendor/assets/javascripts/jquery.validate/localization/messages_si.js +0 -25
  119. data/vendor/assets/javascripts/jquery.validate/localization/messages_sk.js +0 -22
  120. data/vendor/assets/javascripts/jquery.validate/localization/messages_sl.js +0 -25
  121. data/vendor/assets/javascripts/jquery.validate/localization/messages_sr.js +0 -25
  122. data/vendor/assets/javascripts/jquery.validate/localization/messages_sv.js +0 -23
  123. data/vendor/assets/javascripts/jquery.validate/localization/messages_th.js +0 -25
  124. data/vendor/assets/javascripts/jquery.validate/localization/messages_tr.js +0 -25
  125. data/vendor/assets/javascripts/jquery.validate/localization/messages_tw.js +0 -24
  126. data/vendor/assets/javascripts/jquery.validate/localization/messages_uk.js +0 -25
  127. data/vendor/assets/javascripts/jquery.validate/localization/messages_vi.js +0 -25
  128. data/vendor/assets/javascripts/jquery.validate/localization/messages_zh.js +0 -25
  129. data/vendor/assets/javascripts/jquery.validate/localization/messages_zhtw.js +0 -26
  130. data/vendor/assets/javascripts/jquery.validate/localization/methods_de.js +0 -12
  131. data/vendor/assets/javascripts/jquery.validate/localization/methods_nl.js +0 -9
  132. data/vendor/assets/javascripts/jquery.validate/localization/methods_pt.js +0 -9
@@ -1,25 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: UK (Ukrainian; українська мова)
4
- */
5
- (function ($) {
6
- $.extend($.validator.messages, {
7
- required: "Це поле необхідно заповнити.",
8
- remote: "Будь ласка, введіть правильне значення.",
9
- email: "Будь ласка, введіть коректну адресу електронної пошти.",
10
- url: "Будь ласка, введіть коректний URL.",
11
- date: "Будь ласка, введіть коректну дату.",
12
- dateISO: "Будь ласка, введіть коректну дату у форматі ISO.",
13
- number: "Будь ласка, введіть число.",
14
- digits: "Вводите потрібно лише цифри.",
15
- creditcard: "Будь ласка, введіть правильний номер кредитної карти.",
16
- equalTo: "Будь ласка, введіть таке ж значення ще раз.",
17
- accept: "Будь ласка, виберіть файл з правильним розширенням.",
18
- maxlength: $.validator.format("Будь ласка, введіть не більше {0} символів."),
19
- minlength: $.validator.format("Будь ласка, введіть не менше {0} символів."),
20
- rangelength: $.validator.format("Будь ласка, введіть значення довжиною від {0} до {1} символів."),
21
- range: $.validator.format("Будь ласка, введіть число від {0} до {1}."),
22
- max: $.validator.format("Будь ласка, введіть число, менше або рівно {0}."),
23
- min: $.validator.format("Будь ласка, введіть число, більше або рівно {0}.")
24
- });
25
- }(jQuery));
@@ -1,25 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: VI (Vietnamese; Tiếng Việt)
4
- */
5
- (function ($) {
6
- $.extend($.validator.messages, {
7
- required: "Hãy nhập.",
8
- remote: "Hãy sửa cho đúng.",
9
- email: "Hãy nhập email.",
10
- url: "Hãy nhập URL.",
11
- date: "Hãy nhập ngày.",
12
- dateISO: "Hãy nhập ngày (ISO).",
13
- number: "Hãy nhập số.",
14
- digits: "Hãy nhập chữ số.",
15
- creditcard: "Hãy nhập số thẻ tín dụng.",
16
- equalTo: "Hãy nhập thêm lần nữa.",
17
- accept: "Phần mở rộng không đúng.",
18
- maxlength: $.format("Hãy nhập từ {0} kí tự trở xuống."),
19
- minlength: $.format("Hãy nhập từ {0} kí tự trở lên."),
20
- rangelength: $.format("Hãy nhập từ {0} đến {1} kí tự."),
21
- range: $.format("Hãy nhập từ {0} đến {1}."),
22
- max: $.format("Hãy nhập từ {0} trở xuống."),
23
- min: $.format("Hãy nhập từ {1} trở lên.")
24
- });
25
- }(jQuery));
@@ -1,25 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語)
4
- */
5
- (function ($) {
6
- $.extend($.validator.messages, {
7
- required: "必选字段",
8
- remote: "请修正该字段",
9
- email: "请输入正确格式的电子邮件",
10
- url: "请输入合法的网址",
11
- date: "请输入合法的日期",
12
- dateISO: "请输入合法的日期 (ISO).",
13
- number: "请输入合法的数字",
14
- digits: "只能输入整数",
15
- creditcard: "请输入合法的信用卡号",
16
- equalTo: "请再次输入相同的值",
17
- accept: "请输入拥有合法后缀名的字符串",
18
- maxlength: $.validator.format("请输入一个长度最多是 {0} 的字符串"),
19
- minlength: $.validator.format("请输入一个长度最少是 {0} 的字符串"),
20
- rangelength: $.validator.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"),
21
- range: $.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
22
- max: $.validator.format("请输入一个最大为 {0} 的值"),
23
- min: $.validator.format("请输入一个最小为 {0} 的值")
24
- });
25
- }(jQuery));
@@ -1,26 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: ZH (Chinese; 中文 (Zhōngwén), 汉语, 漢語)
4
- * Region: TW (Taiwan)
5
- */
6
- (function ($) {
7
- $.extend($.validator.messages, {
8
- required: "必填",
9
- remote: "請修正此欄位",
10
- email: "請輸入正確的電子信箱",
11
- url: "請輸入合法的URL",
12
- date: "請輸入合法的日期",
13
- dateISO: "請輸入合法的日期 (ISO).",
14
- number: "請輸入數字",
15
- digits: "請輸入整數",
16
- creditcard: "請輸入合法的信用卡號碼",
17
- equalTo: "請重複輸入一次",
18
- accept: "請輸入有效的後缀字串",
19
- maxlength: $.validator.format("請輸入長度不大於{0} 的字串"),
20
- minlength: $.validator.format("請輸入長度不小於 {0} 的字串"),
21
- rangelength: $.validator.format("請輸入長度介於 {0} 和 {1} 之間的字串"),
22
- range: $.validator.format("請輸入介於 {0} 和 {1} 之間的數值"),
23
- max: $.validator.format("請輸入不大於 {0} 的數值"),
24
- min: $.validator.format("請輸入不小於 {0} 的數值")
25
- });
26
- }(jQuery));
@@ -1,12 +0,0 @@
1
- /*
2
- * Localized default methods for the jQuery validation plugin.
3
- * Locale: DE
4
- */
5
- jQuery.extend(jQuery.validator.methods, {
6
- date: function(value, element) {
7
- return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);
8
- },
9
- number: function(value, element) {
10
- return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
11
- }
12
- });
@@ -1,9 +0,0 @@
1
- /*
2
- * Localized default methods for the jQuery validation plugin.
3
- * Locale: NL
4
- */
5
- jQuery.extend(jQuery.validator.methods, {
6
- date: function(value, element) {
7
- return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value);
8
- }
9
- });
@@ -1,9 +0,0 @@
1
- /*
2
- * Localized default methods for the jQuery validation plugin.
3
- * Locale: PT_BR
4
- */
5
- jQuery.extend(jQuery.validator.methods, {
6
- date: function(value, element) {
7
- return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value);
8
- }
9
- });