http_router 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
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 "excepted #{c.inspect}, recieved #{test.inspect}" unless c.strip == test.strip
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)
@@ -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.7 codename No Hup
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.7 codename No Hup
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
@@ -34,7 +34,7 @@ class HttpRouter
34
34
  end
35
35
 
36
36
  def hashify_params(params)
37
- @dynamic && params ? param_names.zip(params).inject({}) { |h, (k,v)| h[k] = v; h } : {}
37
+ @dynamic && params ? Hash[param_names.zip(params)] : {}
38
38
  end
39
39
 
40
40
  def url(args, options)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  class HttpRouter #:nodoc
3
- VERSION = '0.6.7'
3
+ VERSION = '0.6.8'
4
4
  end
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: 9
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 7
10
- version: 0.6.7
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-03-28 00:00:00 -07:00
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: []