Bugs: Browse | Submit New | Admin

[#11052] Doesn't work on Ruby 1.8.6

Date:
2007-05-23 01:25
Priority:
3
Submitted By:
Chad Humphries (spicycode)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Doesn't work on Ruby 1.8.6

Detailed description
Ruby 1.8.6 complains about rails_helper.rb having class definition inside module (SyntaxError)

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-05-23 07:53
Sender: Sam Goebert

or to be more exact a stackdump of a rails app

=> Booting Mongrel (use 'script/server webrick' to force
WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': ./script/../config/../vendor/plugins/erub
is-2.3.0/lib/erubis/helpers/rails_helper.rb:117: class definition
in method body (SyntaxError)
./script/../config/../vendor/plugins/erubis-2.3.0/lib/erubis/help
ers/rails_helper.rb:134: module definition in method body
./script/../config/../vendor/plugins/erubis-2.3.0/lib/erubis/help
ers/rails_helper.rb:135: dynamic constant assignment
  ESCAPE_TABLE = { '&'=>'&amp;', '<'=>'&lt;',
'>'=>'&gt;', '"'=>'&quot;',
"'"=>'&#039;', }
                ^
./script/../config/../vendor/plugins/erubis-2.3.0/lib/erubis/help
ers/rails_helper.rb:146: syntax error, unexpected $end, expecting
kEND from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_requi
re.rb:27:in `require'
        from ./script/../config/../vendor/rails/activesupport/lib
/active_support/dependencies.rb:495:in `require'
        from ./script/../config/../vendor/rails/activesupport/lib
/active_support/dependencies.rb:342:in `new_constants_in'
        from ./script/../config/../vendor/rails/activesupport/lib
/active_support/dependencies.rb:495:in `require'
        from ./script/../config/../config/initializers/erubis.rb:
2
        from ./script/../config/../vendor/rails/activesupport/lib
/active_support/dependencies.rb:488:in `load'
        from ./script/../config/../vendor/rails/activesupport/lib
/active_support/dependencies.rb:488:in `load'
        from ./script/../config/../vendor/rails/activesupport/lib
/active_support/dependencies.rb:342:in `new_constants_in'
         ... 44 levels...
        from ./script/../config/../vendor/rails/activesupport/lib
/active_support/dependencies.rb:495:in `require'
        from ./script/../config/../vendor/rails/railties/lib/comm
ands/server.rb:39
        from script/server:3:in `require'
        from script/server:3
Date: 2007-05-23 01:29
Sender: Chad Humphries

2.2.0 works on 1.8.6

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item