lib/darkext.rb in darkhelmet-darkext-0.8.2 vs lib/darkext.rb in darkhelmet-darkext-0.8.3
- old
+ new
@@ -1,4 +1,6 @@
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
-Dir[File.join(File.join(File.dirname(__FILE__), 'darkext'), '*.rb')].sort.each { |lib| require lib }
+Dir[File.join(File.join(File.dirname(__FILE__), 'darkext'), '*.rb')].sort.each do |lib|
+ require lib unless lib.include?('sinatra') # don't include sinatra stuff by defaults
+end