libsaml 2.15.1 → 2.15.2

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: 067b8675cd140dfdc7b65eefba942c99dda19d49
4
- data.tar.gz: d38738ba962dd8e98010cb75d4be3e094b0d48b8
3
+ metadata.gz: 5af4065195477dcd366e4e7ab007d1fe3b672eb7
4
+ data.tar.gz: e680f65ed904b1fa80e65c842a9cc3e1b9be0ba5
5
5
  SHA512:
6
- metadata.gz: 7dc9d91c9f0a90ce5f784a53b41b56dfb092102c1e5b30354d3a160e459c3a2e6d2e45b8a70ddb8927e2003d5eb36ada254f02c4e0407af04dbd33f4dcf04402
7
- data.tar.gz: 9594ae1ac0be7494e4d4458b12efedea85d5665a7adec0c554823818e3511eea3f24deaf2d3b02675b7cfbada999686a7d86698de678a54ebb21877e141fb17c
6
+ metadata.gz: 5227640742cd06100b00525c9cb2e2bd6925e246c51645fd4f1e24a3ef52983c969eb6d3db1a732d11c590322822ab9e2e52fcc075146679e1004c38a871cf38
7
+ data.tar.gz: 591fcfe04b113e12a258d65214eef9116f58be175dcf5a418b2e71252b0772e5faa874f6cafb98350b5af56e5f1e9c1eab465065b74ef530593737ae74f54450
data/lib/saml/base.rb CHANGED
@@ -9,7 +9,15 @@ module Saml
9
9
  include ::ActiveModel::Validations
10
10
 
11
11
  attr_accessor :xml_value
12
- has_xml_content
12
+
13
+ def use_parsed
14
+ @use_parsed = true
15
+ self
16
+ end
17
+
18
+ def use_parsed?
19
+ @use_parsed
20
+ end
13
21
 
14
22
  extend XmlMapperClassMethods
15
23
  include XmlMapperInstanceMethods
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.15.1"
2
+ VERSION = "2.15.2"
3
3
  end
@@ -17,7 +17,7 @@ module Saml
17
17
  write_xml = builder.nil? ? true : false
18
18
  builder ||= Nokogiri::XML::Builder.new
19
19
  builder.doc.encoding = "UTF-8"
20
- result = if xml_value
20
+ result = if xml_value && use_parsed?
21
21
  builder << xml_value
22
22
  builder
23
23
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.1
4
+ version: 2.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.6.0
47
+ version: 0.6.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.6.0
54
+ version: 0.6.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: xmldsig
57
57
  requirement: !ruby/object:Gem::Requirement