capistrano-secure-permissions 1.1.0 → 1.2.0
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/.ruby-version +1 -0
- data/Gemfile.lock +13 -12
- data/VERSION +1 -1
- data/capistrano-secure-permissions.gemspec +5 -4
- data/lib/capistrano/tasks/secure-permissions.rake +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b0391980a0f950b545b846f2fb1b1935e5ecf99
|
4
|
+
data.tar.gz: 63624be7ff0de60bbe5a97aba6bb762a88b039f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b1b862142a6ed7b45655cf14ecf98ed081c2ffbbc77cfd18fc58ebb76d3dd5dc693b8836c2fa84a7ba4f95416e60df22e44245693f477b59e31cfe4b5f5434a
|
7
|
+
data.tar.gz: 7531f4b094620b88bd0a86d9ea78f3d15e95f671fed2474994382c0baecdab57e57c145c99bf67770ac986f193ef78739eed2ccd7f0d49255e07033e6225a3d4
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.4
|
data/Gemfile.lock
CHANGED
@@ -8,13 +8,12 @@ GEM
|
|
8
8
|
faraday (0.9.2)
|
9
9
|
multipart-post (>= 1.2, < 3)
|
10
10
|
git (1.3.0)
|
11
|
-
github_api (0.
|
11
|
+
github_api (0.14.5)
|
12
12
|
addressable (~> 2.4.0)
|
13
13
|
descendants_tracker (~> 0.0.4)
|
14
14
|
faraday (~> 0.8, < 0.10)
|
15
15
|
hashie (>= 3.4)
|
16
|
-
|
17
|
-
oauth2
|
16
|
+
oauth2 (~> 1.0)
|
18
17
|
hashie (3.4.4)
|
19
18
|
highline (1.7.8)
|
20
19
|
jeweler (2.1.1)
|
@@ -28,21 +27,23 @@ GEM
|
|
28
27
|
rdoc
|
29
28
|
semver
|
30
29
|
json (1.8.3)
|
31
|
-
jwt (1.5.
|
32
|
-
mini_portile2 (2.
|
33
|
-
multi_json (1.12.
|
30
|
+
jwt (1.5.4)
|
31
|
+
mini_portile2 (2.1.0)
|
32
|
+
multi_json (1.12.1)
|
34
33
|
multi_xml (0.5.5)
|
35
34
|
multipart-post (2.0.0)
|
36
|
-
nokogiri (1.6.
|
37
|
-
mini_portile2 (~> 2.
|
38
|
-
|
35
|
+
nokogiri (1.6.8)
|
36
|
+
mini_portile2 (~> 2.1.0)
|
37
|
+
pkg-config (~> 1.1.7)
|
38
|
+
oauth2 (1.2.0)
|
39
39
|
faraday (>= 0.8, < 0.10)
|
40
|
-
jwt (~> 1.0
|
40
|
+
jwt (~> 1.0)
|
41
41
|
multi_json (~> 1.3)
|
42
42
|
multi_xml (~> 0.5)
|
43
43
|
rack (>= 1.2, < 3)
|
44
|
-
|
45
|
-
|
44
|
+
pkg-config (1.1.7)
|
45
|
+
rack (2.0.1)
|
46
|
+
rake (11.2.2)
|
46
47
|
rdoc (4.2.2)
|
47
48
|
json (~> 1.4)
|
48
49
|
semver (1.0.1)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: capistrano-secure-permissions 1.
|
5
|
+
# stub: capistrano-secure-permissions 1.2.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "capistrano-secure-permissions"
|
9
|
-
s.version = "1.
|
9
|
+
s.version = "1.2.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Rune Schjellerup Philosof"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-09-12"
|
15
15
|
s.description = "This gem makes it easy to run your app with a user that only has write permissions to the public folder"
|
16
16
|
s.email = "rune.capistrano-secure-permissions@philosof.dk"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
]
|
21
21
|
s.files = [
|
22
22
|
".document",
|
23
|
+
".ruby-version",
|
23
24
|
"Gemfile",
|
24
25
|
"Gemfile.lock",
|
25
26
|
"LICENSE.txt",
|
@@ -33,7 +34,7 @@ Gem::Specification.new do |s|
|
|
33
34
|
]
|
34
35
|
s.homepage = "http://github.com/runephilosof/capistrano-secure-permissions"
|
35
36
|
s.licenses = ["MIT"]
|
36
|
-
s.rubygems_version = "2.
|
37
|
+
s.rubygems_version = "2.4.5.1"
|
37
38
|
s.summary = "Sets ACL permissions after capistrano deployment"
|
38
39
|
|
39
40
|
if s.respond_to? :specification_version then
|
@@ -13,7 +13,7 @@ namespace :deploy do
|
|
13
13
|
shared_path,
|
14
14
|
]
|
15
15
|
parent_folders << "#{shared_path}/public" if linked_dirs.any? { |d| d.start_with?('public') }
|
16
|
-
execute :setfacl, "-m", "u:#{web_user}:x", *parent_folders
|
16
|
+
execute :setfacl, "-m", "u:#{web_user}:x,u:#{deploy_user}:rx", *parent_folders
|
17
17
|
# Set all except public, tmp, and log readable by app_user.
|
18
18
|
execute :find, release_path, '-regex', '\./\(public\|tmp\|log\)', '-prune', '-o', '-user', deploy_user, '-print0', '|', 'xargs', '-0', '--no-run-if-empty', 'setfacl', '-m', "u:#{app_user}:rX"
|
19
19
|
# Set log and tmp writable by app_user.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-secure-permissions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rune Schjellerup Philosof
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -62,6 +62,7 @@ extra_rdoc_files:
|
|
62
62
|
- README.rdoc
|
63
63
|
files:
|
64
64
|
- ".document"
|
65
|
+
- ".ruby-version"
|
65
66
|
- Gemfile
|
66
67
|
- Gemfile.lock
|
67
68
|
- LICENSE.txt
|
@@ -92,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
93
|
version: '0'
|
93
94
|
requirements: []
|
94
95
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.4.5.1
|
96
97
|
signing_key:
|
97
98
|
specification_version: 4
|
98
99
|
summary: Sets ACL permissions after capistrano deployment
|