Resources for Introducing Ruby Tap

7 views
Skip to first unread message

Dr. Ernie

unread,
Dec 1, 2008, 7:30:24 PM12/1/08
to Tap Forum
Since nobody's posted anything yet, I may as well include the video
that brought me here:

http://rubyconf2008.confreaks.com/tap-not-a-talk-about-replacing-rake.html

Plus the intro tap article:

http://bahuvrihi.wordpress.com/2008/08/08/distributable-tasks-and-workflows/

And the LazyDoc README that links to this group:

http://github.com/bahuvrihi/lazydoc/tree/master

Any other resources worth mentioning?

-- Ernie P.


Simon Chiang

unread,
Dec 2, 2008, 11:58:20 AM12/2/08
to Tap Forum

Ernest Prabhakar

unread,
Dec 11, 2008, 6:11:48 PM12/11/08
to ruby-...@googlegroups.com
Hi all,

> While working through the tutorial:
>
> http://tap.rubyforge.org/rdoc/
>
> Now package the gem and install it (gem may require sudo):
>
> % rap gem
> % gem install pkg/sample-0.0.1.gem

My gem config does require sudo, and thus apparently doesn't set the
permissions correctly:

> il0304a-dhcp11:~ prabhaka$ tap run -- goodnight moon
> Configuration error: Permission denied - /Library/Ruby/Gems/1.8/gems/
> sample-0.0.1/tap.yml
> Check '/Library/Ruby/Gems/1.8/gems/sample-0.0.1/tap.yml'
> configurations

Specifically:

% ls -l /Library/Ruby/Gems/1.8/gems/sample-0.0.1/
total 8
-rw------- 1 root admin 0 Dec 11 15:06 README
drwxr-xr-x 3 root admin 102 Dec 11 15:06 lib
-rw------- 1 root admin 1337 Dec 11 15:06 tap.yml
drwxr-xr-x 4 root admin 136 Dec 11 15:06 test

Any idea how/why tap is setting the tap.yml and README to user-only?

-- Ernie P.

Simon Chiang

unread,
Dec 11, 2008, 7:22:46 PM12/11/08
to ruby-...@googlegroups.com
Ernie -

Yeah, I've seen that before.  As far as I can tell, this is an issue that started in one of the latest RubyGems.  I don't fully understand the cause but I think it has something to do with installing from an unknown source (ie not rubyforge/github). One think I can tell you is that if you're running rubygems-1.3.1, then you can install by using gem *without* sudo.

  % gem install pkg/sample-0.0.1.gem

If gem finds it can't write to '/Library/Ruby/Gems/1.8/' (as it will not be able to without sudo) then it will install the gem in your user directory '~/.gem/ruby/1.8/gems'.  If I recall correctly, your files still have user-only permissions but since you're the user you can read them.

One word of caution, uninstalling from your user directory is buggy: http://rubyforge.org/tracker/index.php?func=detail&aid=22466&group_id=126&atid=575  You have to specifically say that's where you're uninstalling from.

  % gem uninstall <gem> --install-dir ~/.gem/ruby/1.8

So this isn't an issue with Tap itself.  Hope that helps!

- Simon
Reply all
Reply to author
Forward
0 new messages