dev install stuff

0 views
Skip to first unread message

Francis Hwang

unread,
Aug 19, 2009, 11:35:09 AM8/19/09
to admin_a...@googlegroups.com
Hey,

So currently for devving & testing I've been doing this hack where I
use a symlink to fool Rubygems into thinking my dev directory of
admin_assistant is the installed gem directory. Luke was just telling
me he was doing this before running his tests:

gem build admin_assistant.gemspec && sudo gem install
admin_assistant-1.0.0.gem

I'm not totally psyched about the way this is working and am open to
other suggestions. I guess I could just symlink test_rails_app/vendor/
admin_assistant 3 directories up.

I'm also eyeing various dependencies and imagining this might be more
gem-centric in the future, as opposed to how it currently is gemmable
or pluginable now. Not sure about the best way to do this though.

Any thoughts?

Francis Hwang
http://fhwang.net/

Mike Dalessio

unread,
Aug 19, 2009, 2:14:46 PM8/19/09
to admin_a...@googlegroups.com
On Wed, Aug 19, 2009 at 11:35 AM, Francis Hwang <se...@fhwang.net> wrote:

Hey,

So currently for devving & testing I've been doing this hack where I
use a symlink to fool Rubygems into thinking my dev directory of
admin_assistant is the installed gem directory. Luke was just telling
me he was doing this before running his tests:

  gem build admin_assistant.gemspec && sudo gem install
admin_assistant-1.0.0.gem

I'm not totally psyched about the way this is working and am open to
other suggestions. I guess I could just symlink test_rails_app/vendor/
admin_assistant 3 directories up.

You could try installing the gem to a local directory:

gem install --install-dir /my/path/to/admin_assistant/gem admin_assistant-1.0.0.gem

and then making sure that dir is in your gem load path ahead of the system gem dir.

Of course, I haven't tried this out, so I may be talking out of my proverbial a**.



I'm also eyeing various dependencies and imagining this might be more
gem-centric in the future, as opposed to how it currently is gemmable
or pluginable now. Not sure about the best way to do this though.

Any thoughts?

Francis Hwang
http://fhwang.net/








--
mike dalessio
mi...@csa.net

Francis Hwang

unread,
Aug 21, 2009, 7:33:13 PM8/21/09
to admin_a...@googlegroups.com
Yeah I guess I could try that. Let me back up and ask this: Is anybody
using the gem, or is everyone using it as a plugin?

Francis Hwang
http://fhwang.net/

Luke Melia

unread,
Aug 21, 2009, 8:25:47 PM8/21/09
to admin_a...@googlegroups.com

Francis Hwang

unread,
Aug 24, 2009, 8:52:19 PM8/24/09
to admin_a...@googlegroups.com
Alrighty, I symlinked it up, and you should now be able to run the
specs without doing any Rubygem stuff. Let me know if you see any
issues with that.

Francis Hwang
http://fhwang.net/
Reply all
Reply to author
Forward
0 new messages