Top Level Namespace

Defined Under Namespace

Classes: Tinyimg

Instance Method Summary collapse

Instance Method Details

#cannot_find_gdObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'ext/tinyimg/extconf.rb', line 7

def cannot_find_gd
  abort <<-TEXT
*******************************************************************************
  It looks like libgd is not installed on your system.

  If you're on OS X, install homebrew and try
    brew install libgd

  If you're on Debian/Ubuntu linux, try
    apt-get install libgd-dev
*******************************************************************************
  TEXT
end

#filter_dirs(dirs) ⇒ Object



3
4
5
# File 'ext/tinyimg/extconf.rb', line 3

def filter_dirs(dirs)
  dirs.select {|dir| Dir.exist?(dir)}
end