codegram/pelusa — Issue #13: Doesn't like Rails source code
Author: tomdz
Created: 2012-02-16 21:25:34+00:00
State: open

More specifically [`environment\environment.rb`](https://github.com/rails/rails/blob/2-3-stable/railties/environments/environment.rb) in Rails 2.3.x, line 4:

```
No files specified -- PROCESS ALL THE FILES!

A syntax error has occurred:
syntax error, unexpected '<'
near line vendor/jruby/1.8/gems/rails-2.3.14/environments/environment.rb:4, column 1

Code:
<%= '# ' if freeze %>RAILS_GEM_VERSION = '<%= Rails::VERSION::STRING %>' unless defined? RAILS_GEM_VERSION
^

Backtrace:
Rubinius::Melbourne(Rubinius::Melbourne19)#syntax_error at /Users/tomdz/.rvm/rubies/rbx-master/runtime/19/melbourne.rbc:68
Rubinius::Melbourne(Rubinius::Melbourne19)#parse_file at /Users/tomdz/.rvm
/rubies/rbx-master
/runtime/19
/melbourne.rbc:84
Rubinius::Melbourne.parse_file at /Users/tomdz/.rvm/rubies/rbx-master
/runtime/19/melbourne.rbc:36
Pelusa::Runner#run_file at /Users/tomdz/.rvm/gems/rbx-master/gems
/pelusa-0.0.2/lib/pelusa/runner.rb:35
{ } in Pelusa::Runner#run at /Users/tomdz/.rvm/gems/rbx-master/gems
/pelusa-0.0.2/lib/pelusa/runner.rb:18
Array#map at kernel/bootstrap/array19.rb:18
Pelusa::Runner#run at /Users/tomdz/.rvm/gems/rbx-master/gems
/pelusa-0.0.2/lib/pelusa/runner.rb:17
Pelusa.run at /Users/tomdz/.rvm/gems/rbx-master/gems
/pelusa-0.0.2/lib/pelusa.rb:7
Pelusa::Cli#run at /Users/tomdz/.rvm/gems/rbx-master/gems
/pelusa-0.0.2/lib/pelusa/cli.rb:17
Object#__script__ at /Users/tomdz/.rvm/gems/rbx-master/gems
/pelusa-0.0.2/bin/pelusa:13
Kernel(Object)#load at kernel/common/kernel.rb:588
Object#__script__ at /Users/tomdz/.rvm/gems/rbx-master/bin
/pelusa:19
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:67
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:109
Rubinius::Loader#script at kernel/loader.rb:630
Rubinius::Loader#main at kernel/loader.rb:834
```