Sha256: 495729abd465bd4ede19bc0ba0964e418ad982232d8f45089fcad99fcb6011e2

Contents?: true

Size: 352 Bytes

Versions: 7

Compression:

Stored size: 352 Bytes

Contents

def add_any_bundled_gems_to_load_path
  raise 'no vendor dir?' unless File.directory? 'vendor'
  if File.directory? 'vendor/cache'
    Dir['vendor/cache/**/lib'].each{|lib_dir|
      $: << lib_dir
    }
  else
    require 'rubygems'
    # they'll need imagemagick installed, as well, currently
  end
end

add_any_bundled_gems_to_load_path

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sensible-cinema-0.17.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.16.7 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.16.5 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.16.3 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.16.2 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.16.1 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.15.0 lib/add_any_bundled_gems_to_load_path.rb