deimos-ruby 1.24.0 → 1.24.1

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: 391cad2b23e7a6ef37106dcc5403af4ef5b62a82c1a6189e712fb3bc339613d1
4
- data.tar.gz: 2bbb4468ee975158489ea797ee67c636d1c5da88cda8b10b33923b4410459178
3
+ metadata.gz: d9f5a1b17f598db05ccd6c5086c3f7f34607c3272d15ba425a9a9af3d61fa6d2
4
+ data.tar.gz: 1324ecd619446398b84ce822f47ea73ffd7a7dfaed8d2b5a226194cda45ed86b
5
5
  SHA512:
6
- metadata.gz: 48f37dc3bf2d016bc8806ccf26def976af003a4a8ebd46dad37e080fdeb9489f0bd3993747feda26a6e37d997b24f169554bb587e8d7ca88af6de85cf41851dd
7
- data.tar.gz: ccee77567b4599bacc341e25f8c653a3f4ce21252c39dfb9849ffc2005fe44dc58aaa23537bb636f1545b1a691156225f66e1a909949b0bafb8440efa5269c4e
6
+ metadata.gz: 2a0e0fb2113acce5735ca3812a7dc3e5e5898880de2f81f406a5a68252c13a6ac9ca91b5906a0392ba5609db936c4c29c13458b5e2fefd18e0671738dafb5f0d
7
+ data.tar.gz: aa8104d7be9d74cf778decee10f73b4284ebb042772406efd6c24ec484331a1119495902d39e6e5b088a01503920658d01d24d0cdb537fbeef06cd645f02b43d
data/CHANGELOG.md CHANGED
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 1.24.1 - 2024-03-26
11
+ - Fix: ActiveRecordConsumer batch consumption was not working with the trilogy adapter.
12
+
10
13
  # 1.24.0 - 2024-02-26
11
14
 
12
15
  ***BREAKING CHANGE****
data/deimos-ruby.gemspec CHANGED
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_runtime_dependency('sigurd', '>= 0.1.0', '< 1.0')
26
26
 
27
27
  spec.add_development_dependency('activerecord-import')
28
+ spec.add_development_dependency('activerecord-trilogy-adapter')
28
29
  spec.add_development_dependency('avro', '~> 1.9')
29
30
  spec.add_development_dependency('database_cleaner', '~> 1.7')
30
31
  spec.add_development_dependency('ddtrace', '>= 0.11')
@@ -50,7 +50,8 @@ module Deimos
50
50
 
51
51
  options = if @key_cols.empty?
52
52
  {} # Can't upsert with no key, just do regular insert
53
- elsif ActiveRecord::Base.connection.adapter_name.downcase =~ /mysql/
53
+ elsif ActiveRecord::Base.connection.adapter_name.downcase =~ /mysql/ ||
54
+ ActiveRecord::Base.connection.adapter_name.downcase =~ /trilogy/
54
55
  {
55
56
  on_duplicate_key_update: columns
56
57
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.24.0'
4
+ VERSION = '1.24.1'
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -94,6 +94,13 @@ module DbConfigs
94
94
  database: 'test',
95
95
  host: ENV['MYSQL_HOST'] || '127.0.0.1'
96
96
  },
97
+ {
98
+ adapter: 'trilogy',
99
+ port: 3306,
100
+ username: 'root',
101
+ database: 'test',
102
+ host: ENV['MYSQL_HOST'] || '127.0.0.1'
103
+ },
97
104
  {
98
105
  adapter: 'sqlite3',
99
106
  database: 'test.sqlite3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro_turf
@@ -112,6 +112,20 @@ dependencies:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
+ - !ruby/object:Gem::Dependency
116
+ name: activerecord-trilogy-adapter
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
115
129
  - !ruby/object:Gem::Dependency
116
130
  name: avro
117
131
  requirement: !ruby/object:Gem::Requirement
@@ -636,7 +650,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
636
650
  - !ruby/object:Gem::Version
637
651
  version: '0'
638
652
  requirements: []
639
- rubygems_version: 3.1.2
653
+ rubygems_version: 3.4.10
640
654
  signing_key:
641
655
  specification_version: 4
642
656
  summary: Kafka libraries for Ruby.