This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #6503 - koic:use_dir_instead_of_file_in_newgem_template…
…, r=hsbt Use `__dir__` instead of `__FILE__` in newgem.gemspec template 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__`. Ruby 1.9 is EOL, so I think that there is not much Gem to start developed using it. This PR uses `__dir__` when starting Gem development (i.e. `bundle gem`) using Ruby 2.0 or higher version. (cherry picked from commit 0c5d3b8)
- Loading branch information