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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd610a589a7830c2f21a0e8ea511e9332f6e522b
4
- data.tar.gz: 5d6c6505a0bd3bb14b5eba440b5362fc6426eafb
3
+ metadata.gz: dbb2c924f14cb51125c9a2248c3363c44db153f6
4
+ data.tar.gz: 01990347371ae73f6e51b9f82f1c8912fd99d656
5
5
  SHA512:
6
- metadata.gz: e3616aec39b43df2262f27269603f3ff92895cef3bda44a675fea9e9b19dba9fba87b8e552ad9204525664d8e8baaba9d49032fa1c5d9d8d19b5b92a7b8b3309
7
- data.tar.gz: c1144f33897f6b786148bbbc6c95c171fcdf2d5e7406a8e03278c31ff03e256f0a225f35b60ec93b16dd83576b886a4d62df093de31977ee14c0d3f1f1c390b7
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['REQUEST_PATH']
19
+ @rack_request.env[::Rack::PATH_INFO]
24
20
  end
25
21
 
26
22
  def host
27
- @rack_request.env['HTTP_HOST']
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
@@ -1,3 +1,3 @@
1
1
  module Escher
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
@@ -5,7 +5,7 @@ require 'rack/request'
5
5
 
6
6
  describe Escher::Request::RackRequest do
7
7
 
8
- let(:request_params) { {"PATH_INFO" => "/", } }
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.merge! 'REQUEST_PATH' => '/resources/id///'
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.2
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-02-23 00:00:00.000000000 Z
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.4.5.1
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)