passenger 4.0.32 → 4.0.33

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.

data.tar.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJSxVTrAAoJECrHRaUKISqM8wwH/j0P0Yff1jjVUyBqR1CVel7s
6
- lmb4rHr0L0tUZrjcjfvaS6/NjX7VLNzYbFQkHeC5BaldSKo1CKiXjjGhGdJlIj13
7
- feihJJVEf84r3EAFbt54Ye18CFAYMpGPeOGfjUtex8KidSLtPR5tv+uUpgSH4Sgr
8
- +icjINLTbyrWL828/nA3Hd4YWTY3w1HbSokVVaVqPgn4lZlOZArLqykNXqzJ6FLe
9
- +wvWGyIBGnqPPsHgzAYRHK0G86wjheD//Vs+7EcEVRLu08I852XHeCBQh8er9pf2
10
- gU5R85a1u3/+BaDum1eAobYyliwsg1h+aC+QhLMUSbWE8OmpqhjDI6pymdZG5Zk=
11
- =GfIW
5
+ iQEcBAABAgAGBQJSxXh6AAoJECrHRaUKISqMPwMH/j/0ykK8uEZ7k7sGv9Ch/aYX
6
+ TCPIgAwnnT1fckLnlKgMrPuLVos2BtMbCTD8gc0MWI2EYCI9JlQsrcgpWU9qAKEI
7
+ JUGiwxVS9D0YbVFhdfSkqzeDu3VzNHCLB57OzRZr32ICCM6bOqkXcmrQ4gbMvk3Q
8
+ dzDnESAbOybGNZ5PLQj5PXgNY6BWPt9FFrZ0zbM8CLLo3Jyk0t2+XEhknvLRrJYs
9
+ M/kNcrrRCxXFiXYygCalsGHySmyYUumC5eZlkiPTfiaVMQBc6sZ2ZAROVSn2OUt+
10
+ 6aISpr4WR2Nk2pvhkxIWUjyZL9BP/H44I/v7rDVwSF4Iz3P32YRV0x1XkttuNYg=
11
+ =GZg/
12
12
  -----END PGP SIGNATURE-----
data/NEWS CHANGED
@@ -1,3 +1,10 @@
1
+ Release 4.0.33
2
+ --------------
3
+
4
+ * Fixed a compatibility problem in passenger-install-apache2-module with Ruby 1.8.
5
+ The language selection menu didn't work properly.
6
+
7
+
1
8
  Release 4.0.32
2
9
  --------------
3
10
 
@@ -334,7 +334,7 @@ private
334
334
  sh! "sudo apt-get install #{DEB_APACHE_MODULE_PACKAGE}"
335
335
  return true
336
336
  when 'rpm'
337
- sh! "sudo yum install #{RPM_APACHE_MODULE_PACKAGE}"
337
+ sh! "sudo yum install #{RPM_APACHE_MODULE_PACKAGE}-#{VERSION_STRING}"
338
338
  return true
339
339
  else
340
340
  puts "<red>The #{PROGRAM_NAME} Apache module package is not installed.</red>"
@@ -45,6 +45,23 @@ task 'rpm:local' => 'rpm:gem' do
45
45
  sh "rpmbuild -ba #{spec_target_file}"
46
46
  end
47
47
 
48
+ task 'rpm:local:uninstall' do
49
+ sh "sudo yum remove -y passenger mod_passenger passenger-devel passenger-doc passenger-native-libs passenger-debuginfo"
50
+ end
51
+
52
+ task 'rpm:local:reinstall' => 'rpm:local:uninstall' do
53
+ rpm_spec_dir = "#{RPMBUILD_ROOT}/RPMS"
54
+ files = []
55
+ ["passenger", "mod_passenger", "passenger-devel", "passenger-doc", "passenger-native-libs", "passenger-debuginfo"].each do |package_name|
56
+ files << Dir["#{rpm_spec_dir}/*/#{package_name}-#{PACKAGE_VERSION}-*.rpm"].first
57
+ end
58
+ files.compact!
59
+ if files.empty?
60
+ abort "No RPMs have been built yet. Please run 'rake rpm:local' first."
61
+ end
62
+ sh "sudo yum install -y #{files.join(' ')}"
63
+ end
64
+
48
65
  def create_rpm_build_task(distro_id, mock_chroot_name, distro_name)
49
66
  desc "Build RPM for #{distro_name}"
50
67
  task "rpm:#{distro_id}" => 'rpm:gem' do
@@ -17,6 +17,10 @@ if type == "--ruby"
17
17
  ruby_libdir = ARGV.shift
18
18
  BOOTSTRAP_CODE = %Q{
19
19
  ENV["PASSENGER_LOCATION_CONFIGURATION_FILE"] = "#{ruby_libdir}/phusion_passenger/locations.ini"
20
+ begin
21
+ require 'rubygems'
22
+ rescue LoadError
23
+ end
20
24
  require '#{ruby_libdir}/phusion_passenger'
21
25
  }
22
26
  elsif type == "--nginx-module-config"
@@ -86,7 +86,7 @@
86
86
 
87
87
  #define NGINX_DOC_URL "http://www.modrails.com/documentation/Users%20guide%20Nginx.html"
88
88
 
89
- #define PASSENGER_VERSION "4.0.32"
89
+ #define PASSENGER_VERSION "4.0.33"
90
90
 
