lib/erbtex.rb in erbtex-0.2.0 vs lib/erbtex.rb in erbtex-0.3.0

- old
+ new

@@ -1,10 +1,15 @@ -#! /usr/bin/env ruby +# Conditional added to prevent running bundler/setup twice when it already has +# erbtex in the LOAD_PATH. Failure to do this was causing bundler to setup for +# the wrong Gemfile if it was run in the development directory of another gem, +# for example, ydl. This only happened on saturn for some reason that I don't +# understand, but this kludge made it work. +require 'bundler/setup' if $LOAD_PATH.none? { |p| p =~ /erbtex/ } + +require 'shellwords' require 'erubis' require 'erbtex/version' require 'erbtex/command_line' require 'erbtex/find_binary' require 'erbtex/runner' - -require 'byebug'