Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change load and require paths for future codekit integration

  • Loading branch information...
commit 6f7ee0fc79d09ab308ba363ee09028174d0e16e0 1 parent ed5062b
Phil LaPier authored
Showing with 10 additions and 5 deletions.
  1. +4 −4 Gemfile.lock
  2. +2 −1  bin/bourbon
  3. +4 −0 lib/bourbon.rb
View
8 Gemfile.lock
@@ -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
3  bin/bourbon
@@ -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
4 lib/bourbon.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.