mirror of
https://github.com/zhigang1992/synx.git
synced 2026-01-12 22:52:53 +08:00
In many cases it's safe to assume the load path will be setup correctly at runtime, eliminating the need for absolute paths. For instance, in your bin/synx executable, RubyGems sets the load path such that you can just `require "synx"`. When you use RSpec, it also sets the load path to allow you to use `require "spec_helper"`. I also cleaned up the `File.join(File.dirname(__FILE__)...` stuff to use the more idiomatic `File.expand_path`.