apill 2.7.0 → 2.7.1
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 +4 -4
- data/lib/apill/requests/rack_request.rb +1 -1
- data/lib/apill/version.rb +1 -1
- data/spec/apill/requests/rack_request_spec.rb +13 -0
- 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: 19fd91487d72b0958cf639a9eaa44435a0519f20
|
4
|
+
data.tar.gz: fbd7296da9eee162e7eade29bcdb39fd91521546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 892892befdf4a720ca7fedbb59b1934607eb0aa2408d577d68eb60f2eead7bf32554852d66074b2a40e5056c965db1910bc34f826e85c0b29c7a4605b9402261
|
7
|
+
data.tar.gz: 8aff948b17818e441c8163bef2d4d3eeb9116b8041099a9e538a6465817bc71cf8d0062d431a6fba23ba539a788bb1e2d1e5a07fd508fa9872c6a3e41f514ad7
|
data/lib/apill/version.rb
CHANGED
@@ -39,6 +39,19 @@ describe RackRequest do
|
|
39
39
|
expect(request.accept_header.to_s).to eql 'application/vnd.matrix+zion;version=10.0'
|
40
40
|
end
|
41
41
|
|
42
|
+
# rubocop:disable Metrics/LineLength
|
43
|
+
it 'finds the accept header from the query string if it is encoded' do
|
44
|
+
raw_request = {
|
45
|
+
'HTTP_ACCEPT' => '',
|
46
|
+
'QUERY_STRING' => 'accept=application%2Fvnd.matrix%2Bzion%3Bversion%3D10.0',
|
47
|
+
'HTTP_X_APPLICATION_NAME' => 'matrix',
|
48
|
+
}
|
49
|
+
request = RackRequest.new(raw_request)
|
50
|
+
|
51
|
+
expect(request.accept_header.to_s).to eql 'application/vnd.matrix+zion;version=10.0'
|
52
|
+
end
|
53
|
+
# rubocop:enable Metrics/LineLength
|
54
|
+
|
42
55
|
it 'defaults to the application name in the configuration if none is found in ' \
|
43
56
|
'the header' do
|
44
57
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: human_error
|