Module: X::Streaming

Defined in:
x-streaming/lib/x/streaming/version.rb,
x-streaming/lib/x/streaming/api.rb,
x-streaming/lib/x/streaming/error.rb,
x-streaming/lib/x/streaming/stopper.rb,
x-streaming/lib/x/streaming/validator.rb,
x-streaming/lib/x/streaming/stream_rule.rb,
x-streaming/lib/x/streaming/stream_error.rb,
x-streaming/lib/x/streaming/stream_rules.rb,
x-streaming/lib/x/streaming/stream_parser.rb,
x-streaming/lib/x/streaming/callback_error.rb,
x-streaming/lib/x/streaming/streaming_client.rb,
x-streaming/lib/x/streaming/reconnect_handler.rb

Overview

Streams from the X API, and the rules of its filtered stream

Defined Under Namespace

Modules: API Classes: Error

Constant Summary collapse

VERSION =

The current version of the x-streaming 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. 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::Streaming.gem_version >= Gem::Version.new("1.1")

Returns:

  • (Gem::Version) —

    the version



22
# File 'x-streaming/lib/x/streaming/version.rb', line 22

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