Sha256: cd9cd9064a55876dfe38623c333d6a6e0ba1fc6e75da1a3352715edcb7e48770
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require "logger" require_relative "vectory/version" require_relative "vectory/utils" require_relative "vectory/image" require_relative "vectory/datauri" require_relative "vectory/vector" require_relative "vectory/eps" require_relative "vectory/ps" require_relative "vectory/emf" require_relative "vectory/svg" require_relative "vectory/svg_mapping" module Vectory class Error < StandardError; end class ConversionError < Error; end class SystemCallError < Error; end class InkscapeNotFoundError < Error; end class InkscapeQueryError < Error; end class NotImplementedError < Error; end class NotWrittenToDiskError < Error; end def self.ui @ui ||= Logger.new(STDOUT).tap do |logger| logger.level = ENV['VECTORY_LOG'] || Logger::WARN logger.formatter = proc { |severity, datetime, progname, msg| "#{msg}\n" } end end def self.root_path Pathname.new(File.dirname(__dir__)) end def self.convert(image, format) image.convert(format) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
vectory-0.6.0 | lib/vectory.rb |
vectory-0.5.0 | lib/vectory.rb |
vectory-0.4.2 | lib/vectory.rb |
vectory-0.4.1 | lib/vectory.rb |
vectory-0.4.0 | lib/vectory.rb |