Sha256: 00177c938f304370690f4e23bdf932dbec9e5b9a99e72a620f2c9cd9433789fe

Contents?: true

Size: 271 Bytes

Versions: 4

Compression:

Stored size: 271 Bytes

Contents

module RubySamlSupport
  VERSION_1_12 = Gem::Version.new("1.12.0")
  def with_ruby_saml_1_12_or_greater(body, args = {else_do: nil})
    if Gem::Version.new(OneLogin::RubySaml::VERSION) >= VERSION_1_12
      body.call
    else
      args[:else_do].call
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_saml_authenticatable-1.9.1 spec/support/ruby_saml_support.rb
devise_saml_authenticatable-1.9.0 spec/support/ruby_saml_support.rb
devise_saml_authenticatable-1.8.0 spec/support/ruby_saml_support.rb
devise_saml_authenticatable-1.7.0 spec/support/ruby_saml_support.rb