capistrano-unformatt 1.12 → 1.13

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
  SHA1:
3
- metadata.gz: 62db3552bb91176d87116f24390e209bc3af98d4
4
- data.tar.gz: 94990c22a0be6d11cec874fdcf5969d3a7504bc1
3
+ metadata.gz: 4329f7a051b147dbf6f59aed989ee0a93729613e
4
+ data.tar.gz: 81e65998fdc812e4ec5e125112d16feb4a2e3d44
5
5
  SHA512:
6
- metadata.gz: 4327260c468915b5f44e6c04e60b4e481c8aab7e27ff70404522d4a7012e1697e9dbb2b002b58f04b50449a771c6d26e52d38998c40c1a107894866fe1487d99
7
- data.tar.gz: 4f16b58a250f1b8c96858c517d89d1e28e84bbefb587e11fb7770033050fc58d04876f3bde1c76ad9826d96bb6176cf476a6bc5e385f90fa9c91c4aa5b49af30
6
+ metadata.gz: 0c83a3251b8daefacd2b35d3f6eef1a0f822023da22e98f015661ff9588d373fc24627ff62e9f3cd51c80931e6d99b9d102f8afd8b3b32a13fdc0f032041b5fe
7
+ data.tar.gz: 333c3748b2db12fa8e5d7d52c520bd879a6e7157e8aba6f113e95345f5916ee9ac744dbdefd7c5c97e4081faa1b1ba798f6890f1af547b70f3fbc75caa8ce5c1
data/CHANGELOG.md CHANGED
@@ -73,3 +73,7 @@
73
73
  ## v1.12
74
74
 
75
75
  * Replaced present method not working on strings
76
+
77
+ ## v1.13
78
+
79
+ * Fix extra space on nginx conf template
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-unformatt"
7
- spec.version = '1.12'
7
+ spec.version = '1.13'
8
8
  spec.authors = ["unformatt"]
9
9
  spec.email = ["unformatt@gmail.com"]
10
10
  spec.description = "Custom recipes for Unformatt projects"
@@ -4,59 +4,59 @@ upstream <%=fetch(:application)%> {
4
4
 
5
5
  <%- if fetch(:nginx_protocols,[]).map(&:to_s).include?('http') -%>
6
6
  <%- if fetch(:nginx_redirect_to_ssl, fetch(:nginx_use_ssl, false)) -%>
7
- server {
8
- listen <%= fetch(:nginx_http_port, 80) %>;
9
- server_name <%=fetch(:nginx_http_server_names,fetch(:nginx_server_names))%>;
10
- rewrite ^ https://$server_name$request_uri? permanent;
11
- }
7
+ server {
8
+ listen <%= fetch(:nginx_http_port, 80) %>;
9
+ server_name <%=fetch(:nginx_http_server_names,fetch(:nginx_server_names))%>;
10
+ rewrite ^ https://$server_name$request_uri? permanent;
11
+ }
12
12
  <%- else -%>
13
- server {
14
- listen <%= fetch(:nginx_http_port, 80) %>;
15
- server_name <%=fetch(:nginx_http_server_names,fetch(:nginx_server_names))%>;
16
- root <%=current_path%>/public;
17
- access_log <%=fetch(:nginx_access_log, "#{shared_path}/log/nginx-access.log") %>;
18
- error_log <%=fetch(:nginx_error_log, "#{shared_path}/log/nginx-error.log")%>;
19
- rewrite_log on;
13
+ server {
14
+ listen <%= fetch(:nginx_http_port, 80) %>;
15
+ server_name <%=fetch(:nginx_http_server_names,fetch(:nginx_server_names))%>;
16
+ root <%=current_path%>/public;
17
+ access_log <%=fetch(:nginx_access_log, "#{shared_path}/log/nginx-access.log") %>;
18
+ error_log <%=fetch(:nginx_error_log, "#{shared_path}/log/nginx-error.log")%>;
19
+ rewrite_log on;
20
20
 
21
- client_max_body_size <%=fetch(:nginx_max_body_size, '4G')%>;
22
- keepalive_timeout <%=fetch(:nginx_keepalive_timeout, '5')%>;
21
+ client_max_body_size <%=fetch(:nginx_max_body_size, '4G')%>;
22
+ keepalive_timeout <%=fetch(:nginx_keepalive_timeout, '5')%>;
23
23
 
24
- if (-f $document_root/public/maintenance.html) {
25
- rewrite ^(.*)$ /public/maintenance.html;
26
- break;
27
- }
24
+ if (-f $document_root/public/maintenance.html) {
25
+ rewrite ^(.*)$ /public/maintenance.html;
26
+ break;
27
+ }
28
28
 
29
- location ~ ^/(assets)/ {
30
- root <%=current_path%>/public;
31
- gzip_static on;
32
- expires max;
33
- add_header Cache-Control public;
34
- break;
35
- }
29
+ location ~ ^/(assets)/ {
30
+ root <%=current_path%>/public;
31
+ gzip_static on;
32
+ expires max;
33
+ add_header Cache-Control public;
34
+ break;
35
+ }
36
36
 
37
- location / {
38
- try_files $uri/index.html $uri.html $uri @<%=fetch(:application)%>;
37
+ location / {
38
+ try_files $uri/index.html $uri.html $uri @<%=fetch(:application)%>;
39
39
 
40
- error_page 404 /404.html;
41
- error_page 422 /422.html;
42
- error_page 500 502 503 504 /500.html;
43
- error_page 403 /403.html;
44
- break;
45
- }
40
+ error_page 404 /404.html;
41
+ error_page 422 /422.html;
42
+ error_page 500 502 503 504 /500.html;
43
+ error_page 403 /403.html;
44
+ break;
45
+ }
46
46
 
47
- location @<%=fetch(:application)%> {
48
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
49
- proxy_set_header Host $http_host;
50
- proxy_headers_hash_bucket_size <%=fetch(:nginx_hash_bucket_size, 1024)%>;
51
- proxy_headers_hash_max_size <%=fetch(:nginx_hash_max_size, 512)%>;
52
- proxy_read_timeout <%=fetch(:nginx_read_timeout, 60)%>;
53
- proxy_send_timeout <%=fetch(:nginx_send_timeout, 60)%>;
54
- proxy_redirect off;
55
- proxy_pass http://<%=fetch(:application)%>;
56
- include proxy_params;
57
- break;
58
- }
47
+ location @<%=fetch(:application)%> {
48
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
49
+ proxy_set_header Host $http_host;
50
+ proxy_headers_hash_bucket_size <%=fetch(:nginx_hash_bucket_size, 1024)%>;
51
+ proxy_headers_hash_max_size <%=fetch(:nginx_hash_max_size, 512)%>;
52
+ proxy_read_timeout <%=fetch(:nginx_read_timeout, 60)%>;
53
+ proxy_send_timeout <%=fetch(:nginx_send_timeout, 60)%>;
54
+ proxy_redirect off;
55
+ proxy_pass http://<%=fetch(:application)%>;
56
+ include proxy_params;
57
+ break;
59
58
  }
59
+ }
60
60
  <%- end -%>
61
61
  <%- end -%>
62
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unformatt
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.12'
4
+ version: '1.13'
5
5
  platform: ruby
6
6
  authors:
7
7
  - unformatt