lib/serious.rb in serious-0.3.0 vs lib/serious.rb in serious-0.3.1

- old
+ new

@@ -9,12 +9,10 @@ Bundler.setup(:default) require 'sinatra/base' require 'stupid_formatter' require 'yaml' require 'builder' - -$:.unshift File.dirname(__FILE__) require 'ruby_ext' class Serious < Sinatra::Base set :articles, Proc.new { File.join(Dir.getwd, 'articles') } @@ -86,10 +84,11 @@ halt 404 unless @article = Page.find(params[:page]) render_article @article end end +require 'serious/version' require 'serious/article' require 'serious/page' # Set up default stupid_formatter chain StupidFormatter.chain = [StupidFormatter::Erb, StupidFormatter::RDiscount] @@ -101,10 +100,10 @@ Serious.set :items_in_feed, 25 # Number of items to display in atom feed Serious.set :items_on_index, 3 # Number of items to display with summary on main page Serious.set :archived_on_index, 10 # Number of items to display small (title only) on main page Serious.set :cache_timeout, 300 Serious.set :run, false -Serious.set :environment, :production +Serious.set :environment, :test Serious.set :date_format, "%B %o %Y" Serious.set :disqus, false Serious.set :google_analytics, false Serious.set :feed_url, '/atom.xml'