Last active
August 21, 2016 04:03
-
-
Save griest024/b0cf673468643afc963d13db41da4074 to your computer and use it in GitHub Desktop.
require_relative does not work on windows from inside jars packed by warbler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#./lib/hello.rb | |
puts "hello world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#./main.rb | |
require_relative 'hello' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#./require.gemspec | |
Gem::Specification.new do |s| | |
s.bindir = '.' | |
s.require_paths = ['lib'] | |
s.executables << 'main.rb' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#./config/warble.rb | |
Warbler::Config.new do |config| | |
config.dirs = %w(lib) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment