http_router 0.6.7 → 0.6.8
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.
- data/Rakefile +3 -2
- data/examples/static/config.ru +2 -2
- data/http_router.gemspec +1 -0
- data/lib/http_router/path.rb +1 -1
- data/lib/http_router/version.rb +1 -1
- metadata +20 -4
data/Rakefile
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'bundler'
|
2
3
|
Bundler::GemHelper.install_tasks
|
3
4
|
|
@@ -43,7 +44,7 @@ namespace :test do
|
|
43
44
|
c = $1
|
44
45
|
raise "out was nil" if out.nil?
|
45
46
|
test = out.shift
|
46
|
-
raise "
|
47
|
+
raise "expected #{c.inspect}, received #{test.inspect}" unless c.strip == test.strip
|
47
48
|
assertion_count += 1
|
48
49
|
end
|
49
50
|
end
|
@@ -113,4 +114,4 @@ Rake::RDocTask.new do |rd|
|
|
113
114
|
end
|
114
115
|
|
115
116
|
require 'code_stats'
|
116
|
-
CodeStats::Tasks.new(:reporting_depth => 3)
|
117
|
+
CodeStats::Tasks.new(:reporting_depth => 3)
|
data/examples/static/config.ru
CHANGED
@@ -15,7 +15,7 @@ run HttpRouter.new {
|
|
15
15
|
# => Content-Type: image/vnd.microsoft.icon
|
16
16
|
# => Content-Length: 1150
|
17
17
|
# => Connection: keep-alive
|
18
|
-
# => Server: thin 1.2.
|
18
|
+
# => Server: thin 1.2.8 codename Black Keys
|
19
19
|
#
|
20
20
|
# $ curl -I http://localhost:3000/images/cat1.jpg
|
21
21
|
# => HTTP/1.1 200 OK
|
@@ -23,4 +23,4 @@ run HttpRouter.new {
|
|
23
23
|
# => Content-Type: image/jpeg
|
24
24
|
# => Content-Length: 29817
|
25
25
|
# => Connection: keep-alive
|
26
|
-
# => Server: thin 1.2.
|
26
|
+
# => Server: thin 1.2.8 codename Black Keys
|
data/http_router.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_development_dependency 'rbench'
|
29
29
|
s.add_development_dependency 'phocus'
|
30
30
|
s.add_development_dependency 'bundler', '~> 1.0.0'
|
31
|
+
s.add_development_dependency 'thin', '~> 1.2.7'
|
31
32
|
|
32
33
|
if s.respond_to? :specification_version then
|
33
34
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
data/lib/http_router/path.rb
CHANGED
data/lib/http_router/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 8
|
10
|
+
version: 0.6.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Hull
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-01 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -138,6 +138,22 @@ dependencies:
|
|
138
138
|
version: 1.0.0
|
139
139
|
type: :development
|
140
140
|
version_requirements: *id008
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: thin
|
143
|
+
prerelease: false
|
144
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
hash: 17
|
150
|
+
segments:
|
151
|
+
- 1
|
152
|
+
- 2
|
153
|
+
- 7
|
154
|
+
version: 1.2.7
|
155
|
+
type: :development
|
156
|
+
version_requirements: *id009
|
141
157
|
description: This library allows you to recognize and build URLs in a Rack application.
|
142
158
|
email: joshbuddy@gmail.com
|
143
159
|
executables: []
|