Sha256: 2d175ca43c4ecccc1dddd132ff8e28e6554156824f3937f164152906fb95939e

Contents?: true

Size: 857 Bytes

Versions: 4

Compression:

Stored size: 857 Bytes

Contents

if RUBY_VERSION =~ /^1.8.7/
  require "rbconfig"
  conf = RbConfig::CONFIG

  # looks like PATCHLEVEL was added after 1.8.7-p249 release :( MK.
  if (conf["PATCHLEVEL"] && conf["PATCHLEVEL"] == "249") || (conf["libdir"] =~ /1.8.7-p249/)
    raise <<-MESSAGE
IMPORTANT: amqp gem 0.8.0+ does not support Ruby 1.8.7-p249 (this exact patch level. p174 and p334 are supported!)
because of a nasty Ruby bug (http://bit.ly/iONBmH). Refer to http://groups.google.com/group/ruby-amqp/browse_thread/thread/37d6dcc1aea1c102
for more information, especially if you want to verify whether a particular Ruby patch level or version or build suffers from
this issue.

To reiterate: 1.8.7-p174 and 1.8.7-p334 are supported. The fix has been committed to MRI in December 2009. It's
a good idea to upgrade, although downgrading to p174 is an option, too.
    MESSAGE
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
amqp-0.8.0.rc13 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-0.8.0.rc12 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-0.8.0.rc11 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-0.8.0.rc10 lib/amqp/compatibility/ruby187_patchlevel_check.rb