Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Tammer Saleh committed Mar 5, 2012
1 parent ce1900e commit b56ab46
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ guard 'rspec', :version => 2, :cli => "--backtrace" do
watch(%r{^.rspec$}) { "spec" }
watch(%r{^config/.*$}) { "spec" }
watch(%r{^lib/(.+)\.rb$}) { "spec" }
watch('Gemfile.lock') { "spec" }
end

guard 'bundler' do
Expand Down
2 changes: 1 addition & 1 deletion engine_of_war.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |gem|

gem.add_dependency 'sinatra', ">= 1.3"
gem.add_dependency "compass"
gem.add_dependency "padrino"
#gem.add_dependency "padrino"
gem.add_dependency "active_support"
gem.add_dependency "builder"
gem.add_dependency 'haml'
Expand Down
4 changes: 2 additions & 2 deletions lib/engine_of_war.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
require 'sass'
require "RedCloth"
require "coffee-script"
require 'padrino-core/application/rendering'
require 'padrino-helpers'
# require 'padrino-core/application/rendering'
# require 'padrino-helpers'
require 'active_support/hash_with_indifferent_access'
require 'active_support/core_ext/object/blank'
require 'date'
Expand Down
4 changes: 2 additions & 2 deletions lib/engine_of_war/app.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class EngineOfWar::App < Sinatra::Base
register Padrino::Rendering
register Padrino::Helpers
# register Padrino::Rendering
# register Padrino::Helpers

Compass.configuration do |config|
config.project_path = File.dirname(__FILE__)
Expand Down
2 changes: 1 addition & 1 deletion lib/engine_of_war/template_engines/filters.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module EngineOfWar::TemplateEngines
module Filters
BASE_IMAGE_URL = "/images"
include Padrino::Helpers::TagHelpers
# include Padrino::Helpers::TagHelpers

def code_filter(txt)
txt.gsub(/@@@ *(\w*)\r?\n? *(.+?)\r?\n?@@@/m) do
Expand Down

0 comments on commit b56ab46

Please sign in to comment.