hey_doctor 1.0.0 → 1.1.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: '0824d2e802a96ba8586c63f1ee7a193ca8675ce69b35d73f0dcdaeebf7c5e082'
4
- data.tar.gz: 567451703ce9ead34d72691ba51071e8c11e39c9086d5cf9cec63b5e04feca38
3
+ metadata.gz: 2a102f67991958c684b623cef9a2ac28002eeb70e0381fb5fef8e84fed207403
4
+ data.tar.gz: 223c6fb603fad3cdf77c3df0eb6de6a3d4d4e7c6ba998a4ed051a94e92cc6c08
5
5
  SHA512:
6
- metadata.gz: f5add1a4598b39cc55c0f5b50855e1089caf5e3f5728a08988a75e98b0e4cf1fa1a98a4eeb43e286cf1234cd818ea33f0e91c8e6aed596d6cbf52dd84a4b91c9
7
- data.tar.gz: f022c57f63cfa656aea89af82e0d85d8c57349634c73fd45a9f4c109a520774159d1f92b0d26c39ac24e414a9aeb2c990bddd317d313685457c08257691069b2
6
+ metadata.gz: 2801c7138b18fd7d33ced080d377e0f48569841add438d89a4e09a978deba18a20bc26ff91ab233dc9275b5ba0b7516e1e605228682f059e85cfe6b6db0ed364
7
+ data.tar.gz: 5f05346c87ed3b7adb26ead700438d07c5337a77ba605d6c1e033a3f8085fec75213e351b857a03f38f9b86511d1c482fef903527f94d0ad1cb53955b65d6a92
data/README.md CHANGED
@@ -29,7 +29,7 @@ After installing this gem it will mount a endpoint in `/_ah/health`, this will b
29
29
 
30
30
  ## Installation
31
31
 
32
- If you have a redis instance in you application add the following initializer to create a `Redis.current`, so it don't need to use global vars, or create a new connection each request:
32
+ * If you have a redis instance in you application add the following initializer to create a `Redis.current`, so it don't need to use global vars, or create a new connection each request:
33
33
 
34
34
  ```ruby
35
35
  # config/initializers/redis.rb
@@ -37,18 +37,21 @@ If you have a redis instance in you application add the following initializer to
37
37
  Redis.current ||= Redis.new(url: ENV['REDIS_URL'])
38
38
  ```
39
39
 
40
- Add this line to your application's Gemfile:
40
+ * Add a env var `RAILS_PORT` with the current application port.
41
+
42
+ * Add this line to your application's Gemfile:
41
43
 
42
44
  ```ruby
43
45
  gem 'hey_doctor'
44
46
  ```
45
47
 
46
- And then execute:
48
+ * And then execute:
49
+
47
50
  ```bash
48
51
  bundle install
49
52
  ```
50
53
 
51
- After installing the gem just mount the HealthCheck endpoint inside config.ru:
54
+ * After installing the gem, mount the HealthCheck endpoint inside config.ru:
52
55
 
53
56
  ```ruby
54
57
  # config.ru
@@ -63,6 +66,16 @@ end
63
66
  ...
64
67
  ```
65
68
 
69
+ * The last step is to mount the engine into your application, so if the application is down the middleware will notice:
70
+
71
+ ```ruby
72
+ Rails.application.routes.draw do
73
+ mount HeyDoctor::Engine, at: '/_ah/app_health'
74
+
75
+ ...
76
+ end
77
+ ```
78
+
66
79
  ## Developing
67
80
 
68
81
  ```bash
@@ -70,7 +83,7 @@ docker-compose build && docker-compose up
70
83
 
71
84
  docker-compose exec web bash
72
85
 
73
- rails db:setup
86
+ bundle exec rake db:setup
74
87
 
75
88
  rubocop -A && rspec
76
89
  ```
@@ -1,5 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ if Rails.version.to_f > 5.0
4
+ require 'rails/commands/server/server_command'
5
+ else
6
+ require 'rails/commands/server'
7
+ end
8
+
3
9
  class HeyDoctor::CheckApplicationHealthService
4
10
  class << self
