asyncapi-server 1.3.0 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/manifest.js +3 -0
- data/app/controllers/asyncapi/server/v1/jobs_controller.rb +1 -0
- data/app/controllers/concerns/active_model_serializers_fix.rb +10 -0
- data/app/workers/asyncapi/server/job_status_notifier_worker.rb +2 -0
- data/app/workers/asyncapi/server/job_worker.rb +1 -1
- data/lib/asyncapi/server/rails_ext/controller.rb +1 -1
- data/lib/asyncapi/server/version.rb +1 -1
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/controllers/tests_controller.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +10 -11
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +64 -66
- data/spec/dummy/log/test.log +682 -1930
- data/spec/models/job_spec.rb +1 -1
- data/spec/workers/job_status_notifier_worker_spec.rb +4 -0
- metadata +29 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90b537a8a3a04c315e5ed15d9e4e2c002279834c99329bfccc0d6c43e2746fb4
|
4
|
+
data.tar.gz: 81c7bb59a652e5ac439907b916c13ac0bf1782831d020835bcb130354404e8f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9991544c6ecf94cf62741bc1830d8282db8fc9a7301137bac4c1e77514b431c595b8799648501da595293ed0f9c2144902986366884c4337b816d186ee94810
|
7
|
+
data.tar.gz: 072d3710fa2243542cafc7623611abc2ce6fbc29c3f45cd48942151f52f3b1c395fd8dbc92276fa7ec72ce66f14f5d0f0b702df83254b3e1eac078997517a8a4
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module ActiveModelSerializersFix
|
2
|
+
def namespace_for_serializer
|
3
|
+
@namespace_for_serializer ||=
|
4
|
+
if Module.method_defined?(:parent)
|
5
|
+
self.class.parent unless self.class.parent == Object
|
6
|
+
else
|
7
|
+
self.class.module_parent unless self.class.module_parent == Object
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -1,24 +1,23 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
5
4
|
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
# from scratch.
|
10
|
-
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
11
10
|
#
|
12
11
|
# It's strongly recommended that you check this file into your version control system.
|
13
12
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2015_02_01_231018) do
|
15
14
|
|
16
15
|
create_table "asyncapi_server_jobs", force: :cascade do |t|
|
17
16
|
t.integer "status"
|
18
|
-
t.string
|
19
|
-
t.string
|
20
|
-
t.text
|
21
|
-
t.string
|
17
|
+
t.string "callback_url"
|
18
|
+
t.string "class_name"
|
19
|
+
t.text "params"
|
20
|
+
t.string "secret"
|
22
21
|
end
|
23
22
|
|
24
23
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,81 +1,79 @@
|
|
1
|
-
[1m[35m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[35m (
|
5
|
-
[1m[35m (
|
6
|
-
[1m[35m (
|
7
|
-
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
8
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
4
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
5
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
6
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
9
7
|
Migrating to CreateAsyncapiServerJobs (20141112034324)
|
10
|
-
[1m[36mTRANSACTION (0.
|
11
|
-
[1m[35m (0.
|
12
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.
|
13
|
-
[1m[36mTRANSACTION (0.
|
8
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
9
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "asyncapi_server_jobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text)[0m
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141112034324"]]
|
11
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[36mcommit transaction[0m
|
14
12
|
Migrating to AddSecretToAsyncapiServerJob (20141212064931)
|
15
|
-
[1m[36mTRANSACTION (0.
|
16
|
-
[1m[35m (0.
|
17
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.
|
18
|
-
[1m[36mTRANSACTION (
|
13
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
14
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "asyncapi_server_jobs" ADD "secret" varchar[0m
|
15
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141212064931"]]
|
16
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mcommit transaction[0m
|
19
17
|
Migrating to AddExpiredAtToAsyncapiServerJob (20150130062520)
|
20
|
-
[1m[36mTRANSACTION (0.
|
21
|
-
[1m[35m (0.
|
22
|
-
[1m[36mAsyncapi::Server::Job Update All (0.
|
23
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.
|
24
|
-
[1m[36mTRANSACTION (0.
|
18
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
19
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "asyncapi_server_jobs" ADD "expired_at" datetime[0m
|
20
|
+
[1m[36mAsyncapi::Server::Job Update All (0.0ms)[0m [1m[33mUPDATE "asyncapi_server_jobs" SET "expired_at" = ? WHERE "asyncapi_server_jobs"."expired_at" IS NULL[0m [["expired_at", "2022-03-31 17:20:18.167919"]]
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150130062520"]]
|
22
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mcommit transaction[0m
|
25
23
|
Migrating to DropExpiredAtFromAsyncapiServerJobs (20150201231018)
|
26
|
-
[1m[36mTRANSACTION (0.
|
27
|
-
[1m[35m (0.
|
28
|
-
[1m[35m (0.
|
29
|
-
[1m[35m (0.
|
30
|
-
[1m[35m (0.
|
31
|
-
[1m[35m (
|
32
|
-
[1m[35m (0.
|
24
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
25
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
26
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
27
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
28
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
29
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TEMPORARY TABLE "aasyncapi_server_jobs" ("id" integer NOT NULL PRIMARY KEY, "status" integer DEFAULT NULL, "callback_url" varchar DEFAULT NULL, "class_name" varchar DEFAULT NULL, "params" text DEFAULT NULL, "secret" varchar DEFAULT NULL, "expired_at" datetime DEFAULT NULL)[0m
|
30
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "aasyncapi_server_jobs" ("id","status","callback_url","class_name","params","secret","expired_at")
|
33
31
|
SELECT "id","status","callback_url","class_name","params","secret","expired_at" FROM "asyncapi_server_jobs"[0m
|
34
|
-
[1m[35m (0.
|
35
|
-
[1m[35m (0.
|
36
|
-
[1m[35m (0.
|
32
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE "asyncapi_server_jobs"[0m
|
33
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "asyncapi_server_jobs" ("id" integer NOT NULL PRIMARY KEY, "status" integer DEFAULT NULL, "callback_url" varchar DEFAULT NULL, "class_name" varchar DEFAULT NULL, "params" text DEFAULT NULL, "secret" varchar DEFAULT NULL)[0m
|
34
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "asyncapi_server_jobs" ("id","status","callback_url","class_name","params","secret")
|
37
35
|
SELECT "id","status","callback_url","class_name","params","secret" FROM "aasyncapi_server_jobs"[0m
|
38
|
-
[1m[35m (0.
|
36
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE "aasyncapi_server_jobs"[0m
|
39
37
|
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
40
38
|
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
41
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.
|
42
|
-
[1m[36mTRANSACTION (0.
|
43
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
44
|
-
[1m[36mTRANSACTION (0.
|
45
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.
|
46
|
-
[1m[36mTRANSACTION (0.
|
47
|
-
[1m[35m (0.
|
48
|
-
[1m[35m (0.
|
49
|
-
[1m[35m (
|
50
|
-
[1m[35m (0.
|
51
|
-
[1m[35m (0.
|
52
|
-
[1m[35m (0.
|
53
|
-
[1m[35m (0.
|
54
|
-
[1m[35m (0.
|
55
|
-
[1m[35m (0.
|
56
|
-
[1m[35m (0.
|
57
|
-
[1m[35m (0.
|
58
|
-
[1m[35m (0.
|
59
|
-
[1m[35m (
|
60
|
-
[1m[35m (
|
61
|
-
[1m[35m (0.
|
62
|
-
[1m[35m (
|
63
|
-
[1m[35m (
|
39
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150201231018"]]
|
40
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mcommit transaction[0m
|
41
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
42
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
43
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-03-21 17:20:18.173359"], ["updated_at", "2022-03-21 17:20:18.173359"]]
|
44
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mcommit transaction[0m
|
45
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
46
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
47
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
48
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
49
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
50
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
51
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
52
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
53
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
54
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
55
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
56
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "asyncapi_server_jobs"[0m
|
57
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "asyncapi_server_jobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "status" integer, "callback_url" varchar, "class_name" varchar, "params" text, "secret" varchar)[0m
|
58
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
59
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
60
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150201231018)[0m
|
61
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
64
62
|
(20141112034324),
|
65
63
|
(20141212064931),
|
66
64
|
(20150130062520);
|
67
65
|
|
68
66
|
[0m
|
69
|
-
[1m[35m (
|
70
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
71
|
-
[1m[36mTRANSACTION (0.
|
72
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.
|
73
|
-
[1m[36mTRANSACTION (0.
|
74
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
67
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
68
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
69
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
70
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-03-21 17:20:22.487005"], ["updated_at", "2022-03-21 17:20:22.487005"]]
|
71
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mcommit transaction[0m
|
72
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
75
73
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
76
|
-
[1m[36mActiveRecord::InternalMetadata Update (0.
|
77
|
-
[1m[36mTRANSACTION (0.
|
78
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
74
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2022-03-21 17:20:22.488003"], ["key", "environment"]]
|
75
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mcommit transaction[0m
|
76
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
79
77
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
80
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.
|
81
|
-
[1m[36mTRANSACTION (0.
|
78
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "schema_sha1"], ["value", "b156e6c6d273062fcb56e7a3782b664b02612fc5"], ["created_at", "2022-03-21 17:20:22.488753"], ["updated_at", "2022-03-21 17:20:22.488753"]]
|
79
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mcommit transaction[0m
|