[MacRuby-devel] macruby_deploy --gem
Russ McBride
russ at psyex.com
Wed Mar 2 12:39:47 PST 2011
Thanks Mark. Yeah, that's what I've got. Under Versions, Current is linked to 0.9 inside of which is: usr/lib/ruby/Gems1.9.2/
This has:
cache/ doc/ gems/ specifications/
So it looks like it should work to me.
GEM_PATH and GEM_HOME are controlled by rvm and adjusted which each change (i.e., like so: rvm use macruby-0.9). So neither environment variable points to the paths where macruby_deploy is looking. macruby_deploy is not relying on GEM_PATH or GEM_HOME.
Stop the press: I got it working. Part of the problem was that in my code I had to do: require 'action_mailer', but in the build script I had to do --gem actionmailer. Sheesh.
Now that's fixed, I still can't get any actual code working that relies on action mailer. I just switched to the Pony gem and this is looking golden. I'd recommend that instead of AC.
Cheers,
russ
On Mar 1, 2011, at 7:19 PM, Mark Rada wrote:
> macruby_deploy gets the rubygems source code to actually look up the gem.
>
> You mentioned that you use RVM. Did you configure your GEM_PATH and GEM_HOME so
> that they point to the non-RVM places or were you just making the directories yourself?
>
> Rubygems looks for its cache of gemspecs to find the gems, so if the directory layout in
>
> /Library/Frameworks/MacRuby.framework/Versions/0.9/usr/lib/ruby/Gems/1.9.2
>
> is not what it expects then it will not find the gems.
>
> /Library/Frameworks/MacRuby.framework/Versions/0.9/usr/lib/ruby/Gems/1.9.2
>
> should have these directories in it:
>
> cache/ doc/ gems/ specifications/
>
> I think you only need the specifications and gems directory for things to work, but I am not sure.
>
>
> Mark Rada
> mrada at marketcircle.com
>
>
>
> On 2011-03-01, at 10:00 PM, Russ McBride wrote:
>
>>
>> oh, the command I'm using in my build script
>>
>> PATH="$PATH:/usr/local/bin" macruby_deploy --gem action_mailer --embed "$TARGET_BUILD_DIR/$PROJECT_NAME.app"
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list