serious 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.10
1
+ 0.2.11
data/lib/serious.rb CHANGED
@@ -51,7 +51,7 @@ class Serious < Sinatra::Base
51
51
  end
52
52
 
53
53
  # Specific article route
54
- get %r{^/(\d{4})/(\d{1,2})/(\d{1,2})/([^\\]+)} do
54
+ get %r{^/(\d{4})/(\d{1,2})/(\d{1,2})/([^\/]+)} do
55
55
  halt 404 unless @article = Article.first(*params[:captures])
56
56
  render_article @article
57
57
  end
data/serious.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{serious}
8
- s.version = "0.2.10"
8
+ s.version = "0.2.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
12
- s.date = %q{2010-07-21}
12
+ s.date = %q{2010-08-16}
13
13
  s.default_executable = %q{serious}
14
14
  s.description = %q{Serious is a simple, file-driven blog engine inspired by toto and driven by sinatra}
15
15
  s.email = %q{christoph at olszowka dot de}
data/test/test_serious.rb CHANGED
@@ -139,6 +139,14 @@ class TestSerious < Test::Unit::TestCase
139
139
  should_contain_text "Lorem ipsum dolor...", ".article .body"
140
140
  should_contain_elements 1, ".article span.author"
141
141
  end
142
+
143
+ # Ensure trailing slashes are possible in urls as well
144
+ # (fixed in http://github.com/colszowka/serious/commit/b684fad6be15a364e4feba6b4df27ddf404fe610)
145
+ context "GET /2009/12/24/merry-christmas/" do
146
+ setup { get '/2009/12/24/merry-christmas/' }
147
+ should_respond_with 200
148
+ should_contain_text "Merry Christmas!", "#container h2:first"
149
+ end
142
150
 
143
151
  context "GET /2009/12/11/ruby-is-the-shit" do
144
152
  setup { get '/2009/12/11/ruby-is-the-shit' }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serious
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 10
10
- version: 0.2.10
9
+ - 11
10
+ version: 0.2.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christoph Olszowka
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-21 00:00:00 +02:00
18
+ date: 2010-08-16 00:00:00 +02:00
19
19
  default_executable: serious
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency