hephaestus 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f53e25251ab0f4ba3f9150cee67fbf2f2002e892431c7c66d288d17887e86274
4
- data.tar.gz: a8262fe4f7001373e62a48de343016a6787360d8a73c34510476ea45bc1d6703
3
+ metadata.gz: e11d509b300de21f971ec50755ae313659411e0f63f035e3e6d0e36f46e6a469
4
+ data.tar.gz: c0e2483e2c5201fe3079bcc47e9931265d11103f69dfbb8edd8ce8fa14553fa1
5
5
  SHA512:
6
- metadata.gz: 6a7389980993930ae1d91f62247767607f963a10ae25bf0ad8cf4c686db6dccf34972a7fd87f851e047a0917432a88d832c9ded9fe5873ef182f08785ca55cb3
7
- data.tar.gz: 5fa77ba49059630eebb5a6f9ae45e478d8cde9bb3920bdd04bf238363b2aa20af19297ce5c8aedfaa5c1d29bbd972c9c79f73c5f0d9a975d7e3bd64c257b09d1
6
+ metadata.gz: 3ec2bfea8d3d45d917b4391e6401383e9aed002cf4ee21c673ff7eeb96ab40a386ea725e4978d1f4bfe228121f9fdfef7b3f8a3fae1c5f0717ca8b56d1bc0eeb
7
+ data.tar.gz: dbd61a9f148fdf577668112e12a58cb0ec28d2a1bea246d427983c757e31d23db87704e6d4daeb496df3d5209c67824199e19d5bf3c428357185646c1df3f784
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [v0.2.2] - 21-08-2023
2
+ ## What's Changed
3
+ * 404/500 error handling by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/5
4
+ * Parse OpenAPI schema *once* by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/6
5
+
6
+
7
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.2.1...v0.2.2
1
8
  ## [v0.2.1] - 11-07-2023
2
9
  null
3
10
  ## [v0.2.0] - 11-07-2023
@@ -2,8 +2,8 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.2.2"
6
- RAILS_VERSION = "~> 7.0.0"
5
+ VERSION = "0.2.3"
6
+ RAILS_VERSION = "~> 7.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
9
9
  .strip
@@ -1,16 +1,14 @@
1
1
  # typed: false
2
2
  # frozen_string_literal: true
3
3
 
4
- PLUG_APP_URL = ENV.fetch("PLUG_APP_URL", "")
5
-
6
4
  YETTO_URL = if Rails.env.production?
7
- "yetto.app"
5
+ "web.yetto.app"
8
6
  elsif Rails.env.staging?
9
- "yetto-staging.onrender.com"
7
+ "web.yetto.dev"
10
8
  elsif Rails.env.development?
11
9
  "localhost:3000"
12
10
  elsif Rails.env.test?
13
- "test.yetto.app"
11
+ "web.yetto.test"
14
12
  end
15
13
 
16
14
  YETTO_API_TLD = ENV.fetch("YETTO_API_TLD", "#{YETTO_URL}/api")
@@ -18,8 +16,19 @@ YETTO_API_VERSION = ENV.fetch("YETTO_API_VERSION", "2023-03-06")
18
16
 
19
17
  SLACK_LOG_URL = Rails.application.credentials.fetch(:SLACK_LOG_URL, ENV.fetch("SLACK_LOG_URL", "https://slack.com/the_log_room"))
20
18
 
19
+ PROTOCOL = Rails.env.development? ? "http://" : "https://"
20
+ PLUG_APP_URL = if Rails.env.production?
21
+ "app.plugs.yetto.app"
22
+ elsif Rails.env.staging?
23
+ "app.plugs.yetto.dev"
24
+ elsif Rails.env.development?
25
+ "plug-app.ngrok.io"
26
+ elsif Rails.env.test?
27
+ "app.plugs.yetto.test"
28
+ end
29
+
21
30
  YETTO_PLUG_PEM = Rails.application.credentials.fetch(:YETTO_PLUG_PEM, ENV.fetch("YETTO_PLUG_PEM", Rails.root.join("test/fixtures/files/fake_pem_file/fake.pem").read))
22
- SIGNING_SECRET = Rails.application.credentials.fetch(:PLUG_EMAIL_URL, ENV.fetch("PLUG_EMAIL_URL", "super-secret"))
31
+ SIGNING_SECRET = Rails.application.credentials.fetch(:SIGNING_SECRET, ENV.fetch("SIGNING_SECRET", "super-secret"))
23
32
  YETTO_PLUG_ID = Rails.application.credentials.fetch(:YETTO_PLUG_ID, ENV.fetch("YETTO_PLUG_ID", "super-secret"))
24
33
 
25
34
  def productionish?
@@ -11,6 +11,8 @@
11
11
 
12
12
  # https://phil.tech/2016/tips-on-sidekiq-queues/
13
13
  :queues:
14
+ - [update_yetto, 10]
15
+
14
16
  - [default, 5]
15
17
  - [mailers, 3]
16
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 7.0.0
48
+ version: '7.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 7.0.0
55
+ version: '7.0'
56
56
  force_ruby_platform: false
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rainbow