Permalink
Browse files

fixed a minor bug + bump to 0.1.1

  • Loading branch information...
1 parent c19e20e commit 1169ce9037b0b87ad4373de934c65e8f1fc9dcd7 Paul Asmuth committed Feb 25, 2012
Showing with 13 additions and 4 deletions.
  1. +3 −3 lib/sinatra_static.rb
  2. +9 −0 readme.rdoc
  3. +1 −1 sinatra-static.gemspec
View
@@ -39,7 +39,7 @@ def build_path(path, dir)
def get_path(path)
self.get(path).tap do |resp|
- handle_error_non_200(route) unless resp.status == 200
+ handle_error_non_200!(path) unless resp.status == 200
end
end
@@ -75,8 +75,8 @@ def handle_error_dir_not_found!(dir)
handle_error!("can't find output directory: #{dir}")
end
- def handle_error_non_200!(route)
- handle_error!("GET #{route.path} returned non-200 status code...")
+ def handle_error_non_200!(path)
+ handle_error!("GET #{path} returned non-200 status code...")
end
def handle_error!(desc)
View
@@ -63,3 +63,12 @@ will generate this output:
~/my_static_site/blog/page3/index.html -> "blog page: page3"
~/my_static_site/dynamic.js -> "my generated javascript"
~/my_static_site/data.json -> "my generated json"
+
+
+= installation
+
+ gem install sinatra-static
+
+or in your Gemfile
+
+ gem 'sinatra-static', '>= 0.1.1'
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "sinatra-static"
- s.version = "0.1.0"
+ s.version = "0.1.1"
s.authors = ["Paul Asmuth"]
s.date = "2011-10-16"

0 comments on commit 1169ce9

Please sign in to comment.