Sha256: 530a8c1974314ebc7ba0efbf52456cba882360b7ad0b391527f5a879c5e103bd

Contents?: true

Size: 362 Bytes

Versions: 15

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

module WorkOS
  # Provides helpers for working with deprecated SDK and API features.
  module Deprecation
    def warn_deprecation(message)
      full_message = "[DEPRECATION] #{message}"

      if RUBY_VERSION > '3'
        warn full_message, category: :deprecated
      else
        warn full_message
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
workos-5.9.0 lib/workos/deprecation.rb
workos-5.8.0 lib/workos/deprecation.rb
workos-5.7.0 lib/workos/deprecation.rb
workos-5.6.0 lib/workos/deprecation.rb
workos-5.5.1 lib/workos/deprecation.rb
workos-5.5.0 lib/workos/deprecation.rb
workos-5.4.0 lib/workos/deprecation.rb
workos-5.3.0 lib/workos/deprecation.rb
workos-5.2.1 lib/workos/deprecation.rb
workos-5.2.0 lib/workos/deprecation.rb
workos-5.1.0 lib/workos/deprecation.rb
workos-5.0.0 lib/workos/deprecation.rb
workos-4.8.0 lib/workos/deprecation.rb
workos-4.5.0 lib/workos/deprecation.rb
workos-4.4.0 lib/workos/deprecation.rb