hephaestus 0.7.3.1 → 0.7.4
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/app/controllers/hephaestus/staff_controller.rb +1 -1
- data/config/database.yml +2 -2
- data/config/initializers/environment.rb +3 -1
- data/config/puma.rb +40 -0
- data/lib/hephaestus/version.rb +1 -1
- metadata +17 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904411911a1b9af989c78b9500da6c757d31f570d14c109da0428d93781f2524
|
4
|
+
data.tar.gz: fe4c1cb11f8a165fbbb73d2d7b027e338a9fbf8a0b949f9ba375ef4914292c91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a2f4d31c3d472373a574da0267839d256e6c91c4670a196f2a08ba698aae1aa455e0bbff8d160dc350886829cb15007313a7186ab26e53970b45ee875402f9f
|
7
|
+
data.tar.gz: '04973f4029d4477a06efe267e5cf6faf12ade1c95e6cfa6c47e9a7515c796d37b5873244db0595f69e9f74af65d3d58f6c7a01c279d500c1459712e54c7a0d18'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v0.7.4] - 19-11-2024
|
2
|
+
## What's Changed
|
3
|
+
* Pooooma by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/44
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.3.1...v0.7.4
|
1
7
|
# [v0.7.3.1] - 19-11-2024
|
2
8
|
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.3...v0.7.3.1
|
3
9
|
# [v0.7.3] - 18-11-2024
|
data/config/database.yml
CHANGED
@@ -42,8 +42,8 @@ test:
|
|
42
42
|
production:
|
43
43
|
primary:
|
44
44
|
<<: *default
|
45
|
-
database: /
|
45
|
+
database: /data/production.sqlite3
|
46
46
|
queue:
|
47
47
|
<<: *default
|
48
|
-
database: /
|
48
|
+
database: /data/production_queue.sqlite3
|
49
49
|
migrations_paths: db/queue_migrate
|
@@ -92,7 +92,9 @@ module Hephaestus
|
|
92
92
|
|
93
93
|
# Every plug has these secrets; to reduce the amount of API calls to 1Password,
|
94
94
|
# we can grab one document that contains all the secrets we need
|
95
|
-
|
95
|
+
if productionish?
|
96
|
+
fetched_secrets = op_get_secrets(vault: "Plug-#{plug_name}", tag: ENV["RAILS_ENV"])
|
97
|
+
end
|
96
98
|
|
97
99
|
SLACK_LOG_URL = fetch_document_secret(
|
98
100
|
fetched_secrets,
|
data/config/puma.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# typed: false
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# This configuration file will be evaluated by Puma. The top-level methods that
|
5
|
+
# are invoked here are part of Puma's configuration DSL. For more information
|
6
|
+
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
|
7
|
+
|
8
|
+
# Puma starts a configurable number of processes (workers) and each process
|
9
|
+
# serves each request in a thread from an internal thread pool.
|
10
|
+
#
|
11
|
+
# The ideal number of threads per worker depends both on how much time the
|
12
|
+
# application spends waiting for IO operations and on how much you wish to
|
13
|
+
# to prioritize throughput over latency.
|
14
|
+
#
|
15
|
+
# As a rule of thumb, increasing the number of threads will increase how much
|
16
|
+
# traffic a given process can handle (throughput), but due to CRuby's
|
17
|
+
# Global VM Lock (GVL) it has diminishing returns and will degrade the
|
18
|
+
# response time (latency) of the application.
|
19
|
+
#
|
20
|
+
# The default is set to 3 threads as it's deemed a decent compromise between
|
21
|
+
# throughput and latency for the average Rails application.
|
22
|
+
#
|
23
|
+
# Any libraries that use a connection pool or another resource pool should
|
24
|
+
# be configured to provide at least as many connections as the number of
|
25
|
+
# threads. This includes Active Record's `pool` parameter in `database.yml`.
|
26
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
|
27
|
+
threads threads_count, threads_count
|
28
|
+
|
29
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
30
|
+
port ENV.fetch("PORT", 3000)
|
31
|
+
|
32
|
+
# Allow puma to be restarted by `bin/rails restart` command.
|
33
|
+
plugin :tmp_restart
|
34
|
+
|
35
|
+
# Run Solid Queue's supervisor
|
36
|
+
plugin :solid_queue
|
37
|
+
|
38
|
+
# Specify the PID file. Defaults to tmp/pids/server.pid in development.
|
39
|
+
# In other environments, only set the PID file if requested.
|
40
|
+
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
|
data/lib/hephaestus/version.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
@@ -189,6 +189,21 @@ dependencies:
|
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '3.0'
|
191
191
|
force_ruby_platform: false
|
192
|
+
- !ruby/object:Gem::Dependency
|
193
|
+
name: puma
|
194
|
+
requirement: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - "~>"
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '6.4'
|
199
|
+
type: :runtime
|
200
|
+
prerelease: false
|
201
|
+
version_requirements: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - "~>"
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '6.4'
|
206
|
+
force_ruby_platform: false
|
192
207
|
- !ruby/object:Gem::Dependency
|
193
208
|
name: rails
|
194
209
|
requirement: !ruby/object:Gem::Requirement
|
@@ -444,6 +459,7 @@ files:
|
|
444
459
|
- config/initializers/sidekiq.rb
|
445
460
|
- config/initializers/slack_webhook_logger.rb
|
446
461
|
- config/litestream.yml
|
462
|
+
- config/puma.rb
|
447
463
|
- config/queue.yml
|
448
464
|
- config/recurring.yml
|
449
465
|
- config/routes.rb
|