Sha256: 57c3309005d0d0c55094c4d91e8fdd065ed84ff8c1bd876ec174ab7b1cbac891

Contents?: true

Size: 1.12 KB

Versions: 19

Compression:

Stored size: 1.12 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'].sort.reverse.each{|lib_dir| # prefer newer versioned.
      $: << 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

19 entries across 19 versions & 1 rubygems

Version Path
sensible-cinema-0.28.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.27.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.26.3 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.26.2 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.26.1 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.26.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.25.4 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.25.3 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.25.2 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.25.1 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.25.0 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.9 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.8 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.7 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.6 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.5 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.4 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.3 lib/add_any_bundled_gems_to_load_path.rb
sensible-cinema-0.24.2 lib/add_any_bundled_gems_to_load_path.rb