v1.3.3 restricts visibility of Ruby 1.9's `define_singleton_method` #567

pvande opened this Issue Aug 28, 2012 · 1 comment


None yet
2 participants

pvande commented Aug 28, 2012

irb(main):001:0> require 'sinatra'
=> true
irb(main):002:0> Class.public_methods.include?(:define_singleton_method)
=> true
irb(main):003:0> Sinatra::Base.public_methods.include?(:define_singleton_method)
=> false
irb(main):004:0> Sinatra::Base.private_methods.include?(:define_singleton_method)
=> true

This causes anyone who was previously relying on the Ruby 1.9 definition to start raising exceptions after upgrading to v1.3.3.


rkh commented Aug 28, 2012

I'll push a fix tomorrow.

rkh was assigned Aug 31, 2012

rkh closed this in f1b7c3a Feb 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment