opi 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6c22ba2d07075d6abcab27a8214a92141d2f479
4
- data.tar.gz: be7fc8d6a27381d7292b844768409e6d7cab1461
3
+ metadata.gz: ea0955bb0306d56fd067a64f3f8739d8b9dce113
4
+ data.tar.gz: ba25fe211021b1c982b2eb2be5c187cfb09cc66b
5
5
  SHA512:
6
- metadata.gz: aa4c5d2e6a3e40cbed0d4a629db0c6dca998b20beba5aa5d6716545b22d0adfce82511dd54056ee9a6d159b602a64b957182c8d68e324371a922328afb63088f
7
- data.tar.gz: 82d97454308f21225b1833b9f079eb3c1011eb6d2ed6a7141b180e5ea3085fdf14aefa15f958bcf7cc1f3ba737b45de883dd455760d1c1eafade4743abc267f2
6
+ metadata.gz: cacb4261a84ead0ee8b6a902e0d24a2ddd551e0d12ad687d0b22ce48583d743f8d229ea109755c0e53dc43f097efc98319a44e0b8068de710464ab5501b161ff
7
+ data.tar.gz: 83a3e45cb00fcba3f62c709acdf0ddb5a6853c97f033dd052c76a1c5191e2aa64ed28efed75e067f3a3655d64b66f95220ed18c608d07e1675004b81aaa45bfa
data/lib/opi/request.rb CHANGED
@@ -10,7 +10,9 @@ module Opi
10
10
  end
11
11
 
12
12
  def path
13
- @env["REQUEST_PATH"] || @env["PATH_INFO"]
13
+ @path = @env["PATH_INFO"]
14
+ @path = '/' if @path.nil? or @path.strip.empty?
15
+ @path
14
16
  end
15
17
 
16
18
  def uri
@@ -26,4 +28,4 @@ module Opi
26
28
  end
27
29
 
28
30
  end
29
- end
31
+ end
data/lib/opi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opi
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Taylor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-11 00:00:00.000000000 Z
11
+ date: 2014-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack