capistrano-secure-permissions 0.2.4 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad878a6971c9b5fbaa400f4243d1b4094f2ba917
4
- data.tar.gz: ed29cabdf7e5374be15ff759267926c245c87de5
3
+ metadata.gz: 98f847661994b1304b5c6f1ac378373a91817c93
4
+ data.tar.gz: d316b39c9817ed28a4780d370ef36da559d8a19a
5
5
  SHA512:
6
- metadata.gz: 6846cfbb5a266e844710b8b774b91fa7bac7b7c2fc0c33b251bec285c5bd97e20afe97c65540689b9a81c366256709274c4a9610cfa97b672a5253c2baa86daa
7
- data.tar.gz: 3e94ad28e11c0b4cc2930ff2782382669a68a176a382c5bdc93d8988a36b9f42ace3b504dd095c73193e933e003aea156a06b70ccdcc70ac7db0f9fc904f61d8
6
+ metadata.gz: e56953b826745b8299894318d06271595a291b428629d97a0fec7967485254eee46bd7743f65c2628ab6e2e901b0db746314405d557883b449fb391beb94be16
7
+ data.tar.gz: 615d99323853ed04b6e627c795483bc7c778c957e40d8c400ebd245de2d2fb0c8485da6e09a328ba2d724c793903a101b943c2f3edf71a9f9f08b65be71558e9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.3.0
@@ -2,11 +2,11 @@
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 0.2.4 ruby lib
5
+ # stub: capistrano-secure-permissions 0.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-secure-permissions"
9
- s.version = "0.2.4"
9
+ s.version = "0.3.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"]
@@ -11,7 +11,7 @@ namespace :deploy do
11
11
  # Set all except public, tmp, and log readable by app_user.
12
12
  execute :find, release_path, '-regex', '\./\(public\|tmp\|log\)', '-prune', '-o', '-user', deploy_user, '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{app_user}:rX"
13
13
  # Set permissions for files in public, readable på web_user and writable by app_user.
14
- execute :find, "#{release_path}/public", '-user', deploy_user, '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{web_user}:rX,u:#{app_user}:rwX"
14
+ execute :find, '-L', "#{release_path}/public", '-user', deploy_user, '-not', '-type', 'l', '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "u:#{web_user}:rX,u:#{app_user}:rwX"
15
15
  # Set defaults for directories in public (that is permissions for new files made by the app).
16
16
  execute :find, "#{release_path}/public", '-user', deploy_user, '-type', 'd', '-print0', '|', 'xargs', '-0', 'setfacl', '-m', "d:u:#{web_user}:rX,d:u:#{app_user}:rwX"
17
17
  # Set log and tmp writable by app_user.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-secure-permissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rune Schjellerup Philosof