Permalink
Browse files

fistface gem

  • Loading branch information...
croaky committed Jan 12, 2011
1 parent 347650d commit f3f63b14658d38a2f7f86d8eaf1133f672c4f488
Showing with 24 additions and 7 deletions.
  1. +5 −2 README.md
  2. +12 −0 fistface.gemspec
  3. +1 −4 lib/{app.rb → fistface.rb}
  4. 0 spec/{app_spec.rb → fistface_spec.rb}
  5. +6 −1 spec/spec_helper.rb
View
@@ -1,7 +1,7 @@
Fist Face
=========
-Fist Face is a Do It Yourself @font-face web service.
+DIY @font-face web service.
Usage
-----
@@ -25,11 +25,14 @@ Setup
Create a Gemfile:
source "http://rubygems.org"
+ gem "sinatra", "~> 1.1"
gem "fistface", "~> 1.0"
Create a rackup file (config.ru):
- require "fistface"
+ require 'rubygems'
+ require 'bundler'
+ Bundler.require
run FistFace
Create the production environment:
View
@@ -0,0 +1,12 @@
+Gem::Specification.new do |s|
+ s.name = 'fistface'
+ s.version = '1.0'
+ s.email = 'support@thoughtbot.com'
+ s.homepage = 'http://github.com/thoughtbot/fistface'
+ s.summary = 'DIY @font-face web service'
+ s.description = 'Pow. Right in the kisser.'
+ s.files = ["lib/fistface.rb"]
+ s.authors = ['Dan Croak']
+
+ s.add_dependency('sinatra', '~> 1.1')
+end
@@ -1,8 +1,5 @@
-require 'rubygems'
+require 'sinatra/base'
require 'open-uri'
-require 'bundler'
-
-Bundler.require
class FistFace < Sinatra::Base
set :app_file, __FILE__
File renamed without changes.
View
@@ -1,6 +1,11 @@
$: << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
-require 'app'
+require 'rubygems'
+require 'bundler'
+
+Bundler.require
+
+require 'fistface'
require 'rack/test'
require 'timecop'

0 comments on commit f3f63b1

Please sign in to comment.