saml-kit 1.0.17 → 1.0.18

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
  SHA256:
3
- metadata.gz: 8740c5ff70303b968a161c67da75dfc7651d9456f6020d4bca4859cefce353c6
4
- data.tar.gz: cf0a2a09fa2aa032029f928c1751b09bcc1d0d51b151e8c05d882b5fb689d50b
3
+ metadata.gz: 927b054a29dcaf1cb7bd7e56510568b88876ce3261bb860e84def65aa953a157
4
+ data.tar.gz: a6ec4be04bcd08417d986be71d3b61a9b86e504cf1a012aab53fd52f760c0c61
5
5
  SHA512:
6
- metadata.gz: 898f5356615e106f93446b6cc785eb1f5ba86bd82ad4978a5c6f39df92fedb1602ce5a974e33f8a5b4d60fe47aa3e06a528b5da4d7f0e8b1791b54fbfcc14bb0
7
- data.tar.gz: a06066cf4bc5e22d57d184498e2f798b3cb5b46b25092973f558623085644790d745d778d9532a80fbf836083f7e86ba8a7dbe1ad75a94b4b0012557b7ce8085
6
+ metadata.gz: e45ac8266b55173f1b91454b7f254e44047c7e012174bc5fb3ac4deb5efe3fc89cc1b8f6be7d607b6319db43ea5287b5752d4d6530162491ce65481fbca5a928
7
+ data.tar.gz: edc8ce6cc3527144fa75b70e9a38e9a221f9a14366121452d0c11a68584b43ceef2389c04146fbadc1270cd36eab7c0d5927293772a26301034a1b0407b9b1d5
data/lib/saml/kit.rb CHANGED
@@ -41,6 +41,7 @@ require 'saml/kit/default_registry'
41
41
  require 'saml/kit/logout_response'
42
42
  require 'saml/kit/logout_request'
43
43
  require 'saml/kit/metadata'
44
+ require 'saml/kit/deprecated/metadata'
44
45
  require 'saml/kit/null_assertion'
45
46
  require 'saml/kit/organization'
46
47
  require 'saml/kit/parser'
@@ -24,7 +24,7 @@ xml.Assertion(assertion_options) do
24
24
  if assertion_attributes.any?
25
25
  xml.AttributeStatement do
26
26
  assertion_attributes.each do |key, value|
27
- xml.Attribute Name: key, NameFormat: Saml::Kit::Namespaces::URI, FriendlyName: key do
27
+ xml.Attribute Name: key do
28
28
  xml.AttributeValue value.to_s
29
29
  end
30
30
  end
@@ -0,0 +1,17 @@
1
+ module Saml
2
+ module Kit
3
+ class Metadata
4
+ # @deprecated
5
+ def organization_name
6
+ Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
7
+ organization.name
8
+ end
9
+
10
+ # @deprecated
11
+ def organization_url
12
+ Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
13
+ organization.url
14
+ end
15
+ end
16
+ end
17
+ end
@@ -19,18 +19,6 @@ module Saml
19
19
  def url
20
20
  at_xpath('./md:OrganizationURL').try(:text)
21
21
  end
22
-
23
- # @deprecated
24
- def organization_name
25
- Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
26
- name
27
- end
28
-
29
- # @deprecated
30
- def organization_url
31
- Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
32
- url
33
- end
34
22
  end
35
23
  end
36
24
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Saml
4
4
  module Kit
5
- VERSION = '1.0.17'.freeze
5
+ VERSION = '1.0.18'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan
@@ -259,6 +259,7 @@ files:
259
259
  - lib/saml/kit/conditions.rb
260
260
  - lib/saml/kit/configuration.rb
261
261
  - lib/saml/kit/default_registry.rb
262
+ - lib/saml/kit/deprecated/metadata.rb
262
263
  - lib/saml/kit/document.rb
263
264
  - lib/saml/kit/identity_provider_metadata.rb
264
265
  - lib/saml/kit/invalid_document.rb