Skip to content

Commit

Permalink
added livereload to default config.ru. dependent on rack-livereload. …
Browse files Browse the repository at this point in the history
…bumped version a smidge
  • Loading branch information
Eric Fields committed Sep 24, 2012
1 parent 668518f commit 7c32c1e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/spar/generators/templates/app/views/index.haml
Expand Up @@ -4,4 +4,8 @@
%title Spar App
%link{:rel => "stylesheet", :href => stylesheet_path('application')}
%script{:src => javascript_path('application')}
%body
%body
%h1
Nice app!
%h2
Point LiveReload to the directory of this project if you want to use it. No extensions or JS required.
3 changes: 3 additions & 0 deletions lib/spar/generators/templates/config.ru
@@ -1,9 +1,12 @@
require './config/application'
require 'rack-livereload'

map "/assets" do
run App.asset_env
end

map "/" do
# Need to add if :development. Not sure what the right way is. Spar.environment or something? -EF
use Rack::LiveReload
run App
end
Expand Up @@ -2,4 +2,5 @@
#
# Create a setting like so:
#
# set :my_setting, 'is_super_cool'
# set :my_setting, 'is_super_cool'

2 changes: 1 addition & 1 deletion lib/spar/version.rb
@@ -1,3 +1,3 @@
module Spar
VERSION = "0.2.7"
VERSION = "0.2.8"
end
2 changes: 2 additions & 0 deletions spar.gemspec
Expand Up @@ -37,4 +37,6 @@ Gem::Specification.new do |s|
s.add_dependency 'mime-types'
s.add_dependency 'aws-sdk'
s.add_dependency 'cloudfront-invalidator', '~> 0.2'
s.add_dependency 'rack-livereload'

end

0 comments on commit 7c32c1e

Please sign in to comment.