Sha256: a9a535ef18a57b1ad57a7d36ca73451287d7d647c2e995459ae2d44429c69e28

Contents?: true

Size: 1.26 KB

Versions: 15

Compression:

Stored size: 1.26 KB

Contents

require 'ey-core/version'

require 'addressable/uri'
require 'cistern'
require 'ey-hmac'
require 'ey-hmac/faraday'
require 'faraday'
require 'faraday_middleware'
require 'mime/types'
require 'sshkey'

require 'date'
require 'forwardable'
require 'logger'
require 'yaml'
require 'securerandom'
require 'json'

Cistern.timeout = 5 * 60 # 5 minutes

module Ey
  module Core

    IP_REGEX = /^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(\/(\d|[1-2]\d|3[0-2]))?/

    def self.paging_parameters(params)
      if url = params['url']
        Addressable::URI.parse(url).query_values
      else
        params
      end
    end

    # @fixme find a much better way to do this
    def self.colocated?(location_a, location_b)
      location_a.gsub(/[a-z]$/, "") == location_b.gsub(/[a-z]$/, "")
    end
  end
end

require 'ey-core/associations'
require 'ey-core/collection'
require 'ey-core/logger'
require 'ey-core/model'
require 'ey-core/subscribable'
require 'ey-core/response'
require 'ey-core/token_authentication'
require 'ey-core/request_failure'
require 'ey-core/response_cache'
require 'ey-core/memory_cache'

require 'ey-core/mock/helper'
require 'ey-core/mock/params'
require 'ey-core/mock/resources'
require 'ey-core/mock/searching'
require 'ey-core/mock/util'

require 'ey-core/client'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ey-pro-cli-0.0.17 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.16 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.15 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.14 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.13 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.12 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.11 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.10 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.9 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.8 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.7 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.6 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.5 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.4 lib/vendor/core/ey-core.rb
ey-pro-cli-0.0.3 lib/vendor/core/ey-core.rb