5
11
  SUCCESS = {
@@ -21,9 +27,15 @@ class HeyDoctor::CheckApplicationHealthService
21
27
  private
22
28
 
23
29
  def responding?
24
- Net::HTTP.start('localhost', 8000) { |http| http.head('/') }.code == '200'
30
+ app_http_code == '200'
25
31
  rescue StandardError
26
32
  false
27
33
  end
34
+
35
+ def app_http_code
36
+ Net::HTTP.start('localhost', ENV['RAILS_PORT']) do |http|
37
+ http.head('/_ah/app_health')
38
+ end.code
39
+ end
28
40
  end
29
41
  end
@@ -0,0 +1,3 @@
1
+ HeyDoctor::Engine.routes.draw do
2
+ get '/', to: proc { [200, {}, ['']] }
3
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HeyDoctor
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
@@ -1,3 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- root to: 'home#index'
2
+ mount HeyDoctor::Engine, at: '/_ah/app_health'
3
3
  end
@@ -1691,3 +1691,353 @@ Completed 200 OK in 46ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 4356
1691
1691
  ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 13:37:38.917669"], ["updated_at", "2021-01-22 13:37:38.917669"]]
1692
1692
  TRANSACTION (1.0ms) COMMIT
1693
1693
   (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1694
+  (52.9ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1695
+  (67.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1696
+  (56.6ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1697
+  (67.3ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1698
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1699
+  (5.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1700
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1701
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1702
+  (4.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1703
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1704
+ TRANSACTION (0.2ms) BEGIN
1705
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:17:52.561425"], ["updated_at", "2021-01-22 14:17:52.561425"]]
1706
+ TRANSACTION (0.6ms) COMMIT
1707
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1708
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1709
+ TRANSACTION (0.2ms) BEGIN
1710
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:17:52.574141"], ["updated_at", "2021-01-22 14:17:52.574141"]]
1711
+ TRANSACTION (0.6ms) COMMIT
1712
+  (65.1ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1713
+  (0.4ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1714
+  (74.3ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1715
+  (59.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1716
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1717
+  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1718
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1719
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1720
+  (4.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1721
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1722
+ TRANSACTION (0.3ms) BEGIN
1723
+ ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:22:31.161959"], ["updated_at", "2021-01-22 14:22:31.161959"]]
1724
+ TRANSACTION (0.7ms) COMMIT
1725
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1726
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1727
+ TRANSACTION (0.5ms) BEGIN
1728
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:22:31.175966"], ["updated_at", "2021-01-22 14:22:31.175966"]]
1729
+ TRANSACTION (0.7ms) COMMIT
1730
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1731
+  (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1732
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1733
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1734
+  (3.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1735
+ 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]]
1736
+ TRANSACTION (0.2ms) BEGIN
1737
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:22:31.229712"], ["updated_at", "2021-01-22 14:22:31.229712"]]
1738
+ TRANSACTION (0.7ms) COMMIT
1739
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1740
+ TRANSACTION (0.2ms) BEGIN
1741
+ ActiveRecord::InternalMetadata Update (0.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-01-22 14:22:31.238502"], ["key", "environment"]]
1742
+ TRANSACTION (0.8ms) COMMIT
1743
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1744
+ TRANSACTION (0.3ms) BEGIN
1745
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:22:31.249611"], ["updated_at", "2021-01-22 14:22:31.249611"]]
1746
+ TRANSACTION (0.7ms) COMMIT
1747
+  (64.9ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1748
+  (71.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1749
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1750
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1751
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1752
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1753
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1754
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1755
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1756
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1757
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1758
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1759
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1760
+  (3.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1761
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1762
+ TRANSACTION (0.2ms) BEGIN
1763
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:23:13.405700"], ["updated_at", "2021-01-22 14:23:13.405700"]]
1764
+ TRANSACTION (0.8ms) COMMIT
1765
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1766
+ TRANSACTION (0.2ms) BEGIN
1767
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-01-22 14:23:13.415663"], ["key", "environment"]]
1768
+ TRANSACTION (0.6ms) COMMIT
1769
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1770
+ TRANSACTION (0.2ms) BEGIN
1771
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:23:13.423517"], ["updated_at", "2021-01-22 14:23:13.423517"]]
1772
+ TRANSACTION (0.7ms) COMMIT
1773
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1774
+  (3.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1775
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1776
+  (78.5ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1777
+  (73.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1778
+ SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1779
+  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1780
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1781
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1782
+  (4.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1783
+ 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]]
1784
+ TRANSACTION (0.5ms) BEGIN
1785
+ ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:38:42.464052"], ["updated_at", "2021-01-22 14:38:42.464052"]]
1786
+ TRANSACTION (0.6ms) COMMIT
1787
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1788
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1789
+ TRANSACTION (0.3ms) BEGIN
1790
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:38:42.480810"], ["updated_at", "2021-01-22 14:38:42.480810"]]
1791
+ TRANSACTION (0.7ms) COMMIT
1792
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1793
+  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1794
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1795
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1796
+  (4.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1797
+ 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]]
1798
+ TRANSACTION (0.3ms) BEGIN
1799
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:38:42.545021"], ["updated_at", "2021-01-22 14:38:42.545021"]]
1800
+ TRANSACTION (0.9ms) COMMIT
1801
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1802
+ TRANSACTION (0.2ms) BEGIN
1803
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-01-22 14:38:42.554331"], ["key", "environment"]]
1804
+ TRANSACTION (0.6ms) COMMIT
1805
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1806
+ TRANSACTION (0.2ms) BEGIN
1807
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:38:42.563635"], ["updated_at", "2021-01-22 14:38:42.563635"]]
1808
+ TRANSACTION (0.7ms) COMMIT
1809
+  (59.9ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1810
+  (63.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1811
+  (111.8ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1812
+  (75.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1813
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1814
+  (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1815
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1816
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1817
+  (3.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1818
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1819
+ TRANSACTION (0.3ms) BEGIN
1820
+ ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:47:23.945882"], ["updated_at", "2021-01-22 14:47:23.945882"]]
1821
+ TRANSACTION (0.9ms) COMMIT
1822
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1823
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1824
+ TRANSACTION (0.4ms) BEGIN
1825
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:47:23.961969"], ["updated_at", "2021-01-22 14:47:23.961969"]]
1826
+ TRANSACTION (0.7ms) COMMIT
1827
+  (62.4ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1828
+  (71.4ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1829
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1830
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1831
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1832
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1833
+  (3.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1834
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1835
+ TRANSACTION (0.3ms) BEGIN
1836
+ ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:47:53.259141"], ["updated_at", "2021-01-22 14:47:53.259141"]]
1837
+ TRANSACTION (0.7ms) COMMIT
1838
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1839
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1840
+ TRANSACTION (0.2ms) BEGIN
1841
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:47:53.272918"], ["updated_at", "2021-01-22 14:47:53.272918"]]
1842
+ TRANSACTION (0.6ms) COMMIT
1843
+  (0.7ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1844
+  (87.2ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1845
+  (0.2ms) select 1
1846
+  (0.3ms) select 1
1847
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 14:49:11 +0000
1848
+
1849
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
1850
+
1851
+  (1.1ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1852
+  (63.7ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1853
+ SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1854
+  (27.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1855
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1856
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1857
+  (3.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1858
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1859
+ TRANSACTION (0.3ms) BEGIN
1860
+ ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:49:32.641378"], ["updated_at", "2021-01-22 14:49:32.641378"]]
1861
+ TRANSACTION (0.8ms) COMMIT
1862
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1863
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1864
+ TRANSACTION (0.4ms) BEGIN
1865
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:49:32.656370"], ["updated_at", "2021-01-22 14:49:32.656370"]]
1866
+ TRANSACTION (0.6ms) COMMIT
1867
+  (0.3ms) select 1
1868
+  (0.7ms) select 1
1869
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 14:49:43 +0000
1870
+
1871
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
1872
+
1873
+  (0.4ms) select 1
1874
+  (0.5ms) select 1
1875
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 14:49:45 +0000
1876
+
1877
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
1878
+
1879
+  (0.7ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1880
+  (98.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1881
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1882
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1883
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1884
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1885
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1886
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1887
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1888
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1889
+  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1890
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1891
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1892
+  (3.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1893
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1894
+ TRANSACTION (0.3ms) BEGIN
1895
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:49:58.303733"], ["updated_at", "2021-01-22 14:49:58.303733"]]
1896
+ TRANSACTION (0.6ms) COMMIT
1897
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1898
+ TRANSACTION (0.2ms) BEGIN
1899
+ ActiveRecord::InternalMetadata Update (0.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-01-22 14:49:58.311874"], ["key", "environment"]]
1900
+ TRANSACTION (0.6ms) COMMIT
1901
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1902
+ TRANSACTION (0.3ms) BEGIN
1903
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:49:58.320774"], ["updated_at", "2021-01-22 14:49:58.320774"]]
1904
+ TRANSACTION (0.6ms) COMMIT
1905
+  (0.5ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1906
+  (0.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1907
+  (89.1ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1908
+  (0.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1909
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1910
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1911
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1912
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1913
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1914
+ 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]]
1915
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1916
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1917
+  (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1918
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1919
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (0)
1920
+  (2.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1921
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1922
+ TRANSACTION (0.2ms) BEGIN
1923
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-01-22 14:50:22.342475"], ["updated_at", "2021-01-22 14:50:22.342475"]]
1924
+ TRANSACTION (0.6ms) COMMIT
1925
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1926
+ TRANSACTION (0.2ms) BEGIN
1927
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-01-22 14:50:22.351308"], ["key", "environment"]]
1928
+ TRANSACTION (0.7ms) COMMIT
1929
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1930
+ TRANSACTION (0.2ms) BEGIN
1931
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "c9ad1dbaa05acea2eb44861d1fdc691e622f5dd5"], ["created_at", "2021-01-22 14:50:22.360624"], ["updated_at", "2021-01-22 14:50:22.360624"]]
1932
+ TRANSACTION (0.7ms) COMMIT
1933
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1934
+  (0.5ms) select 1
1935
+  (0.8ms) select 1
1936
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 14:50:26 +0000
1937
+
1938
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
1939
+
1940
+  (0.3ms) select 1
1941
+  (0.5ms) select 1
1942
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 14:50:28 +0000
1943
+
1944
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
1945
+
1946
+  (0.3ms) select 1
1947
+  (0.5ms) select 1
1948
+  (0.5ms) select 1
1949
+  (0.4ms) select 1
1950
+  (0.4ms) select 1
1951
+  (0.3ms) select 1
1952
+  (0.6ms) select 1
1953
+  (0.6ms) select 1
1954
+  (110.4ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1955
+  (1.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1956
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1957
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1958
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1959
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1960
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1961
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1962
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1963
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1964
+ TRANSACTION (0.2ms) BEGIN
1965
+ ActiveRecord::InternalMetadata Update (0.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2021-01-22 14:54:20.479169"], ["key", "environment"]]
1966
+ TRANSACTION (1.1ms) COMMIT
1967
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1968
+ TRANSACTION (0.2ms) BEGIN
1969
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-01-22 14:54:20.488708"], ["key", "environment"]]
1970
+ TRANSACTION (0.7ms) COMMIT
1971
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1972
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1973
+  (0.2ms) select 1
1974
+  (0.3ms) select 1
1975
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1976
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 15:02:18 +0000
1977
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1978
+
1979
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
1980
+
1981
+  (70.5ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1982
+  (0.5ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1983
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1984
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1985
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1986
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1987
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1988
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1989
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1990
+  (0.7ms) CREATE DATABASE "dummy_development" ENCODING = 'unicode'
1991
+  (1.0ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
1992
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1993
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1994
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1995
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1996
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1997
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1998
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
1999
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2000
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2001
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2002
+ TRANSACTION (0.2ms) BEGIN
2003
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2021-01-22 15:02:39.693411"], ["key", "environment"]]
2004
+ TRANSACTION (1.3ms) COMMIT
2005
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2006
+ TRANSACTION (0.2ms) BEGIN
2007
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-01-22 15:02:39.702484"], ["key", "environment"]]
2008
+ TRANSACTION (0.6ms) COMMIT
2009
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
2010
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2011
+  (0.6ms) select 1
2012
+  (0.4ms) select 1
2013
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2014
+  (0.5ms) select 1
2015
+  (0.4ms) select 1
2016
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2017
+ Started HEAD "/_ah/app_health" for 127.0.0.1 at 2021-01-22 15:03:57 +0000
2018
+
2019
+ ActionController::RoutingError (No route matches [HEAD] "/_ah/app_health"):
2020
+
2021
+ Started GET "/_ah/app_health" for 172.19.0.1 at 2021-01-22 15:04:36 +0000
2022
+
2023
+ ActionController::RoutingError (No route matches [GET] "/_ah/app_health"):
2024
+
2025
+ Started HEAD "/_ah/app_health" for 127.0.0.1 at 2021-01-22 15:07:57 +0000
2026
+ Started HEAD "/_ah/app_health" for 127.0.0.1 at 2021-01-22 15:08:03 +0000
2027
+  (0.5ms) select 1
2028
+  (0.3ms) select 1
2029
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2030
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 15:08:03 +0000
2031
+
2032
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
2033
+
2034
+ Started GET "/_ah/app_health" for 172.19.0.1 at 2021-01-22 15:08:29 +0000
2035
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 15:08:29 +0000
2036
+
2037
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
2038
+
2039
+ Started GET "/_ah/app_health" for 172.19.0.1 at 2021-01-22 15:08:30 +0000
2040
+ Started GET "/favicon.ico" for 172.19.0.1 at 2021-01-22 15:08:30 +0000
2041
+
2042
+ ActionController::RoutingError (No route matches [GET] "/favicon.ico"):
2043
+
@@ -1256,3 +1256,35 @@ Started GET "/_ah/health" for 127.0.0.1 at 2021-01-21 20:26:00 +0000
1256
1256
  TRANSACTION (0.2ms) ROLLBACK
1257
1257
  TRANSACTION (0.2ms) BEGIN
1258
1258
  TRANSACTION (0.3ms) ROLLBACK
1259
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
1260
+ TRANSACTION (0.3ms) BEGIN
1261
+ TRANSACTION (0.3ms) ROLLBACK
1262
+ TRANSACTION (0.2ms) BEGIN
1263
+ TRANSACTION (0.2ms) ROLLBACK
1264
+ TRANSACTION (0.2ms) BEGIN
1265
+ TRANSACTION (0.2ms) ROLLBACK
1266
+ TRANSACTION (0.3ms) BEGIN
1267
+  (0.3ms) select 1
1268
+  (0.3ms) select 1
1269
+ TRANSACTION (0.2ms) ROLLBACK
1270
+ TRANSACTION (0.2ms) BEGIN
1271
+ TRANSACTION (0.2ms) ROLLBACK
1272
+ TRANSACTION (0.2ms) BEGIN
1273
+ TRANSACTION (0.2ms) ROLLBACK
1274
+ TRANSACTION (0.2ms) BEGIN
1275
+  (0.2ms) select 1
1276
+ TRANSACTION (0.3ms) ROLLBACK
1277
+ TRANSACTION (0.2ms) BEGIN
1278
+ TRANSACTION (0.3ms) ROLLBACK
1279
+ TRANSACTION (0.2ms) BEGIN
1280
+ TRANSACTION (0.3ms) ROLLBACK
1281
+ TRANSACTION (0.2ms) BEGIN
1282
+ TRANSACTION (0.2ms) ROLLBACK
1283
+ TRANSACTION (0.2ms) BEGIN
1284
+ TRANSACTION (0.3ms) ROLLBACK
1285
+ TRANSACTION (0.2ms) BEGIN
1286
+ TRANSACTION (0.2ms) ROLLBACK
1287
+ TRANSACTION (0.2ms) BEGIN
1288
+ TRANSACTION (0.3ms) ROLLBACK
1289
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
1290
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hey_doctor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matheus Acosta
8
8
  - Erick Nascimento
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2021-01-22 00:00:00.000000000 Z
@@ -109,6 +109,7 @@ files:
109
109
  - app/services/hey_doctor/check_application_health_service.rb
110
110
  - app/services/hey_doctor/check_database_health_service.rb
111
111
  - app/services/hey_doctor/check_redis_health_service.rb
112
+ - config/routes.rb
112
113
  - lib/hey_doctor.rb
113
114
  - lib/hey_doctor/engine.rb
114
115
  - lib/hey_doctor/version.rb
@@ -169,7 +170,7 @@ metadata:
169
170
  homepage_uri: https://github.com/deliverycenter/hey_doctor
170
171
  source_code_uri: https://github.com/deliverycenter/hey_doctor
171
172
  changelog_uri: https://github.com/deliverycenter/hey_doctor
172
- post_install_message:
173
+ post_install_message:
173
174
  rdoc_options: []
174
175
  require_paths:
175
176
  - lib
@@ -184,57 +185,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
185
  - !ruby/object:Gem::Version
185
186
  version: '0'
186
187
  requirements: []
187
- rubygems_version: 3.0.3
188
- signing_key:
188
+ rubygems_version: 3.0.9
189
+ signing_key:
189
190
  specification_version: 4
190
191
  summary: A health check gem implementation in ruby.
191
192
  test_files:
192
- - spec/dummy/Rakefile
193
- - spec/dummy/app/assets/config/manifest.js
194
- - spec/dummy/app/assets/stylesheets/application.css
195
- - spec/dummy/app/channels/application_cable/channel.rb
196
- - spec/dummy/app/channels/application_cable/connection.rb
197
- - spec/dummy/app/controllers/application_controller.rb
198
- - spec/dummy/app/controllers/home_controller.rb
199
- - spec/dummy/app/javascript/packs/application.js
200
- - spec/dummy/app/jobs/application_job.rb
193
+ - spec/spec_helper.rb
201
194
  - spec/dummy/app/mailers/application_mailer.rb
202
195
  - spec/dummy/app/models/application_record.rb
196
+ - spec/dummy/app/javascript/packs/application.js
197
+ - spec/dummy/app/jobs/application_job.rb
198
+ - spec/dummy/app/controllers/application_controller.rb
199
+ - spec/dummy/app/controllers/home_controller.rb
203
200
  - spec/dummy/app/views/layouts/mailer.html.erb
204
201
  - spec/dummy/app/views/layouts/mailer.text.erb
205
- - spec/dummy/bin/rails
202
+ - spec/dummy/app/assets/config/manifest.js
203
+ - spec/dummy/app/assets/stylesheets/application.css
204
+ - spec/dummy/app/channels/application_cable/connection.rb
205
+ - spec/dummy/app/channels/application_cable/channel.rb
206
206
  - spec/dummy/bin/rake
207
207
  - spec/dummy/bin/setup
208
- - spec/dummy/config/application.rb
209
- - spec/dummy/config/boot.rb
208
+ - spec/dummy/bin/rails
209
+ - spec/dummy/config/routes.rb
210
+ - spec/dummy/config/locales/en.yml
210
211
  - spec/dummy/config/cable.yml
211
- - spec/dummy/config/database.yml
212
- - spec/dummy/config/environment.rb
213
- - spec/dummy/config/environments/development.rb
214
212
  - spec/dummy/config/environments/production.rb
213
+ - spec/dummy/config/environments/development.rb
215
214
  - spec/dummy/config/environments/test.rb
215
+ - spec/dummy/config/environment.rb
216
+ - spec/dummy/config/storage.yml
217
+ - spec/dummy/config/application.rb
218
+ - spec/dummy/config/puma.rb
219
+ - spec/dummy/config/database.yml
220
+ - spec/dummy/config/boot.rb
216
221
  - spec/dummy/config/initializers/application_controller_renderer.rb
217
222
  - spec/dummy/config/initializers/backtrace_silencers.rb
218
- - spec/dummy/config/initializers/cors.rb
219
- - spec/dummy/config/initializers/filter_parameter_logging.rb
220
- - spec/dummy/config/initializers/inflections.rb
221
223
  - spec/dummy/config/initializers/mime_types.rb
222
- - spec/dummy/config/initializers/redis.rb
224
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
223
225
  - spec/dummy/config/initializers/wrap_parameters.rb
224
- - spec/dummy/config/locales/en.yml
225
- - spec/dummy/config/puma.rb
226
- - spec/dummy/config/routes.rb
227
- - spec/dummy/config/storage.yml
226
+ - spec/dummy/config/initializers/redis.rb
227
+ - spec/dummy/config/initializers/inflections.rb
228
+ - spec/dummy/config/initializers/cors.rb
228
229
  - spec/dummy/config.ru
230
+ - spec/dummy/Rakefile
229
231
  - spec/dummy/db/schema.rb
230
- - spec/dummy/log/development.log
231
232
  - spec/dummy/log/test.log
232
- - spec/dummy/tmp/development_secret.txt
233
+ - spec/dummy/log/development.log
233
234
  - spec/dummy/tmp/pids/server.pid
235
+ - spec/dummy/tmp/development_secret.txt
236
+ - spec/requests/health_check_spec.rb
234
237
  - spec/lib/hey_doctor/hey_doctor_spec.rb
235
238
  - spec/rails_helper.rb
236
- - spec/requests/health_check_spec.rb
237
- - spec/services/hey_doctor/check_application_health_service_spec.rb
238
239
  - spec/services/hey_doctor/check_database_health_service_spec.rb
239
240
  - spec/services/hey_doctor/check_redis_health_service_spec.rb
240
- - spec/spec_helper.rb
241
+ - spec/services/hey_doctor/check_application_health_service_spec.rb