Sha256: af350ecfa5f6ca8cbd5f983ef562f684e9851e54063a5a8c24290c6eb9421f97

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

require 'filestack/ruby/version'

include Filestack

class FilestackConfig
  API_URL = 'https://www.filestackapi.com/api'.freeze
  CDN_URL = 'https://cdn.filestackcontent.com'.freeze
  PROCESS_URL = 'https://process.filestackapi.com'.freeze

  MULTIPART_START_URL = 'https://upload.filestackapi.com/multipart/start'.freeze
  MULTIPART_UPLOAD_URL = 'https://upload.filestackapi.com/multipart/upload'.freeze
  MULTIPART_COMPLETE_URL = 'https://upload.filestackapi.com/multipart/complete'.freeze

  MULTIPART_PARAMS = %w[
    store_location store_region store_container
    store_path store_access
  ].freeze

  DEFAULT_CHUNK_SIZE = 5 * 1024**2
  VERSION = Filestack::Ruby::VERSION
  HEADERS = {
    'User-Agent' => "filestack-ruby #{VERSION}",
    'Filestack-Source' => "Ruby-#{VERSION}"
  }.freeze
end

class TransformConfig
  TRANSFORMATIONS = %w[
    resize crop rotate flip flop watermark detect_faces
    crop_faces pixelate_faces round_corners vignette polaroid
    torn_edges shadow circle border sharpen blur monochrome
    blackwhite sepia pixelate oil_paint negative modulate
    partial_pixelate partial_blur collage upscale enhance
    redeye ascii filetype_conversion quality
  ].freeze
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
filestack-2.1.0 lib/filestack/config.rb
filestack-2.0.1 lib/filestack/config.rb
filestack-2.0.0 lib/filestack/config.rb