emancu / toml-rb

A parser for TOML using Citrus library.
MIT License
104 stars 39 forks source link

`require_relative` not available prior to Ruby 1.9 #109

Closed sparr closed 6 years ago

sparr commented 6 years ago

Either the gem manifest should require Ruby 1.9+ or the uses of require_relative "blah" should be replaced with the longer require File.join(File.dirname(__FILE__), 'blah') or perhaps some third option?

sparr commented 6 years ago

Drat. I had hoped for the 1.8-compatible solution. Thanks for the quick fix, at least!

emancu commented 6 years ago

@sparr ^^ I remember having issues with older versions, that's why I run tests only for 2.2+

Also 1.8.7 was deprecated long time ago. However if you want to send a PR I'm open to accept it, as long as the tests passes in all the supported versions!