dscf-marketplace 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0e91f63e7ff64555d501536f0a77dbf3942fd4ad5a72f9e546306141c1d5901
4
- data.tar.gz: 7b3826928b8f65fdaee4e448657b69bcf2e8eec33ec1c00498c679d52437b410
3
+ metadata.gz: 888e597416339864fb9f310837a1624135b615dbf8ec21d875594a05bab42632
4
+ data.tar.gz: a0476fcb98220d993ce5cc5b63c0f497b2d887c54a9397e19399750c2fc57a33
5
5
  SHA512:
6
- metadata.gz: 37ac177b888c28335a60d18ca44485a4748ea1f71b58850a85dc6a465e68873776fa61a87b63b21b4680c501266181de4d743211dc88009fb4cf88155f2e6c6c
7
- data.tar.gz: b42feafb45858e7f9d5e91826f32ea88469aeb2e7e55b9c8644f8dc7fc5d08f499f977b48ec2bfd9553665171d3f9a8b54878e6696946e8d452fa655f1baa9fb
6
+ metadata.gz: f5c7d51bdf7f4d9923416be26301bb9c52dc15620634aa9cbf7c752607a5a31bb54264f73cf1df4f021da6ed5a403a23a93e64d581c82cc7c0718df767517726
7
+ data.tar.gz: 0f16faf59dbf7676fa2ef70ae16a04d8e37a57eb359011e381a67038be06cee41cf1ed234561410869e8f03c6d76497e9d4307aee9bab24e656464ab137c7f1f
@@ -18,6 +18,14 @@ module Dscf
18
18
 
19
19
 
20
20
  def self.validate_item(item)
21
+ # Don't re-flag an item the aggregator has already resolved. Re-running
22
+ # validation would otherwise compare the live listing price against the
23
+ # untouched order unit_price and reopen the same issue forever.
24
+ # A resolved item is "validated" but RETAINS its validation_note; an item
25
+ # that was never flagged is "validated" with a nil note (set in the else
26
+ # branch below), so the retained note cleanly distinguishes the two.
27
+ return item if item.validation_status == "validated" && item.validation_note.present?
28
+
21
29
  current_listing = find_current_active_listing(item)
22
30
  return mark_no_longer_listed(item) unless current_listing
23
31
 
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Marketplace
3
- VERSION = "0.9.5".freeze
3
+ VERSION = "0.9.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-marketplace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asrat
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-06-28 00:00:00.000000000 Z
10
+ date: 2026-06-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails