hobbit-contrib 0.2.1 → 0.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 160bf219184ef2cdbcd0a5447498bb174bed1d1f
4
- data.tar.gz: ac07c279356e39dc84f49411b7889cb1de3b5361
3
+ metadata.gz: af3ee7b967c82d5892915486da7919cb9989d337
4
+ data.tar.gz: 401797602c10a6b729d03c62e36f1ddf9e69cd5f
5
5
  SHA512:
6
- metadata.gz: 877a329df35df6e31de1687f427faf5dbb91a033111925de889406223f461fa70bb845f79cf51146345a82e655112f8a6cb9801a2a1382d70f516d245a31a984
7
- data.tar.gz: bd72e44636f80a4b8d4d83cae8a3b538e65fd5819e4f279064d7b61d68d7813b16bc92812787a40a37d9495be39baa2b7c432ee5a13ec516b198e5f47fe0dc32
6
+ metadata.gz: e18eb6ea6859527421bb092d1da4c37f110d3306848cbf91c967ec8e723356a93f97f73750fe1636268abf945212e4197e8198b46c996f7766cca5119f027e2d
7
+ data.tar.gz: 9ff85ff4a2f82ea0e65b53563ffe2d40127a831776b694d03ea0a3a02868285832395d689dccc056311a64386caa72627f13be09ff5d1471805b0bdf858657e6
@@ -1,5 +1,5 @@
1
1
  module Hobbit
2
2
  module Contrib
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
data/lib/hobbit/filter.rb CHANGED
@@ -25,6 +25,7 @@ module Hobbit
25
25
  end
26
26
 
27
27
  def _call(env)
28
+ env['PATH_INFO'] = '/' if env['PATH_INFO'].empty?
28
29
  @env = env
29
30
  @request = Rack::Request.new(@env)
30
31
  @response = Hobbit::Response.new
data/spec/filter_spec.rb CHANGED
@@ -58,13 +58,6 @@ EOS
58
58
  describe '::compile_filter' do
59
59
  let(:block) { block = Proc.new { |env| [200, {}, []] } }
60
60
 
61
- it 'must compile an empty string' do
62
- path = ''
63
- route = app.to_app.class.send :compile_filter, path, &block
64
- route[:block].call({}).must_equal block.call({})
65
- route[:compiled_path].to_s.must_equal /^$/.to_s
66
- end
67
-
68
61
  it 'must compile /' do
69
62
  path = '/'
70
63
  route = app.to_app.class.send :compile_filter, path, &block
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobbit-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Mac Adden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-22 00:00:00.000000000 Z
11
+ date: 2013-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler