Sha256: ecee9286c89700e919b981fc670b3c8e8faa6374575d19df3dfc7e84bae2bc51
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
require 'rspec' require 'json' require File.expand_path('../../lib/fontcustom.rb', __FILE__) RSpec.configure do |c| def fixture(path = "") File.join(File.expand_path('../fixtures', __FILE__), path) end # TODO more aptly named fontforge_data? def data_file_contents { :fonts => %w| fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.woff fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.ttf fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.eot fontcustom_cc5ce52f2ae4f9ce2e7ee8131bbfee1e.svg |, :templates => %w|fontcustom.css|, :glyphs => %w|a_r3ally-exotic-f1le-name c d|, :paths => { :css_to_fonts => "", :preprocessor_to_fonts => "", :preview_to_css => "" } } end def fontforge_output "Copyright (c) 2000-2012 by George Williams.\n Executable based on sources from 14:57 GMT 31-Jul-2012-D.\n Library based on sources from 14:57 GMT 31-Jul-2012.\n#{data_file_contents.to_json}" end def capture(stream) begin stream = stream.to_s eval "$#{stream} = StringIO.new" yield result = eval("$#{stream}").string ensure eval("$#{stream} = #{stream.upcase}") end result end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fontcustom-1.1.0.pre | spec/spec_helper.rb |