deimos-kafka 1.0.0.pre.beta18 → 1.0.0.pre.beta19

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: aa0b3386a91de8df444dc0dd95daa79965dd2458d7f76088ce9f3aab9812838e
4
- data.tar.gz: 59ac90f569462a2493e3ecf7920a1114ff275db52bda1f2ac0f4777828cc3b97
3
+ metadata.gz: b20ab1bd5462b9ebdd61c00c0e8b70e30e547a42860ece6509b2981f582547ef
4
+ data.tar.gz: 25d2eb38bed18e090b5729ca7f217cf963fc9396f6ebf141546077597d421053
5
5
  SHA512:
6
- metadata.gz: 1c5ec5ccba522c2e668cb71e4d46254eacf8af7c190918567e62b70924cf1d382f5a03ce75df9ea2f8f5e5d55a66f34d259d702419f3620891d1c1d421c00531
7
- data.tar.gz: 39644011b97084a32ec248ad7fc39c068c10b0d199744e6a8d2a47f82606093c05a242388a32a90464078abcdecb08df0e186061266a00d6589ddf2eb3cf737e
6
+ metadata.gz: 9be9ce52caf3014dd496bfcbb8a2626f394b76d5af6bf7b5a4ce6dcd3ad5e2bc6af55c225e15d81c672ed653b2dd025d651035b48ffac175367683529d62e3a3
7
+ data.tar.gz: 222d68c723d352559f79b4ba328dc5aad1ed85a8191dc08266ab7c3113a5853fe7125b2bfba549c4bab081a2082a3b8206f36699461d678eb2eb9d492a0ab8ab
data/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0-beta19] - 2019-08-06
9
+ - Fix for DB producer crashing on error in Rails 3.
10
+
8
11
  ## [1.0.0-beta18] - 2019-08-02
9
12
  - Fixed crash when sending metrics in a couple of places.
10
13
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deimos-kafka (1.0.0.pre.beta18)
4
+ deimos-kafka (1.0.0.pre.beta19)
5
5
  avro-patches (~> 0.3)
6
6
  avro_turf (~> 0.8)
7
7
  phobos (~> 1.8)
@@ -41,7 +41,7 @@ GEM
41
41
  diff-lcs (1.3)
42
42
  digest-crc (0.4.1)
43
43
  dogstatsd-ruby (4.2.0)
44
- excon (0.65.0)
44
+ excon (0.66.0)
45
45
  exponential-backoff (0.0.2)
46
46
  ffi (1.11.1)
47
47
  formatador (0.2.5)
@@ -62,8 +62,16 @@ module Deimos
62
62
  # @param lock_id [String]
63
63
  def register_error(topic, lock_id)
64
64
  record = self.where(topic: topic, locked_by: lock_id).last
65
- record.update(locked_by: nil, locked_at: Time.zone.now, error: true,
66
- retries: record.retries + 1)
65
+ attr_hash = { locked_by: nil,
66
+ locked_at: Time.zone.now,
67
+ error: true,
68
+ retries: record.retries + 1
69
+ }
70
+ if Rails::VERSION::MAJOR >= 4
71
+ record.update!(attr_hash)
72
+ else
73
+ record.update_attributes!(attr_hash)
74
+ end
67
75
  end
68
76
 
69
77
  # Update the locked_at timestamp to indicate that the producer is still
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.0.0-beta18'
4
+ VERSION = '1.0.0-beta19'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta18
4
+ version: 1.0.0.pre.beta19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-02 00:00:00.000000000 Z
11
+ date: 2019-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro-patches