Skip to content
Browse files

fix for reqs

  • Loading branch information...
1 parent 3442caa commit 1cee8a273349b7d52ccb23abafcb7bf16efa9efc @benbalter benbalter committed Oct 2, 2012
Showing with 18 additions and 8 deletions.
  1. +2 −1 Gemfile
  2. +8 −0 Gemfile.lock
  3. +5 −0 app.rb
  4. +3 −7 config.ru
View
3 Gemfile
@@ -6,4 +6,5 @@ gem 'liquid'
gem 'pdf-forms'
gem 'prawn'
gem 'prawn-fillform'
-gem 'json'
+gem 'json'
+gem 'markdown'
View
8 Gemfile.lock
@@ -6,7 +6,12 @@ GEM
eventmachine (1.0.0)
hashery (2.0.1)
json (1.7.5)
+ kramdown (0.14.0)
liquid (2.4.1)
+ markdown (1.0.0)
+ kramdown (>= 0.13.7)
+ props (>= 1.0.0)
+ textutils (>= 0.2.0)
pdf-forms (0.4.4)
pdf-reader (1.2.0)
Ascii85 (~> 1.0.0)
@@ -17,6 +22,7 @@ GEM
ttfunk (~> 1.0.2)
prawn-fillform (0.0.14)
prawn
+ props (1.0.0)
rack (1.4.1)
rack-protection (1.2.0)
rack
@@ -25,6 +31,7 @@ GEM
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
+ textutils (0.2.0)
thin (1.5.0)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
@@ -38,6 +45,7 @@ PLATFORMS
DEPENDENCIES
json
liquid
+ markdown
pdf-forms
prawn
prawn-fillform
View
5 app.rb
@@ -2,9 +2,14 @@
require 'rubygems'
require 'sinatra'
require 'thin'
+require 'markdown'
require 'liquid'
require './pdf-filler.rb'
+set :public_folder, File.dirname(__FILE__) + '/static'
+set :root, File.dirname(__FILE__)
+set :views, File.dirname(__FILE__) + "/views"
+
#return a filled PDF as a result of post data
post '/fill' do
pdf = Pdf_Filler.new
View
10 config.ru
@@ -1,10 +1,6 @@
require "rubygems"
-require "bundler"
-Bundler.require
-
-set :root, File.dirname(__FILE__)
-set :views, File.dirname(__FILE__) + "/views"
-set :public, "public"
-
+require "sinatra"
+require 'thin'
require "./app.rb"
+
run Sinatra::Application

0 comments on commit 1cee8a2

Please sign in to comment.
Something went wrong with that request. Please try again.