pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-rbx-require-relative



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Jun 19 10:32:17 UTC 2011

Update of /cvsroot/pkgsrc/devel/ruby-rbx-require-relative
In directory ivanova.netbsd.org:/tmp/cvs-serv2372

Log Message:
Import ruby18-rbx-require-relative pacakge version 0.0.5.
It is required by new ruby-linecache package.

Ruby 1.9's relative_relative for Rubinus and MRI 1.8

Here we add in Module RequireRelative method: *require_relative*,
and *abs_file*.

Example:
require 'rubygems'; require 'require_relative'
require_relative './lib/foo'
absolute_path = RequireRelative.abs_file

But why *abs_file*? Well, recall that ==__FILE__== does not give an absolute
path. So if you have chdir'd before using ==__FILE__==, you might not be
able to retrieve the full path.


Status:

Vendor Tag:     TNF
Release Tags:   pkgsrc-base
                
N pkgsrc/devel/ruby-rbx-require-relative/DESCR
N pkgsrc/devel/ruby-rbx-require-relative/Makefile
N pkgsrc/devel/ruby-rbx-require-relative/PLIST
N pkgsrc/devel/ruby-rbx-require-relative/distinfo

No conflicts created by this import



Home | Main Index | Thread Index | Old Index