solidus_backend 2.1.0.beta1 → 2.1.0.rc1

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 843448fe45669bd2d5c20177528681a86678af12
4
- data.tar.gz: 07bc2239dacdc468b0f0b3b5de5524b1cbf46d17
3
+ metadata.gz: 0a0454504ef50055618ef2434bb9063969811fd9
4
+ data.tar.gz: 2f0eba1768def704dbfe65113bba3ce793039123
5
5
  SHA512:
6
- metadata.gz: ac0d850fe4e077c868e6f695a5d69f8f8c467f64bfc72eaa6f7d57a6ca569ffa8a2d99610de334e0e562a0c3962b477ab2baa73205ff418dd97c9ac74eae03f7
7
- data.tar.gz: 475ea49cd2c1f70ee7599dcb87980969cd95f744bd46f7e4554c57b71f3ff3a14f53e1b2954cac648a0a9ab8f71a7644184c5e106f9de1175bab193bcd4c9c3c
6
+ metadata.gz: 81ccae29066e7b6531fd18b38359c598cdffdd844b4a7fb785a582aaea22980adb07221acb4385c6a7ae6a302ca21231c8e2eb61b53ad647bfcbffb33f519028
7
+ data.tar.gz: ac90ab4369382737d2754b870b04078f307c7d1de68ffca63882f0d4fe573a2455faefed84f18d89b140d3c909312eadd8473d5eda2ea7c28b3dfc5870650458
@@ -38,7 +38,7 @@ feature "Tiered Calculator Promotions" do
38
38
  first_action_calculator = first_action.calculator
39
39
  expect(first_action_calculator.class).to eq Spree::Calculator::TieredPercent
40
40
  expect(first_action_calculator.preferred_base_percent).to eq 5
41
- expect(first_action_calculator.preferred_tiers).to eq Hash[100.0 => 10.0]
41
+ expect(first_action_calculator.preferred_tiers).to eq(BigDecimal.new(100) => BigDecimal.new(10))
42
42
  end
43
43
 
44
44
  context "with an existing tiered flat rate calculator" do
@@ -49,7 +49,7 @@ feature "Tiered Calculator Promotions" do
49
49
 
50
50
  action.calculator = Spree::Calculator::TieredFlatRate.new
51
51
  action.calculator.preferred_base_amount = 5
52
- action.calculator.preferred_tiers = Hash[100 => 10, 200 => 15, 300 => 20]
52
+ action.calculator.preferred_tiers = {100 => 10, 200 => 15, 300 => 20}
53
53
  action.calculator.save!
54
54
 
55
55
  visit spree.edit_admin_promotion_path(promotion)
@@ -63,7 +63,10 @@ feature "Tiered Calculator Promotions" do
63
63
  within('#actions_container') { click_button "Update" }
64
64
 
65
65
  calculator = promotion.actions.first.calculator
66
- expect(calculator.preferred_tiers).to eq Hash[100.0 => 10.0, 300.0 => 20.0]
66
+ expect(calculator.preferred_tiers).to eq({
67
+ BigDecimal.new(100) => 10,
68
+ BigDecimal.new(300) => 20
69
+ })
67
70
  end
68
71
  end
69
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.beta1
4
+ version: 2.1.0.rc1
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-12-06 00:00:00.000000000 Z
11
+ date: 2016-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.0.beta1
19
+ version: 2.1.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: 2.1.0.beta1
26
+ version: 2.1.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.1.0.beta1
33
+ version: 2.1.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: 2.1.0.beta1
40
+ version: 2.1.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sass-rails
43
43
  requirement: !ruby/object:Gem::Requirement