Project

General

Profile

This project is closed and read-only.

Actions

Backport #6624

closed

require_relative in 1.8

Backport #6624: require_relative in 1.8

Added by shevegen (Robert A. Heiler) over 14 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
[ruby-core:45765]

Description

Hi!

I know there is little chance that this will be included, as this month is now last
chance for any change in 1.8.x, as 1.8.x is dead, but still I suggest it. :)

Some things like lambda -> operator won't have an alternative for 1.8, so it
is not even possible to make all changes for 1.8.x anyway in backward compatible
way.

But one thing that could perhaps have a 1.8.x version is require_relative, and
it is used a lot in 1.9.x

Folks could i.e. avoid the -> lambda, but still make use of require_relative,
and their gems would work on 1.8.x too.

The absolute filepath could be found out perhaps via

Pathname(FILE).dirname.realpath

Hmm ok I know this has no chance to make it, no problem :)

I am on 1.9.3 finally myself!

Updated by rosenfeld (Rodrigo Rosenfeld Rosas) over 14 years ago Actions #1 [ruby-core:45770]

Porting the new Hash syntax to 1.8 would also be awesome ;)

Updated by shyouhei (Shyouhei Urabe) over 14 years ago Actions #2 [ruby-core:45776]

  • Status changed from Open to Feedback

Yes this is a nice feature to have. But last time I tried to backport it was not that trivial (at least to me).

So I'd like to see someone actually create a patch against the actual 1.8.x sourcecode.

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #3

  • Project changed from 2 to Ruby
  • Status changed from Feedback to Closed
  • Backport set to 2.5: UNKNOWN, 2.6: UNKNOWN

Updated by jeremyevans0 (Jeremy Evans) about 7 years ago Actions #4

  • Tracker changed from Bug to Backport
  • Project changed from Ruby to 5
  • ruby -v deleted (1.8.7 (latest patch))
  • Backport deleted (2.5: UNKNOWN, 2.6: UNKNOWN)
Actions

Also available in: PDF Atom