rails-nginx 1.0.0.pre.beta → 1.0.0.pre.beta.2
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/README.md +16 -1
- data/lib/puma/plugin/rails_nginx.rb +2 -2
- data/lib/rails/nginx/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 523da30a695f42d3980f7612dfac31b6c49272af3cd0418de4e5ef6d48db8585
|
4
|
+
data.tar.gz: bc43a9dd4655582fff20bbdc7479bcd2d67f0706498efd14cdb209e7d1a33e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc637fda760848d474c3ff422558803a825eff90fa02cbe8d12f0cf36c1f15a57a56941c83200984f3e6ca6f7010f1b76cd4dfe82578ed288adfdd6e5a64ff2
|
7
|
+
data.tar.gz: 99fa0182de6aa63dc2cf9001e71a352da5e155092301f62b69b36b0aa71728ce2d3050c022d915a2a3558d3d0ac436b085823106c432bc35ec89b2165f56eed4
|
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] = "
|
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)
|
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)
|
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!
|
data/lib/rails/nginx/version.rb
CHANGED
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.2
|
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-
|
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:
|
47
|
+
version: 1.0.0.pre.beta.2
|
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:
|
54
|
+
version: 1.0.0.pre.beta.2
|
55
55
|
description: Automatically configure NGINX with SSL upon boot for Rails applications.
|
56
56
|
email:
|
57
57
|
- mail@bertm.dev
|