91
91
  #define POOL_HELPER_THREAD_STACK_SIZE 262144
92
92
 
@@ -30,7 +30,7 @@ module PhusionPassenger
30
30
 
31
31
  PACKAGE_NAME = 'passenger'
32
32
  # Run 'rake ext/common/Constants.h' after changing this number.
33
- VERSION_STRING = '4.0.32'
33
+ VERSION_STRING = '4.0.33'
34
34
 
35
35
  PREFERRED_NGINX_VERSION = '1.4.4'
36
36
  NGINX_SHA256_CHECKSUM = '7c989a58e5408c9593da0bebcd0e4ffc3d892d1316ba5042ddb0be5b0b4102b9'
@@ -197,7 +197,7 @@ private
197
197
  STDERR.puts " so that #{PhusionPassenger::PROGRAM_NAME} can compile one on the next run."
198
198
  when 'rpm'
199
199
  STDERR.puts " This library provides various optimized routines that make"
200
- STDERR.puts " #{PhusionPassenger::PROGRAM_NAME} faster. Please run 'sudo yum install #{PhusionPassenger::RPM_DEV_PACKAGE}'"
200
+ STDERR.puts " #{PhusionPassenger::PROGRAM_NAME} faster. Please run 'sudo yum install #{PhusionPassenger::RPM_DEV_PACKAGE}-#{PhusionPassenger::VERSION_STRING}'"
201
201
  STDERR.puts " so that #{PhusionPassenger::PROGRAM_NAME} can compile one on the next run."
202
202
  else
203
203
  STDERR.puts " #{PhusionPassenger::PROGRAM_NAME} can compile one, but an extra package must be installed"
@@ -421,7 +421,7 @@ private
421
421
  when "deb"
422
422
  command = "sudo sh -c 'apt-get update && apt-get install #{DEB_DEV_PACKAGE}'"
423
423
  when "rpm"
424
- command = "sudo yum install #{RPM_DEV_PACKAGE}"
424
+ command = "sudo yum install #{RPM_DEV_PACKAGE}-#{VERSION_STRING}"
425
425
  end
426
426
  if command
427
427
  if STDIN.tty?
@@ -103,7 +103,7 @@ private
103
103
  end
104
104
 
105
105
  def process_input
106
- case STDIN.getc
106
+ case getchar(STDIN)
107
107
  when "\x1b"
108
108
  process_cursor_move
109
109
  return false
@@ -118,8 +118,8 @@ private
118
118
  end
119
119
 
120
120
  def process_cursor_move
121
- if STDIN.getc == "["
122
- case STDIN.getc
121
+ if getchar(STDIN) == "["
122
+ case getchar(STDIN)
123
123
  when "A" # up
124
124
  @pointer = [@pointer - 1, 0].max
125
125
  when "B" # down
@@ -176,6 +176,12 @@ private
176
176
  return "\x1b[0A"
177
177
  end
178
178
 
179
+ def getchar(io)
180
+ char = io.getc
181
+ char = char.chr if char.is_a?(Integer)
182
+ return char
183
+ end
184
+
179
185
  if JRUBY
180
186
  require 'java'
181
187
  require 'readline'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.32
4
+ version: 4.0.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
metadata.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJSxVTrAAoJECrHRaUKISqMeGgH/iBjRNu8fcUM1LTZTcK5xEcZ
6
- tjCQk/ChS/Y71UKB7QJdG/THQp3cc0O0QxDDbmjLbi6BvRSewZ4/4CagvQguQnQN
7
- IOh3Ox4j/CIX5OSjQt+FaNzyhV6F1e0Iqy/+bmJ/4jNJRCpoVw+Zy8BYsNn5TYmu
8
- qy1ueWoB+T42gBOQD31QBdxTqJY1v3+n2wjpy1rQB3tAmKHrey2xGWPgAznHL5mY
9
- n8FHjj8ESsRJkTdpI8LNdPOFuUfq4HF2U3XG7BUa/rpIskKj4aK5NQszJhpWQKul
10
- YZsXnDjY40CCGfNeHhKNQgebeAcrH+mX8Q1oh43hLm7jrBUqPWZaJONf02DdIIE=
11
- =DfHY
5
+ iQEcBAABAgAGBQJSxXh6AAoJECrHRaUKISqMkwsH/1+nzM8YwJfyynuxyBC6DssR
6
+ vXoUokFuVKXAXN1TqO69YQj6/2Et2qabk2UDSo2AXWSGnFbe6KYaAZkoiLPP/oC4
7
+ PT7Wgr3qd13o5SI2ejkr84wgHU8ZL5qG2M3Ck8l3G5jV4nc/2yQUpGK1/WhNHMmX
8
+ wTCdpoD/cLN63SV4hLfMxacy/3l6YfwSv/5hnKgccL98UHLHKyNuiFbkhihvVwaQ
9
+ B50t4dsHE2+JKnbLnizbIrXCUorPK4g7nVPocFPPcLfbGaGNIg/1aQff6hR2erGy
10
+ LZTo8wBFtH7rXrqWw+wZcPjJr8qT78RcN6zv+gTBXhKnFPCVSX/zgkOa4XgHE50=
11
+ =1YLM
12
12
  -----END PGP SIGNATURE-----