Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Use __dir__ instead of __FILE__ in newgem.gemspec template #6503

Merged

Commits on Apr 23, 2018

  1. Use __dir__ instead of __FILE__ in newgem.gemspec template

    ### What was the end-user problem that led to this PR?
    
    Since Ruby 2.0 we've had `__dir__` as well as `__FILE__`.
    
    The initial gem codes written with `bundle gem` using Ruby 2.0 or
    higher is an old description using `__FILE__`.
    
    ### What was your diagnosis of the problem?
    
    Ruby 1.9 is EOL, so I think that there is not much Gem to start
    developed using it.
    
    ### What is your fix for the problem, implemented in this PR?
    
    This PR uses `__dir__` when starting Gem development (i.e. `bundle gem`)
    using Ruby 2.0 or higher version.
    koic committed Apr 23, 2018
    Configuration menu
    Copy the full SHA
    00fd58e View commit details
    Browse the repository at this point in the history