gidget 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/gidget/server.rb +3 -3
  2. metadata +3 -3
@@ -23,7 +23,7 @@ module Gidget
23
23
  end
24
24
 
25
25
 
26
- get %r{^\/\d{4}\/\d{2}\/\d{2}\/\w+$} do
26
+ get %r{^\/\d{4}\/\d{2}\/\d{2}\/[\w,-]+$} do
27
27
  index = nil
28
28
 
29
29
  PostIndex.instance.each_with_index { |p, i|
@@ -66,7 +66,7 @@ module Gidget
66
66
  end
67
67
 
68
68
 
69
- get %r{^\/tag\/(\w+$)} do
69
+ get %r{^\/tag\/([\w,-]+$)} do
70
70
  posts = TagIndex.instance[params[:captures][0]]
71
71
 
72
72
  if (posts != nil)
@@ -77,7 +77,7 @@ module Gidget
77
77
  end
78
78
 
79
79
 
80
- get %r{^\/\w+$} do
80
+ get %r{^\/[\w,-]+$} do
81
81
  begin
82
82
  render_view(request.path.to_sym, { :posts => PostIndex.instance })
83
83
  rescue
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gidget
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Forrest Robertson