mina-puma-nginx 1.0.0 → 1.0.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: 0c5b99967e0d48cb5e9c99be0bd3447dccb029f1faac8b6cba2630edd2ecc58c
4
- data.tar.gz: b65ac99351ac4adf51267ee4759709b3ec10dd5829e7a014024bec6b6ecf355d
3
+ metadata.gz: ded12c0bdd354fd93b8ae2e115ab627a21269d9dc055627016b7cc16274e8f3a
4
+ data.tar.gz: 0f34bff6d372401559bedba2d0eb4a28122777bc1b8d2ad1f753578d143ceae5
5
5
  SHA512:
6
- metadata.gz: df7ec3ad66a0174c7db9ecdadcaab80ebe48ad1cda024a09c34ba39623993243dbf34f9901ca372735d3bdee22182d39fbe27e5fecf618af9643e5fe7b2150da
7
- data.tar.gz: 79fc2f58ba3ad30132a4260e6588b0e37694f6a7dee9d711031ac35265db9e7ff304fc941ce2e6a6bf08bcb64aa5b0ddb7ed2c45429c75af8a9fa145e1f8326f
6
+ metadata.gz: 34563953ff8fcb4a2e557a2559fa079c86a0bcfc2b638b2001a157ac032a1f9c10415a4c16ae952dbe7ea1e60d8ad3f1bd0978cc4f1b4028ccd01a746897e889
7
+ data.tar.gz: b53264955c09c7b8086fa122493cc593726594d0c27881c80c2812bfb07479e991f70787bb0ffe4b14c3c49134623afd2d99383037b5213fe7de9aad8c39027a
data/README.md CHANGED
@@ -31,7 +31,7 @@ Install the base template to your repo's `lib/mina/templates` directory:
31
31
 
32
32
  Consider variables used by the nginx config, particularly:
33
33
 
34
- * `application` - application name; defaults to 'application'
34
+ * `application_name` - application name; defaults to 'application'
35
35
  * `nginx_socket_path` - path to socket file used in nginx upstream directive
36
36
  * `server_name` - application's nginx server_name (e.g. example.com); defaults to value for `domain`
37
37
  * `domain` - fqdn you are deploying to
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Nginx
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.0.1'.freeze
4
4
  end
5
5
  end
data/lib/mina/nginx.rb CHANGED
@@ -5,7 +5,7 @@ namespace :nginx do
5
5
  set :nginx_path, '/etc/nginx'
6
6
  set :nginx_socket_path, -> { "#{fetch(:shared_path)}/tmp/sockets/puma.sock" }
7
7
  set :nginx_socket_flags, "fail_timeout=0"
8
- set :nginx_config_unit, -> { "#{fetch(:application)}_#{fetch(:stage, fetch(:rails_env))}" }
8
+ set :nginx_config_unit, -> { "#{fetch(:application_name)}_#{fetch(:stage, fetch(:rails_env))}" }
9
9
  set :nginx_config_name, -> { "#{fetch(:nginx_config_unit)}.conf" }
10
10
 
11
11
  set :nginx_sites_available_path, -> { "#{fetch(:nginx_path)}/sites-available" }
@@ -85,7 +85,7 @@ namespace :nginx do
85
85
 
86
86
  def path_for_template installed: true
87
87
  installed ?
88
- File.expand_path('./config/deploy/templates/nginx.conf.erb') :
89
- File.expand_path('../templates/nginx.conf.erb', __FILE__)
88
+ File.expand_path('./config/deploy/templates/nginx.conf.template') :
89
+ File.expand_path('../templates/nginx.conf.template', __FILE__)
90
90
  end
91
91
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-puma-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Elchinov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2023-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina
@@ -66,13 +66,13 @@ files:
66
66
  - Rakefile
67
67
  - lib/mina/nginx.rb
68
68
  - lib/mina/nginx/version.rb
69
- - lib/mina/templates/nginx.conf.erb
69
+ - lib/mina/templates/nginx.conf.template
70
70
  - mina-puma-nginx.gemspec
71
71
  homepage: https://github.com/railsblueprint/mina-puma-nginx.git
72
72
  licenses:
73
73
  - MIT
74
74
  metadata: {}
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubygems_version: 3.0.3
91
- signing_key:
91
+ signing_key:
92
92
  specification_version: 4
93
93
  summary: Mina tasks for handle with Nginx.
94
94
  test_files: []