Sha256: ed92dbbfd41a548457070e152485f52ee57116c1ae0cdb8f0fc77f21b9e343c1

Contents?: true

Size: 1.04 KB

Versions: 32

Compression:

Stored size: 1.04 KB

Contents

# encoding: utf-8

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, p334 and later patch levels 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, p334 and later patch levels are supported, see http://travis-ci.org/ruby-amqp/amqp. The fix was committed to MRI in December 2009. It's
a good idea to upgrade, although downgrading to p174 is an option, too.

To learn more (including the 0.8.x migration guide) at http://bit.ly/rubyamqp and https://github.com/ruby-amqp.
    MESSAGE
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
amqp-1.8.0 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.7.0 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.6.0 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.5.3 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.5.2 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.5.1 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.5.0 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.4.2 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.4.1 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.4.0 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.3.0 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.2.1 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.2.0 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.1.8 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.1.7 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.1.6 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.1.5 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.1.4 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.1.3 lib/amqp/compatibility/ruby187_patchlevel_check.rb
amqp-1.0.4 lib/amqp/compatibility/ruby187_patchlevel_check.rb