Sha256: dc49738728b48eae5fcc36688db74275b43fba126b8c704bf9028f1839cc5030

Contents?: true

Size: 1.31 KB

Versions: 9

Compression:

Stored size: 1.31 KB

Contents

# typed: strict
# frozen_string_literal: true

require 'sorbet-runtime'

# Global libs and monkey patches
require 'active_support/all'
require 'active_support/json'

require_relative '../types/binary'
require_relative '../types/unicode_string'

require_relative '../extension/array'
require_relative '../extension/case_sensitive_headers'
require_relative '../extension/content_encoding_decoder'
require_relative '../extension/currency'
require_relative '../extension/date'
require_relative '../extension/enumerable'
require_relative '../extension/extra_chain_cert'
require_relative '../extension/hash'
require_relative '../extension/integer'
require_relative '../extension/nil_class'
require_relative '../extension/object'
require_relative '../extension/phone'
require_relative '../extension/string'
require_relative '../extension/symbol'
require_relative '../extension/time'

require_relative 'sdk/core'

begin
  tz = ENV.fetch('TZ', nil)
  if tz.present? && tz != 'UTC'
    warn "WARNING: TZ environment variable is set to '#{tz}'. Set TZ=UTC for consistency with Workato platform'"
  else
    ENV['TZ'] = 'UTC'
  end
  Time.zone = Workato::Connector::Sdk::DEFAULT_TIME_ZONE
rescue TZInfo::DataSourceNotFound
  puts ''
  puts "tzinfo-data is not present. Please install gem 'tzinfo-data' by 'gem install tzinfo-data'"
  puts ''
  exit!
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
workato-connector-sdk-1.3.14 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.13 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.12 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.11 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.10 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.9 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.8 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.7 lib/workato/connector/sdk.rb
workato-connector-sdk-1.3.6 lib/workato/connector/sdk.rb