public
Rubygem
Description: A lightweight and opinionated but hackable library for attaching images to ActiveRecord models.
Homepage:
Clone URL: git://github.com/norman/has_image.git
check if ImageMagick is in PATH
Gerrit Kaiser (author)
Tue Oct 21 23:26:13 -0700 2008
commit  fb9a4d609387f8e33151042bbca0e0d1f812db83
tree    e1505a80166e0143410157310203c94df692fbd8
parent  3fc98eb53c49f740a83edf77e9971abb8105e3a2
...
1
2
 
 
 
 
 
 
 
 
...
 
1
2
3
4
5
6
7
8
9
0
@@ -1 +1,8 @@
0
-require 'has_image'
0
\ No newline at end of file
0
+def imagemagick_installed?
0
+  `which identify`
0
+   $?.success?
0
+end
0
+
0
+require 'has_image'
0
+
0
+abort 'ImageMagick not found in PATH. Is it installed?' unless imagemagick_installed?

Comments