I think you can

a) Include something like this ...
group :development do
  # Put mac gem here
end

group :production do
  # Put amd gem here
end

b) bundle install --without production
when you install on the mac.

Not sure about using your own gem though.

Scott



On Tue, Feb 28, 2012 at 12:21 PM, Patrick Stinson <
[email protected]> wrote:

> I'm no gem expert, but I have two little problems with managing different
> sets of gems.
>
> First, I want to use pdfkit in my rails project which requires
> wkhtmltopdf. wkhtmltopdf comes in two binary versions, one for my mac
> (wkhtmltopdf-binary) and one for amd64 (wkhtmltopdf-heroku) that works on
> heroku. How do I use one on my local system and the other on heroku? The
> pdfkit gem will use whichever one I have told bundler to install (I think),
> so when I try to trick it by installing the wkhtmltopdf-heroku gem and
> wkhtmltopdf binary locally it looks for the amd64 version instead of the
> local version, which obviously doesn't work on my mac I use for development.
>
> Second, I fixed a bug in the pdfkit gem. How, then, do I use my patched
> version instead of having heroku automatically install the current version
> from the gem's original vendor?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/mRxTkY2NHH8J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>



-- 
Scott
http://steamcode.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to