Commit 81d75c0

mo <mo@mokhan.ca>
2018-01-02 21:13:45
deprecate constants.
1 parent bb2ecd1
Changed files (2)
lib/saml/kit/namespaces.rb
@@ -19,6 +19,9 @@ module Saml
       UNSPECIFIED_NAMEID = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
       URI = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
       VERSION_MISMATCH_ERROR = "urn:oasis:names:tc:SAML:2.0:status:VersionMismatch"
+
+      # @deprecated Use {#::Xml::Kit::Namespace::XMLDSIG} instead of this.
+      XMLDSIG = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::Namespaces::XMLDSIG', '::Xml::Kit::Namespaces::XMLDSIG')
     end
   end
 end
lib/saml/kit.rb
@@ -65,5 +65,10 @@ module Saml
         @deprecation.deprecation_warning(message)
       end
     end
+
+    # @deprecated Use {#::Xml::Kit::Id} instead of this.
+    Id = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::Id', '::Xml::Kit::Id')
+    # @deprecated Use {#::Xml::Kit::Fingerprint} instead of this.
+    Fingerprint = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::Fingerprint', '::Xml::Kit::Fingerprint')
   end
 end