Permalink
Browse files

removed an useless YAML require

  • Loading branch information...
1 parent 5c1d89a commit 222c32f731c0ff2b4c6833e2fefe52229231c09f @mattetti committed Apr 22, 2010
Showing with 6 additions and 7 deletions.
  1. +3 −4 lib/templater.rb
  2. +3 −3 lib/templates/basic.rb
View
@@ -1,6 +1,5 @@
require_relative 'gamercard'
require_relative 'template'
-require 'yaml'
class Gamercard
class Templater
@@ -9,9 +8,9 @@ class Templater
# Pass an optional template path in the option hash to use a custom path.
def initialize(template_data)
- template_path = template_data.delete('template_path')
+ template_path = template_data.delete('template_path')
@templates_path = template_path || File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
- @template = load_template(template_data)
+ @template = load_template(template_data)
self
end
@@ -34,4 +33,4 @@ def load_template(template_data)
end
end
end
-end
+end
View
@@ -41,9 +41,9 @@ def username_font
def generate(username, stats={})
@username = username
@filename = "#{username}.png"
- @stats = stats
- @d = Draw.new
- @base = gradient_background # uses the template helper with default values
+ @stats = stats
+ @d = Draw.new
+ @base = gradient_background # uses the template helper with default values
username_label
@generated = true
end

0 comments on commit 222c32f

Please sign in to comment.