Permalink
Browse files

Change load and require paths for future codekit integration

  • Loading branch information...
Phil LaPier
Phil LaPier committed Nov 14, 2012
1 parent ed5062b commit 6f7ee0fc79d09ab308ba363ee09028174d0e16e0
Showing with 10 additions and 5 deletions.
  1. +4 −4 Gemfile.lock
  2. +2 −1 bin/bourbon
  3. +4 −0 lib/bourbon.rb
View
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
- bourbon (2.1.1)
- sass (>= 3.1)
+ bourbon (2.1.2)
+ sass (>= 3.2)
thor
GEM
@@ -36,9 +36,9 @@ GEM
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
- sass (3.2.1)
+ sass (3.2.2)
term-ansicolor (1.0.7)
- thor (0.15.4)
+ thor (0.16.0)
PLATFORMS
ruby
View
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby
-require "bourbon"
+# CodeKit needs relative paths
+require File.dirname(__FILE__) + '/../lib/bourbon.rb'
Bourbon::Generator.start
View
@@ -1,3 +1,7 @@
+# CodeKit needs relative paths
+dir = File.dirname(__FILE__)
+$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
+
require "bourbon/generator"
module Bourbon

0 comments on commit 6f7ee0f

Please sign in to comment.