rails-nginx 1.0.0.pre.beta → 1.0.0.pre.beta.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: b509ef92a5f9976f4a3861fef1049fd3d2002cc28600292da5221898508712b7
4
- data.tar.gz: a2dfd4812dfedbfed4d50c0d03b930fbd8d37c3eae58d31ec9e3f6ce94fb98a9
3
+ metadata.gz: 8a68d64185b095bf2a451420be5b3c5d36d266ed1a5f8567317e9082fc99268e
4
+ data.tar.gz: 0f325530b6e0730808bb26ea5c608549fbcd9702995b1095328d92ccc628d24c
5
5
  SHA512:
6
- metadata.gz: f2f8e5d2cd168828389987d512b4fc44000b0556ffff35c131f3a16c716fed5ea6a4292099e6d8106be725ec1c28fb0b0dd1a96423193440757e1b381eb2713f
7
- data.tar.gz: 01f238f9c4e310ff12f41d19dd44ebbf319d040ebb1c95f8cd0dc5d14a700f8e7b573f75f0016377105f14668e33544114c86a714867f4d8bdca199781435589
6
+ metadata.gz: dd68fc6a26dbbfb30bb8b9cce8e63f6b7b84a0ab747f61747bc99a1f762997038184803e1fac9365d5ae5e65f011133b35c4668a0829879b8b474cc714613c72
7
+ data.tar.gz: c54dc8ae29af44105e6131661b35a52c3e84939551e4dd1f16dd2786906c28b5ca30377bd64857b25c45ff4fa4dc2bfca18018d168bbf665714a8c17c3584ca0
data/README.md CHANGED
@@ -12,6 +12,21 @@ Rails Puma plugin convenience wrapper for Ruby NGINX. Take a look at the [Ruby N
12
12
 
13
13
  ---
14
14
 
15
+ ### Key Features
16
+
17
+ The aim of this gem is to be easy to use, while keeping the user in control of their own machine. With [Ruby NGINX](https://github.com/bert-mccutchen/ruby-nginx)'s automation, you should feel comfortable, informed, and in control of the process.
18
+
19
+ - Automated installation of NGINX and mkcert that are entirely optional.
20
+ - You will be prompted before installation. You may reject installation to install NGINX or mkcert on your own terms.
21
+ - Sudo - only when necessary, and on your own terms.
22
+ - By default, all attempts to configure or interact with NGINX, /etc/hosts, and mkcert, are done without elevated privileges. Sudo is only used when the initial attempt fails with your users privileges.
23
+ - You will be prompted to accept sudo elevation, and why it is required. Rejection will immediately abort the process.
24
+ - Isolated NGINX configuration.
25
+ - Your NGINX configuration will automatically be updated to include configuration files from `~/.ruby-nginx/servers`. This ensures a clean separation exists between your personal NGINX configuration and [Ruby NGINX](https://github.com/bert-mccutchen/ruby-nginx)'s automation.
26
+ - Cross-platform and support for multiple package managers.
27
+ - macOS - brew
28
+ - Linux - apt-get, pacman, yum, zypper
29
+
15
30
  > [!WARNING]
16
31
  >This gem is intended to be an aid to your development environment - powered by [Ruby NGINX](https://github.com/bert-mccutchen/ruby-nginx). **Don't use this gem in production.**
17
32
 
@@ -102,7 +117,7 @@ You can override all the default values and provide your own configuration. Rail
102
117
  ```ruby
103
118
  rails_nginx_config do |config|
104
119
  config[:domain] = "example.test"
105
- config[:host] = "localhost"
120
+ config[:host] = "127.0.0.1"
106
121
  # etc.
107
122
  end
108
123
  ```
@@ -27,7 +27,7 @@ def rails_port!
27
27
  end
28
28
 
29
29
  Puma::Plugin.create do
30
- def config(puma_config) # rubocop:disable Metrics/MethodLength
30
+ def config(puma_config)
31
31
  rails_port!
32
32
 
33
33
  puma_config.port Rails::Nginx.port
@@ -54,7 +54,7 @@ Puma::Plugin.create do
54
54
  end
55
55
  end
56
56
 
57
- if defined?(puma_config.on_stopped) # rubocop:disable Style/GuardClause
57
+ if defined?(puma_config.on_stopped)
58
58
  puma_config.on_stopped do
59
59
  if puma_config.rails_nginx_configs.empty?
60
60
  Rails::Nginx.stop!
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rails
4
4
  module Nginx
5
- VERSION = "1.0.0-beta"
5
+ VERSION = "1.0.0-beta.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta
4
+ version: 1.0.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bert McCutchen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-09 00:00:00.000000000 Z
11
+ date: 2025-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 1.0.0.pre.beta.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 1.0.0.pre.beta.1
55
55
  description: Automatically configure NGINX with SSL upon boot for Rails applications.
56
56
  email:
57
57
  - mail@bertm.dev