passenger 3.0.19 → 3.0.21

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

@@ -172,8 +172,11 @@ private
172
172
 
173
173
  def write_nginx_config_file
174
174
  require 'phusion_passenger/platform_info/ruby'
175
- ensure_directory_exists(@temp_dir)
176
-
175
+ require 'tmpdir'
176
+ @temp_dir = Dir.mktmpdir("passenger.", "/tmp")
177
+ @config_filename = "#{@temp_dir}/config"
178
+ File.chmod(0755, @temp_dir)
179
+
177
180
  File.open(@config_filename, 'w') do |f|
178
181
  f.chmod(0644)
179
182
  template_filename = File.join(TEMPLATES_DIR, "standalone", "config.erb")
@@ -213,8 +216,6 @@ private
213
216
  def create_nginx_controller(extra_options = {})
214
217
  require_daemon_controller
215
218
  require 'socket' unless defined?(UNIXSocket)
216
- @temp_dir = "/tmp/passenger-standalone.#{$$}"
217
- @config_filename = "#{@temp_dir}/config"
218
219
  if @options[:socket_file]
219
220
  ping_spec = [:unix, @options[:socket_file]]
220
221
  else
@@ -23,6 +23,7 @@
23
23
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
24
  # THE SOFTWARE.
25
25
  require 'fileutils'
26
+ require 'tmpdir'
26
27
  require 'phusion_passenger'
27
28
  require 'phusion_passenger/abstract_installer'
28
29
  require 'phusion_passenger/packaging'
@@ -164,16 +165,14 @@ protected
164
165
  def before_install
165
166
  super
166
167
  @plugin.call_hook(:runtime_installer_start, self) if @plugin
167
- @working_dir = "/tmp/#{myself}-passenger-standalone-#{Process.pid}"
168
- FileUtils.rm_rf(@working_dir)
169
- FileUtils.mkdir_p(@working_dir)
168
+ @working_dir = Dir.mktmpdir("passenger.")
170
169
  @download_binaries = true if !defined?(@download_binaries)
171
170
  @binaries_url_root ||= STANDALONE_BINARIES_URL_ROOT
172
171
  end
173
172
 
174
173
  def after_install
175
174
  super
176
- FileUtils.rm_rf(@working_dir)
175
+ FileUtils.remove_entry_secure(@working_dir) if @working_dir
177
176
  @plugin.call_hook(:runtime_installer_cleanup) if @plugin
178
177
  end
179
178
 
@@ -251,7 +250,7 @@ private
251
250
 
252
251
  def extract_tarball(filename)
253
252
  File.open(filename, 'rb') do |f|
254
- IO.popen("tar xzf -", "w") do |io|
253
+ IO.popen("tar xzf -", "wb") do |io|
255
254
  buffer = ''
256
255
  buffer = buffer.force_encoding('binary') if buffer.respond_to?(:force_encoding)
257
256
  total_size = File.size(filename)
metadata CHANGED
@@ -1,87 +1,83 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
- version: !ruby/object:Gem::Version
4
- hash: 33
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.21
5
5
  prerelease:
6
- segments:
7
- - 3
8
- - 0
9
- - 19
10
- version: 3.0.19
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Phusion - http://www.phusion.nl/
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-01-08 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-05-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rake
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 61
29
- segments:
30
- - 0
31
- - 8
32
- - 1
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.8.1
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: fastthread
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.8.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: fastthread
32
+ requirement: !ruby/object:Gem::Requirement
40
33
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 21
45
- segments:
46
- - 1
47
- - 0
48
- - 1
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
49
37
  version: 1.0.1
50
38
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: daemon_controller
54
39
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
56
41
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 23
61
- segments:
62
- - 1
63
- - 0
64
- - 0
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: daemon_controller
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
65
53
  version: 1.0.0
66
54
  type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rack
70
55
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
72
57
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
78
- - 0
79
- version: "0"
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: rack
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
80
70
  type: :runtime
81
- version_requirements: *id004
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
82
78
  description: Easy and robust Ruby web application deployment.
