solidus_core 1.1.2 → 1.1.3

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4645204b6bf64e52c8af3f52aed742b11aa8a62f
4
- data.tar.gz: 3d1f4e3af98b187c25c36ccb4f2f7a8950825299
3
+ metadata.gz: fb628effcfda240354e15e2ae099740a7e10d5d6
4
+ data.tar.gz: 1e6540e660eca7a4d3e4b69ea0dd9266a676ea69
5
5
  SHA512:
6
- metadata.gz: 87bfa13af09f01c373578a2d0ac59ac35fda8f1e3ffdc7a544fce633630e522b8988741c0b117b4cdf322ed5002793c5201450048486e1d19044c2e0725c9a99
7
- data.tar.gz: 7ca4d9525c242187157fa20cfce31611e7678017dd964fa904a7bbfafb20e87b791e4196a39aa655f91b55081b3870860adb2dd21c601568f4781dd671719225
6
+ metadata.gz: 3c8c0564b65175ea0a19830eb1569a59ffca329a530bee748c66f78ea8a23fc12eeccba3da510a56dfcfc2a75e220b7660afee0e961669587eec6031a8501ac3
7
+ data.tar.gz: 44ab87bbf973df9ba2f092466631bf701f90214755e23287b39b0d298eee3fe84f1ea455e7505ef33cef1326a73341103eb5a78f3fe2af559fef9186febd54e6
@@ -107,13 +107,14 @@ module Spree
107
107
  def taxons_tree(root_taxon, current_taxon, max_level = 1)
108
108
  return '' if max_level < 1 || root_taxon.children.empty?
109
109
  content_tag :ul, class: 'taxons-list' do
110
- root_taxon.children.map do |taxon|
110
+ taxons = root_taxon.children.map do |taxon|
111
111
  css_class = (current_taxon && current_taxon.self_and_ancestors.include?(taxon)) ? 'current' : nil
112
112
  content_tag :li, class: css_class do
113
113
  link_to(taxon.name, seo_url(taxon)) +
114
114
  taxons_tree(taxon, current_taxon, max_level - 1)
115
115
  end
116
- end.join("\n").html_safe
116
+ end
117
+ safe_join(taxons, "\n")
117
118
  end
118
119
  end
119
120
 
@@ -51,10 +51,17 @@ module Spree
51
51
  # This little bit of code at the end stops the Spanish refund from appearing.
52
52
  #
53
53
  # For further discussion, see #4397 and #4327.
54
- rates.delete_if do |rate|
55
- rate.included_in_price? &&
56
- (rates - [rate]).map(&:tax_category).include?(rate.tax_category)
54
+
55
+ remaining_rates = rates.dup
56
+ rates.each do |rate|
57
+ if rate.included_in_price?
58
+ if remaining_rates.any?{|r| r != rate && r.tax_category == rate.tax_category }
59
+ remaining_rates.delete(rate)
60
+ end
61
+ end
57
62
  end
63
+
64
+ remaining_rates
58
65
  end
59
66
 
60
67
  # Pre-tax amounts must be stored so that we can calculate
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -1310,3 +1310,4 @@ signing_key:
1310
1310
  specification_version: 4
1311
1311
  summary: Essential models, mailers, and classes for the Solidus e-commerce project.
1312
1312
  test_files: []
1313
+ has_rdoc: