diff --git a/examples/application-example/bin/foobar b/examples/application-example/bin/foobar index 7d7dea4..f3f5e7e 100755 --- a/examples/application-example/bin/foobar +++ b/examples/application-example/bin/foobar @@ -1,8 +1,7 @@ #!/usr/bin/env ruby # frozen_string_literal: true -$LOAD_PATH.unshift(File.expand_path('../../lib', File.realpath(__FILE__))) -require 'bunnyrun' +$LOAD_PATH.unshift(File.expand_path('../lib', File.realpath(__dir__))) require 'foobar' Foobar::Application.run(argv: ARGV) diff --git a/examples/application-example/lib/foobar/application.rb b/examples/application-example/lib/foobar/application.rb index 008c768..cdaa9ec 100644 --- a/examples/application-example/lib/foobar/application.rb +++ b/examples/application-example/lib/foobar/application.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'bunnyrun' + require 'foobar/version' module Foobar