83
79
  email: info@phusion.nl
84
- executables:
80
+ executables:
85
81
  - passenger
86
82
  - passenger-install-apache2-module
87
83
  - passenger-install-nginx-module
@@ -89,10 +85,8 @@ executables:
89
85
  - passenger-status
90
86
  - passenger-memory-stats
91
87
  extensions: []
92
-
93
88
  extra_rdoc_files: []
94
-
95
- files:
89
+ files:
96
90
  - configure
97
91
  - Rakefile
98
92
  - README
@@ -1500,7 +1494,6 @@ files:
1500
1494
  - test/stub/vendor_rails/minimal/railties/lib/initializer.rb
1501
1495
  - test/stub/vendor_rails/minimal/railties/lib/ruby_version_check.rb
1502
1496
  - test/stub/wsgi/passenger_wsgi.py
1503
- - test/stub/wsgi/passenger_wsgi.pyc
1504
1497
  - test/stub/wsgi/public/wsgi-snake.jpg
1505
1498
  - test/stub/zsfa/header.png
1506
1499
  - test/stub/zsfa/index.html
@@ -1512,36 +1505,26 @@ files:
1512
1505
  - doc/Architectural overview.html
1513
1506
  homepage: http://www.modrails.com/
1514
1507
  licenses: []
1515
-
1516
1508
  post_install_message:
1517
1509
  rdoc_options: []
1518
-
1519
- require_paths:
1510
+ require_paths:
1520
1511
  - lib
1521
- required_ruby_version: !ruby/object:Gem::Requirement
1512
+ required_ruby_version: !ruby/object:Gem::Requirement
1522
1513
  none: false
1523
- requirements:
1524
- - - ">="
1525
- - !ruby/object:Gem::Version
1526
- hash: 3
1527
- segments:
1528
- - 0
1529
- version: "0"
1530
- required_rubygems_version: !ruby/object:Gem::Requirement
1514
+ requirements:
1515
+ - - ! '>='
1516
+ - !ruby/object:Gem::Version
1517
+ version: '0'
1518
+ required_rubygems_version: !ruby/object:Gem::Requirement
1531
1519
  none: false
1532
- requirements:
1533
- - - ">="
1534
- - !ruby/object:Gem::Version
1535
- hash: 3
1536
- segments:
1537
- - 0
1538
- version: "0"
1520
+ requirements:
1521
+ - - ! '>='
1522
+ - !ruby/object:Gem::Version
1523
+ version: '0'
1539
1524
  requirements: []
1540
-
1541
1525
  rubyforge_project: passenger
1542
- rubygems_version: 1.8.15
1526
+ rubygems_version: 1.8.25
1543
1527
  signing_key:
1544
1528
  specification_version: 3
1545
1529
  summary: Easy and robust Ruby web application deployment
1546
1530
  test_files: []
1547
-
@@ -0,0 +1,12 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
+ Comment: GPGTools - http://gpgtools.org
4
+
5
+ iQEcBAABAgAGBQJRpfApAAoJECrHRaUKISqM/zkIAJ3yC7HfcYX/vg5D0zFQbaBS
6
+ G45+MlFYb/Ps0lanYSoat3E/9t7dprqChAGDMokEEP4m9h+rANIEsWzzSoyP5zIb
7
+ Bg8RRkEND1vhsIm16GskrmhUYf0k2wFxKhV85MtE7NO4VRxieXXVPMRncJ6ADmaj
8
+ +ieHDvNol9tHIYjQ4YUrSf5eoymFlXsX/Aa/YyB/4kACBszs2+LoLtyAbpb1yR9H
9
+ IHTnsEE1iQ5PflueTlWGn9d7R91CDG/SpVXC9rIAlvotQNSJPlb2OdNz6nu4+MQK
10
+ /myNSm6fqKCfiBCMh/rv9TNkbjq0qUm7Z8z7Yt3xh6CW//7CElRF3aZSUowxPbM=
11
+ =Dq1C
12
+ -----END PGP SIGNATURE-----