Sha256: 0894c0f47069136ddc9e2c3da6f91358d94f1e053e502baba917048791c782b4

Contents?: true

Size: 1.08 KB

Versions: 32

Compression:

Stored size: 1.08 KB

Contents

=begin
Copyright 2010, Roger Pack 
This file is part of Sensible Cinema.

    Sensible Cinema is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Sensible Cinema is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Sensible Cinema.  If not, see <http://www.gnu.org/licenses/>.
=end

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

32 entries across 32 versions & 1 rubygems

Version Path
sensible-cinema-0.24.1 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.23.6 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.23.5 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.23.4 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.23.3 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.23.2 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.23.1 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.23.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.22.1 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.22.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.21.10 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.21.9 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.21.5 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.21.4 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.21.3 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.20.5 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.20.1 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.20.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.19.7 lib/add_any_bundled_gems_to_load_path.rb