comee_core 0.1.45.pre2 → 0.1.45

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
  SHA256:
3
- metadata.gz: 1c3fed6c10969053b3b3b97dcbb84b7162dbba323326da0ebb0cf92ba28ae63a
4
- data.tar.gz: 6b2324c00962dd14fec5fbc7cf358039921f651e5b3155aa7b0206f5f933f7d2
3
+ metadata.gz: 75ec5f13994e93da5d3763590ea59e605abcea49c688f4c904af3be6f7f7387a
4
+ data.tar.gz: ec537070f9cf37ebd7e261abfb49f8c4c847e6ae4ea91604554de2d51c5cce17
5
5
  SHA512:
6
- metadata.gz: 6500160b0643b4fadbc8153d2676ab35e1d1b5ddb2ee33d77ee2fb4d35253dca2ce17493942f97e556c607c8bb241a579efbecdc2adf02ccac023846ca18f615
7
- data.tar.gz: c081207e7ee7121b3fbdd30c897f1828178e7e26e881ced574c500fc34bdf5ec6a4309a244768b26ba2f21ac9f99cfd43937efb32d9c87ed6b20f12e74066591
6
+ metadata.gz: 873f33e015d319b8194a8d22f16629140dbf604d2f481a078aa38ec5a7f6099f206e35036b9f2c5ef83764d6f0bbb8b2f52f0d0cd84375fc2b234e2ac1af65f6
7
+ data.tar.gz: 8ccf84bde86a909f24505431d980b3f4c5532d0d2eb0850685069611199f1aca0aa44e015d659df13606f2b2e16848573ce4f95a56f1bc83fd2ade6717be1643
@@ -25,13 +25,8 @@ module Comee
25
25
  return unless product && primary
26
26
 
27
27
  price = MasterPrice.find_by(product: product, primary: true, status: Price.statuses[:current])
28
- Rails.logger.info("Existing price: ")
29
- Rails.logger.info(price)
30
- Rails.logger.info("Current price:")
31
- Rails.logger.info(self)
32
- return unless price && price.id != id
28
+ return unless price && price.id != id && status == price.status
33
29
 
34
- Rails.logger.info("RAISING ERROR ...")
35
30
  errors.add(:base, "There is already a primary price entry for item '#{product.code}'")
36
31
  end
37
32
 
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.1.45.pre2".freeze
3
+ VERSION = "0.1.45".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.45.pre2
4
+ version: 0.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
@@ -459,9 +459,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
459
459
  version: '3.0'
460
460
  required_rubygems_version: !ruby/object:Gem::Requirement
461
461
  requirements:
462
- - - ">"
462
+ - - ">="
463
463
  - !ruby/object:Gem::Version
464
- version: 1.3.1
464
+ version: '0'
465
465
  requirements: []
466
466
  rubygems_version: 3.4.10
467
467
  signing_key: