Syntax error in rfm_command.rb

35 views
Skip to first unread message

Sean Cameron

unread,
Aug 17, 2010, 4:49:03 PM8/17/10
to RFM Community
I recently installed Ruby 1.9.1, along with Rails and RFM, and when I
attempt to run a quick test script, I get a number of syntax errors in
rfm_command.rb, which was rather unexpected. Is there an issue with
RFM and the current release of Ruby, or did I miss something along the
way?

I have included the error printout below.

Regards,

Sean Cameron


C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm.rb:228:in
`require': C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/
rfm_command.rb:
226: syntax error, unexpected ':', expecting keyword_then or ',' or
';' or '\n' (SyntaxError)
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:228:
syntax error, unexpected keyword_when, expecting '}'
when :skip_records:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:230:
syntax error, unexpected keyword_when, expecting '}'
when :sort_field:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:241:
syntax error, unexpected keyword_when, expecting '}'
when :sort_order:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:243:
syntax error, unexpected keyword_when, expecting '}'
when :post_script:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:250:
syntax error, unexpected keyword_when, expecting '}'
when :pre_find_script:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:257:
syntax error, unexpected keyword_when, expecting '}'
when :pre_sort_script:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:264:
syntax error, unexpected keyword_when, expecting '}'
when :response_layout:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:266:
syntax error, unexpected keyword_when, expecting '}'
when :logical_operator:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:268:
syntax error, unexpected keyword_when, expecting '}'
when :modification_id:
^
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:270:
syntax error, unexpected keyword_else, expecting '}'
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:272:
syntax error, unexpected keyword_end, expecting '}'
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:337:
class definition in method body
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:493:
class definition in method body
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:669:
class definition in method body
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:704:
class definition in method body
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm_command.rb:713:
syntax error, unexpected keyword_end, expecting '}'
from C:/Ruby191/lib/ruby/gems/1.9.1/gems/rfm-1.0.0/lib/rfm.rb:
228:in `<top (required)>'
from F:/Work/Bluebird/Ruby FileMaker/UpTest.rb:2:in `require'
from F:/Work/Bluebird/Ruby FileMaker/UpTest.rb:2:in `<main>'

lardawge

unread,
Aug 17, 2010, 4:56:09 PM8/17/10
to RFM Community
Have you tried lardawge-rfm? Rfm 1.0.0 is not actively maintained and
has split of to a version I maintain until I either stop or get rights
to merge it into the rfm. If there is a problem with lardawge-rfm in
ruby 1.9.1 let me know.

Larry

Sean Cameron

unread,
Aug 18, 2010, 2:07:58 AM8/18/10
to RFM Community
Hi Larry,

Thanks, that's excellent, and it adds one of the features that I
requires - HTTPs support. I actually implemented the project in Python
rather than Ruby, but this gives me the opportunity to go back and do
some experimenting, so I really appreciate it.

Regards,

Sean Cameron
Reply all
Reply to author
Forward
0 new messages