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-relative-links-0.6.1/lib/jekyll-relative-links/version.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-relative-links-0.6.1/lib/jekyll-relative-links/version.rb
# frozen_string_literal: true module JekyllRelativeLinks VERSION = "0.6.1" 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-relative-links-0.6.1/lib/jekyll-relative-links/generator.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-relative-links-0.6.1/lib/jekyll-relative-links/generator.rb
# frozen_string_literal: true module JekyllRelativeLinks class Generator < Jekyll::Generator attr_accessor :site, :config # Use Jekyll's native relative_url filter include Jekyll::Filters::URLFilters LINK_TEXT_REGEX = %r!(.*?)!.freeze FRAGMENT_REGEX = %r!(#.+?)?!.freeze INLINE_LINK_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-relative-links-0.6.1/lib/jekyll-relative-links/context.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-relative-links-0.6.1/lib/jekyll-relative-links/context.rb
# frozen_string_literal: true module JekyllRelativeLinks class Context attr_reader :site def initialize(site) @site = site end def registers { :site => site } 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/sawyer-0.9.2/lib/sawyer.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer.rb
module Sawyer VERSION = "0.9.2" class Error < StandardError; end end require 'set' %w( resource relation response serializer agent link_parsers/hal link_parsers/simple ).each { |f| require File.expand_path("../sawyer/#{f}", __FILE__) }
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/sawyer-0.9.2/lib/sawyer/agent.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer/agent.rb
require 'faraday' require 'addressable/template' module Sawyer class Agent NO_BODY = Set.new([:get, :head]) attr_accessor :links_parser attr_accessor :allow_undefined_methods class << self attr_writer :serializer end def self.serializer @serializer ||= Serializer.any_json 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/sawyer-0.9.2/lib/sawyer/resource.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer/resource.rb
require 'forwardable' module Sawyer class Resource SPECIAL_METHODS = Set.new(%w(agent rels fields)) attr_reader :_agent, :_rels, :_fields attr_reader :attrs include Enumerable extend Forwardable # Initializes a Resource with the given data. # # agent - The Sawyer::Agent that made 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/sawyer-0.9.2/lib/sawyer/response.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer/response.rb
module Sawyer class Response attr_reader :agent, :status, :headers, :env, :body, :rels # Builds a Response after a completed request. # # agent - The Sawyer::Agent that is managing the API connection. # res - A Faraday::Response. def initialize(agent, res, opti...
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/sawyer-0.9.2/lib/sawyer/relation.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer/relation.rb
module Sawyer class Relation class Map # Tracks the available next actions for a resource, and # issues requests for them. def initialize @map = {} end # Adds a Relation to the map. # # rel - A Relation. # # Returns nothing. def <<(rel) ...
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/sawyer-0.9.2/lib/sawyer/serializer.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer/serializer.rb
require 'date' require 'time' module Sawyer class Serializer def self.any_json yajl || multi_json || json || begin raise RuntimeError, "Sawyer requires a JSON gem: yajl, multi_json, or json" end end def self.yajl require 'yajl' new(Yajl) rescue LoadError 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/sawyer-0.9.2/lib/sawyer/link_parsers/hal.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer/link_parsers/hal.rb
module Sawyer module LinkParsers class Hal def parse(data) links = data.delete(:_links) return data, links 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/sawyer-0.9.2/lib/sawyer/link_parsers/simple.rb
.bundles_cache/ruby/2.6.0/gems/sawyer-0.9.2/lib/sawyer/link_parsers/simple.rb
module Sawyer module LinkParsers class Simple LINK_REGEX = /_?url$/ # Public: Parses simple *_url style links on resources # # data - Hash of resource data # # Returns a Hash of data with separate links Hash def parse(data) links = {} inline_links =...
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-redirect-from-0.16.0/spec/integrations_spec.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/spec/integrations_spec.rb
# frozen_string_literal: true RSpec.describe "JekyllRedirectFrom integration tests" do before { site.process } let(:relative_path) { "" } let(:path) { dest_dir(relative_path) } let(:contents) { File.read(path) } context "pages" do context "single redirect from" do let(:relative_path) { "some/other...
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-redirect-from-0.16.0/spec/spec_helper.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/spec/spec_helper.rb
# frozen_string_literal: true require "jekyll" require File.expand_path("lib/jekyll-redirect-from.rb") RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.expect_with :rspec do |c| c.syntax = :expect end config.before(:each) do Jekyll.logger.l...
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-redirect-from-0.16.0/spec/jekyll_redirect_from/context_spec.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/spec/jekyll_redirect_from/context_spec.rb
# frozen_string_literal: true RSpec.describe JekyllRedirectFrom::Context do subject { described_class.new(site) } it "stores the site" do expect(subject.site).to be_a(Jekyll::Site) end it "returns the register" do expect(subject.registers).to have_key(:site) expect(subject.registers[:site]).to be...
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-redirect-from-0.16.0/spec/jekyll_redirect_from/redirect_page_spec.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/spec/jekyll_redirect_from/redirect_page_spec.rb
# frozen_string_literal: true describe JekyllRedirectFrom::RedirectPage do let(:from) { "/foo" } let(:to) { "/bar" } let(:site_url) { site.config["url"] } subject { described_class.from_paths(site, from, to) } before { site.read } context "being a page" do before { subject.read_yaml(nil, nil, 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/jekyll-redirect-from-0.16.0/spec/jekyll_redirect_from/redirectable_spec.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/spec/jekyll_redirect_from/redirectable_spec.rb
# frozen_string_literal: true class RedirectableTestHelper include JekyllRedirectFrom::Redirectable attr_reader :to_liquid def initialize(data) @to_liquid = data end end RSpec.describe JekyllRedirectFrom::Redirectable do let(:data) { "" } subject { RedirectableTestHelper.new(data) } context "with ...
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-redirect-from-0.16.0/spec/jekyll_redirect_from/layout_spec.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/spec/jekyll_redirect_from/layout_spec.rb
# frozen_string_literal: true RSpec.describe JekyllRedirectFrom::Layout do subject { described_class.new(@site) } it "exposes the site" do expect(subject.site).to eql(@site) end it "exposes the name" do expect(subject.name).to eql("redirect.html") end it "exposes the path" do expected = File...
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-redirect-from-0.16.0/spec/jekyll_redirect_from/generator_spec.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/spec/jekyll_redirect_from/generator_spec.rb
# frozen_string_literal: true RSpec.describe JekyllRedirectFrom::Generator do before(:each) do site.read site.generate site.render site.write end context "layouts" do context "a site with a redirect layout" do before { site.layouts["redirect"] = "foo" } it "doesn't inject the la...
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-redirect-from-0.16.0/lib/jekyll-redirect-from.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from.rb
# frozen_string_literal: true require "jekyll" require "jekyll-redirect-from/version" require "jekyll-redirect-from/generator" module JekyllRedirectFrom # Jekyll classes which should be redirectable CLASSES = [Jekyll::Page, Jekyll::Document].freeze autoload :Context, "jekyll-redirect-from/context" a...
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-redirect-from-0.16.0/lib/jekyll-redirect-from/redirectable.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/redirectable.rb
# frozen_string_literal: true module JekyllRedirectFrom # Module which can be mixed in to documents (and pages) to provide # redirect_to and redirect_from helpers module Redirectable # Returns a string representing the relative path or URL # to which the document should be redirected def redirect_to ...
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-redirect-from-0.16.0/lib/jekyll-redirect-from/version.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/version.rb
# frozen_string_literal: true module JekyllRedirectFrom VERSION = "0.16.0" 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-redirect-from-0.16.0/lib/jekyll-redirect-from/redirect_page.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/redirect_page.rb
# frozen_string_literal: true module JekyllRedirectFrom # Specialty page which implements the redirect path logic class RedirectPage < Jekyll::Page # Use Jekyll's native absolute_url filter include Jekyll::Filters::URLFilters DEFAULT_DATA = { "sitemap" => false, "layout" => "redirect", ...
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-redirect-from-0.16.0/lib/jekyll-redirect-from/page_without_a_file.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/page_without_a_file.rb
# frozen_string_literal: true module JekyllRedirectFrom class PageWithoutAFile < Jekyll::Page def read_yaml(*) @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/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/generator.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/generator.rb
# frozen_string_literal: true module JekyllRedirectFrom class Generator < Jekyll::Generator safe true attr_reader :site, :redirects def generate(site) @site = site @redirects = {} # Inject our layout, unless the user has already specified a redirect layout' unless site.layouts.k...
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-redirect-from-0.16.0/lib/jekyll-redirect-from/context.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/context.rb
# frozen_string_literal: true module JekyllRedirectFrom # Stubbed LiquidContext to support relative_url and absolute_url helpers class Context attr_reader :site def initialize(site) @site = site end def registers { :site => site } 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/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/layout.rb
.bundles_cache/ruby/2.6.0/gems/jekyll-redirect-from-0.16.0/lib/jekyll-redirect-from/layout.rb
# frozen_string_literal: true module JekyllRedirectFrom # A stubbed layout for our default redirect template # We cannot use the standard Layout class because of site.in_source_dir class Layout < Jekyll::Layout def initialize(site) @site = site @base = __dir__ @name = "redirect.html" ...
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/ethon-0.16.0/profile/benchmarks.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/profile/benchmarks.rb
# encoding: utf-8 # frozen_string_literal: true require 'ethon' require 'open-uri' require 'patron' require 'curb' require 'net/http' require 'cgi' require 'benchmark/ips' require_relative '../spec/support/server' require_relative '../spec/support/localhost_server' LocalhostServer.new(TESTSERVER.new, 3000) LocalhostS...
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/ethon-0.16.0/profile/perf_spec_helper.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/profile/perf_spec_helper.rb
# frozen_string_literal: true #### SETUP require 'bundler' Bundler.setup require 'rspec' require 'support/localhost_server' require 'support/server' require_relative 'support/memory_test_helpers' require 'logger' if ENV['VERBOSE'] Ethon.logger = Logger.new($stdout) Ethon.logger.level = Logger::DEBUG end RSpec.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/ethon-0.16.0/profile/memory_leaks.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/profile/memory_leaks.rb
# frozen_string_literal: true require 'ethon' require 'ethon/easy' require_relative 'perf_spec_helper' require 'rspec/autorun' describe "low-level interactions with libcurl" do describe Ethon::Multi do memory_leak_test("init") do Ethon::Multi.new end memory_leak_test("handle") do Ethon::Mul...
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/ethon-0.16.0/profile/support/os_memory_leak_tracker.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/profile/support/os_memory_leak_tracker.rb
# frozen_string_literal: true class OSMemoryLeakTracker attr_reader :current_run def initialize @previous_run = @current_run = 0 end def difference_between_runs(basis=@previous_run) @current_run - basis end def total_difference_between_runs difference_between_runs(@initial_count_run) 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/ethon-0.16.0/profile/support/memory_test_helpers.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/profile/support/memory_test_helpers.rb
# frozen_string_literal: true require_relative 'ruby_object_leak_tracker' require_relative 'os_memory_leak_tracker' module MemoryTestHelpers class << self attr_accessor :gc_proc, :iterations, :logger def setup if RUBY_PLATFORM == "java" # for leak detection JRuby.objectspace = true if ...
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/ethon-0.16.0/profile/support/ruby_object_leak_tracker.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/profile/support/ruby_object_leak_tracker.rb
# frozen_string_literal: true class RubyObjectLeakTracker attr_reader :previous_count_hash, :current_count_hash def initialize @previous_count_hash = @current_count_hash = {} end def difference_between_runs(basis=@previous_count_hash) @difference_between_runs ||= Hash[@current_count_hash.map do |o...
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/ethon-0.16.0/spec/spec_helper.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/spec_helper.rb
# frozen_string_literal: true $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require 'bundler' Bundler.setup require "ethon" require 'rspec' if defined? require_relative require_relative 'support/localhost_server' require_relative 'support/server' els...
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/ethon-0.16.0/spec/support/localhost_server.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/support/localhost_server.rb
# frozen_string_literal: true require 'rack' require 'rack/handler/webrick' require 'net/http' # The code for this is inspired by Capybara's server: # http://github.com/jnicklas/capybara/blob/0.3.9/lib/capybara/server.rb class LocalhostServer READY_MESSAGE = "Server ready" class Identify def initialize(app)...
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/ethon-0.16.0/spec/support/server.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/support/server.rb
#!/usr/bin/env ruby # frozen_string_literal: true require 'json' require 'zlib' require 'sinatra/base' TESTSERVER = Sinatra.new do set :logging, nil fail_count = 0 post '/file' do { 'content-type' => params[:file][:type], 'filename' => params[:file][:filename], 'content' => params[:file][...
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/ethon-0.16.0/spec/ethon/multi_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/multi_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Multi do describe ".new" do it "inits curl" do expect(Ethon::Curl).to receive(:init) Ethon::Multi.new end context "with default options" do it "allows running #perform with the default execution_mode" do Ethon:...
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/ethon-0.16.0/spec/ethon/curl_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/curl_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Curl do describe ".init" do before { Ethon::Curl.send(:class_variable_set, :@@initialized, false) } context "when global_init fails" do it "raises global init error" do expect(Ethon::Curl).to receive(:global_init).and_return(1...
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/ethon-0.16.0/spec/ethon/loggable_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/loggable_spec.rb
# frozen_string_literal: true require "spec_helper" describe Ethon::Loggable do describe "#logger=" do let(:logger) do Logger.new($stdout).tap do |log| log.level = Logger::INFO end end before do Ethon.logger = logger end it "sets the logger" do expect(Ethon.log...
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/ethon-0.16.0/spec/ethon/easy_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy do let(:easy) { Ethon::Easy.new } describe ".new" do it "inits curl" do expect(Ethon::Curl).to receive(:init) easy end context "when options are empty" do it "sets only callbacks" do expect_any_instance...
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/ethon-0.16.0/spec/ethon/libc_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/libc_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Libc do describe "#getdtablesize", :if => !Ethon::Curl.windows? do it "returns an integer" do expect(Ethon::Libc.getdtablesize).to be_a(Integer) end it "returns bigger zero", :if => !Ethon::Curl.windows? do expect(Ethon::Lib...
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/ethon-0.16.0/spec/ethon/multi/operations_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/multi/operations_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Multi::Operations do let(:multi) { Ethon::Multi.new } let(:easy) { Ethon::Easy.new } let(:pointer) { FFI::MemoryPointer.new(:int) } describe "#handle" do it "returns a pointer" do expect(multi.handle).to be_a(FFI::Pointer) 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/ethon-0.16.0/spec/ethon/multi/stack_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/multi/stack_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Multi::Stack do let(:multi) { Ethon::Multi.new } let(:easy) { Ethon::Easy.new } describe "#add" do context "when easy already added" do before { multi.add(easy) } it "returns nil" do expect(multi.add(easy)).to be_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/ethon-0.16.0/spec/ethon/multi/options_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/multi/options_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Multi::Options do let(:multi) { Ethon::Multi.new } [ :maxconnects, :pipelining, :socketdata, :socketfunction, :timerdata, :timerfunction, :max_total_connections ].each do |name| describe "#{name}=" do it "responds_to" 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/ethon-0.16.0/spec/ethon/easy/form_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/form_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Form do let(:hash) { {} } let!(:easy) { Ethon::Easy.new } let(:form) { Ethon::Easy::Form.new(easy, hash) } describe ".new" do it "assigns attribute to @params" do expect(form.instance_variable_get(:@params)).to eq(hash) 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/ethon-0.16.0/spec/ethon/easy/header_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/header_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Header do let(:easy) { Ethon::Easy.new } describe "#headers=" do let(:headers) { { 'User-Agent' => 'Ethon' } } it "sets header" do expect_any_instance_of(Ethon::Easy).to receive(:set_callbacks) expect(Ethon::Curl).to 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/ethon-0.16.0/spec/ethon/easy/callbacks_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/callbacks_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Callbacks do let!(:easy) { Ethon::Easy.new } describe "#set_callbacks" do before do expect(Ethon::Curl).to receive(:set_option).exactly(3).times end it "sets write-, debug-, and headerfunction" do easy.set_callbacks...
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/ethon-0.16.0/spec/ethon/easy/mirror_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/mirror_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Mirror do let(:options) { nil } let(:mirror) { described_class.new(options) } describe "::INFORMATIONS_TO_LOG" do [ :return_code, :response_code, :response_body, :response_headers, :total_time, :starttransfer_time, :appcon...
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/ethon-0.16.0/spec/ethon/easy/debug_info_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/debug_info_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::DebugInfo do let(:easy) { Ethon::Easy.new } before do easy.url = "http://localhost:3001/" easy.perform end describe "#debug_info" do context "when verbose is not set to true" do it "does not save any debug info after ...
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/ethon-0.16.0/spec/ethon/easy/informations_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/informations_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Informations do let(:easy) { Ethon::Easy.new } before do easy.url = "http://localhost:3001" easy.perform end describe "#httpauth_avail" do it "returns" do expect(easy.httpauth_avail).to be end end describe "#...
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/ethon-0.16.0/spec/ethon/easy/response_callbacks_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/response_callbacks_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::ResponseCallbacks do let(:easy) { Ethon::Easy.new } [:on_complete, :on_headers, :on_body, :on_progress].each do |callback_type| describe "##{callback_type}" do it "responds" do expect(easy).to respond_to("#{callback_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/ethon-0.16.0/spec/ethon/easy/features_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/features_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Informations do describe "#supports_asynch_dns?" do it "returns boolean" do expect([true, false].include? Ethon::Easy.supports_asynch_dns?).to be_truthy end end describe "#supports_zlib?" do it "returns boolean" 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/ethon-0.16.0/spec/ethon/easy/util_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/util_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Util do class Dummy include Ethon::Easy::Util end let(:klass) { Dummy.new } describe "escape_zero_byte" do context "when value has no zero byte" do let(:value) { "hello world" } it "returns same value" do 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/ethon-0.16.0/spec/ethon/easy/operations_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/operations_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Operations do let(:easy) { Ethon::Easy.new } describe "#handle" do it "returns a pointer" do expect(easy.handle).to be_a(FFI::Pointer) end end describe "#perform" do let(:url) { nil } let(:timeout) { nil } le...
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/ethon-0.16.0/spec/ethon/easy/http_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http do let(:easy) { Ethon::Easy.new } describe "#http_request" do let(:url) { "http://localhost:3001/" } let(:action_name) { :get } let(:options) { {} } let(:get) { double(:setup) } let(:get_class) { Ethon::Easy::Http:...
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/ethon-0.16.0/spec/ethon/easy/queryable_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/queryable_spec.rb
# encoding: utf-8 # frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Queryable do let(:hash) { {} } let!(:easy) { Ethon::Easy.new } let(:params) { Ethon::Easy::Params.new(easy, hash) } describe "#to_s" do context "when query_pairs empty" do before { params.instance_variable_se...
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/ethon-0.16.0/spec/ethon/easy/options_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/options_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Options do let(:easy) { Ethon::Easy.new } [ :accept_encoding, :cainfo, :capath, :connecttimeout, :connecttimeout_ms, :cookie, :cookiejar, :cookiefile, :copypostfields, :customrequest, :dns_cache_timeout, :followlocation, :forbid...
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/ethon-0.16.0/spec/ethon/easy/http/delete_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/delete_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Delete do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:delete) { described_class.new(url, {:params => params, :body => form}) } context "when requesting" 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/ethon-0.16.0/spec/ethon/easy/http/head_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/head_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Head do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:head) { described_class.new(url, {:params => params, :body => form}) } describe "#setup" do context...
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/ethon-0.16.0/spec/ethon/easy/http/put_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/put_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Put do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:options) { Hash.new } let(:put) { described_class.new(url, options.merge({:params => params, :body => for...
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/ethon-0.16.0/spec/ethon/easy/http/patch_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/patch_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Patch do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:patch) { described_class.new(url, {:params => params, :body => form}) } describe "#setup" do it "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/ethon-0.16.0/spec/ethon/easy/http/post_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/post_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Post do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:options) { Hash.new } let(:post) { described_class.new(url, options.merge({:params => params, :body => f...
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/ethon-0.16.0/spec/ethon/easy/http/get_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/get_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Get do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:options) { {} } let(:get) { described_class.new(url, {:params => params, :body => form}.merge(options)) }...
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/ethon-0.16.0/spec/ethon/easy/http/custom_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/custom_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Custom do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:custom) { described_class.new("PURGE", url, {:params => params, :body => form}) } describe "#setup" d...
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/ethon-0.16.0/spec/ethon/easy/http/options_spec.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/spec/ethon/easy/http/options_spec.rb
# frozen_string_literal: true require 'spec_helper' describe Ethon::Easy::Http::Options do let(:easy) { Ethon::Easy.new } let(:url) { "http://localhost:3001/" } let(:params) { nil } let(:form) { nil } let(:options) { described_class.new(url, {:params => params, :body => form}) } describe "#setup" do i...
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/ethon-0.16.0/lib/ethon.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon.rb
# frozen_string_literal: true require 'logger' require 'ffi' require 'thread' begin require 'mime/types/columnar' rescue LoadError begin require 'mime/types' rescue LoadError end end require 'tempfile' require 'ethon/libc' require 'ethon/curl' require 'ethon/easy' require 'ethon/errors' require 'ethon/logg...
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/ethon-0.16.0/lib/ethon/curl.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/curl.rb
# frozen_string_literal: true require 'ethon/curls/codes' require 'ethon/curls/options' require 'ethon/curls/infos' require 'ethon/curls/form_options' require 'ethon/curls/messages' require 'ethon/curls/functions' module Ethon # FFI Wrapper module for Curl. Holds constants and required initializers. # # @api pr...
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/ethon-0.16.0/lib/ethon/version.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/version.rb
# frozen_string_literal: true module Ethon # Ethon version. VERSION = '0.16.0' 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/ethon-0.16.0/lib/ethon/loggable.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/loggable.rb
# encoding: utf-8 # frozen_string_literal: true module Ethon # Contains logging behaviour. module Loggable # Get the logger. # # @note Will try to grab Rails' logger first before creating a new logger # with stdout. # # @example Get the logger. # Loggable.logger # # @return...
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/ethon-0.16.0/lib/ethon/errors.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors.rb
# frozen_string_literal: true require 'ethon/errors/ethon_error' require 'ethon/errors/global_init' require 'ethon/errors/multi_timeout' require 'ethon/errors/multi_fdset' require 'ethon/errors/multi_add' require 'ethon/errors/multi_remove' require 'ethon/errors/select' require 'ethon/errors/invalid_option' require 'et...
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/ethon-0.16.0/lib/ethon/multi.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/multi.rb
# frozen_string_literal: true require 'ethon/easy/util' require 'ethon/multi/stack' require 'ethon/multi/operations' require 'ethon/multi/options' module Ethon # This class represents libcurl multi. class Multi include Ethon::Multi::Stack include Ethon::Multi::Operations include Ethon::Multi::Options ...
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/ethon-0.16.0/lib/ethon/libc.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/libc.rb
# frozen_string_literal: true module Ethon # FFI Wrapper module for Libc. # # @api private module Libc extend FFI::Library ffi_lib 'c' # :nodoc: def self.windows? Gem.win_platform? end unless windows? attach_function :getdtablesize, [], :int attach_function :free, [:...
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/ethon-0.16.0/lib/ethon/easy.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy.rb
# frozen_string_literal: true require 'ethon/easy/informations' require 'ethon/easy/features' require 'ethon/easy/callbacks' require 'ethon/easy/options' require 'ethon/easy/header' require 'ethon/easy/util' require 'ethon/easy/params' require 'ethon/easy/form' require 'ethon/easy/http' require 'ethon/easy/operations' ...
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/ethon-0.16.0/lib/ethon/errors/multi_fdset.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/multi_fdset.rb
# frozen_string_literal: true module Ethon module Errors # Raises when multi_fdset failed. class MultiFdset < EthonError def initialize(code) super("An error occured getting the fdset: #{code}") 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/ethon-0.16.0/lib/ethon/errors/multi_add.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/multi_add.rb
# frozen_string_literal: true module Ethon module Errors # Raises when multi_add_handle failed. class MultiAdd < EthonError def initialize(code, easy) super("An error occured adding the easy handle: #{easy} to the multi: #{code}") 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/ethon-0.16.0/lib/ethon/errors/select.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/select.rb
# frozen_string_literal: true module Ethon module Errors # Raised when select failed. class Select < EthonError def initialize(errno) super("An error occured on select: #{errno}") 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/ethon-0.16.0/lib/ethon/errors/multi_remove.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/multi_remove.rb
# frozen_string_literal: true module Ethon module Errors # Raises when multi_remove_handle failed. class MultiRemove < EthonError def initialize(code, easy) super("An error occured removing the easy handle: #{easy} from the multi: #{code}") 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/ethon-0.16.0/lib/ethon/errors/ethon_error.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/ethon_error.rb
# frozen_string_literal: true module Ethon module Errors # Default Ethon error class for all custom errors. class EthonError < StandardError 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/ethon-0.16.0/lib/ethon/errors/multi_timeout.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/multi_timeout.rb
# frozen_string_literal: true module Ethon module Errors # Raised when multi_timeout failed. class MultiTimeout < EthonError def initialize(code) super("An error occured getting the timeout: #{code}") # "An error occured getting the timeout: #{code}: #{Curl.multi_strerror(code)}" ...
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/ethon-0.16.0/lib/ethon/errors/invalid_option.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/invalid_option.rb
# frozen_string_literal: true module Ethon module Errors # Raises when option is invalid. class InvalidOption < EthonError def initialize(option) super("The option: #{option} is invalid.") 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/ethon-0.16.0/lib/ethon/errors/invalid_value.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/invalid_value.rb
# frozen_string_literal: true module Ethon module Errors # Raises when option is invalid. class InvalidValue < EthonError def initialize(option, value) super("The value: #{value} is invalid for option: #{option}.") 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/ethon-0.16.0/lib/ethon/errors/global_init.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/errors/global_init.rb
# frozen_string_literal: true module Ethon module Errors # Raises when global_init failed. class GlobalInit < EthonError def initialize super("An error occured initializing curl.") 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/ethon-0.16.0/lib/ethon/multi/options.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/multi/options.rb
# frozen_string_literal: true module Ethon class Multi # This module contains the logic and knowledge about the # available options on multi. module Options # Sets max_total_connections option. # # @example Set max_total_connections option. # multi.max_total_conections = $value...
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/ethon-0.16.0/lib/ethon/multi/operations.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/multi/operations.rb
# frozen_string_literal: true module Ethon class Multi # :nodoc # This module contains logic to run a multi. module Operations STARTED_MULTI = "ETHON: started MULTI" PERFORMED_MULTI = "ETHON: performed MULTI" # Return the multi handle. Inititialize multi handle, # in case it didn't ha...
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/ethon-0.16.0/lib/ethon/multi/stack.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/multi/stack.rb
# frozen_string_literal: true module Ethon class Multi # This module provides the multi stack behaviour. module Stack # Return easy handles. # # @example Return easy handles. # multi.easy_handles # # @return [ Array ] The easy handles. def easy_handles @ea...
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/ethon-0.16.0/lib/ethon/easy/response_callbacks.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/response_callbacks.rb
# frozen_string_literal: true module Ethon class Easy # This module contains the logic for the response callbacks. # The on_complete callback is the only one at the moment. # # You can set multiple callbacks, which are then executed # in the same order. # # easy.on_complete { p 1 } ...
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/ethon-0.16.0/lib/ethon/easy/options.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/options.rb
# frozen_string_literal: true module Ethon class Easy # This module contains the logic and knowledge about the # available options on easy. module Options attr_reader :url def url=(value) @url = value Curl.set_option(:url, value, handle) end def escape=( b ) ...
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/ethon-0.16.0/lib/ethon/easy/operations.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/operations.rb
# frozen_string_literal: true module Ethon class Easy # This module contains the logic to prepare and perform # an easy. module Operations # Returns a pointer to the curl easy handle. # # @example Return the handle. # easy.handle # # @return [ FFI::Pointer ] A pointer...
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/ethon-0.16.0/lib/ethon/easy/form.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/form.rb
# frozen_string_literal: true require 'ethon/easy/util' require 'ethon/easy/queryable' module Ethon class Easy # This class represents a form and is used to send a payload in the # request body via POST/PUT. # It handles multipart forms, too. # # @api private class Form include Ethon::...
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/ethon-0.16.0/lib/ethon/easy/mirror.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/mirror.rb
# frozen_string_literal: true module Ethon class Easy class Mirror attr_reader :options alias_method :to_hash, :options INFORMATIONS_TO_MIRROR = Informations::AVAILABLE_INFORMATIONS.keys + [:return_code, :response_headers, :response_body, :debug_info] INFORMATIONS_TO_LOG = [:ef...
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/ethon-0.16.0/lib/ethon/easy/debug_info.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/debug_info.rb
# frozen_string_literal: true module Ethon class Easy # This class is used to store and retreive debug information, # which is only saved when verbose is set to true. # # @api private class DebugInfo MESSAGE_TYPES = Ethon::Curl::DebugInfoType.to_h.keys class Message attr_rea...
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/ethon-0.16.0/lib/ethon/easy/callbacks.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/callbacks.rb
# frozen_string_literal: true module Ethon class Easy # This module contains all the logic around the callbacks, # which are needed to interact with libcurl. # # @api private module Callbacks # :nodoc: def self.included(base) base.send(:attr_accessor, *[:response_body, :respo...
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/ethon-0.16.0/lib/ethon/easy/http.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/http.rb
# frozen_string_literal: true require 'ethon/easy/http/actionable' require 'ethon/easy/http/post' require 'ethon/easy/http/get' require 'ethon/easy/http/head' require 'ethon/easy/http/put' require 'ethon/easy/http/delete' require 'ethon/easy/http/patch' require 'ethon/easy/http/options' require 'ethon/easy/http/custom'...
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/ethon-0.16.0/lib/ethon/easy/params.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/params.rb
# frozen_string_literal: true require 'ethon/easy/util' require 'ethon/easy/queryable' module Ethon class Easy # This class represents HTTP request parameters. # # @api private class Params include Ethon::Easy::Util include Ethon::Easy::Queryable # Create a new Params. # ...
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/ethon-0.16.0/lib/ethon/easy/queryable.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/queryable.rb
# frozen_string_literal: true module Ethon class Easy # This module contains logic about building # query parameters for url or form. module Queryable # :nodoc: def self.included(base) base.send(:attr_accessor, :escape) base.send(:attr_accessor, :params_encoding) 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/ethon-0.16.0/lib/ethon/easy/informations.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/informations.rb
# frozen_string_literal: true module Ethon class Easy # This module contains the methods to return informations # from the easy handle. See http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html # for more information. module Informations # Holds available informations and their type, which is n...
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/ethon-0.16.0/lib/ethon/easy/features.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/features.rb
# frozen_string_literal: true module Ethon class Easy # This module contains class methods for feature checks module Features # Returns true if this curl version supports zlib. # # @example Return wether zlib is supported. # Ethon::Easy.supports_zlib? # # @return [ Boole...
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/ethon-0.16.0/lib/ethon/easy/header.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/header.rb
# frozen_string_literal: true module Ethon class Easy # This module contains the logic around adding headers to libcurl. # # @api private module Header # Return headers, return empty hash if none. # # @example Return the headers. # easy.headers # # @return [ Hash ...
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/ethon-0.16.0/lib/ethon/easy/util.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/util.rb
# frozen_string_literal: true module Ethon class Easy # :nodoc: # This module contains small helpers. # # @api private module Util # Escapes zero bytes in strings. # # @example Escape zero bytes. # Util.escape_zero_byte("1\0") # #=> "1\\0" # # @param [ O...
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/ethon-0.16.0/lib/ethon/easy/http/postable.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/http/postable.rb
# frozen_string_literal: true module Ethon class Easy module Http # This module contains logic for setting up a [multipart] POST body. module Postable # Set things up when form is provided. # Deals with multipart forms. # # @example Setup. # post.set_form(ea...
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/ethon-0.16.0/lib/ethon/easy/http/delete.rb
.bundles_cache/ruby/2.6.0/gems/ethon-0.16.0/lib/ethon/easy/http/delete.rb
# frozen_string_literal: true module Ethon class Easy module Http # This class knows everything about making DELETE requests. class Delete include Ethon::Easy::Http::Actionable include Ethon::Easy::Http::Postable # Setup easy to make a DELETE request. # # @exa...
ruby
Apache-2.0
d43118c4af2adeb708d26658615319d6493e6077
2026-01-04T15:51:47.325668Z
false