Skip to content

Instantly share code, notes, and snippets.

@griest024
Last active August 21, 2016 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save griest024/b0cf673468643afc963d13db41da4074 to your computer and use it in GitHub Desktop.
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
#./lib/hello.rb
puts "hello world"
#./main.rb
require_relative 'hello'
#./require.gemspec
Gem::Specification.new do |s|
s.bindir = '.'
s.require_paths = ['lib']
s.executables << 'main.rb'
end
#./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