Ambition Problems :(

4 views
Skip to first unread message

Nathan

unread,
Jun 1, 2008, 7:45:07 AM6/1/08
to ambition.rb
I am having quite a bit of problems with ambition. First, I was unable
to actually get it to install:

$ sudo gem install ambitious-activerecord
ERROR: Error installing ambitious-activerecord:
ambitious-activerecord requires ambition (>= 0.5.3)

So, I decided to go around it by git cloning ambition from GitHub
right into my vendor/gems folder and then in my environment.rb:

config.gem "ambition"
config.gem "ambitious-activerecord", :lib => "ambition/adapters/
active_record"

This got my rails application to load. Then I tried to use ambition on
the console:

Loading development environment (Rails 2.1.0)
>> Message.select { |m| m.sender == 'jon' }
ArgumentError: wrong number of arguments (3 for 4)
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.1.1/lib/parse_tree.rb:
149:in `parse_tree_for_meth'
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.1.1/lib/parse_tree.rb:
149:in `parse_tree_for_method'
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.1.1/lib/parse_tree.rb:
68:in `translate'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/sexp_translator.rb:
11:in `translate'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/processors/base.rb:
80:in `to_s'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/context.rb:45:in
`<<'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/api.rb:13:in
`select'

I cannot seem to get around this. ParseTree-2.1.1 is the only parse
tree I have installed and this is the one that the gem specifically
requires. I just cannot imagine what I am doing wrong on my end. Can
you please help me get this working?

Nathan

unread,
Jun 1, 2008, 7:47:44 AM6/1/08
to ambition.rb
Just to be as clear as possible, I git cloned today and the versions
for the gems are as follows:

ambition-0.5.4
ambitious-activerecord-0.1.3

If I check the gem dependencies using "rake gems", it shows them both
as properly frozen. I have tried the ambition command from the rails
application itself and from the console with the exact same result.

Please help.
Reply all
Reply to author
Forward
0 new messages