messaging 4.0.11 → 4.0.12

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: df024471a9ebf943e39cf252ccdbfff8c1b0ed44099d6d4ae2a86625cc25920a
4
- data.tar.gz: 3e105b704a432035b7482b39ce5f01b27a591cff6c0960eb01347e1d4ed62828
3
+ metadata.gz: 8b33d86158fa568ad2d0a28cd0ba116148c9138b257b0d7debed82b435972af2
4
+ data.tar.gz: 71d5f06396fd5bc96af015dabb3877c6a90673694d0a4d139873766817262adf
5
5
  SHA512:
6
- metadata.gz: c279fb04ec1eeae67735d59434f3b5579ed2ee900bb75cf9f3bea56c995f8bab521e113b4797c5d602f4f8431521590fa6f165f15ae54fa70ef4791643e4d696
7
- data.tar.gz: 5f58c6e116b7c2e39ed3808aa133e473112c784bdbe01aad7e2167aca4d65aac1e3dd736a1dd2184aec36b1f08524fa2155f5945ce5ab6e5075245c75c93b5b4
6
+ metadata.gz: 65588cd136c5b5726cbcf996f1f0ce9fcd8d511fd612f5500e365bbb22741a02875743106a8b1df54eaaeae6a5011368017b946d0ae354d826d95560f5e06e3b
7
+ data.tar.gz: ce5b8a54d1faa1b107e130afbee144f2cee506a23e49087f688426a287db137d9054aefe81be1bfee1ae2d2d606bb9e26ea1290db49678e9eb4be76532f762ce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- messaging (4.0.11)
4
+ messaging (4.0.12)
5
5
  activerecord
6
6
  activesupport
7
7
  after_transaction
@@ -51,6 +51,7 @@ module Messaging
51
51
  def recreate_consumer_record
52
52
  self.id = nil
53
53
  @new_record = true
54
+ @attributes = @attributes.except('id') if ::Rails::VERSION::MAJOR == 2
54
55
  save
55
56
  end
56
57
 
@@ -69,7 +70,9 @@ module Messaging
69
70
  end
70
71
 
71
72
  def save_position
72
- save if last_processed_position_changed? || last_processed_transaction_id_changed?
73
+ return unless last_processed_position_changed? || last_processed_transaction_id_changed?
74
+ recreate_consumer_record unless self.class.exists? id
75
+ save
73
76
  end
74
77
 
75
78
  def process_message(message)
@@ -86,7 +89,6 @@ module Messaging
86
89
  message: message.inspect
87
90
  }
88
91
  )
89
- Messaging.logger.error "[#{name}] Error processing message: #{e.message}"
90
92
 
91
93
  pause_to_avoid_creating_exception_storm
92
94
  false
@@ -1,3 +1,3 @@
1
1
  module Messaging
2
- VERSION = '4.0.11'.freeze
2
+ VERSION = '4.0.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.11
4
+ version: 4.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bukowskis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-20 00:00:00.000000000 Z
11
+ date: 2025-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord