hephaestus 0.7.3 → 0.7.4

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: db088f028c2b24af00eacbc327b259254d38d523762cff49273226cc6e566723
4
- data.tar.gz: b8ef763acf61503ddd3094855700b237dc5ce8ce7bf9e9bcce93746e45e05542
3
+ metadata.gz: 904411911a1b9af989c78b9500da6c757d31f570d14c109da0428d93781f2524
4
+ data.tar.gz: fe4c1cb11f8a165fbbb73d2d7b027e338a9fbf8a0b949f9ba375ef4914292c91
5
5
  SHA512:
6
- metadata.gz: 7287b9003e6d4e78383291c036811620c2dcf8368803d97f8ea9c6998680af30bed8374f27016674246dcd76705e88b4326625d45c74c9421bc8f4ba12184759
7
- data.tar.gz: dd2fd426b4670f4b9fd3abb25cb734ff4e021adbbbd5de77a43b5c8fa90c762557efc977b088974873a3b7500e4ae6e27b4ad735db3795037cc7dc7161b98cbe
6
+ metadata.gz: 7a2f4d31c3d472373a574da0267839d256e6c91c4670a196f2a08ba698aae1aa455e0bbff8d160dc350886829cb15007313a7186ab26e53970b45ee875402f9f
7
+ data.tar.gz: '04973f4029d4477a06efe267e5cf6faf12ade1c95e6cfa6c47e9a7515c796d37b5873244db0595f69e9f74af65d3d58f6c7a01c279d500c1459712e54c7a0d18'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
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
7
+ # [v0.7.3.1] - 19-11-2024
8
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.3...v0.7.3.1
1
9
  # [v0.7.3] - 18-11-2024
2
10
  ## What's Changed
3
11
  * Grab entire document of secrets by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/41
@@ -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
@@ -17,7 +17,7 @@ def fetch_infra_secret(label:, default:)
17
17
  end
18
18
  end
19
19
 
20
- def fetch_document_secret(document_secrets:, label:, default:)
20
+ def fetch_document_secret(document_secrets, label:, default:)
21
21
  if productionish?
22
22
  document_secrets[label]
23
23
  else
@@ -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"
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-18 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap
@@ -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