xmlenc 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xmlenc/builder/encrypted_data.rb +1 -1
- data/lib/xmlenc/version.rb +1 -1
- data/spec/lib/xmlenc/builder/encrypted_data_spec.rb +12 -4
- 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: ab733b0cf61182307e356ed8ff07aa948fd794e0
|
4
|
+
data.tar.gz: bdfc59ff13e17a2044dedbeab8e8a0cca8af8dfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3baf160e59ac781cf6c271d78df1c61092b7f13db4c42189c8a46d31e7165f45b3d806ab00a9af1c78c8699bc398216072a85247bc909f667eb521d409397e4
|
7
|
+
data.tar.gz: 3bb19668cd7317d46ffc8a3439d94a55f44e124b8787c92ec2168df714a2ee760b4bb92295a6a6ab90c3672558dcbbc305fc38e7ea0e23da1ee0396cb4778d2b
|
data/lib/xmlenc/version.rb
CHANGED
@@ -73,12 +73,20 @@ describe Xmlenc::Builder::EncryptedData do
|
|
73
73
|
end
|
74
74
|
|
75
75
|
describe "#initialize" do
|
76
|
-
|
77
|
-
|
76
|
+
context 'no id specified' do
|
77
|
+
it 'sets a default #id' do
|
78
|
+
expect(described_class.new().id).to be_a String
|
79
|
+
end
|
80
|
+
|
81
|
+
it 'the default #id should start with a letter or an _' do
|
82
|
+
expect(described_class.new.id =~ /^[a-zA-Z_]/).not_to eq nil
|
83
|
+
end
|
78
84
|
end
|
79
85
|
|
80
|
-
|
81
|
-
|
86
|
+
context 'id specified' do
|
87
|
+
it 'sets #id to specified id' do
|
88
|
+
expect(described_class.new(id: 'TEST').id).to eq 'TEST'
|
89
|
+
end
|
82
90
|
end
|
83
91
|
end
|
84
92
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|