Permalink
Browse files

ensure $LOAD_PATH is correct for .gemspec to build gem

  • Loading branch information...
1 parent c5a9ccc commit d0d139f6c6bce19138d7f5ead9868ca8677c9847 @jakesgordon committed Aug 25, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 rack-rabbit.gemspec
View
@@ -1,4 +1,7 @@
# -*- encoding: utf-8 -*-
+LIB = File.expand_path("lib", File.dirname(__FILE__))
+$LOAD_PATH.unshift LIB unless $LOAD_PATH.include?(LIB)
+
require 'rack-rabbit'
Gem::Specification.new do |s|

0 comments on commit d0d139f

Please sign in to comment.