xmlenc 0.6.4 → 0.6.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b8a23492d87e17692532f16fbcb8e222521d8b0
|
4
|
+
data.tar.gz: cc8f4b74ba9f5e60adbe95b4f7096b6da5294f3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8da26208ed9a9aef8464a102c4e71e72105a9e92ca0341bb8befd2806ba8192ef8560590ed74d5fa7dd6981d320fcd0f19a403c6c6be203b20149f14fae2914e
|
7
|
+
data.tar.gz: f0c94f4d55b82048c30ff2bea0911497bbc825028755b372e5b603770c8f3ea3efd70f72096e8929157dc052da6cf595081da5097ea9ade87ac03305bd0f4134
|
@@ -14,6 +14,8 @@ module Xmlenc
|
|
14
14
|
attribute :id, String, tag: 'Id'
|
15
15
|
attribute :recipient, String, tag: 'Recipient'
|
16
16
|
|
17
|
+
element :carried_key_name, String, tag: 'CarriedKeyName', namespace: 'xenc'
|
18
|
+
|
17
19
|
has_one :reference_list, Xmlenc::Builder::ReferenceList, :xpath => "./"
|
18
20
|
|
19
21
|
attr_accessor :data
|
data/lib/xmlenc/version.rb
CHANGED
@@ -20,7 +20,7 @@ describe Xmlenc::Builder::EncryptedKey do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
describe "optional fields" do
|
23
|
-
[:id, :recipient, :encryption_method, :key_info].each do |field|
|
23
|
+
[:id, :recipient, :encryption_method, :key_info, :carried_key_name].each do |field|
|
24
24
|
it "should have the #{field} field" do
|
25
25
|
expect(subject).to respond_to field
|
26
26
|
end
|
@@ -41,6 +41,10 @@ describe Xmlenc::Builder::EncryptedKey do
|
|
41
41
|
expect(subject.reference_list).to be_a Xmlenc::Builder::ReferenceList
|
42
42
|
end
|
43
43
|
|
44
|
+
it 'should have a carried key name' do
|
45
|
+
expect(subject.carried_key_name).to eq 'key-name'
|
46
|
+
end
|
47
|
+
|
44
48
|
it "should have a data object" do
|
45
49
|
expect(subject).to respond_to :data
|
46
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmlenc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|