Commit c2bade7

mo <mo.khan@gmail.com>
2018-11-21 03:24:13
fix linter errors.
1 parent 7d9e689
lib/xml/kit/certificate.rb
@@ -4,9 +4,9 @@ module Xml
   module Kit
     # {include:file:spec/xml/certificate_spec.rb}
     class Certificate
-      BASE64_FORMAT = %r(\A([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\Z)
-      BEGIN_CERT = /-----BEGIN CERTIFICATE-----/
-      END_CERT = /-----END CERTIFICATE-----/
+      BASE64_FORMAT = %r(\A([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\Z).freeze
+      BEGIN_CERT = /-----BEGIN CERTIFICATE-----/.freeze
+      END_CERT = /-----END CERTIFICATE-----/.freeze
       # The use can be `:signing` or `:encryption`. Use `nil` for both.
       attr_reader :use
 
@@ -29,6 +29,7 @@ module Xml
       # @return [Boolean] true or false.
       def for?(use)
         return true if self.use.nil?
+
         self.use == use.to_sym
       end
 
lib/xml/kit/templatable.rb
@@ -41,6 +41,7 @@ module Xml
 
       def signature_for(reference_id:, xml:)
         return unless sign?
+
         signatures.build(reference_id).to_xml(xml: xml)
       end
 
lib/xml/kit/template.rb
@@ -22,6 +22,7 @@ module Xml
 
       def template_path
         return target.template_path if target.respond_to?(:template_path)
+
         TEMPLATES_DIR.join(template_name)
       end
 
xml-kit.gemspec
@@ -1,4 +1,3 @@
-
 # frozen_string_literal: true
 
 lib = File.expand_path('lib', __dir__)