hephaestus 0.2.2 → 0.3.1

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: b95d21bfd57de5966b0e84d88b1405b86858be61eba98db2540cd4321169fe3c
4
+ data.tar.gz: a1a812f73c093ec210675c9f5f736893c0170aece8f06ce92cb43ff9df39467c
5
5
  SHA512:
6
- metadata.gz: 6a7389980993930ae1d91f62247767607f963a10ae25bf0ad8cf4c686db6dccf34972a7fd87f851e047a0917432a88d832c9ded9fe5873ef182f08785ca55cb3
7
- data.tar.gz: 5fa77ba49059630eebb5a6f9ae45e478d8cde9bb3920bdd04bf238363b2aa20af19297ce5c8aedfaa5c1d29bbd972c9c79f73c5f0d9a975d7e3bd64c257b09d1
6
+ metadata.gz: d967799d74078769fe825e5b03cfae506da34b023ff2e07edbe97ec91283592a50e664d280a1c2394ceefdd2047952ca36628e602789d224758d9bc91b45952b
7
+ data.tar.gz: '08804720c39e023bfd1abc2ac87de38fc9badf9509fc8b3f161f0528862653bfb18727da01aab24ce56012e4346ef6abb2f6f78746c1e681a533787b49df2bd0'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## [v0.3.0] - 12-09-2023
2
+ ## What's Changed
3
+ * Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/yettoapp/hephaestus/pull/8
4
+ * Use centralized workflows for testing by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/9
5
+
6
+ ## New Contributors
7
+ * @dependabot made their first contribution in https://github.com/yettoapp/hephaestus/pull/8
8
+
9
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.2.3...v0.3.0
10
+ ## [v0.2.3] - 21-08-2023
11
+ ## What's Changed
12
+ * Updates from staging by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/7
13
+
14
+
15
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.2.2...v0.2.3
16
+ ## [v0.2.2] - 21-08-2023
17
+ ## What's Changed
18
+ * 404/500 error handling by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/5
19
+ * Parse OpenAPI schema *once* by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/6
20
+
21
+
22
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.2.1...v0.2.2
1
23
  ## [v0.2.1] - 11-07-2023
2
24
  null
3
25
  ## [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.3.1"
6
+ RAILS_VERSION = "~> 7.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
9
9
  .strip
@@ -5,15 +5,15 @@ on:
5
5
  pull_request_target:
6
6
 
7
7
  jobs:
8
- test:
9
- runs-on: ubuntu-latest
8
+ ruby:
9
+ uses: yettoapp/actions/.github/workflows/ruby_test_suite.yml@main
10
+ secrets:
11
+ gh_token: ${{ secrets.GH_SISYPHUS_YETTO_REPO_TOKEN }}
10
12
 
11
- steps:
12
- - uses: actions/checkout@v3
13
- with:
14
- ref: ${{ github.head_ref }}
15
- token: ${{ secrets.GH_SISYPHUS_YETTO_REPO_TOKEN }}
16
-
17
- - uses: yettoapp/actions/run-ruby-tests@main
18
- with:
19
- github_token: ${{ secrets.GH_SISYPHUS_YETTO_REPO_TOKEN }}
13
+ docker:
14
+ uses: yettoapp/actions/.github/workflows/test_dockerbuild.yml@main
15
+ secrets:
16
+ gh_token: ${{ secrets.GH_SISYPHUS_YETTO_REPO_TOKEN }}
17
+ fly_token: ${{ secrets.FLY_PRODUCTION_API_TOKEN }}
18
+ with:
19
+ app_name: "plug-app-production"
@@ -71,8 +71,6 @@ group :development, :test do
71
71
  end
72
72
 
73
73
  group :development do
74
- gem "dockerfile-rails", "~> 1.5"
75
-
76
74
  gem "dotenv-rails"
77
75
 
78
76
  gem "foreman", "~> 0.87"
@@ -84,6 +82,7 @@ group :development do
84
82
  gem "spoom"
85
83
  gem "sorbet"
86
84
  gem "tapioca", require: false
85
+ gem "webrick"
87
86
  end
88
87
  gem "sorbet-runtime"
89
88
 
@@ -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,14 +1,14 @@
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.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2023-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -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