0

I can't find this anywhere... the rubydoc is all over a google search for this package, but where is the the gem/install command?

Tony R
  • 11,224
  • 23
  • 76
  • 101

3 Answers3

1

It's part of rubygems; why do you want to download it? Look in rubygems/package/tar_writer.rb.

ruby-1.9.2-p0 :001 > require 'rubygems/package'
 => true 
ruby-1.9.2-p0 :002 > Gem::Package::TarWriter
 => Gem::Package::TarWriter 
Dave Newton
  • 158,873
  • 26
  • 254
  • 302
  • Sorry, I'm a little confused. Where is this file on my harddisk? Is it in my ruby installation? – Tony R Oct 23 '11 at 20:31
  • @TonyR I have no idea; probably. I use `rvm`, so I looked in my `rubies` directory, but it should be in wherever your rubygems lib is located. – Dave Newton Oct 23 '11 at 20:32
  • Yes, it is. In my case the path is: /home/pva/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/rubygems/package/tar_writer.rb. In the worst case try "find / -name 'tar_writer.rb'" command. – WarHog Oct 23 '11 at 20:33
  • Ah, okay it was in my Ruby installation after all - C:\Ruby192\lib\ruby\1.9.1 Thanks everyone! – Tony R Oct 23 '11 at 20:43
  • @TonyR Cool :) `find` and `grep` (and `xargs`) are your friend ;) – Dave Newton Oct 23 '11 at 20:45
0

Maybe you are referring to the TarWriter class available as part of the RubyGems sources, https://github.com/rubygems/rubygems/blob/master/lib/rubygems/package/tar_writer.rb.

gioele
  • 9,748
  • 5
  • 55
  • 80
0

found that while googling for "tarwriter filetype:rb"

if you go here, there are some related files.

ben
  • 1,819
  • 15
  • 25