capistrano-generals 0.1.3 → 0.1.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
  SHA1:
3
- metadata.gz: 3e28f97aafc19b7d1e2e99e5116fc603623644c0
4
- data.tar.gz: d6c2665512ea459741491e33b2a6fa661631e8f6
3
+ metadata.gz: f5418b28596059744e60166faab083f45b39828e
4
+ data.tar.gz: 49c000fb03544f8325070d163eaca75d88984ceb
5
5
  SHA512:
6
- metadata.gz: e51e8d6cb7fbb0a1e39195576d173be8263000abbcbc2ba97bcafcd14616fef82e130c5045cf89cec54b8eb164619434457d592ddfd6695f56105236154230be
7
- data.tar.gz: ea85159814f28b1a05babaaca7ca48453587bbce90896bbc2b6f1a22637416d871e0ff8ea8cb4e4b78edb25324a63af3b96fec00ea63aa13897cea37c1f00f41
6
+ metadata.gz: 00c32a08f14ce4ebe36223a772a98b4499fdf0bd818f22f86bb952c29c2b98e8df9d1cf1ce7441ea2ba8d337d8034c0d5154630fad8b621cb47bb6764242829c
7
+ data.tar.gz: 8d302884b0af0afc0917c34aef4cdba241e55a2ec893ff5ba95d047f681d0c6e8960f9abe74aa63c882b204c7527c732303fc617b3a5c9c10560fa83f54f2c99
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Generals
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -18,7 +18,11 @@ upstream puma_<%= fetch(:app_config_name) %> {
18
18
  server {
19
19
  listen 80;
20
20
  server_name www.<%= fetch(:server_domain) %>;
21
+ <% if fetch(:nginx_use_ssl) %>
21
22
  return 301 https://<%= fetch(:server_domain) %>$request_uri;
23
+ <% else %>
24
+ return 301 http://<%= fetch(:server_domain) %>$request_uri;
25
+ <% end %>
22
26
  }
23
27
  <% end %>
24
28
  <% if fetch(:nginx_use_ssl) %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-generals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stef Schenkelaars
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-19 00:00:00.000000000 Z
11
+ date: 2015-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano