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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91b531cccc87d3a9fcae1a7ea99e8f13ba90eae812714b6970a2f22ed8323044
4
- data.tar.gz: 1a4834089b078d4cb8314184593f67abb7944b04fe5271b7a88110f46d9e6588
3
+ metadata.gz: 904411911a1b9af989c78b9500da6c757d31f570d14c109da0428d93781f2524
4
+ data.tar.gz: fe4c1cb11f8a165fbbb73d2d7b027e338a9fbf8a0b949f9ba375ef4914292c91
5
5
  SHA512:
6
- metadata.gz: 495e0ed949252efb927737af75b3a72b676dfe1979ca019f334f375d1f499bdeadcd8105aa476315b2dd34c144e01696b17ccf9637bdbd9c2246be8b48bd0d00
7
- data.tar.gz: 940b2bc510db04444eaea768b761f8895c9ddc505f9d043f383b6626adbc947122ae099f05a16043ea718aefbd8ba66270c6113d07a869760166de15398bb1bb
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
@@ -9,7 +9,7 @@ module Hephaestus
9
9
  def staff_request?(request)
10
10
  return true if Rails.env.development?
11
11
 
12
- true
12
+ false
13
13
  end
14
14
  end
15
15
 
data/config/database.yml CHANGED
@@ -42,8 +42,8 @@ test:
42
42
  production:
43
43
  primary:
44
44
  <<: *default
45
- database: /mnt/data/production.sqlite3
45
+ database: /data/production.sqlite3
46
46
  queue:
47
47
  <<: *default
48
- database: /mnt/data/production_queue.sqlite3
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
- fetched_secrets = op_get_secrets(vault: "Plug-#{plug_name}", tag: ENV["RAILS_ENV"])
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"]
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.7.3.1"
5
+ VERSION = "0.7.4"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
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.3.1
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