journaled 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/journaled.rb +1 -1
- data/lib/journaled/relation_change_protection.rb +1 -1
- data/lib/journaled/version.rb +1 -1
- data/spec/models/journaled/delivery_spec.rb +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 895598e96b01aad6c51bd55355c5d7d0fab963b97326c2943bcb76450dd7cdb7
|
4
|
+
data.tar.gz: 61073882361fbb34ca243d8cc4dbedb494f798bcaaf2bde124f820eb8e175439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4564bc7e637fc2d032ee00b1f2b9e21282d65a531ae758ac374f863b1964100c3ea755db1e558c43d3503a74b995ffc310bb6343f255591357bf4d7ffe556e54
|
7
|
+
data.tar.gz: b456385727f88392465553ff9c63f313902536a9a13cae00fae011e40c7afb2490f3f5ff5fb1012346c18cedfb5cfabcbd20ed2dcaf1cd039dc27551d756647c
|
data/README.md
CHANGED
@@ -92,7 +92,7 @@ Journaling provides a number of different configuation options that can be set i
|
|
92
92
|
|
93
93
|
The number of seconds a persistent connection is allowed to sit idle before it should no longer be used.
|
94
94
|
|
95
|
-
#### `Journaled.http_open_timeout` (default:
|
95
|
+
#### `Journaled.http_open_timeout` (default: 2 seconds)
|
96
96
|
|
97
97
|
The number of seconds before the :http_handler should timeout while trying to open a new HTTP session.
|
98
98
|
|
data/lib/journaled.rb
CHANGED
@@ -10,7 +10,7 @@ module Journaled
|
|
10
10
|
mattr_accessor :default_app_name
|
11
11
|
mattr_accessor(:job_priority) { 20 }
|
12
12
|
mattr_accessor(:http_idle_timeout) { 5 }
|
13
|
-
mattr_accessor(:http_open_timeout) {
|
13
|
+
mattr_accessor(:http_open_timeout) { 2 }
|
14
14
|
mattr_accessor(:http_read_timeout) { 60 }
|
15
15
|
|
16
16
|
def development_or_test?
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Journaled::RelationChangeProtection
|
2
|
-
def update_all(updates, force: false) # rubocop:disable Metrics/
|
2
|
+
def update_all(updates, force: false) # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity
|
3
3
|
unless force || !@klass.respond_to?(:journaled_attribute_names) || @klass.journaled_attribute_names.empty?
|
4
4
|
conflicting_journaled_attribute_names = if updates.is_a?(Hash)
|
5
5
|
@klass.journaled_attribute_names & updates.keys.map(&:to_sym)
|
data/lib/journaled/version.rb
CHANGED
@@ -191,7 +191,7 @@ RSpec.describe Journaled::Delivery do
|
|
191
191
|
end
|
192
192
|
|
193
193
|
it "will set http_open_timeout by default" do
|
194
|
-
expect(subject.kinesis_client_config).to include(http_open_timeout:
|
194
|
+
expect(subject.kinesis_client_config).to include(http_open_timeout: 2)
|
195
195
|
end
|
196
196
|
|
197
197
|
it "will set http_read_timeout by default" do
|
@@ -207,8 +207,8 @@ RSpec.describe Journaled::Delivery do
|
|
207
207
|
|
208
208
|
context "when Journaled.http_open_timeout is specified" do
|
209
209
|
it "will set http_open_timeout by specified value" do
|
210
|
-
allow(Journaled).to receive(:http_open_timeout).and_return(
|
211
|
-
expect(subject.kinesis_client_config).to include(http_open_timeout:
|
210
|
+
allow(Journaled).to receive(:http_open_timeout).and_return(1)
|
211
|
+
expect(subject.kinesis_client_config).to include(http_open_timeout: 1)
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: journaled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Lipson
|
8
8
|
- Corey Alexander
|
9
9
|
- Cyrus Eslami
|
10
10
|
- John Mileham
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: aws-sdk-kinesis
|
@@ -341,7 +341,7 @@ homepage: http://github.com/Betterment/journaled
|
|
341
341
|
licenses:
|
342
342
|
- MIT
|
343
343
|
metadata: {}
|
344
|
-
post_install_message:
|
344
|
+
post_install_message:
|
345
345
|
rdoc_options: []
|
346
346
|
require_paths:
|
347
347
|
- lib
|
@@ -356,8 +356,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
356
|
- !ruby/object:Gem::Version
|
357
357
|
version: '0'
|
358
358
|
requirements: []
|
359
|
-
rubygems_version: 3.
|
360
|
-
signing_key:
|
359
|
+
rubygems_version: 3.1.2
|
360
|
+
signing_key:
|
361
361
|
specification_version: 4
|
362
362
|
summary: Journaling for Betterment apps.
|
363
363
|
test_files:
|