Skip to content

Commit

Permalink
move example script into a sub-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
yob committed Jan 27, 2011
1 parent 7701e64 commit c467d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example.rb → examples/metrics.rb
@@ -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)
Expand All @@ -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 ------------------------------------"

Expand Down
2 changes: 1 addition & 1 deletion ttfunk.gemspec
Expand Up @@ -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"

Expand Down

0 comments on commit c467d86

Please sign in to comment.