Module: X::Core

Defined in:
x-core/lib/x/core/version.rb,
x-core/lib/x/core/client.rb,
x-core/lib/x/core/origin.rb,
x-core/lib/x/core/response.rb,
x-core/lib/x/core/connection.rb,
x-core/lib/x/core/client_memo.rb,
x-core/lib/x/core/stream_body.rb,
x-core/lib/x/core/authenticator.rb,
x-core/lib/x/core/oauth2_tokens.rb,
x-core/lib/x/core/proxy_setting.rb,
x-core/lib/x/core/retry_handler.rb,
x-core/lib/x/core/built_response.rb,
x-core/lib/x/core/oauth2_refresh.rb,
x-core/lib/x/core/token_endpoint.rb,
x-core/lib/x/core/client_app_only.rb,
x-core/lib/x/core/client_settings.rb,
x-core/lib/x/core/connection_pool.rb,
x-core/lib/x/core/request_builder.rb,
x-core/lib/x/core/request_context.rb,
x-core/lib/x/core/response_parser.rb,
x-core/lib/x/core/client_internals.rb,
x-core/lib/x/core/connection_proxy.rb,
x-core/lib/x/core/redirect_handler.rb,
x-core/lib/x/core/refresh_reporter.rb,
x-core/lib/x/core/request_encoding.rb,
x-core/lib/x/core/response_headers.rb,
x-core/lib/x/core/credential_holder.rb,
x-core/lib/x/core/errors/http_error.rb,
x-core/lib/x/core/setting_validator.rb,
x-core/lib/x/core/client_credentials.rb,
x-core/lib/x/core/connection_request.rb,
x-core/lib/x/core/rate_limit_handler.rb,
x-core/lib/x/core/client_token_refresh.rb,
x-core/lib/x/core/credential_validator.rb,
x-core/lib/x/core/errors/network_error.rb,
x-core/lib/x/core/oauth1_authenticator.rb,
x-core/lib/x/core/oauth2_authenticator.rb,
x-core/lib/x/core/oauth2_authorization.rb,
x-core/lib/x/core/authenticator_request.rb,
x-core/lib/x/core/errors/callback_error.rb,
x-core/lib/x/core/app_only_authenticator.rb,
x-core/lib/x/core/errors/invalid_response.rb,
x-core/lib/x/core/errors/too_many_redirects.rb,
x-core/lib/x/core/bearer_token_authenticator.rb

Overview

The HTTP layer of the X gem

Constant Summary collapse

VERSION =

The current version of the x-core gem

"1.0.0"

Class Method Summary collapse

Class Method Details

.gem_version ⇒ Gem::Version

The version as a Gem::Version, which compares one release with another

VERSION is a String, as a version constant is throughout Ruby, so that what reads it can split it, match it, or send it wherever a String belongs, such as the User-Agent of a request. This builds the Gem::Version that compares it with another version, which a String compares by character rather than by segment.

Examples:

Take a path that a later release opened

X::Core.gem_version >= Gem::Version.new("1.1")

Returns:

  • (Gem::Version) —

    the version



23
# File 'x-core/lib/x/core/version.rb', line 23

def self.gem_version = Gem::Version.new(VERSION)