http_signatures 1.0.2 → 1.0.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 211c7a8d8e656760821b3384e63f7a62e4a9428b
|
4
|
+
data.tar.gz: a5537660d48d818fa9ccc0195659465614c86a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22870cdc6c4fc10382354830bfec839f6d690831ad7aa58ebb4bcd75f4456f40dd97c9428b4f76872915e1df7d534184d9cf55feb77500b5408ad9a0de834262
|
7
|
+
data.tar.gz: ee2da91a61217b48d98e568733ef85038ecdebe1fe7ab7f2182afdea14aa411b4b9841ae8ee0d1b029761ab365fea29dc41c4d54743b6e148413365a10794985
|
@@ -19,6 +19,16 @@ RSpec.describe HttpSignatures::SignatureParametersParser do
|
|
19
19
|
}
|
20
20
|
)
|
21
21
|
end
|
22
|
+
|
23
|
+
context "with invalid input" do
|
24
|
+
let(:input) do
|
25
|
+
'foo="bar",algorithm="hmac-sha1",headers="(request-target) date",signature="b64"'
|
26
|
+
end
|
27
|
+
it "fails with explanatory error message" do
|
28
|
+
expect { parser.parse }.
|
29
|
+
to raise_error(HttpSignatures::SignatureParametersParser::Error, 'unparseable segment: foo="bar"')
|
30
|
+
end
|
31
|
+
end
|
22
32
|
end
|
23
33
|
|
24
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_signatures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Annesley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -127,3 +127,4 @@ test_files:
|
|
127
127
|
- spec/signing_string_spec.rb
|
128
128
|
- spec/spec_helper.rb
|
129
129
|
- spec/verifier_spec.rb
|
130
|
+
has_rdoc:
|