capistrano3-nginx 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/capistrano3-nginx.gemspec +1 -1
- data/lib/capistrano/tasks/nginx.rake +9 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da34c825fe392851478096964b1e097cbdfdfc87
|
4
|
+
data.tar.gz: b7b89cab7c7bc9a51e806ed30182dceacc07f24c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a73e1ece05374418c0e888d6830fbcf19b07d74b1545637e54ac23273277ff7649fbbb28c1c1db72668084b8f9f3bac09cef963f59baebccc5c4e861f75f4f27
|
7
|
+
data.tar.gz: e71dc20374bd4a5dd23a93542d64b9178097e0db730e6783774f07dcb4a2f83f2196474edf294dfaf19c124751b6a425b284cac8e5e450e5a2f5477e11a9ce3e
|
data/README.md
CHANGED
@@ -36,6 +36,7 @@ cap nginx:site:add # Creates the site configuration and upload i
|
|
36
36
|
cap nginx:site:disable # Disables the site removing the symbolic link located in the enabled folder
|
37
37
|
cap nginx:site:enable # Enables the site creating a symbolic link into the enabled folder
|
38
38
|
cap nginx:site:remove # Removes the site removing the configuration file from the available folder
|
39
|
+
cap nginx:gzip_static # Compress all js and css files in :nginx_static_dir with gzip
|
39
40
|
```
|
40
41
|
|
41
42
|
Configurable options (copy into deploy.rb), shown here with examples:
|
data/capistrano3-nginx.gemspec
CHANGED
@@ -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 = 'capistrano3-nginx'
|
7
|
-
spec.version = '2.0.
|
7
|
+
spec.version = '2.0.3'
|
8
8
|
spec.authors = ['Juan Ignacio Donoso']
|
9
9
|
spec.email = ['jidonoso@gmail.com']
|
10
10
|
spec.description = %q{Adds suuport to nginx for Capistrano 3.x}
|
@@ -43,6 +43,15 @@ namespace :nginx do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
desc 'Compress JS and CSS with gzip'
|
47
|
+
task :gzip_static => ['nginx:load_vars'] do
|
48
|
+
on release_roles fetch(:nginx_roles) do
|
49
|
+
within release_path do
|
50
|
+
execute :find, "'#{fetch(:nginx_static_dir)}' -type f -name '*.js' -o -name '*.css' -exec gzip -v -9 -f -k {} \\;"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
46
55
|
namespace :site do
|
47
56
|
desc 'Creates the site configuration and upload it to the available folder'
|
48
57
|
task :add => ['nginx:load_vars'] do
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-nginx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Adds suuport to nginx for Capistrano 3.x
|
@@ -65,12 +65,12 @@ require_paths:
|
|
65
65
|
- lib
|
66
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - '>='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|