"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/redmine/thumbnail.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

thumbnail.rb  (redmine-4.0.3):thumbnail.rb  (redmine-4.0.4)
skipping to change at line 52 skipping to change at line 52
unless system(cmd) unless system(cmd)
logger.error("Creating thumbnail failed (#{$?}):\nCommand: #{cmd}") logger.error("Creating thumbnail failed (#{$?}):\nCommand: #{cmd}")
return nil return nil
end end
end end
target target
end end
def self.convert_available? def self.convert_available?
return @convert_available if defined?(@convert_available) return @convert_available if defined?(@convert_available)
@convert_available = system("#{shell_quote CONVERT_BIN} -version") rescue begin
false `#{shell_quote CONVERT_BIN} -version`
@convert_available = $?.success?
rescue
@convert_available = false
end
logger.warn("Imagemagick's convert binary (#{CONVERT_BIN}) not available") unless @convert_available logger.warn("Imagemagick's convert binary (#{CONVERT_BIN}) not available") unless @convert_available
@convert_available @convert_available
end end
def self.logger def self.logger
Rails.logger Rails.logger
end end
end end
end end
 End of changes. 1 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)