JasonKing-pulp 0.8.6 → 0.8.7

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.
Files changed (2) hide show
  1. data/lib/passenger/config.rb +6 -3
  2. metadata +1 -1
@@ -278,9 +278,12 @@ module Passenger
278
278
  end
279
279
 
280
280
  def ensure_dir(d)
281
- _umask = File.umask(022)
282
- _dir = Dir.mkdir(File.join(dir, d))
283
- File.umask(_umask)
281
+ _dir = File.join(dir, d)
282
+ unless File.exists? _dir
283
+ _umask = File.umask(022)
284
+ Dir.mkdir(_dir)
285
+ File.umask(_umask)
286
+ end
284
287
  _dir
285
288
  end
286
289
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: JasonKing-pulp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason King