Sha256: 775ed3672e8bddc56d6d13a80038446075003733562780a254ec6d96455ae3e7
Contents?: true
Size: 1019 Bytes
Versions: 2
Compression:
Stored size: 1019 Bytes
Contents
require "rubygems" require "uri" require "digest/sha1" require "base64" require "rack/utils" require "curl" require "json" require 'nokogiri' require 'uuidtools' require 'cloud_query/client' require 'cloud_query/crypto' require 'cloud_query/field' require 'cloud_query/request' require 'cloud_query/schema' require 'cloud_query/x64' module CloudQuery SCHEME = "https".freeze HOST = "api.xoopit.com".freeze PATH = "/v0".freeze API_PATHS = { :account => "account".freeze, :schema => "schema".freeze, :indexes => "i".freeze, :documents => "i".freeze, }.freeze # Standard Content-Types for requests CONTENT_TYPES = { :json => 'application/json;charset=utf-8'.freeze, :form => 'application/x-www-form-urlencoded'.freeze, :xml => 'application/xml;charset=utf-8'.freeze, }.freeze SIGNING_METHOD = "SHA1".freeze COOKIE_JAR = (ENV["COOKIE_JAR"] || ".cookies.lwp").freeze end class Time def to_i_milliseconds (to_f * 1000).to_i end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xoopit-cloud_query-0.2.0 | lib/cloud_query.rb |
xoopit-cloud_query-0.2.1 | lib/cloud_query.rb |