Permalink
Browse files

move example script into a sub-directory

  • Loading branch information...
1 parent 7701e64 commit c467d86c74eeffecb1f0887d11e5aacf08202507 @yob yob committed Jan 27, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 example.rb → examples/metrics.rb
  2. +1 −1 ttfunk.gemspec
@@ -1,5 +1,5 @@
# encoding: utf-8
-$LOAD_PATH << "#{File.dirname(__FILE__)}/lib"
+$LOAD_PATH << "#{File.dirname(__FILE__)}/../lib"
require "ttfunk"
def character_lookup(file, character)
@@ -21,7 +21,7 @@ def character_lookup(file, character)
end
end
-file = TTFunk::File.open(ARGV.first || "data/fonts/DejaVuSans.ttf")
+file = TTFunk::File.open(ARGV.first || "#{File.dirname(__FILE__)}/../data/fonts/DejaVuSans.ttf")
puts "-- FONT ------------------------------------"
View
@@ -5,7 +5,7 @@ Gem::Specification.new do |spec|
spec.summary = "TrueType Font Metrics Parser"
spec.description = "Get Ya TrueType Funk On! (Font Metrics Parser for Prawn)"
- spec.files = Dir.glob("{lib,data}/**/*") + ['example.rb','CHANGELOG','README.rdoc']
+ spec.files = Dir.glob("{lib,data,examples}/**/*") + ['CHANGELOG','README.rdoc']
spec.required_ruby_version = '>= 1.8.7'
spec.required_rubygems_version = ">= 1.3.6"

0 comments on commit c467d86

Please sign in to comment.