calculator-myshop 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cd20c9406fe62543cb60aa8a7e6a683a6ffb64f
4
- data.tar.gz: 924d640c32930f4beb4c278cb2d31acdc8624722
3
+ metadata.gz: a3905bf9a31d4da19f5625cf0a72fccd3d2c5f74
4
+ data.tar.gz: b6cb1d084fa86764cd9b7d887e57a1d9165b0a1f
5
5
  SHA512:
6
- metadata.gz: cd7cad6f7f70147b12f76952bc30167a554d97af2114df500dc788e780f09754f6b088f21acdaf371ec0c3b1c0e0b8016e6334f39e272b0d089aa2d791c51e34
7
- data.tar.gz: 5784c998b745ccdaeffce9a7fe1ec6ad50e1ef6180d5522cde1ccc54e8dca41fb2ec8723aad3dfc903794a2d6a8dccc50cbc302c284c09b50d9691a6eec44b6a
6
+ metadata.gz: 963f6d483094a96e79b3d55fddaac8a73fb6d7ef243236813cdef41905509fae831f259ba36f4f64340b95e01290464c801ea058c2cbcaa21d3ceb1d23e0af89
7
+ data.tar.gz: cdea6b32b6f9ef00d489298fb8d70936ddb0bccd84b55903df373291ba7b38b1b9441f5f6858fda398a90a5c094467666aeaf87031cf79792b3c73238ba7f2d6
@@ -16,6 +16,7 @@ class SpecialsCalculator
16
16
  cost = li.product.price * li.count
17
17
  else
18
18
  cost = @specials[li.product.special].calculate_cost(li)
19
+ end
19
20
  li.update(cost: cost)
20
21
  end
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calculator-myshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vyacheslav Dzyba