journaled 2.2.0 → 3.0.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 +42 -6
- data/Rakefile +7 -1
- data/app/jobs/journaled/application_job.rb +4 -0
- data/app/jobs/journaled/delivery_job.rb +96 -0
- data/app/models/concerns/journaled/changes.rb +5 -5
- data/app/models/journaled/change.rb +3 -0
- data/app/models/journaled/change_writer.rb +1 -0
- data/app/models/journaled/delivery.rb +5 -2
- data/app/models/journaled/event.rb +5 -2
- data/app/models/journaled/writer.rb +10 -8
- data/lib/journaled.rb +26 -5
- data/lib/journaled/engine.rb +5 -0
- data/lib/journaled/relation_change_protection.rb +1 -1
- data/lib/journaled/version.rb +1 -1
- data/spec/dummy/config/application.rb +1 -2
- data/spec/dummy/config/database.yml +4 -19
- data/spec/dummy/config/environments/development.rb +0 -13
- data/spec/dummy/config/environments/test.rb +3 -5
- data/spec/dummy/db/schema.rb +3 -16
- data/spec/jobs/journaled/delivery_job_spec.rb +221 -0
- data/spec/lib/journaled_spec.rb +39 -0
- data/spec/models/concerns/journaled/changes_spec.rb +11 -0
- data/spec/models/database_change_protection_spec.rb +19 -25
- data/spec/models/journaled/change_writer_spec.rb +5 -0
- data/spec/models/journaled/delivery_spec.rb +33 -0
- data/spec/models/journaled/event_spec.rb +23 -16
- data/spec/models/journaled/writer_spec.rb +34 -18
- data/spec/rails_helper.rb +1 -2
- data/spec/spec_helper.rb +1 -3
- metadata +38 -62
- data/config/routes.rb +0 -2
- data/lib/journaled/job_priority.rb +0 -5
- data/spec/dummy/config/environments/production.rb +0 -78
- data/spec/dummy/config/initializers/assets.rb +0 -8
- data/spec/dummy/db/migrate/20180606205114_create_delayed_jobs.rb +0 -18
- data/spec/dummy/log/development.log +0 -29
- data/spec/dummy/log/test.log +0 -2482
- data/spec/support/delayed_job_spec_helper.rb +0 -11
@@ -17,6 +17,7 @@ RSpec.describe Journaled::ChangeWriter do
|
|
17
17
|
"name" => %w(bill bob),
|
18
18
|
"last_sign_in_at" => now,
|
19
19
|
},
|
20
|
+
journaled_enqueue_opts: {},
|
20
21
|
)
|
21
22
|
end
|
22
23
|
|
@@ -61,6 +62,7 @@ RSpec.describe Journaled::ChangeWriter do
|
|
61
62
|
"last_sign_in_at" => Time.zone.now,
|
62
63
|
},
|
63
64
|
saved_changes: {},
|
65
|
+
journaled_enqueue_opts: {},
|
64
66
|
)
|
65
67
|
end
|
66
68
|
|
@@ -88,6 +90,7 @@ RSpec.describe Journaled::ChangeWriter do
|
|
88
90
|
changes: {
|
89
91
|
"name" => %w(bob bill),
|
90
92
|
},
|
93
|
+
journaled_enqueue_opts: {},
|
91
94
|
)
|
92
95
|
end
|
93
96
|
|
@@ -183,6 +186,7 @@ RSpec.describe Journaled::ChangeWriter do
|
|
183
186
|
"last_sign_in_at" => Time.zone.now,
|
184
187
|
},
|
185
188
|
saved_changes: {},
|
189
|
+
journaled_enqueue_opts: {},
|
186
190
|
)
|
187
191
|
end
|
188
192
|
|
@@ -253,6 +257,7 @@ RSpec.describe Journaled::ChangeWriter do
|
|
253
257
|
changes: {
|
254
258
|
"name" => %w(bill bob),
|
255
259
|
},
|
260
|
+
journaled_enqueue_opts: {},
|
256
261
|
)
|
257
262
|
end
|
258
263
|
|
@@ -185,5 +185,38 @@ RSpec.describe Journaled::Delivery do
|
|
185
185
|
expect(subject.kinesis_client_config).to include(access_key_id: 'key_id', secret_access_key: 'secret')
|
186
186
|
end
|
187
187
|
end
|
188
|
+
|
189
|
+
it "will set http_idle_timeout by default" do
|
190
|
+
expect(subject.kinesis_client_config).to include(http_idle_timeout: 5)
|
191
|
+
end
|
192
|
+
|
193
|
+
it "will set http_open_timeout by default" do
|
194
|
+
expect(subject.kinesis_client_config).to include(http_open_timeout: 2)
|
195
|
+
end
|
196
|
+
|
197
|
+
it "will set http_read_timeout by default" do
|
198
|
+
expect(subject.kinesis_client_config).to include(http_read_timeout: 60)
|
199
|
+
end
|
200
|
+
|
201
|
+
context "when Journaled.http_idle_timeout is specified" do
|
202
|
+
it "will set http_idle_timeout by specified value" do
|
203
|
+
allow(Journaled).to receive(:http_idle_timeout).and_return(2)
|
204
|
+
expect(subject.kinesis_client_config).to include(http_idle_timeout: 2)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
context "when Journaled.http_open_timeout is specified" do
|
209
|
+
it "will set http_open_timeout by specified value" do
|
210
|
+
allow(Journaled).to receive(:http_open_timeout).and_return(1)
|
211
|
+
expect(subject.kinesis_client_config).to include(http_open_timeout: 1)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
context "when Journaled.http_read_timeout is specified" do
|
216
|
+
it "will set http_read_timeout by specified value" do
|
217
|
+
allow(Journaled).to receive(:http_read_timeout).and_return(2)
|
218
|
+
expect(subject.kinesis_client_config).to include(http_read_timeout: 2)
|
219
|
+
end
|
220
|
+
end
|
188
221
|
end
|
189
222
|
end
|
@@ -25,22 +25,7 @@ RSpec.describe Journaled::Event do
|
|
25
25
|
it 'creates a Journaled::Writer with this event and journals it with the default priority' do
|
26
26
|
sample_journaled_event.journal!
|
27
27
|
expect(Journaled::Writer).to have_received(:new)
|
28
|
-
.with(journaled_event: sample_journaled_event
|
29
|
-
expect(mock_journaled_writer).to have_received(:journal!)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
context 'when there is an app job priority is set' do
|
34
|
-
around do |example|
|
35
|
-
orig_priority = Journaled.job_priority
|
36
|
-
Journaled.job_priority = 13
|
37
|
-
example.run
|
38
|
-
Journaled.job_priority = orig_priority
|
39
|
-
end
|
40
|
-
|
41
|
-
it 'creates a Journaled::Writer with this event and journals it with the given priority' do
|
42
|
-
sample_journaled_event.journal!
|
43
|
-
expect(Journaled::Writer).to have_received(:new).with(journaled_event: sample_journaled_event, priority: 13)
|
28
|
+
.with(journaled_event: sample_journaled_event)
|
44
29
|
expect(mock_journaled_writer).to have_received(:journal!)
|
45
30
|
end
|
46
31
|
end
|
@@ -150,4 +135,26 @@ RSpec.describe Journaled::Event do
|
|
150
135
|
end
|
151
136
|
end
|
152
137
|
end
|
138
|
+
|
139
|
+
describe '#journaled_enqueue_opts, .journaled_enqueue_opts' do
|
140
|
+
it 'defaults to an empty hash' do
|
141
|
+
expect(sample_journaled_event.journaled_enqueue_opts).to eq({})
|
142
|
+
expect(sample_journaled_event_class.journaled_enqueue_opts).to eq({})
|
143
|
+
end
|
144
|
+
|
145
|
+
context 'when there are custom opts provided' do
|
146
|
+
let(:sample_journaled_event_class) do
|
147
|
+
Class.new do
|
148
|
+
include Journaled::Event
|
149
|
+
|
150
|
+
journal_attributes :foo, enqueue_with: { priority: 34, foo: 'bar' }
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
it 'merges in the custom opts' do
|
155
|
+
expect(sample_journaled_event.journaled_enqueue_opts).to eq(priority: 34, foo: 'bar')
|
156
|
+
expect(sample_journaled_event_class.journaled_enqueue_opts).to eq(priority: 34, foo: 'bar')
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
153
160
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rails_helper'
|
2
2
|
|
3
3
|
RSpec.describe Journaled::Writer do
|
4
|
-
subject { described_class.new journaled_event: journaled_event
|
4
|
+
subject { described_class.new journaled_event: journaled_event }
|
5
5
|
|
6
6
|
describe '#initialize' do
|
7
7
|
context 'when the Journaled Event does not implement all the necessary methods' do
|
@@ -19,6 +19,7 @@ RSpec.describe Journaled::Writer do
|
|
19
19
|
journaled_attributes: {},
|
20
20
|
journaled_partition_key: '',
|
21
21
|
journaled_app_name: nil,
|
22
|
+
journaled_enqueue_opts: {},
|
22
23
|
)
|
23
24
|
end
|
24
25
|
|
@@ -34,6 +35,7 @@ RSpec.describe Journaled::Writer do
|
|
34
35
|
journaled_attributes: { foo: :bar },
|
35
36
|
journaled_partition_key: 'fake_partition_key',
|
36
37
|
journaled_app_name: nil,
|
38
|
+
journaled_enqueue_opts: {},
|
37
39
|
)
|
38
40
|
end
|
39
41
|
|
@@ -67,25 +69,23 @@ RSpec.describe Journaled::Writer do
|
|
67
69
|
allow(File).to receive(:read).with(schema_path).and_return(schema_file_contents)
|
68
70
|
end
|
69
71
|
|
72
|
+
let(:journaled_enqueue_opts) { {} }
|
70
73
|
let(:journaled_event) do
|
71
74
|
double(
|
72
75
|
journaled_schema_name: :fake_schema_name,
|
73
76
|
journaled_attributes: journaled_event_attributes,
|
74
77
|
journaled_partition_key: 'fake_partition_key',
|
75
78
|
journaled_app_name: 'my_app',
|
79
|
+
journaled_enqueue_opts: journaled_enqueue_opts,
|
76
80
|
)
|
77
81
|
end
|
78
82
|
|
79
|
-
around do |example|
|
80
|
-
with_jobs_delayed { example.run }
|
81
|
-
end
|
82
|
-
|
83
83
|
context 'when the journaled event does NOT comply with the base_event schema' do
|
84
84
|
let(:journaled_event_attributes) { { foo: 1 } }
|
85
85
|
|
86
86
|
it 'raises an error and does not enqueue anything' do
|
87
87
|
expect { subject.journal! }.to raise_error JSON::Schema::ValidationError
|
88
|
-
expect(
|
88
|
+
expect(enqueued_jobs.count).to eq 0
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
@@ -95,7 +95,7 @@ RSpec.describe Journaled::Writer do
|
|
95
95
|
|
96
96
|
it 'raises an error and does not enqueue anything' do
|
97
97
|
expect { subject.journal! }.to raise_error JSON::Schema::ValidationError
|
98
|
-
expect(
|
98
|
+
expect(enqueued_jobs.count).to eq 0
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
@@ -103,23 +103,39 @@ RSpec.describe Journaled::Writer do
|
|
103
103
|
let(:journaled_event_attributes) { { id: 'FAKE_UUID', event_type: 'fake_event', created_at: Time.zone.now, foo: :bar } }
|
104
104
|
|
105
105
|
it 'creates a delivery with the app name passed through' do
|
106
|
-
|
107
|
-
|
108
|
-
expect(Journaled::Delivery).to have_received(:new).with(hash_including(app_name: 'my_app'))
|
106
|
+
expect { subject.journal! }.to change { enqueued_jobs.count }.from(0).to(1)
|
107
|
+
expect(enqueued_jobs.first[:args].first).to include('app_name' => 'my_app')
|
109
108
|
end
|
110
109
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
110
|
+
context 'when there is no job priority specified in the enqueue opts' do
|
111
|
+
around do |example|
|
112
|
+
old_priority = Journaled.job_priority
|
113
|
+
Journaled.job_priority = 999
|
114
|
+
example.run
|
115
|
+
Journaled.job_priority = old_priority
|
116
|
+
end
|
117
|
+
|
118
|
+
it 'defaults to the global default' do
|
119
|
+
expect { subject.journal! }.to change {
|
120
|
+
if Rails::VERSION::MAJOR < 6
|
121
|
+
enqueued_jobs.select { |j| j[:job] == Journaled::DeliveryJob }.count
|
122
|
+
else
|
123
|
+
enqueued_jobs.select { |j| j['job_class'] == 'Journaled::DeliveryJob' && j['priority'] == 999 }.count
|
124
|
+
end
|
125
|
+
}.from(0).to(1)
|
126
|
+
end
|
115
127
|
end
|
116
128
|
|
117
|
-
context 'when
|
118
|
-
|
129
|
+
context 'when there is a job priority specified in the enqueue opts' do
|
130
|
+
let(:journaled_enqueue_opts) { { priority: 13 } }
|
119
131
|
|
120
|
-
it 'enqueues
|
132
|
+
it 'enqueues a Journaled::DeliveryJob with the given priority' do
|
121
133
|
expect { subject.journal! }.to change {
|
122
|
-
|
134
|
+
if Rails::VERSION::MAJOR < 6
|
135
|
+
enqueued_jobs.select { |j| j[:job] == Journaled::DeliveryJob }.count
|
136
|
+
else
|
137
|
+
enqueued_jobs.select { |j| j['job_class'] == 'Journaled::DeliveryJob' && j['priority'] == 13 }.count
|
138
|
+
end
|
123
139
|
}.from(0).to(1)
|
124
140
|
end
|
125
141
|
end
|
data/spec/rails_helper.rb
CHANGED
@@ -6,7 +6,6 @@ require 'rspec/rails'
|
|
6
6
|
require 'timecop'
|
7
7
|
require 'webmock/rspec'
|
8
8
|
require 'journaled/rspec'
|
9
|
-
require 'pry-rails'
|
10
9
|
|
11
10
|
Dir[Rails.root.join('..', 'support', '**', '*.rb')].each { |f| require f }
|
12
11
|
|
@@ -15,6 +14,6 @@ RSpec.configure do |config|
|
|
15
14
|
|
16
15
|
config.infer_spec_type_from_file_location!
|
17
16
|
|
18
|
-
config.include
|
17
|
+
config.include ActiveJob::TestHelper
|
19
18
|
config.include EnvironmentSpecHelper
|
20
19
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
require 'delayed_job_active_record'
|
2
1
|
rails_env = ENV['RAILS_ENV'] ||= 'test'
|
3
|
-
db_adapter = ENV['DB_ADAPTER'] ||= 'postgresql'
|
4
2
|
require File.expand_path('dummy/config/environment.rb', __dir__)
|
5
3
|
|
6
|
-
Rails.configuration.database_configuration[
|
4
|
+
Rails.configuration.database_configuration[rails_env].tap do |c|
|
7
5
|
ActiveRecord::Tasks::DatabaseTasks.create(c)
|
8
6
|
ActiveRecord::Base.establish_connection(c)
|
9
7
|
load File.expand_path('dummy/db/schema.rb', __dir__)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: journaled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Lipson
|
@@ -11,24 +11,24 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
17
|
+
name: activejob
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- - "
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: activerecord
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - ">="
|
@@ -41,6 +41,20 @@ dependencies:
|
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: aws-sdk-kinesis
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "<"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '2'
|
44
58
|
- !ruby/object:Gem::Dependency
|
45
59
|
name: json-schema
|
46
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,7 +70,7 @@ dependencies:
|
|
56
70
|
- !ruby/object:Gem::Version
|
57
71
|
version: '0'
|
58
72
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
73
|
+
name: railties
|
60
74
|
requirement: !ruby/object:Gem::Requirement
|
61
75
|
requirements:
|
62
76
|
- - ">="
|
@@ -104,21 +118,7 @@ dependencies:
|
|
104
118
|
- !ruby/object:Gem::Version
|
105
119
|
version: 2.2.0
|
106
120
|
- !ruby/object:Gem::Dependency
|
107
|
-
name:
|
108
|
-
requirement: !ruby/object:Gem::Requirement
|
109
|
-
requirements:
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: '0'
|
113
|
-
type: :development
|
114
|
-
prerelease: false
|
115
|
-
version_requirements: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '0'
|
120
|
-
- !ruby/object:Gem::Dependency
|
121
|
-
name: pg
|
121
|
+
name: rspec-rails
|
122
122
|
requirement: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - ">="
|
@@ -132,7 +132,7 @@ dependencies:
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
- !ruby/object:Gem::Dependency
|
135
|
-
name:
|
135
|
+
name: rspec_junit_formatter
|
136
136
|
requirement: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - ">="
|
@@ -146,21 +146,21 @@ dependencies:
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
- !ruby/object:Gem::Dependency
|
149
|
-
name:
|
149
|
+
name: rubocop-betterment
|
150
150
|
requirement: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- - "
|
152
|
+
- - "~>"
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: '
|
154
|
+
version: '1.3'
|
155
155
|
type: :development
|
156
156
|
prerelease: false
|
157
157
|
version_requirements: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- - "
|
159
|
+
- - "~>"
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: '
|
161
|
+
version: '1.3'
|
162
162
|
- !ruby/object:Gem::Dependency
|
163
|
-
name:
|
163
|
+
name: spring
|
164
164
|
requirement: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
166
|
- - ">="
|
@@ -174,21 +174,7 @@ dependencies:
|
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: '0'
|
176
176
|
- !ruby/object:Gem::Dependency
|
177
|
-
name:
|
178
|
-
requirement: !ruby/object:Gem::Requirement
|
179
|
-
requirements:
|
180
|
-
- - "~>"
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: '1.3'
|
183
|
-
type: :development
|
184
|
-
prerelease: false
|
185
|
-
version_requirements: !ruby/object:Gem::Requirement
|
186
|
-
requirements:
|
187
|
-
- - "~>"
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: '1.3'
|
190
|
-
- !ruby/object:Gem::Dependency
|
191
|
-
name: spring
|
177
|
+
name: spring-commands-rspec
|
192
178
|
requirement: !ruby/object:Gem::Requirement
|
193
179
|
requirements:
|
194
180
|
- - ">="
|
@@ -202,7 +188,7 @@ dependencies:
|
|
202
188
|
- !ruby/object:Gem::Version
|
203
189
|
version: '0'
|
204
190
|
- !ruby/object:Gem::Dependency
|
205
|
-
name:
|
191
|
+
name: sqlite3
|
206
192
|
requirement: !ruby/object:Gem::Requirement
|
207
193
|
requirements:
|
208
194
|
- - ">="
|
@@ -258,6 +244,8 @@ files:
|
|
258
244
|
- README.md
|
259
245
|
- Rakefile
|
260
246
|
- app/controllers/concerns/journaled/actor.rb
|
247
|
+
- app/jobs/journaled/application_job.rb
|
248
|
+
- app/jobs/journaled/delivery_job.rb
|
261
249
|
- app/models/concerns/journaled/changes.rb
|
262
250
|
- app/models/journaled/actor_uri_provider.rb
|
263
251
|
- app/models/journaled/change.rb
|
@@ -269,13 +257,11 @@ files:
|
|
269
257
|
- app/models/journaled/not_truly_exceptional_error.rb
|
270
258
|
- app/models/journaled/writer.rb
|
271
259
|
- config/initializers/change_protection.rb
|
272
|
-
- config/routes.rb
|
273
260
|
- config/spring.rb
|
274
261
|
- journaled_schemas/base_event.json
|
275
262
|
- journaled_schemas/journaled/change.json
|
276
263
|
- lib/journaled.rb
|
277
264
|
- lib/journaled/engine.rb
|
278
|
-
- lib/journaled/job_priority.rb
|
279
265
|
- lib/journaled/relation_change_protection.rb
|
280
266
|
- lib/journaled/rspec.rb
|
281
267
|
- lib/journaled/version.rb
|
@@ -290,9 +276,7 @@ files:
|
|
290
276
|
- spec/dummy/config/database.yml
|
291
277
|
- spec/dummy/config/environment.rb
|
292
278
|
- spec/dummy/config/environments/development.rb
|
293
|
-
- spec/dummy/config/environments/production.rb
|
294
279
|
- spec/dummy/config/environments/test.rb
|
295
|
-
- spec/dummy/config/initializers/assets.rb
|
296
280
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
297
281
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
298
282
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
@@ -303,14 +287,12 @@ files:
|
|
303
287
|
- spec/dummy/config/locales/en.yml
|
304
288
|
- spec/dummy/config/routes.rb
|
305
289
|
- spec/dummy/config/secrets.yml
|
306
|
-
- spec/dummy/db/migrate/20180606205114_create_delayed_jobs.rb
|
307
290
|
- spec/dummy/db/schema.rb
|
308
|
-
- spec/dummy/log/development.log
|
309
|
-
- spec/dummy/log/test.log
|
310
291
|
- spec/dummy/public/404.html
|
311
292
|
- spec/dummy/public/422.html
|
312
293
|
- spec/dummy/public/500.html
|
313
294
|
- spec/dummy/public/favicon.ico
|
295
|
+
- spec/jobs/journaled/delivery_job_spec.rb
|
314
296
|
- spec/lib/journaled_spec.rb
|
315
297
|
- spec/models/concerns/journaled/actor_spec.rb
|
316
298
|
- spec/models/concerns/journaled/changes_spec.rb
|
@@ -323,7 +305,6 @@ files:
|
|
323
305
|
- spec/models/journaled/writer_spec.rb
|
324
306
|
- spec/rails_helper.rb
|
325
307
|
- spec/spec_helper.rb
|
326
|
-
- spec/support/delayed_job_spec_helper.rb
|
327
308
|
- spec/support/environment_spec_helper.rb
|
328
309
|
homepage: http://github.com/Betterment/journaled
|
329
310
|
licenses:
|
@@ -344,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
344
325
|
- !ruby/object:Gem::Version
|
345
326
|
version: '0'
|
346
327
|
requirements: []
|
347
|
-
rubygems_version: 3.
|
328
|
+
rubygems_version: 3.1.2
|
348
329
|
signing_key:
|
349
330
|
specification_version: 4
|
350
331
|
summary: Journaling for Betterment apps.
|
@@ -356,7 +337,6 @@ test_files:
|
|
356
337
|
- spec/dummy/config/secrets.yml
|
357
338
|
- spec/dummy/config/routes.rb
|
358
339
|
- spec/dummy/config/locales/en.yml
|
359
|
-
- spec/dummy/config/environments/production.rb
|
360
340
|
- spec/dummy/config/environments/development.rb
|
361
341
|
- spec/dummy/config/environments/test.rb
|
362
342
|
- spec/dummy/config/environment.rb
|
@@ -368,7 +348,6 @@ test_files:
|
|
368
348
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
369
349
|
- spec/dummy/config/initializers/session_store.rb
|
370
350
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
371
|
-
- spec/dummy/config/initializers/assets.rb
|
372
351
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
373
352
|
- spec/dummy/config/initializers/inflections.rb
|
374
353
|
- spec/dummy/config.ru
|
@@ -378,9 +357,6 @@ test_files:
|
|
378
357
|
- spec/dummy/public/500.html
|
379
358
|
- spec/dummy/public/404.html
|
380
359
|
- spec/dummy/db/schema.rb
|
381
|
-
- spec/dummy/db/migrate/20180606205114_create_delayed_jobs.rb
|
382
|
-
- spec/dummy/log/test.log
|
383
|
-
- spec/dummy/log/development.log
|
384
360
|
- spec/dummy/README.rdoc
|
385
361
|
- spec/models/journaled/json_schema_model/validator_spec.rb
|
386
362
|
- spec/models/journaled/actor_uri_provider_spec.rb
|
@@ -391,7 +367,7 @@ test_files:
|
|
391
367
|
- spec/models/database_change_protection_spec.rb
|
392
368
|
- spec/models/concerns/journaled/changes_spec.rb
|
393
369
|
- spec/models/concerns/journaled/actor_spec.rb
|
394
|
-
- spec/support/delayed_job_spec_helper.rb
|
395
370
|
- spec/support/environment_spec_helper.rb
|
396
371
|
- spec/lib/journaled_spec.rb
|
372
|
+
- spec/jobs/journaled/delivery_job_spec.rb
|
397
373
|
- spec/rails_helper.rb
|