NOTICE: This package has been removed from pkgsrc

./devel/ruby-rbx-require-relative, Ruby 1.9s require_relative for Rubinius and MRI 1.8

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 0.0.9, Package name: ruby193-rbx-require-relative-0.0.9, Maintainer: pkgsrc-users

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.


Required to run:
[lang/ruby193-base]

Master sites:

SHA1: 21d4bf26ea768cdc02f8323d97fac74599390b9a
RMD160: d04ffc4e251ef04a7bf0f67aaa69b400b15daaad
Filesize: 8.5 KB

Version history: (Expand)


CVS history: (Expand)


   2015-02-04 14:56:29 by Takahiro Kambe | Files touched by this commit (4) | Package removed
Log message:
Remove ruby-rbx-require-relative package which was required by
ruby-linecache package only.
   2013-02-11 03:56:33 by Takahiro Kambe | Files touched by this commit (2)
Log message:
Update ruby-rbx-require-relative to 0.0.9.

Support not only Ruby 1.8.7 but newer versions.
   2011-06-19 12:32:17 by Takahiro Kambe | Files touched by this commit (4) | Imported package
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.