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: f42a034e24ec614a6ec82243b7fae02d7dd7568e
4
- data.tar.gz: ee2f602d322d9d1c1fb67e723a4d88b5cc2783a5
3
+ metadata.gz: 9b8a23492d87e17692532f16fbcb8e222521d8b0
4
+ data.tar.gz: cc8f4b74ba9f5e60adbe95b4f7096b6da5294f3b
5
5
  SHA512:
6
- metadata.gz: ec19ef79d4ef7c85361f62eb13a18fa3979bbce289521d1e0e1b8911f69bc5d2c2924e7afe9f458d20214bfdf92dca0ced7890d12a844fe88bd171d434e8d348
7
- data.tar.gz: 13190ccdb5144ec116e1c43406fdb8a9912c1ed5f78e17350dd2d71c1c6f986dcf424e525d0221a8378b3a13e4c9e12440e35e7d1e2cdac0a6fccdabef4b035c
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
@@ -1,3 +1,3 @@
1
1
  module Xmlenc
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
@@ -48,6 +48,7 @@
48
48
  <ReferenceList>
49
49
  <DataReference URI="#ED"/>
50
50
  </ReferenceList>
51
+ <CarriedKeyName>key-name</CarriedKeyName>
51
52
  </EncryptedKey>
52
53
  </ds:KeyInfo>
53
54
  <CipherData>
@@ -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
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-06-03 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport