Commit 61d7d05

mo <mo@mokhan.ca>
2018-08-09 23:15:37
fix lint errors.
1 parent 88673a0
Changed files (3)
lib/saml/kit/deprecated/metadata.rb
@@ -0,0 +1,17 @@
+module Saml
+  module Kit
+    class Metadata
+      # @deprecated
+      def organization_name
+        Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
+        organization.name
+      end
+
+      # @deprecated
+      def organization_url
+        Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
+        organization.url
+      end
+    end
+  end
+end
lib/saml/kit/metadata.rb
@@ -61,18 +61,6 @@ module Saml
         @organization ||= Organization.new(at_xpath(xpath))
       end
 
-      # @deprecated
-      def organization_name
-        Saml::Kit.deprecate('`organization_name` is deprecated. Use `organization.name`')
-        organization.name
-      end
-
-      # @deprecated
-      def organization_url
-        Saml::Kit.deprecate('`organization_url` is deprecated. Use `organization.url`')
-        organization.url
-      end
-
       # Returns the Company
       def contact_person_company
         at_xpath('/md:EntityDescriptor/md:ContactPerson/md:Company').try(:text)
lib/saml/kit.rb
@@ -41,6 +41,7 @@ require 'saml/kit/default_registry'
 require 'saml/kit/logout_response'
 require 'saml/kit/logout_request'
 require 'saml/kit/metadata'
+require 'saml/kit/deprecated/metadata'
 require 'saml/kit/null_assertion'
 require 'saml/kit/organization'
 require 'saml/kit/parser'