Skip to content

Ruby 2.0.0-p0 compatibility #642

Closed
Edwardzyc opened this Issue Feb 24, 2013 · 7 comments

5 participants

@Edwardzyc

Sinatra does not currently work for ruby 2.0

No error message given. It just does not start.
Could someone verify this?

@tbuehlmann

Nope, works for me. Tried both, 1.3.4 and 6dc49e3.

@rkh
Sinatra member
rkh commented Feb 25, 2013

Cannot reproduce :(

@tbuehlmann

Same here.

@sebi
sebi commented Feb 25, 2013

I have the same issue, if I run a Sinatra app under:

ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.1] (managed through rbenv)

Sinatra 1.3.4

@rkh
Sinatra member
rkh commented Feb 25, 2013

You have an example app?

@sebi
sebi commented Feb 25, 2013

Yeah, sure!

I have this very basic code just for testing purposes:

require "sinatra"

get "/" do
  "Test 123"
end
@udzura
udzura commented Feb 25, 2013

In rubygems 2.0.0, the file to override Kernel#require is core_ext/kernel_require.rb rather than custom_require.rb

Evidences:

require "sinatra"

get "/" do
  "Test 123"
end
p Sinatra::Application.app_file
$ ruby app.rb
"/Users/.../.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb"

So I think this will be fixed by editing CALLERS_TO_IGNORE .

@rkh rkh closed this in ef6bd51 Feb 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.