journaled 2.1.1 → 2.2.0

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: 3b7a10c3a016b77101958c098880bfcfab640b8277e93d80962a90fd6255c6c8
4
- data.tar.gz: 54d9bfb3d13c97c2a40c6be9a9854ce3120671ae06fd9c9c251f766abd822215
3
+ metadata.gz: 5f46775bfd5621ba7978529c64da7768d471ee6fd73cc8cf315d8fa60e98c537
4
+ data.tar.gz: f0bbb3d98be52d715d847a1ee44c843d8c4f654826939167a710b04a23c4adb6
5
5
  SHA512:
6
- metadata.gz: d3bed9db0a770ee95a10309d673ec7b7e3f3d8f7da59303d27bb17ce6e3920e9913e4a34e553fe9e4a99a395f16810c4784844e0161e78292c8383b00b55a9a5
7
- data.tar.gz: 930ed61334d18351879b66ac8d36768e0cc0a9d982e1482c40fb313431f9c38ab624f1ad3f6c2797ca76e0c35b69f66a8051fc9e322a36661cacecb6e1d46a76
6
+ metadata.gz: 82c607495e4dc58e70005a73b32d473d84d85baaa4b3004d8ce018ea65d178a4eafafee7c64336ba3616dc4d6b65349bbc4d2209a770aa858cfdd92f9c07043d
7
+ data.tar.gz: 803c3f09b67ac93ff28df87ad40680f7c05daed85c7da7110c35c817ccd2cd4f2a4b1995540f5659ce5b3a839b124f4fccbeed91686f540280aa0abe25bb05c9
@@ -12,6 +12,7 @@ module Journaled::Actor
12
12
  class_methods do
13
13
  def journaled_actor=(method_name)
14
14
  raise "Must provide a symbol method name" unless method_name.is_a?(Symbol)
15
+
15
16
  self._journaled_actor_method_name = method_name
16
17
  end
17
18
  end
@@ -16,7 +16,7 @@ class Journaled::Change
16
16
  :changes,
17
17
  :actor
18
18
 
19
- def initialize(table_name:, # rubocop:disable Metrics/ParameterLists
19
+ def initialize(table_name:,
20
20
  record_id:,
21
21
  database_operation:,
22
22
  logical_operation:,
@@ -19,6 +19,7 @@ class Journaled::ChangeDefinition
19
19
 
20
20
  #{nonexistent_attribute_names.join(', ')}
21
21
  ERROR
22
+
22
23
  @validated = true
23
24
  end
24
25
  end
@@ -28,7 +28,7 @@ class Journaled::ChangeWriter
28
28
  logical_operation: logical_operation,
29
29
  changes: JSON.dump(changes),
30
30
  journaled_app_name: journaled_app_name,
31
- actor: actor_uri
31
+ actor: actor_uri,
32
32
  )
33
33
  end
34
34
 
@@ -25,7 +25,7 @@ class Journaled::Delivery
25
25
  def kinesis_client_config
26
26
  {
27
27
  region: ENV.fetch('AWS_DEFAULT_REGION', DEFAULT_REGION),
28
- retry_limit: 0
28
+ retry_limit: 0,
29
29
  }.merge(credentials)
30
30
  end
31
31
 
@@ -37,7 +37,7 @@ class Journaled::Delivery
37
37
  {
38
38
  stream_name: stream_name,
39
39
  data: serialized_event,
40
- partition_key: partition_key
40
+ partition_key: partition_key,
41
41
  }
42
42
  end
43
43
 
@@ -48,7 +48,7 @@ class Journaled::Delivery
48
48
  def credentials
49
49
  if ENV.key?('JOURNALED_IAM_ROLE_ARN')
50
50
  {
51
- credentials: iam_assume_role_credentials
51
+ credentials: iam_assume_role_credentials,
52
52
  }
53
53
  else
54
54
  legacy_credentials_hash_if_present
@@ -59,7 +59,7 @@ class Journaled::Delivery
59
59
  if ENV.key?('RUBY_AWS_ACCESS_KEY_ID')
60
60
  {
61
61
  access_key_id: ENV.fetch('RUBY_AWS_ACCESS_KEY_ID'),
62
- secret_access_key: ENV.fetch('RUBY_AWS_SECRET_ACCESS_KEY')
62
+ secret_access_key: ENV.fetch('RUBY_AWS_SECRET_ACCESS_KEY'),
63
63
  }
64
64
  else
65
65
  {}
@@ -68,7 +68,7 @@ class Journaled::Delivery
68
68
 
69
69
  def sts_client
70
70
  Aws::STS::Client.new({
71
- region: ENV.fetch('AWS_DEFAULT_REGION', DEFAULT_REGION)
71
+ region: ENV.fetch('AWS_DEFAULT_REGION', DEFAULT_REGION),
72
72
  }.merge(legacy_credentials_hash_if_present))
73
73
  end
74
74
 
@@ -76,7 +76,7 @@ class Journaled::Delivery
76
76
  @iam_assume_role_credentials ||= Aws::AssumeRoleCredentials.new(
77
77
  client: sts_client,
78
78
  role_arn: ENV.fetch('JOURNALED_IAM_ROLE_ARN'),
79
- role_session_name: "JournaledAssumeRoleAccess"
79
+ role_session_name: "JournaledAssumeRoleAccess",
80
80
  )
81
81
  end
82
82
 
@@ -39,7 +39,7 @@ class Journaled::Writer
39
39
  @journaled_delivery ||= Journaled::Delivery.new(
40
40
  serialized_event: serialized_event,
41
41
  partition_key: journaled_partition_key,
42
- app_name: journaled_app_name
42
+ app_name: journaled_app_name,
43
43
  )
44
44
  end
45
45
 
@@ -1,3 +1,3 @@
1
1
  module Journaled
2
- VERSION = "2.1.1".freeze
2
+ VERSION = "2.2.0".freeze
3
3
  end
@@ -2223,3 +2223,260 @@
2223
2223
   (0.3ms) BEGIN
2224
2224
  #<Class:0x00007fdb35d0d578> Update All (1.1ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2225
2225
   (0.3ms) ROLLBACK
2226
+  (1.5ms) CREATE DATABASE "journaled_test" ENCODING = 'utf8'
2227
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2228
+  (6.6ms) DROP TABLE IF EXISTS "delayed_jobs" CASCADE
2229
+  (13.5ms) CREATE TABLE "delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying, "queue" character varying, "created_at" timestamp, "updated_at" timestamp)
2230
+  (3.2ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
2231
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2232
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2233
+  (0.5ms) BEGIN
2234
+  (0.4ms) ROLLBACK
2235
+  (0.1ms) BEGIN
2236
+  (0.1ms) ROLLBACK
2237
+  (0.2ms) BEGIN
2238
+  (0.3ms) ROLLBACK
2239
+  (0.1ms) BEGIN
2240
+  (0.2ms) ROLLBACK
2241
+  (0.3ms) BEGIN
2242
+  (0.2ms) ROLLBACK
2243
+  (0.1ms) BEGIN
2244
+  (0.2ms) ROLLBACK
2245
+  (0.2ms) BEGIN
2246
+  (0.2ms) ROLLBACK
2247
+  (0.1ms) BEGIN
2248
+  (0.3ms) ROLLBACK
2249
+  (0.1ms) BEGIN
2250
+  (0.1ms) ROLLBACK
2251
+  (0.1ms) BEGIN
2252
+  (0.1ms) ROLLBACK
2253
+  (0.1ms) BEGIN
2254
+  (0.1ms) ROLLBACK
2255
+  (0.1ms) BEGIN
2256
+  (0.2ms) ROLLBACK
2257
+  (0.1ms) BEGIN
2258
+  (0.1ms) ROLLBACK
2259
+  (0.1ms) BEGIN
2260
+  (0.1ms) ROLLBACK
2261
+  (0.1ms) BEGIN
2262
+  (0.5ms) ROLLBACK
2263
+  (0.3ms) BEGIN
2264
+  (0.3ms) ROLLBACK
2265
+  (0.2ms) BEGIN
2266
+  (0.2ms) ROLLBACK
2267
+  (0.1ms) BEGIN
2268
+  (0.2ms) ROLLBACK
2269
+  (0.1ms) BEGIN
2270
+  (0.2ms) ROLLBACK
2271
+  (0.2ms) BEGIN
2272
+  (0.3ms) ROLLBACK
2273
+  (0.1ms) BEGIN
2274
+  (0.2ms) ROLLBACK
2275
+  (0.1ms) BEGIN
2276
+  (0.1ms) ROLLBACK
2277
+  (0.2ms) BEGIN
2278
+  (0.2ms) ROLLBACK
2279
+  (0.1ms) BEGIN
2280
+  (0.1ms) ROLLBACK
2281
+  (0.1ms) BEGIN
2282
+  (0.1ms) ROLLBACK
2283
+  (0.2ms) BEGIN
2284
+  (0.3ms) ROLLBACK
2285
+  (0.1ms) BEGIN
2286
+  (0.2ms) ROLLBACK
2287
+  (0.1ms) BEGIN
2288
+  (0.2ms) ROLLBACK
2289
+  (0.1ms) BEGIN
2290
+  (0.1ms) ROLLBACK
2291
+  (0.1ms) BEGIN
2292
+  (0.2ms) ROLLBACK
2293
+  (0.1ms) BEGIN
2294
+  (0.1ms) ROLLBACK
2295
+  (0.3ms) BEGIN
2296
+  (0.2ms) ROLLBACK
2297
+  (0.1ms) BEGIN
2298
+  (0.2ms) ROLLBACK
2299
+  (0.1ms) BEGIN
2300
+  (0.2ms) ROLLBACK
2301
+  (0.1ms) BEGIN
2302
+  (0.5ms) ROLLBACK
2303
+  (0.3ms) BEGIN
2304
+  (0.3ms) ROLLBACK
2305
+  (0.2ms) BEGIN
2306
+  (0.2ms) ROLLBACK
2307
+  (0.1ms) BEGIN
2308
+  (0.2ms) ROLLBACK
2309
+  (0.1ms) BEGIN
2310
+  (0.1ms) ROLLBACK
2311
+  (0.1ms) BEGIN
2312
+  (0.2ms) ROLLBACK
2313
+  (0.1ms) BEGIN
2314
+  (0.2ms) ROLLBACK
2315
+  (0.3ms) BEGIN
2316
+  (0.8ms) ROLLBACK
2317
+  (0.3ms) BEGIN
2318
+  (0.2ms) ROLLBACK
2319
+  (0.1ms) BEGIN
2320
+  (0.2ms) ROLLBACK
2321
+  (0.2ms) BEGIN
2322
+  (0.2ms) ROLLBACK
2323
+  (0.1ms) BEGIN
2324
+  (0.1ms) ROLLBACK
2325
+  (0.1ms) BEGIN
2326
+  (0.2ms) ROLLBACK
2327
+  (0.1ms) BEGIN
2328
+  (0.3ms) ROLLBACK
2329
+  (0.2ms) BEGIN
2330
+  (0.2ms) ROLLBACK
2331
+  (0.1ms) BEGIN
2332
+  (0.1ms) ROLLBACK
2333
+  (0.2ms) BEGIN
2334
+  (0.2ms) SAVEPOINT active_record_1
2335
+ Delayed::Backend::ActiveRecord::Job Create (0.7ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-09-13T16:08:04.407Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-09-13 16:08:04.426521"], ["created_at", "2019-09-13 16:08:04.426575"], ["updated_at", "2019-09-13 16:08:04.426575"]]
2336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2337
+ Delayed::Backend::ActiveRecord::Job Load (2.3ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.429596', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.429073' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.429082') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2338
+  (0.3ms) SAVEPOINT active_record_1
2339
+ Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
2340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2341
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.434967', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.434616' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.434629') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2342
+  (0.2ms) ROLLBACK
2343
+  (0.1ms) BEGIN
2344
+  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
2345
+  (0.2ms) SAVEPOINT active_record_1
2346
+ Delayed::Backend::ActiveRecord::Job Create (0.2ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-09-13T16:08:04.442Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-09-13 16:08:04.443861"], ["created_at", "2019-09-13 16:08:04.443892"], ["updated_at", "2019-09-13 16:08:04.443892"]]
2347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2348
+  (1.0ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 20]]
2349
+ Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.447239', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.446824' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.446841') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2350
+  (0.2ms) SAVEPOINT active_record_1
2351
+ Delayed::Backend::ActiveRecord::Job Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 2]]
2352
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2353
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.450631', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.450321' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.450333') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2354
+  (0.2ms) ROLLBACK
2355
+  (0.1ms) BEGIN
2356
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
2357
+  (0.2ms) SAVEPOINT active_record_1
2358
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"FAKE_UUID\",\"event_type\":\"fake_event\",\"created_at\":\"2019-09-13T16:08:04.454Z\",\"foo\":\"bar\"}'\npartition_key: fake_partition_key\napp_name: my_app\n"], ["run_at", "2019-09-13 16:08:04.455893"], ["created_at", "2019-09-13 16:08:04.455921"], ["updated_at", "2019-09-13 16:08:04.455921"]]
2359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2360
+  (0.3ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%') AND "delayed_jobs"."priority" = $1 [["priority", 0]]
2361
+ Delayed::Backend::ActiveRecord::Job Load (0.6ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.458541', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.458170' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.458179') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2362
+  (0.2ms) SAVEPOINT active_record_1
2363
+ Delayed::Backend::ActiveRecord::Job Destroy (0.2ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 3]]
2364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2365
+ Delayed::Backend::ActiveRecord::Job Load (0.4ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.461295', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.460995' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.461005') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2366
+  (0.1ms) ROLLBACK
2367
+  (0.1ms) BEGIN
2368
+  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
2369
+ Delayed::Backend::ActiveRecord::Job Load (0.9ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.467404', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.466452' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.466490') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2370
+  (0.2ms) ROLLBACK
2371
+  (0.2ms) BEGIN
2372
+  (0.5ms) SELECT COUNT(*) FROM "delayed_jobs" WHERE (handler like '%Journaled::Delivery%')
2373
+ Delayed::Backend::ActiveRecord::Job Load (0.5ms) UPDATE "delayed_jobs" SET locked_at = '2019-09-13 16:08:04.473654', locked_by = 'host:Sam-Moore-MBP13 pid:46133' WHERE id IN (SELECT "delayed_jobs"."id" FROM "delayed_jobs" WHERE ((run_at <= '2019-09-13 16:08:04.473318' AND (locked_at IS NULL OR locked_at < '2019-09-13 12:08:04.473330') OR locked_by = 'host:Sam-Moore-MBP13 pid:46133') AND failed_at IS NULL) ORDER BY priority ASC, run_at ASC LIMIT 1 FOR UPDATE) RETURNING *
2374
+  (0.1ms) ROLLBACK
2375
+  (0.1ms) BEGIN
2376
+  (0.1ms) ROLLBACK
2377
+  (0.1ms) BEGIN
2378
+  (0.1ms) ROLLBACK
2379
+  (0.1ms) BEGIN
2380
+  (0.3ms) ROLLBACK
2381
+  (0.1ms) BEGIN
2382
+  (0.1ms) ROLLBACK
2383
+  (0.2ms) BEGIN
2384
+  (0.1ms) ROLLBACK
2385
+  (0.1ms) BEGIN
2386
+  (0.1ms) ROLLBACK
2387
+  (0.1ms) BEGIN
2388
+  (0.2ms) ROLLBACK
2389
+  (0.1ms) BEGIN
2390
+  (0.1ms) ROLLBACK
2391
+  (0.1ms) BEGIN
2392
+  (0.2ms) ROLLBACK
2393
+  (0.1ms) BEGIN
2394
+  (0.1ms) ROLLBACK
2395
+  (0.1ms) BEGIN
2396
+  (0.1ms) ROLLBACK
2397
+  (0.1ms) BEGIN
2398
+  (0.2ms) ROLLBACK
2399
+  (0.1ms) BEGIN
2400
+  (0.3ms) SAVEPOINT active_record_1
2401
+ #<Class:0x00007f984dfb7a60> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.529164"], ["created_at", "2019-09-13 16:08:04.529206"], ["updated_at", "2019-09-13 16:08:04.529206"]]
2402
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2403
+ #<Class:0x00007f984dfb7a60> Destroy (0.6ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 4]]
2404
+  (0.2ms) ROLLBACK
2405
+  (0.1ms) BEGIN
2406
+  (0.2ms) SAVEPOINT active_record_1
2407
+ #<Class:0x00007f984ebea080> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.555858"], ["created_at", "2019-09-13 16:08:04.555895"], ["updated_at", "2019-09-13 16:08:04.555895"]]
2408
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"3277d88b-04bf-43fa-9a87-84919973801e\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.558Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"5\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.562411"], ["created_at", "2019-09-13 16:08:04.562444"], ["updated_at", "2019-09-13 16:08:04.562444"]]
2409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2410
+ #<Class:0x00007f984ebea080> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 5]]
2411
+  (0.2ms) ROLLBACK
2412
+  (0.1ms) BEGIN
2413
+  (0.3ms) SAVEPOINT active_record_1
2414
+ #<Class:0x00007f984e57c590> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.579633"], ["created_at", "2019-09-13 16:08:04.579688"], ["updated_at", "2019-09-13 16:08:04.579688"]]
2415
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"b9b84453-7493-4e7a-aed4-c26a0240f95f\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.583Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"7\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.585117"], ["created_at", "2019-09-13 16:08:04.585152"], ["updated_at", "2019-09-13 16:08:04.585152"]]
2416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2417
+  (0.1ms) ROLLBACK
2418
+  (0.1ms) BEGIN
2419
+  (0.3ms) SAVEPOINT active_record_1
2420
+ #<Class:0x00007f984e587580> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.598271"], ["created_at", "2019-09-13 16:08:04.598310"], ["updated_at", "2019-09-13 16:08:04.598310"]]
2421
+ Delayed::Backend::ActiveRecord::Job Create (0.4ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"53d8c08d-077d-4892-a225-3a3fd1e1fc75\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.602Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"9\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.623125"], ["created_at", "2019-09-13 16:08:04.623162"], ["updated_at", "2019-09-13 16:08:04.623162"]]
2422
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2423
+ #<Class:0x00007f984e587580> Update (0.3ms) UPDATE "delayed_jobs" SET "locked_at" = $1 WHERE "delayed_jobs"."id" = $2 [["locked_at", nil], ["id", 9]]
2424
+  (0.2ms) ROLLBACK
2425
+  (0.2ms) BEGIN
2426
+  (0.2ms) SAVEPOINT active_record_1
2427
+ #<Class:0x00007f984e35d2c8> Create (0.3ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.638487"], ["created_at", "2019-09-13 16:08:04.638522"], ["updated_at", "2019-09-13 16:08:04.638522"]]
2428
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"9e974ebc-7f48-438e-a743-00fafe6fff16\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.640Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"11\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.642295"], ["created_at", "2019-09-13 16:08:04.642319"], ["updated_at", "2019-09-13 16:08:04.642319"]]
2429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2430
+ #<Class:0x00007f984e35d2c8> Update (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 WHERE "delayed_jobs"."id" = $2 [["handler", ""], ["id", 11]]
2431
+  (0.1ms) ROLLBACK
2432
+  (0.1ms) BEGIN
2433
+  (0.2ms) SAVEPOINT active_record_1
2434
+ #<Class:0x00007f984dd0b0f0> Create (0.2ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/module 'TestJob'\n"], ["run_at", "2019-09-13 16:08:04.656927"], ["created_at", "2019-09-13 16:08:04.656963"], ["updated_at", "2019-09-13 16:08:04.656963"]]
2435
+ Delayed::Backend::ActiveRecord::Job Create (0.3ms) INSERT INTO "delayed_jobs" ("priority", "handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["priority", 20], ["handler", "--- !ruby/object:Journaled::Delivery\nserialized_event: '{\"id\":\"6280fd1a-693f-4929-8357-5a01ed7c70c2\",\"event_type\":\"journaled_change\",\"created_at\":\"2019-09-13T16:08:04.659Z\",\"table_name\":\"delayed_jobs\",\"record_id\":\"13\",\"database_operation\":\"create\",\"logical_operation\":\"attempt\",\"changes\":\"{\\\"locked_at\\\":null}\",\"actor\":\"gid://dummy\"}'\npartition_key: journaled_change\napp_name: \n"], ["run_at", "2019-09-13 16:08:04.660811"], ["created_at", "2019-09-13 16:08:04.660834"], ["updated_at", "2019-09-13 16:08:04.660834"]]
2436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2437
+  (0.1ms) ROLLBACK
2438
+  (0.1ms) BEGIN
2439
+  (0.2ms) ROLLBACK
2440
+  (0.1ms) BEGIN
2441
+ #<Class:0x00007f9851168f28> Update All (0.4ms) UPDATE "delayed_jobs" SET "locked_at" = $1 [["locked_at", nil]]
2442
+  (0.1ms) ROLLBACK
2443
+  (0.1ms) BEGIN
2444
+ #<Class:0x00007f984de0c490> Update All (0.3ms) UPDATE "delayed_jobs" SET last_error = 'locked_at'
2445
+  (0.1ms) ROLLBACK
2446
+  (0.1ms) BEGIN
2447
+ #<Class:0x00007f98511a00b8> Update All (0.3ms) UPDATE "delayed_jobs" SET "handler" = $1 [["handler", ""]]
2448
+  (0.2ms) ROLLBACK
2449
+  (0.1ms) BEGIN
2450
+ #<Class:0x00007f98511f22a0> Destroy (0.3ms) DELETE FROM "delayed_jobs"
2451
+  (0.1ms) ROLLBACK
2452
+  (0.1ms) BEGIN
2453
+ #<Class:0x00007f985122a358> Destroy (0.3ms) DELETE FROM "delayed_jobs"
2454
+  (0.1ms) ROLLBACK
2455
+  (0.1ms) BEGIN
2456
+  (0.2ms) ROLLBACK
2457
+  (0.2ms) BEGIN
2458
+  (0.2ms) ROLLBACK
2459
+  (0.1ms) BEGIN
2460
+ #<Class:0x00007f985127abf0> Destroy (0.4ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
2461
+  (0.2ms) ROLLBACK
2462
+  (0.1ms) BEGIN
2463
+ #<Class:0x00007f98512a5bc0> Destroy (0.3ms) DELETE FROM "delayed_jobs" WHERE "delayed_jobs"."id" = $1 [["id", 1]]
2464
+  (0.1ms) ROLLBACK
2465
+  (0.1ms) BEGIN
2466
+  (0.2ms) ROLLBACK
2467
+  (0.1ms) BEGIN
2468
+  (0.2ms) ROLLBACK
2469
+  (0.1ms) BEGIN
2470
+  (0.1ms) ROLLBACK
2471
+  (0.1ms) BEGIN
2472
+  (0.2ms) ROLLBACK
2473
+  (0.1ms) BEGIN
2474
+  (0.2ms) ROLLBACK
2475
+  (0.1ms) BEGIN
2476
+  (0.1ms) ROLLBACK
2477
+  (0.1ms) BEGIN
2478
+  (0.1ms) ROLLBACK
2479
+  (0.1ms) BEGIN
2480
+  (0.2ms) ROLLBACK
2481
+  (0.1ms) BEGIN
2482
+  (0.1ms) ROLLBACK
@@ -3,49 +3,50 @@ require 'rails_helper'
3
3
  RSpec.describe Journaled do
4
4
  it "is enabled in production" do
5
5
  allow(Rails).to receive(:env).and_return("production")
6
- expect(Journaled).to be_enabled
6
+ expect(described_class).to be_enabled
7
7
  end
8
8
 
9
9
  it "is disabled in development" do
10
10
  allow(Rails).to receive(:env).and_return("development")
11
- expect(Journaled).not_to be_enabled
11
+ expect(described_class).not_to be_enabled
12
12
  end
13
13
 
14
14
  it "is disabled in test" do
15
15
  allow(Rails).to receive(:env).and_return("test")
16
- expect(Journaled).not_to be_enabled
16
+ expect(described_class).not_to be_enabled
17
17
  end
18
18
 
19
19
  it "is enabled in whatevs" do
20
20
  allow(Rails).to receive(:env).and_return("whatevs")
21
- expect(Journaled).to be_enabled
21
+ expect(described_class).to be_enabled
22
22
  end
23
23
 
24
24
  it "is enabled when explicitly enabled in development" do
25
25
  with_env(JOURNALED_ENABLED: true) do
26
26
  allow(Rails).to receive(:env).and_return("development")
27
- expect(Journaled).to be_enabled
27
+ expect(described_class).to be_enabled
28
28
  end
29
29
  end
30
30
 
31
31
  it "is disabled when explicitly disabled in production" do
32
32
  with_env(JOURNALED_ENABLED: false) do
33
33
  allow(Rails).to receive(:env).and_return("production")
34
- expect(Journaled).not_to be_enabled
34
+ expect(described_class).not_to be_enabled
35
35
  end
36
36
  end
37
37
 
38
38
  it "is disabled when explicitly disabled with empty string" do
39
39
  with_env(JOURNALED_ENABLED: '') do
40
40
  allow(Rails).to receive(:env).and_return("production")
41
- expect(Journaled).not_to be_enabled
41
+ expect(described_class).not_to be_enabled
42
42
  end
43
43
  end
44
44
 
45
45
  describe "#actor_uri" do
46
46
  it "delegates to ActorUriProvider" do
47
- allow(Journaled::ActorUriProvider).to receive(:instance).and_return(double(actor_uri: "my actor uri"))
48
- expect(Journaled.actor_uri).to eq "my actor uri"
47
+ allow(Journaled::ActorUriProvider).to receive(:instance)
48
+ .and_return(instance_double(Journaled::ActorUriProvider, actor_uri: "my actor uri"))
49
+ expect(described_class.actor_uri).to eq "my actor uri"
49
50
  end
50
51
  end
51
52
  end
@@ -17,6 +17,7 @@ RSpec.describe Journaled::Changes do
17
17
  def self.after_save(opts, &hook)
18
18
  # This is a back-door assertion to prevent regressions in the module's hook definition behavior
19
19
  raise "expected `unless: :saved_change_to_id?`" unless opts[:unless] == :saved_change_to_id?
20
+
20
21
  after_save_hooks << hook
21
22
  end
22
23
 
@@ -11,12 +11,12 @@ RSpec.describe Journaled::ChangeWriter do
11
11
  "name" => "bob",
12
12
  "rank" => "first lieutenant",
13
13
  "serial_number" => "foobar",
14
- "last_sign_in_at" => now
14
+ "last_sign_in_at" => now,
15
15
  },
16
16
  saved_changes: {
17
17
  "name" => %w(bill bob),
18
- "last_sign_in_at" => now
19
- }
18
+ "last_sign_in_at" => now,
19
+ },
20
20
  )
21
21
  end
22
22
 
@@ -24,21 +24,21 @@ RSpec.describe Journaled::ChangeWriter do
24
24
  double(
25
25
  "SoldierClass",
26
26
  table_name: "soldiers",
27
- attribute_names: %w(id name rank serial_number last_sign_in_at)
27
+ attribute_names: %w(id name rank serial_number last_sign_in_at),
28
28
  )
29
29
  end
30
30
 
31
31
  let(:change_definition) do
32
32
  Journaled::ChangeDefinition.new(
33
33
  attribute_names: %i(name rank serial_number),
34
- logical_operation: "identity_change"
34
+ logical_operation: "identity_change",
35
35
  )
36
36
  end
37
37
 
38
38
  let(:faulty_change_definition) do
39
39
  Journaled::ChangeDefinition.new(
40
40
  attribute_names: %i(name rank serial_number nonexistent_thingie),
41
- logical_operation: "identity_change"
41
+ logical_operation: "identity_change",
42
42
  )
43
43
  end
44
44
 
@@ -58,9 +58,9 @@ RSpec.describe Journaled::ChangeWriter do
58
58
  "name" => "bill",
59
59
  "rank" => "first lieutenant",
60
60
  "serial_number" => "foobar",
61
- "last_sign_in_at" => Time.zone.now
61
+ "last_sign_in_at" => Time.zone.now,
62
62
  },
63
- saved_changes: {}
63
+ saved_changes: {},
64
64
  )
65
65
  end
66
66
 
@@ -68,7 +68,7 @@ RSpec.describe Journaled::ChangeWriter do
68
68
  expect(subject.relevant_attributes).to eq(
69
69
  "name" => "bill",
70
70
  "rank" => "first lieutenant",
71
- "serial_number" => "foobar"
71
+ "serial_number" => "foobar",
72
72
  )
73
73
  end
74
74
  end
@@ -83,11 +83,11 @@ RSpec.describe Journaled::ChangeWriter do
83
83
  "name" => "bill",
84
84
  "rank" => "first lieutenant",
85
85
  "serial_number" => "foobar",
86
- "last_sign_in_at" => Time.zone.now
86
+ "last_sign_in_at" => Time.zone.now,
87
87
  },
88
88
  changes: {
89
- "name" => %w(bob bill)
90
- }
89
+ "name" => %w(bob bill),
90
+ },
91
91
  )
92
92
  end
93
93
 
@@ -95,7 +95,7 @@ RSpec.describe Journaled::ChangeWriter do
95
95
  expect(subject.relevant_unperturbed_attributes).to eq(
96
96
  "name" => "bob",
97
97
  "rank" => "first lieutenant",
98
- "serial_number" => "foobar"
98
+ "serial_number" => "foobar",
99
99
  )
100
100
  end
101
101
  end
@@ -180,9 +180,9 @@ RSpec.describe Journaled::ChangeWriter do
180
180
  "name" => "bill",
181
181
  "rank" => "first lieutenant",
182
182
  "serial_number" => "foobar",
183
- "last_sign_in_at" => Time.zone.now
183
+ "last_sign_in_at" => Time.zone.now,
184
184
  },
185
- saved_changes: {}
185
+ saved_changes: {},
186
186
  )
187
187
  end
188
188
 
@@ -222,9 +222,9 @@ RSpec.describe Journaled::ChangeWriter do
222
222
  "name" => "bill",
223
223
  "rank" => "first lieutenant",
224
224
  "serial_number" => "foobar",
225
- "last_sign_in_at" => Time.zone.now
225
+ "last_sign_in_at" => Time.zone.now,
226
226
  },
227
- saved_changes: {}
227
+ saved_changes: {},
228
228
  )
229
229
  end
230
230
 
@@ -248,11 +248,11 @@ RSpec.describe Journaled::ChangeWriter do
248
248
  "name" => "bob",
249
249
  "rank" => "first lieutenant",
250
250
  "serial_number" => "foobar",
251
- "last_sign_in_at" => now
251
+ "last_sign_in_at" => now,
252
252
  },
253
253
  changes: {
254
- "name" => %w(bill bob)
255
- }
254
+ "name" => %w(bill bob),
255
+ },
256
256
  )
257
257
  end
258
258
 
@@ -261,7 +261,7 @@ RSpec.describe Journaled::ChangeWriter do
261
261
  expect(JSON.parse(opts[:changes])).to eq(
262
262
  "name" => "bill",
263
263
  "rank" => "first lieutenant",
264
- "serial_number" => "foobar"
264
+ "serial_number" => "foobar",
265
265
  )
266
266
  journaled_change
267
267
  end
@@ -47,14 +47,14 @@ RSpec.describe Journaled::Delivery do
47
47
  {
48
48
  assumed_role_user: {
49
49
  arn: 'iam-role-arn-for-assuming-kinesis-access',
50
- assumed_role_id: "ARO123EXAMPLE123:Bob"
50
+ assumed_role_id: "ARO123EXAMPLE123:Bob",
51
51
  },
52
52
  credentials: {
53
53
  access_key_id: "AKIAIOSFODNN7EXAMPLE",
54
54
  secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
55
55
  session_token: "EXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI",
56
- expiration: Time.zone.parse("2011-07-15T23:28:33.359Z")
57
- }
56
+ expiration: Time.zone.parse("2011-07-15T23:28:33.359Z"),
57
+ },
58
58
  }
59
59
  end
60
60
 
@@ -64,7 +64,7 @@ RSpec.describe Journaled::Delivery do
64
64
  expect(Aws::AssumeRoleCredentials).to have_received(:new).with(
65
65
  client: aws_sts_client,
66
66
  role_arn: "iam-role-arn-for-assuming-kinesis-access",
67
- role_session_name: "JournaledAssumeRoleAccess"
67
+ role_session_name: "JournaledAssumeRoleAccess",
68
68
  )
69
69
  end
70
70
  end
@@ -127,7 +127,7 @@ RSpec.describe Journaled::Delivery do
127
127
 
128
128
  it 'catches the error and re-raises a subclass of NotTrulyExceptionalError and logs about the failure' do
129
129
  expect(Rails.logger).to receive(:error).with(
130
- "Kinesis Error - Networking Error occurred - Seahorse::Client::NetworkingError"
130
+ "Kinesis Error - Networking Error occurred - Seahorse::Client::NetworkingError",
131
131
  ).once
132
132
  expect { subject.perform }.to raise_error described_class::KinesisTemporaryFailure
133
133
  end
@@ -145,7 +145,7 @@ RSpec.describe Journaled::Event do
145
145
  created_at: frozen_time,
146
146
  event_type: 'some_class_name',
147
147
  foo: 'foo_return',
148
- bar: 'bar_return'
148
+ bar: 'bar_return',
149
149
  )
150
150
  end
151
151
  end
@@ -12,7 +12,7 @@ RSpec.describe Journaled::JsonSchemaModel::Validator do
12
12
  some_time: Time.zone.parse('2017-01-20 15:16:17 -05:00'),
13
13
  some_int: some_int_value,
14
14
  some_optional_string: some_optional_string_value,
15
- some_nullable_field: some_nullable_field
15
+ some_nullable_field: some_nullable_field,
16
16
  }
17
17
  end
18
18
  let(:some_int_value) { 3 }
@@ -77,7 +77,7 @@ RSpec.describe Journaled::JsonSchemaModel::Validator do
77
77
  some_decimal: 0.1.to_d,
78
78
  some_time: Time.zone.parse('2017-01-20 15:16:17 -05:00'),
79
79
  some_int: some_int_value,
80
- some_nullable_field: some_nullable_field
80
+ some_nullable_field: some_nullable_field,
81
81
  }
82
82
  end
83
83
 
@@ -108,7 +108,7 @@ RSpec.describe Journaled::JsonSchemaModel::Validator do
108
108
  {
109
109
  some_string: some_string_value,
110
110
  some_decimal: 0.1.to_d,
111
- some_time: Time.zone.parse('2017-01-20 15:16:17 -05:00')
111
+ some_time: Time.zone.parse('2017-01-20 15:16:17 -05:00'),
112
112
  }
113
113
  end
114
114
 
@@ -18,7 +18,7 @@ RSpec.describe Journaled::Writer do
18
18
  journaled_schema_name: nil,
19
19
  journaled_attributes: {},
20
20
  journaled_partition_key: '',
21
- journaled_app_name: nil
21
+ journaled_app_name: nil,
22
22
  )
23
23
  end
24
24
 
@@ -33,12 +33,12 @@ RSpec.describe Journaled::Writer do
33
33
  journaled_schema_name: :fake_schema_name,
34
34
  journaled_attributes: { foo: :bar },
35
35
  journaled_partition_key: 'fake_partition_key',
36
- journaled_app_name: nil
36
+ journaled_app_name: nil,
37
37
  )
38
38
  end
39
39
 
40
40
  it 'does not raise on initialization' do
41
- expect { subject }.to_not raise_error
41
+ expect { subject }.not_to raise_error
42
42
  end
43
43
  end
44
44
  end
@@ -72,7 +72,7 @@ RSpec.describe Journaled::Writer do
72
72
  journaled_schema_name: :fake_schema_name,
73
73
  journaled_attributes: journaled_event_attributes,
74
74
  journaled_partition_key: 'fake_partition_key',
75
- journaled_app_name: 'my_app'
75
+ journaled_app_name: 'my_app',
76
76
  )
77
77
  end
78
78
 
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: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Lipson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-09-10 00:00:00.000000000 Z
14
+ date: 2019-09-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: aws-sdk-resources
@@ -59,16 +59,22 @@ dependencies:
59
59
  name: rails
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - "~>"
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '5.1'
65
+ - - "<"
66
+ - !ruby/object:Gem::Version
67
+ version: '7.0'
65
68
  type: :runtime
66
69
  prerelease: false
67
70
  version_requirements: !ruby/object:Gem::Requirement
68
71
  requirements:
69
- - - "~>"
72
+ - - ">="
70
73
  - !ruby/object:Gem::Version
71
74
  version: '5.1'
75
+ - - "<"
76
+ - !ruby/object:Gem::Version
77
+ version: '7.0'
72
78
  - !ruby/object:Gem::Dependency
73
79
  name: request_store
74
80
  requirement: !ruby/object:Gem::Requirement
@@ -83,6 +89,20 @@ dependencies:
83
89
  - - ">="
84
90
  - !ruby/object:Gem::Version
85
91
  version: '0'
92
+ - !ruby/object:Gem::Dependency
93
+ name: appraisal
94
+ requirement: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: 2.2.0
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: 2.2.0
86
106
  - !ruby/object:Gem::Dependency
87
107
  name: delayed_job_active_record
88
108
  requirement: !ruby/object:Gem::Requirement
@@ -157,16 +177,16 @@ dependencies:
157
177
  name: rubocop-betterment
158
178
  requirement: !ruby/object:Gem::Requirement
159
179
  requirements:
160
- - - '='
180
+ - - "~>"
161
181
  - !ruby/object:Gem::Version
162
- version: 1.3.0
182
+ version: '1.3'
163
183
  type: :development
164
184
  prerelease: false
165
185
  version_requirements: !ruby/object:Gem::Requirement
166
186
  requirements:
167
- - - '='
187
+ - - "~>"
168
188
  - !ruby/object:Gem::Version
169
- version: 1.3.0
189
+ version: '1.3'
170
190
  - !ruby/object:Gem::Dependency
171
191
  name: spring
172
192
  requirement: !ruby/object:Gem::Requirement