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 +4 -4
- data/lib/opi/request.rb +4 -2
- data/lib/opi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea0955bb0306d56fd067a64f3f8739d8b9dce113
|
4
|
+
data.tar.gz: ba25fe211021b1c982b2eb2be5c187cfb09cc66b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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
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.
|
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-
|
11
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|