1.8.7 ==> (eval):6:in `bind': singleton method bound for a different object (TypeError)
alainravet opened this issue · 3 comments
alainravet commented
Fails with 1.8.7, works with 1.9.3, 2.0.0
$ ruby -Ilib spec/fixtures/bug_30.rb
# file: spec/fixtures/bug_30.rb
require 'private_please'
require 'rubygems'
require 'coderay'
print CodeRay.scan('puts "Hello, world!"', :ruby).inspect # OK
print CodeRay.scan('puts "Hello, world!"', :ruby).html # FAIL
=>
[~/Dropbox/dev/myos/private_please] (issue_30) ruby -Ilib spec/fixtures/bug_30.rb
====================================================================================
= PrivatePlease report : =
====================================================================================
CodeRay::Encoders::HTML
* Good candidates : can be made private :
------------------------------------------
#encode
CodeRay::TokensProxy
<snip>
Gem::Specification
<snip>
Gem::Version
* Good candidates : can be made private :
------------------------------------------
#segments .correct?
====================================================================================
Report options :
x * --show-never-called-candidates-section?
x * --show-bad-candidates-section?
x * --show-empty-classes?
(PP_OPTIONS = )
(eval):6:in `bind': singleton method bound for a different object (TypeError)
from (eval):6:in `file_extension'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/scanners/ruby.rb:14
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from (eval):6:in `call'
from (eval):6:in `require'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb:179:in `make_plugin_hash'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb:52:in `call'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb:52:in `default'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb:52:in `[]'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/helpers/plugin.rb:52:in `[]'
from (eval):6:in `call'
from (eval):6:in `[]'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/encoder.rb:83:in `encode'
from (eval):6:in `call'
from (eval):6:in `encode'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay.rb:198:in `encode'
from (eval):6:in `call'
from (eval):6:in `encode'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/tokens_proxy.rb:23:in `encode'
from (eval):6:in `call'
from (eval):6:in `encode'
from /Users/ara/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/coderay-1.0.9/lib/coderay/tokens_proxy.rb:32:in `method_missing'
from spec/fixtures/bug_30.rb:4
---------------------
alainravet commented
alainravet commented
alainravet commented
3 commits since 'closed' were wrongly associated to this issue (they belong to #32)