escher 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/escher/request/rack_request.rb +3 -7
- data/lib/escher/version.rb +1 -1
- data/spec/escher/request/rack_request_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbb2c924f14cb51125c9a2248c3363c44db153f6
|
4
|
+
data.tar.gz: 01990347371ae73f6e51b9f82f1c8912fd99d656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8627e0c6108b62f1ab72136bcd0f53362ec50af7cbffdbed37560b2d9ee55cd449e1c953445447e6d1c3774e09f46534b8e14e7a6efc386e1887965e3abe2e88
|
7
|
+
data.tar.gz: 8e7705c5395920085e166b1953db9433ad42db825acf1a733a4f70a6dfd640513f0f71034b115b1f1c8f6af5676a5293cdbccafefec4af40748bef7bf11e0097
|
@@ -15,16 +15,12 @@ class Escher::Request::RackRequest < Escher::Request::Base
|
|
15
15
|
@rack_request
|
16
16
|
end
|
17
17
|
|
18
|
-
def uri
|
19
|
-
@rack_request.env['REQUEST_URI']
|
20
|
-
end
|
21
|
-
|
22
18
|
def path
|
23
|
-
@rack_request.env[
|
19
|
+
@rack_request.env[::Rack::PATH_INFO]
|
24
20
|
end
|
25
21
|
|
26
22
|
def host
|
27
|
-
@rack_request.env[
|
23
|
+
@rack_request.env[::Rack::HTTP_HOST]
|
28
24
|
end
|
29
25
|
|
30
26
|
def headers
|
@@ -61,4 +57,4 @@ class Escher::Request::RackRequest < Escher::Request::Base
|
|
61
57
|
|
62
58
|
end
|
63
59
|
|
64
|
-
end
|
60
|
+
end
|
data/lib/escher/version.rb
CHANGED
@@ -5,7 +5,7 @@ require 'rack/request'
|
|
5
5
|
|
6
6
|
describe Escher::Request::RackRequest do
|
7
7
|
|
8
|
-
let(:request_params) { {
|
8
|
+
let(:request_params) { {Rack::PATH_INFO => "/", } }
|
9
9
|
let(:request) { Rack::Request.new request_params }
|
10
10
|
|
11
11
|
subject { described_class.new request }
|
@@ -88,7 +88,7 @@ describe Escher::Request::RackRequest do
|
|
88
88
|
|
89
89
|
describe "#path" do
|
90
90
|
it "should return the request path" do
|
91
|
-
request_params
|
91
|
+
request_params[Rack::PATH_INFO]= '/resources/id///'
|
92
92
|
|
93
93
|
expect(subject.path).to eq '/resources/id///'
|
94
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: escher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andras Barthazi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -343,7 +343,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
343
|
version: '0'
|
344
344
|
requirements: []
|
345
345
|
rubyforge_project:
|
346
|
-
rubygems_version: 2.
|
346
|
+
rubygems_version: 2.5.1
|
347
347
|
signing_key:
|
348
348
|
specification_version: 4
|
349
349
|
summary: Library for HTTP request signing (Ruby implementation)
|