From 7e320c65da50db88d42d7688b393e7b95b0ef796 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 7 Apr 2018 00:27:10 +0100 Subject: [PATCH] Minor cleanup in application example --- examples/application-example/bin/foobar | 3 +-- examples/application-example/lib/foobar/application.rb | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) 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