repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag.rb
# frozen_string_literal: true require "jekyll" require "jekyll-seo-tag/version" module Jekyll class SeoTag < Liquid::Tag autoload :JSONLD, "jekyll-seo-tag/json_ld" autoload :AuthorDrop, "jekyll-seo-tag/author_drop" autoload :ImageDrop, "jekyll-seo-tag/image_drop" autoload :JSONLDDrop, "jekyll-s...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/json_ld.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/json_ld.rb
# frozen_string_literal: true module Jekyll class SeoTag # This module is deprecated, but is included in the Gem to avoid a breaking # change and should be removed at the next major version bump module JSONLD METHODS_KEYS = { :json_context => "@context", :type => "@type"...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/version.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/version.rb
# frozen_string_literal: true # Prevent bundler errors module Liquid; class Tag; end; end module Jekyll class SeoTag < Liquid::Tag VERSION = "2.8.0" end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/url_helper.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/url_helper.rb
# frozen_string_literal: true module Jekyll class SeoTag # Mixin to share common URL-related methods between class module UrlHelper private # Determines if the given string is an absolute URL # # Returns true if an absolute URL # Returns false if it's a relative URL # Ret...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/image_drop.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/image_drop.rb
# frozen_string_literal: true module Jekyll class SeoTag # A drop representing the page image # The image path will be pulled from: # # 1. The `image` key if it's a string # 2. The `image.path` key if it's a hash # 3. The `image.facebook` key # 4. The `image.twitter` key class ImageDr...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/json_ld_drop.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/json_ld_drop.rb
# frozen_string_literal: true module Jekyll class SeoTag class JSONLDDrop < Jekyll::Drops::Drop extend Forwardable def_delegator :page_drop, :name, :name def_delegator :page_drop, :description, :description def_delegator :page_drop, :canonical_url, :url def_delegator ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/author_drop.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/author_drop.rb
# frozen_string_literal: true module Jekyll class SeoTag # A drop representing the current page's author # # Author name will be pulled from: # # 1. The page's `author` key # 2. The first author in the page's `authors` key # 3. The `author` key in the site config # # If the result...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/drop.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/drop.rb
# frozen_string_literal: true module Jekyll class SeoTag class Drop < Jekyll::Drops::Drop include Jekyll::SeoTag::UrlHelper TITLE_SEPARATOR = " | " FORMAT_STRING_METHODS = [ :markdownify, :strip_html, :normalize_whitespace, :escape_once, ].freeze HOMEPAGE_OR_ABOUT_REGEX = %...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/filters.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag/filters.rb
# frozen_string_literal: true module Jekyll class SeoTag class Filters include Jekyll::Filters include Liquid::StandardFilters def initialize(context) @context = context end end end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width.rb
.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width.rb
require_relative 'display_width/constants' require_relative 'display_width/index' module Unicode module DisplayWidth DEPTHS = [0x10000, 0x1000, 0x100, 0x10].freeze def self.of(string, ambiguous = 1, overwrite = {}, options = {}) res = string.codepoints.inject(0){ |total_width, codepoint| index...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/no_string_ext.rb
.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/no_string_ext.rb
module Unicode module DisplayWidth NO_STRING_EXT = true end end require_relative '../display_width'
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/index.rb
.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/index.rb
require 'zlib' require_relative 'constants' module Unicode module DisplayWidth File.open(INDEX_FILENAME, "rb") do |file| serialized_data = Zlib::GzipReader.new(file).read serialized_data.force_encoding Encoding::BINARY INDEX = Marshal.load(serialized_data) end end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/string_ext.rb
.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/string_ext.rb
require_relative '../display_width' unless defined? Unicode::DisplayWidth class String def display_width(ambiguous = 1, overwrite = {}, options = {}) Unicode::DisplayWidth.of(self, ambiguous, overwrite, options) end def display_size(*args) warn "Deprecation warning: Please use `String#display_width` ins...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/constants.rb
.bundles_cache/ruby/2.6.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/constants.rb
module Unicode module DisplayWidth VERSION = '1.8.0' UNICODE_VERSION = "14.0.0" DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze INDEX_FILENAME = (DATA_DIRECTORY + '/display_width.marshal.gz').freeze end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_tick_loop.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_tick_loop.rb
require "test/unit" require 'em_test_helper' class TestEmTickLoop < Test::Unit::TestCase def test_em_tick_loop i = 0 EM.tick_loop { i += 1; EM.stop if i == 10 } EM.run { EM.add_timer(1) { EM.stop } } assert_equal i, 10 end def test_tick_loop_on_stop t = nil tick_loop = EM.tick_loop { :...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pause.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pause.rb
require 'em_test_helper' class TestPause < Test::Unit::TestCase if EM.respond_to? :pause_connection def setup @port = next_port end def teardown assert(!EM.reactor_running?) end def test_pause_resume server = nil s_rx = c_rx = 0 test_server = Module.new do ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_queue.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_queue.rb
require 'em_test_helper' class TestEMQueue < Test::Unit::TestCase def test_queue_push s = 0 EM.run do q = EM::Queue.new q.push(1) EM.next_tick { s = q.size; EM.stop } end assert_equal 1, s end def test_queue_pop x,y,z = nil EM.run do q = EM::Queue.new q.push...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pool.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pool.rb
require 'em_test_helper' class TestPool < Test::Unit::TestCase def pool @pool ||= EM::Pool.new end def go EM.run { yield } end def stop EM.stop end def deferrable @deferrable ||= EM::DefaultDeferrable.new end def test_supports_more_work_than_resources ran = false go do ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pending_connect_timeout.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pending_connect_timeout.rb
require 'em_test_helper' class TestPendingConnectTimeout < Test::Unit::TestCase if EM.respond_to? :get_pending_connect_timeout def test_default EM.run { c = EM.connect("127.0.0.1", 54321) assert_equal 20.0, c.pending_connect_timeout EM.stop } end def test_set_and_get...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_running.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_running.rb
require 'em_test_helper' class TestRunning < Test::Unit::TestCase def test_running assert_equal( false, EM::reactor_running? ) r = false EM.run { r = EM::reactor_running? EM.stop } assert_equal( true, r ) end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_args.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_args.rb
require "test/unit" require 'tempfile' require 'em_test_helper' module EM def self._set_mocks class <<self alias set_tls_parms_old set_tls_parms alias start_tls_old start_tls begin old, $VERBOSE = $VERBOSE, nil def set_tls_parms *args; end def start_tls *args; end ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_ecdh_curve.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_ecdh_curve.rb
require 'em_test_helper' class TestSslEcdhCurve < Test::Unit::TestCase module Client def post_init start_tls end def ssl_handshake_completed $client_handshake_completed = true $client_cipher_name = get_cipher_name close_connection end def unbind EM.stop_event_loop ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_system.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_system.rb
# coding: utf-8 require 'em_test_helper' class TestSystem < Test::Unit::TestCase def setup @filename = File.expand_path("../я манал dump.txt", __FILE__) @test_data = 'a' * 100 File.open(@filename, 'w'){|f| f.write(@test_data)} end def test_system omit_if(windows?) result = nil status = ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_processes.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_processes.rb
require 'em_test_helper' class TestProcesses < Test::Unit::TestCase if !windows? && !jruby? # EM::DeferrableChildProcess is a sugaring of a common use-case # involving EM::popen. # Call the #open method on EM::DeferrableChildProcess, passing # a command-string. #open immediately returns an EM::Defe...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_extensions.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_extensions.rb
require 'em_test_helper' require 'socket' require 'openssl' if EM.ssl? class TestSslExtensions < Test::Unit::TestCase module Client def ssl_handshake_completed $client_handshake_completed = true close_connection end def unbind EM.stop_event_loop end def p...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_protocols.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_protocols.rb
require 'em_test_helper' require 'socket' require 'openssl' if EM.ssl? class TestSslProtocols < Test::Unit::TestCase module Client def ssl_handshake_completed $client_handshake_completed = true close_connection end def unbind EM.stop_event_loop end end ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ltp.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ltp.rb
require 'em_test_helper' class TestLineAndTextProtocol < Test::Unit::TestCase class TLP_LineBuffer < EM::P::LineAndTextProtocol attr_reader :line_buffer def initialize super @line_buffer = [] end def receive_line line @line_buffer << line end end module StopClient de...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_send_file.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_send_file.rb
require 'em_test_helper' require 'tempfile' class TestSendFile < Test::Unit::TestCase if EM.respond_to?(:send_file_data) module TestModule def initialize filename @filename = filename end def post_init send_file_data @filename close_connection_after_writing end ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_hc.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_hc.rb
require 'em_test_helper' class TestHeaderAndContentProtocol < Test::Unit::TestCase class SimpleTest < EM::P::HeaderAndContentProtocol attr_reader :first_header, :my_headers, :request def receive_first_header_line hdr @first_header ||= [] @first_header << hdr end def receive_headers hdrs...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_exc.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_exc.rb
require 'em_test_helper' class TestSomeExceptions < Test::Unit::TestCase class DoomedConnectionError < StandardError end class DoomedConnection < EventMachine::Connection def unbind raise DoomedConnectionError end end # Read the commentary in EM#run. # This test exercises the ensure block in...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_servers.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_servers.rb
require 'em_test_helper' require 'socket' class TestServers < Test::Unit::TestCase def setup @port = next_port end def server_alive? port_in_use?(@port) end def run_test_stop_server EM.run { sig = EM.start_server("127.0.0.1", @port) assert server_alive?, "Server didn't start" ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_httpclient2.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_httpclient2.rb
require 'em_test_helper' class TestHttpClient2 < Test::Unit::TestCase class TestServer < EM::Connection end def setup @port = next_port end # #connect returns an object which has made a connection to an HTTP server # and exposes methods for making HTTP requests on that connection. # #connect can ta...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_inactivity_timeout.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_inactivity_timeout.rb
require 'em_test_helper' class TestInactivityTimeout < Test::Unit::TestCase if EM.respond_to? :get_comm_inactivity_timeout def test_default EM.run { c = EM.connect("127.0.0.1", 54321) assert_equal 0.0, c.comm_inactivity_timeout EM.stop } end def test_set_and_get ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_methods.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_methods.rb
require 'em_test_helper' class TestSSLMethods < Test::Unit::TestCase module ServerHandler def post_init start_tls end def ssl_handshake_completed $server_called_back = true $server_cert_value = get_peer_cert $server_cipher_bits = get_cipher_bits $server_cipher_name = get_c...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_file_watch.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_file_watch.rb
require 'em_test_helper' require 'tempfile' class TestFileWatch < Test::Unit::TestCase if windows? def test_watch_file_raises_unsupported_error assert_raises(EM::Unsupported) do EM.run do file = Tempfile.new("fake_file") EM.watch_file(file.path) end end end e...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_resolver.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_resolver.rb
require 'em_test_helper' class TestResolver < Test::Unit::TestCase def test_nameserver assert_kind_of(String, EM::DNS::Resolver.nameserver) end def test_nameservers assert_kind_of(Array, EM::DNS::Resolver.nameservers) end def test_hosts assert_kind_of(Hash, EM::DNS::Resolver.hosts) # Make ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_futures.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_futures.rb
require 'em_test_helper' class TestFutures < Test::Unit::TestCase def setup end def teardown end def test_future assert_equal(100, EM::Deferrable.future(100) ) p1 = proc { 100 + 1 } assert_equal(101, EM::Deferrable.future(p1) ) end class MyFuture include EM::Deferrable ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_connection_count.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_connection_count.rb
require 'em_test_helper' class TestConnectionCount < Test::Unit::TestCase def teardown EM.epoll = false EM.kqueue = false end def test_idle_connection_count count = nil EM.run { count = EM.connection_count EM.stop_event_loop } assert_equal(0, count) end # Run this again ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ud.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ud.rb
require 'em_test_helper' class TestUserDefinedEvents < Test::Unit::TestCase def test_a end end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_handler_check.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_handler_check.rb
require 'em_test_helper' class TestHandlerCheck < Test::Unit::TestCase class Foo < EM::Connection; end; module TestModule; end; def test_with_correct_class assert_nothing_raised do EM.run { EM.connect("127.0.0.1", 80, Foo) EM.stop_event_loop } end end def test_with_inco...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_object_protocol.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_object_protocol.rb
require 'em_test_helper' class TestObjectProtocol < Test::Unit::TestCase module Server include EM::P::ObjectProtocol def post_init send_object :hello=>'world' end def receive_object obj $server = obj EM.stop end end module Client include EM::P::ObjectProtocol def re...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_deferrable.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_deferrable.rb
require 'em_test_helper' class TestDeferrable < Test::Unit::TestCase class Later include EM::Deferrable end def test_timeout_without_args assert_nothing_raised do EM.run { df = Later.new df.timeout(0) df.errback { EM.stop } EM.add_timer(0.01) { flunk "Deferrable was...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_basic.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_basic.rb
require 'em_test_helper' require 'socket' class TestBasic < Test::Unit::TestCase def setup @port = next_port end def test_connection_class_cache mod = Module.new a, b = nil, nil EM.run { EM.start_server '127.0.0.1', @port, mod a = EM.connect '127.0.0.1', @port, mod b = EM.conne...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_smtpclient.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_smtpclient.rb
require 'em_test_helper' class TestSmtpClient < Test::Unit::TestCase Localhost = "127.0.0.1" Localport = 9801 def setup end def teardown end def test_a # No real tests until we have a server implementation to test against. # This is what the call looks like, though: err = nil EM.run {...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_timers.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_timers.rb
require 'em_test_helper' class TestTimers < Test::Unit::TestCase def test_timer_with_block x = false EM.run { EM::Timer.new(0) { x = true EM.stop } } assert x end def test_timer_with_proc x = false EM.run { EM::Timer.new(0, proc { x = true ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_shutdown_hooks.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_shutdown_hooks.rb
require 'em_test_helper' class TestShutdownHooks < Test::Unit::TestCase def test_shutdown_hooks r = false EM.run { EM.add_shutdown_hook { r = true } EM.stop } assert_equal( true, r ) end def test_hook_order r = [] EM.run { EM.add_shutdown_hook { r << 2 } EM.add_sh...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_attach.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_attach.rb
require 'em_test_helper' require 'socket' class TestAttach < Test::Unit::TestCase class EchoServer < EM::Connection def receive_data data $received_data << data send_data data end end class EchoClient < EM::Connection def initialize socket self.notify_readable = true @socket ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_verify.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_verify.rb
require 'em_test_helper' class TestSslVerify < Test::Unit::TestCase def setup $dir = File.dirname(File.expand_path(__FILE__)) + '/' $cert_from_file = File.read($dir+'client.crt') end module ClientNoCert def connection_completed start_tls() end def ssl_handshake_completed $client...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pure.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_pure.rb
require 'em_test_helper' class TestPure < Test::Unit::TestCase def setup @port = next_port end # These tests are intended to exercise problems that come up in the # pure-Ruby implementation. However, we DON'T constrain them such that # they only run in pure-Ruby. These tests need to work identically in...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ipv6.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ipv6.rb
require 'em_test_helper' class TestIPv6 < Test::Unit::TestCase if Test::Unit::TestCase.public_ipv6? # Runs a TCP server in the local IPv6 address, connects to it and sends a specific data. # Timeout in 2 seconds. def test_ipv6_tcp_local_server @@received_data = nil @local_port = next_port ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_kb.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_kb.rb
require 'em_test_helper' class TestKeyboardEvents < Test::Unit::TestCase module KbHandler include EM::Protocols::LineText2 def receive_line d EM::stop if d == "STOP" end end # This test doesn't actually do anything useful but is here to # illustrate the usage. If you removed the timer and r...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ipv4.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ipv4.rb
require 'em_test_helper' class TestIPv4 < Test::Unit::TestCase # Runs a TCP server in the local IPv4 address, connects to it and sends a specific data. # Timeout in 2 seconds. def test_ipv4_tcp_local_server omit_if(!Test::Unit::TestCase.public_ipv4?) @@received_data = nil @local_port = next_port ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_iterator.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_iterator.rb
require 'em_test_helper' class TestIterator < Test::Unit::TestCase # By default, format the time with tenths-of-seconds. # Some tests should ask for extra decimal places to ensure # that delays between iterations will receive a changed time. def get_time(n=1) time = EM.current_time time.strftime('%H:%...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_fork.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_fork.rb
require 'em_test_helper' class TestFork < Test::Unit::TestCase def test_fork_safe omit_if(jruby?) omit_if(windows?) fork_pid = nil read, write = IO.pipe EM.run do fork_pid = fork do write.puts "forked" EM.run do EM.next_tick do write.puts "EM ran" ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_dhparam.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ssl_dhparam.rb
require 'em_test_helper' class TestSslDhParam < Test::Unit::TestCase def setup $dir = File.dirname(File.expand_path(__FILE__)) + '/' $dhparam_file = File.join($dir, 'dhparam.pem') end module Client def post_init start_tls end def ssl_handshake_completed $client_handshake_complet...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_defer.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_defer.rb
require 'em_test_helper' class TestDefer < Test::Unit::TestCase def test_defers n = 0 n_times = 20 EM.run { n_times.times { work_proc = proc { n += 1 } callback = proc { EM.stop if n == n_times } EM.defer work_proc, callback } } assert_equal( n, n_times ) en...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_process_watch.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_process_watch.rb
require 'em_test_helper' if EM.kqueue? class TestProcessWatch < Test::Unit::TestCase module ParentProcessWatcher def process_forked $forked = true end end module ChildProcessWatcher def process_exited $exited = true end def unbind $unbind = true ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_many_fds.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_many_fds.rb
require 'em_test_helper' require 'socket' class TestManyFDs < Test::Unit::TestCase def setup @port = next_port end def test_connection_class_cache mod = Module.new a = nil Process.setrlimit(Process::RLIMIT_NOFILE, 4096) rescue nil EM.run { EM.start_server '127.0.0.1', @port, mod ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_httpclient.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_httpclient.rb
require 'em_test_helper' class TestHttpClient < Test::Unit::TestCase def setup @port = next_port end #------------------------------------- def test_http_client ok = false EM.run { c = silent { EM::P::HttpClient.send :request, :host => "www.google.com", :port => 80 } c.callback { ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_sock_opt.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_sock_opt.rb
require 'em_test_helper' require 'socket' class TestSockOpt < Test::Unit::TestCase def setup assert(!EM.reactor_running?) @port = next_port end def teardown assert(!EM.reactor_running?) end def test_set_sock_opt omit_if(windows?) omit_if(!EM.respond_to?(:set_sock_opt)) val = nil ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_channel.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_channel.rb
require 'em_test_helper' class TestEMChannel < Test::Unit::TestCase def test_channel_subscribe s = 0 EM.run do c = EM::Channel.new c.subscribe { |v| s = v; EM.stop } c << 1 end assert_equal 1, s end def test_channel_unsubscribe s = 0 EM.run do c = EM::Channel.new ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_smtpserver.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_smtpserver.rb
require 'em_test_helper' class TestSmtpServer < Test::Unit::TestCase # Don't test on port 25. It requires superuser and there's probably # a mail server already running there anyway. Localhost = "127.0.0.1" Localport = 25001 # This class is an example of what you need to write in order # to implement a m...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/em_test_helper.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/em_test_helper.rb
require 'em/pure_ruby' if ENV['EM_PURE_RUBY'] require 'eventmachine' require 'test/unit' require 'rbconfig' require 'socket' puts "EM Library Type: #{EM.library_type}" class Test::Unit::TestCase class EMTestTimeout < StandardError ; end def setup_timeout(timeout = TIMEOUT_INTERVAL) EM.schedule { EM.add...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ltp2.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_ltp2.rb
require 'em_test_helper' # TODO!!! Need tests for overlength headers and text bodies. class TestLineText2 < Test::Unit::TestCase # Run each of these tests two ways: passing in the whole test-dataset in one chunk, # and passing it in one character at a time. class Basic include EM::Protocols::LineText2 ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_sasl.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_sasl.rb
require 'em_test_helper' class TestSASL < Test::Unit::TestCase # SASL authentication is usually done with UNIX-domain sockets, but # we'll use TCP so this test will work on Windows. As far as the # protocol handlers are concerned, there's no difference. TestUser,TestPsw = "someone", "password" class Sasl...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_completion.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_completion.rb
require 'em_test_helper' require 'em/completion' class TestCompletion < Test::Unit::TestCase def completion @completion ||= EM::Completion.new end def crank # This is a slow solution, but this just executes the next tick queue # once. It's the easiest way for now. EM.run { EM.stop } end def...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_spawn.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_spawn.rb
require 'em_test_helper' class TestSpawn < Test::Unit::TestCase # Spawn a process that simply stops the reactor. # Assert that the notification runs after the block that calls it. # def test_stop x = nil EM.run { s = EM.spawn {EM.stop} s.notify x = true } assert x end ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_proxy_connection.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_proxy_connection.rb
require 'em_test_helper' class TestProxyConnection < Test::Unit::TestCase if EM.respond_to?(:start_proxy) module ProxyConnection def initialize(client, request) @client, @request = client, request end def post_init EM::enable_proxy(self, @client) end def connectio...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_idle_connection.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_idle_connection.rb
require 'em_test_helper' class TestIdleConnection < Test::Unit::TestCase def setup @port = next_port end def test_idle_time omit_if(!EM.respond_to?(:get_idle_time)) a, b = nil, nil EM.run do EM.start_server '127.0.0.1', @port, Module.new conn = EM.connect '127.0.0.1', @port EM...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_error_handler.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_error_handler.rb
require 'em_test_helper' class TestErrorHandler < Test::Unit::TestCase def setup @exception = Class.new(StandardError) end def test_error_handler error = nil EM.error_handler{ |e| error = e EM.error_handler(nil) EM.stop } assert_nothing_raised do EM.run{ EM....
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_connection_write.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_connection_write.rb
require 'em_test_helper' class TestConnectionWrite < Test::Unit::TestCase # This test takes advantage of the fact that EM::_RunSelectOnce iterates over the connections twice: # - once to determine which ones to call Write() on # - and once to call Write() on each of them. # # But state may change in the...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_threaded_resource.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_threaded_resource.rb
require 'em_test_helper' class TestThreadedResource < Test::Unit::TestCase def object @object ||= {} end def resource @resource = EM::ThreadedResource.new do object end end def teardown resource.shutdown end def test_dispatch_completion EM.run do EM.add_timer(3) do ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_next_tick.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_next_tick.rb
require 'em_test_helper' class TestNextTick < Test::Unit::TestCase def test_tick_arg pr = proc {EM.stop} EM.run { EM.next_tick pr } assert true end def test_tick_block EM.run { EM.next_tick {EM.stop} } assert true end # This illustrates the solution to a long-standi...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_unbind_reason.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_unbind_reason.rb
require 'em_test_helper' class TestUnbindReason < Test::Unit::TestCase class StubConnection < EM::Connection attr_reader :error def unbind(reason = nil) @error = reason EM.stop end end # RFC 5737 Address Blocks Reserved for Documentation def test_connect_timeout conn = nil EM....
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_line_protocol.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_line_protocol.rb
require 'em_test_helper' class TestLineProtocol < Test::Unit::TestCase class LineProtocolTestClass include EM::Protocols::LineProtocol def lines @lines ||= [] end def receive_line(line) lines << line end end def setup @proto = LineProtocolTestClass.new end def test_sim...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_stomp.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_stomp.rb
require 'em_test_helper' class TestStomp < Test::Unit::TestCase CONTENT_LENGTH_REGEX = /^content-length: (\d+)$/ def bytesize(str) str = str.to_s size = str.bytesize if str.respond_to?(:bytesize) # bytesize added in 1.9 size || str.size end class TStomp include EM::P::Stomp def last_sent...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_epoll.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/tests/test_epoll.rb
require 'em_test_helper' class TestEpoll < Test::Unit::TestCase module TestEchoServer def receive_data data send_data data close_connection_after_writing end end module TestEchoClient def connection_completed send_data "ABCDE" $max += 1 end def receive_data data ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/ext/extconf.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/ext/extconf.rb
require 'fileutils' require 'mkmf' # Eager check devs tools have_devel? if respond_to?(:have_devel?) def check_libs libs = [], fatal = false libs.all? { |lib| have_library(lib) || (abort("could not find library: #{lib}") if fatal) } end def check_heads heads = [], fatal = false heads.all? { |head| have_header(he...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/ext/fastfilereader/extconf.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/ext/fastfilereader/extconf.rb
require 'mkmf' def check_libs libs = [], fatal = false libs.all? { |lib| have_library(lib) || (abort("could not find library: #{lib}") if fatal) } end def check_heads heads = [], fatal = false heads.all? { |head| have_header(head) || (abort("could not find header: #{head}") if fatal)} end def add_define(name) ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_tick_loop_array.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_tick_loop_array.rb
require File.dirname(__FILE__) + '/helper' EM.run do array = (1..100).to_a tickloop = EM.tick_loop do if array.empty? :stop else puts array.shift end end tickloop.on_stop { EM.stop } end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_tick_loop_counter.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_tick_loop_counter.rb
require File.dirname(__FILE__) + '/helper' class TickCounter attr_reader :start_time, :count def initialize reset @tick_loop = EM.tick_loop(method(:tick)) end def reset @count = 0 @start_time = EM.current_time end def tick @count += 1 end def rate @count / (EM.current_time -...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_queue.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_queue.rb
require File.dirname(__FILE__) + '/helper'
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/helper.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/helper.rb
$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'eventmachine'
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_channel.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/old/ex_channel.rb
require File.dirname(__FILE__) + '/helper' EM.run do # Create a channel to push data to, this could be stocks... RandChannel = EM::Channel.new # The server simply subscribes client connections to the channel on connect, # and unsubscribes them on disconnect. class Server < EM::Connection def self.start...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/06_simple_chat_server_step_three.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/06_simple_chat_server_step_three.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class SimpleChatServer < EM::Connection @@connected_clients = Array.new attr_reader :username # # EventMachine handlers # def post_init @username = nil puts "A client has connected..." ask_username en...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/08_simple_chat_server_step_five.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/08_simple_chat_server_step_five.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class SimpleChatServer < EM::Connection @@connected_clients = Array.new DM_REGEXP = /^@([a-zA-Z0-9]+)\s*:?\s+(.+)/.freeze attr_reader :username # # EventMachine handlers # def post_init @username = ni...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/03_simple_chat_server.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/03_simple_chat_server.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class SimpleChatServer < EM::Connection @@connected_clients = Array.new DM_REGEXP = /^@([a-zA-Z0-9]+)\s*:?\s*(.+)/.freeze attr_reader :username # # EventMachine handlers # def post_init @username = ni...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/04_simple_chat_server_step_one.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/04_simple_chat_server_step_one.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class SimpleChatServer < EM::Connection # # EventMachine handlers # def post_init puts "A client has connected..." end def unbind puts "A client has left..." end end EventMachine.run do # hit Control + C t...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/01_eventmachine_echo_server.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/01_eventmachine_echo_server.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class EchoServer < EM::Connection def receive_data(data) send_data(data) end end EventMachine.run do # hit Control + C to stop Signal.trap("INT") { EventMachine.stop } Signal.trap("TERM") { EventMachine.stop } Even...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/02_eventmachine_echo_server_that_recognizes_exit_command.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/02_eventmachine_echo_server_that_recognizes_exit_command.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class EchoServer < EM::Connection def receive_data(data) if data.strip =~ /exit$/i EventMachine.stop else send_data(data) end end end EventMachine.run do # hit Control + C to stop Signal.trap("INT") ...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/07_simple_chat_server_step_four.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/07_simple_chat_server_step_four.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class SimpleChatServer < EM::Connection @@connected_clients = Array.new attr_reader :username # # EventMachine handlers # def post_init @username = nil puts "A client has connected..." ask_username en...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/05_simple_chat_server_step_two.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/examples/guides/getting_started/05_simple_chat_server_step_two.rb
#!/usr/bin/env ruby require 'rubygems' # or use Bundler.setup require 'eventmachine' class SimpleChatServer < EM::Connection @@connected_clients = Array.new # # EventMachine handlers # def post_init @@connected_clients.push(self) puts "A client has connected..." end def unbind @@connect...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/eventmachine.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/eventmachine.rb
if defined?(EventMachine.library_type) and EventMachine.library_type == :pure_ruby # assume 'em/pure_ruby' was loaded already elsif RUBY_PLATFORM =~ /java/ require 'java' require 'jeventmachine' else begin require 'rubyeventmachine' rescue LoadError warn "Unable to load the EventMachine C extension; T...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
true
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/jeventmachine.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/jeventmachine.rb
#-- # # Author:: Francis Cianfrocca (gmail: blackhedd) # Homepage:: http://rubyeventmachine.com # Date:: 8 Apr 2006 # # See EventMachine and EventMachine::Connection for documentation and # usage examples. # #---------------------------------------------------------------------------- # # Copyright (C) 2006-07 by Fra...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/process_watch.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/process_watch.rb
module EventMachine # This is subclassed from EventMachine::Connection for use with the process monitoring API. Read the # documentation on the instance methods of this class, and for a full explanation see EventMachine.watch_process. class ProcessWatch < Connection # @private Cfork = 'fork'.freeze #...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/spawnable.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/spawnable.rb
#-- # # Author:: Francis Cianfrocca (gmail: blackhedd) # Homepage:: http://rubyeventmachine.com # Date:: 25 Aug 2007 # # See EventMachine and EventMachine::Connection for documentation and # usage examples. # #---------------------------------------------------------------------------- # # Copyright (C) 2006-07 by Fr...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/callback.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/callback.rb
module EventMachine # Utility method for coercing arguments to an object that responds to :call. # Accepts an object and a method name to send to, or a block, or an object # that responds to :call. # # @example EventMachine.Callback used with a block. Returns that block. # # cb = EventMachine.Callback do...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/version.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/version.rb
module EventMachine VERSION = "1.2.7" end
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/channel.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/channel.rb
module EventMachine # Provides a simple thread-safe way to transfer data between (typically) long running # tasks in {EventMachine.defer} and event loop thread. # # @example # # channel = EventMachine::Channel.new # sid = channel.subscribe { |msg| p [:got, msg] } # # channel.push('hello world')...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false
collabnix/kubelabs
https://github.com/collabnix/kubelabs/blob/d43118c4af2adeb708d26658615319d6493e6077/.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/file_watch.rb
.bundles_cache/ruby/2.6.0/gems/eventmachine-1.2.7/lib/em/file_watch.rb
module EventMachine # Utility class that is useful for file monitoring. Supported events are # # * File is modified # * File is deleted # * File is moved # # @note On Mac OS X, file watching only works when kqueue is enabled # # @see EventMachine.watch_file class FileWatch < Connection # @privat...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false