JRuby Fails (MRI 1.8.6 works) in Sinatra "helpers" when no arguments
--------------------------------------------------------------------

                 Key: JRUBY-3419
                 URL: http://jira.codehaus.org/browse/JRUBY-3419
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.2
         Environment: Ubuntu 8.10, Netbeans 7.0M1, JRuby 1.2 #199 (Hudson), 
Sinatra edge 2009-02- 19
            Reporter: Paul Fraser
            Assignee: Thomas E Enebo


Netbeans Output Window:-
/home/paulf/dev/NetBeansProjects/sinatra_1_1/lib/sinatra/base.rb:699:in 
`helpers': wrong # of arguments(0 for 1) (ArgumentError)
        from (__DELEGATE__):3:in `helpers'
        from /home/paulf/dev/NetBeansProjects/sinatra_1_1/lib/hello.rb:1
        from /home/paulf/dev/NetBeansProjects/sinatra_1_1/lib/hello.rb:31:in 
`require'
        from 
/home/paulf/dev/jruby-1.2.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `require'
        from /home/paulf/dev/NetBeansProjects/sinatra_1_1/lib/main.rb:6
--------------------------------------------------------------------------------------------------
Fails in file 
lib/sinatra/base.rb
    public
      def helpers(*extensions, &block)
        class_eval(&block) if block_given?
        include *extensions                                    <<<<<< works if 
this line commented out
      end


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to