Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error on ruby 1.8.7 p180 #1

Open
daya opened this issue Aug 4, 2011 · 1 comment
Open

syntax error on ruby 1.8.7 p180 #1

daya opened this issue Aug 4, 2011 · 1 comment

Comments

@daya
Copy link

daya commented Aug 4, 2011

Hi

I just started added your gem to the Gemfile

gem "rforce-wrapper", :git => "git://github.com/BinaryMuse/rforce-wrapper.git"

starting rails (2.3.8) console/server throws the following error

/Users/dayas/.rvm/gems/ruby-1.8.7-p302@naked/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require': /Users/dayas/.rvm/gems/ruby-1.8.7-p302@naked/bundler/gems/rforce-wrapper-eaa7e28351b7/lib/rforce-wrapper/methods/describe.rb:8: syntax error, unexpected tIDENTIFIER, expecting tAMPER or '&' (SyntaxError)
...ctTypePairs, topCategoriesOnly)

Not sure whats causing this, could you please take a look ?

thanks,
-daya

@BinaryMuse
Copy link
Owner

Hey, daya,

It looks like Ruby 1.8 requires that a splat in an argument list is only used on the last argument in the list; thus, the code in that module is causing an error on 1.8.

I should also mention that I started this project to help with some code I was writing for an employer, and I am no longer working with that employer and don't have access to a Salesforce account, so I'm not sure how much hope there is of this gem being completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants