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
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/pact_broker_proxy.rb
lib/pact/v2/provider/pact_broker_proxy.rb
# frozen_string_literal: true require "rack-proxy" module Pact module V2 module Provider class PactBrokerProxy < Rack::Proxy attr_reader :backend_uri, :path, :logger # e.g. /pacts/provider/paas-stand-seeker/consumer/paas-stand-placer/pact-version/2967a9343bd8fdd28a286c4b8322380020618892/m...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/provider_state_servlet.rb
lib/pact/v2/provider/provider_state_servlet.rb
# frozen_string_literal: true require "webrick" module Pact module V2 module Provider class ProviderStateServlet < WEBrick::HTTPServlet::ProcHandler attr_reader :logger def initialize(logger: nil) super(build_proc) @logger = logger || Logger.new($stdout) @p...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/pact_broker_proxy_runner.rb
lib/pact/v2/provider/pact_broker_proxy_runner.rb
# frozen_string_literal: true require "webrick" module Pact module V2 module Provider class PactBrokerProxyRunner attr_reader :logger def initialize(pact_broker_host:, port: 9002, host: "127.0.0.1", pact_broker_user: nil, pact_broker_password: nil, pact_broker_token: nil, logger: nil) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/http_verifier.rb
lib/pact/v2/provider/http_verifier.rb
# frozen_string_literal: true require "pact/ffi/verifier" require "pact/v2/native/logger" module Pact module V2 module Provider class HttpVerifier < BaseVerifier PROVIDER_TRANSPORT_TYPE = "http" def initialize(pact_config, mixed_config = nil) super raise ArgumentError...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/pact_config/mixed.rb
lib/pact/v2/provider/pact_config/mixed.rb
# # frozen_string_literal: true module Pact module V2 module Provider module PactConfig # Mixed config allows composing one of each: async, grpc, http class Mixed < Base attr_reader :async_config, :grpc_config, :http_config def initialize(provider_name:, opts: {}) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/pact_config/grpc.rb
lib/pact/v2/provider/pact_config/grpc.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Provider module PactConfig class Grpc < Base attr_reader :grpc_port, :grpc_services, :grpc_server def initialize(provider_name:, opts: {}) super @grpc_port = opts[:grpc_...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/pact_config/http.rb
lib/pact/v2/provider/pact_config/http.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Provider module PactConfig class Http < Base attr_reader :http_port attr_reader :app def initialize(provider_name:, opts: {}) super @http_port = opts[:http_por...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/pact_config/base.rb
lib/pact/v2/provider/pact_config/base.rb
# frozen_string_literal: true module Pact module V2 module Provider module PactConfig class Base attr_reader :provider_name, :provider_version, :log_level, :provider_setup_server, :provider_setup_port, :pact_proxy_port, :consumer_branch, :consumer_version, :consumer_name, :bro...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/provider/pact_config/async.rb
lib/pact/v2/provider/pact_config/async.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Provider module PactConfig class Async < Base def initialize(provider_name:, opts: {}) super handlers = opts[:message_handlers] || {} handlers.each do |name, block| ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/base.rb
lib/pact/v2/matchers/base.rb
# frozen_string_literal: true module Pact module V2 module Matchers # see https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md class Base attr_reader :spec_version, :kind, :template, :opts class MatcherInitializationError < Pact::V2::Error; e...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v4/each_value.rb
lib/pact/v2/matchers/v4/each_value.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V4 class EachValue < Pact::V2::Matchers::Base def initialize(value_matchers, template) # raise MatcherInitializationError, "#{self.class}: #{template} should be a Hash" unless template.is_a?(Hash) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v4/status_code.rb
lib/pact/v2/matchers/v4/status_code.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V4 class StatusCode < Pact::V2::Matchers::Base def initialize(template = nil) super(spec_version: Pact::V2::Matchers::PACT_SPEC_V4, kind: 'statusCode', opts: { 'status' => template ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v4/not_empty.rb
lib/pact/v2/matchers/v4/not_empty.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V4 class NotEmpty < Pact::V2::Matchers::Base def initialize(template = nil) @template = template super(spec_version: Pact::V2::Matchers::PACT_SPEC_V4, kind: 'notEmpty', template: @template) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v4/each_key_value.rb
lib/pact/v2/matchers/v4/each_key_value.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V4 class EachKeyValue < Pact::V2::Matchers::Base def initialize(key_matchers, template) raise MatcherInitializationError, "#{self.class}: #{template} should be a Hash" unless template.is_a?(Hash) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v4/each_key.rb
lib/pact/v2/matchers/v4/each_key.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V4 class EachKey < Pact::V2::Matchers::Base def initialize(key_matchers, template) raise MatcherInitializationError, "#{self.class}: #{template} should be a Hash" unless template.is_a?(Hash) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v1/equality.rb
lib/pact/v2/matchers/v1/equality.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V1 class Equality < Pact::V2::Matchers::Base def initialize(template) super(spec_version: Pact::V2::Matchers::PACT_SPEC_V1, kind: "equality", template: template) end def as_plugin ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v2/type.rb
lib/pact/v2/matchers/v2/type.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V2 class Type < Pact::V2::Matchers::Base def initialize(template) raise MatcherInitializationError, "#{self.class}: template is not a primitive" unless template.is_a?(TrueClass) || template.is_a?(FalseC...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v2/regex.rb
lib/pact/v2/matchers/v2/regex.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V2 class Regex < Pact::V2::Matchers::Base def initialize(regex, template) raise MatcherInitializationError, "#{self.class}: #{regex} should be an instance of Regexp" unless regex.is_a?(Regexp) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/include.rb
lib/pact/v2/matchers/v3/include.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Include < Pact::V2::Matchers::Base def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of String" unless template.is_a?(String) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/content_type.rb
lib/pact/v2/matchers/v3/content_type.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class ContentType < Pact::V2::Matchers::Base def initialize(content_type, template: nil) @content_type = content_type @template = template @opts = {} @opts[:plugin...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/decimal.rb
lib/pact/v2/matchers/v3/decimal.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Decimal < Pact::V2::Matchers::Base def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of Float" unless template.is_a?(Float) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/time.rb
lib/pact/v2/matchers/v3/time.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Time < Pact::V2::Matchers::Base def initialize(format, template) raise MatcherInitializationError, "#{self.class}: #{format} should be an instance of String" unless template.is_a?(String) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/boolean.rb
lib/pact/v2/matchers/v3/boolean.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Boolean < Pact::V2::Matchers::Base def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of Boolean" unless template.is_a?(TrueClass) || t...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/null.rb
lib/pact/v2/matchers/v3/null.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Null < Pact::V2::Matchers::Base def initialize super(spec_version: Pact::V2::Matchers::PACT_SPEC_V3, kind: "null", template: nil) end end end end end end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/number.rb
lib/pact/v2/matchers/v3/number.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Number < Pact::V2::Matchers::Base def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of Numeric" unless template.is_a?(Numeric) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/values.rb
lib/pact/v2/matchers/v3/values.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Values < Pact::V2::Matchers::Base def initialize super(spec_version: Pact::V2::Matchers::PACT_SPEC_V3, kind: "values", template: nil) end end end end end end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/integer.rb
lib/pact/v2/matchers/v3/integer.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Integer < Pact::V2::Matchers::Base def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of Integer" unless template.is_a?(::Integer) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/semver.rb
lib/pact/v2/matchers/v3/semver.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Semver < Pact::V2::Matchers::Base def initialize(template = nil) @template = template super(spec_version: Pact::V2::Matchers::PACT_SPEC_V3, kind: "semver", template: template) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/each.rb
lib/pact/v2/matchers/v3/each.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Each < Pact::V2::Matchers::Base def initialize(template, min) raise MatcherInitializationError, "#{self.class}: #{min} should be greater than 0" if min.present? && min < 1 min_arra...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/date_time.rb
lib/pact/v2/matchers/v3/date_time.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class DateTime < Pact::V2::Matchers::Base def initialize(format, template) raise MatcherInitializationError, "#{self.class}: #{format} should be an instance of String" unless template.is_a?(String) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/matchers/v3/date.rb
lib/pact/v2/matchers/v3/date.rb
# frozen_string_literal: true module Pact module V2 module Matchers module V3 class Date < Pact::V2::Matchers::Base def initialize(format, template) raise MatcherInitializationError, "#{self.class}: #{format} should be an instance of String" unless template.is_a?(String) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/mock_server.rb
lib/pact/v2/consumer/mock_server.rb
# frozen_string_literal: true require "pact/ffi/mock_server" module Pact module V2 module Consumer class MockServer attr_reader :host, :port, :transport, :handle, :url TRANSPORT_HTTP = "http" TRANSPORT_GRPC = "grpc" class MockServerCreateError < Pact::V2::FfiError; end ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/message_interaction_builder.rb
lib/pact/v2/consumer/message_interaction_builder.rb
# frozen_string_literal: true require "pact/ffi/message_consumer" require "pact/ffi/plugin_consumer" require "pact/ffi/logger" module Pact module V2 module Consumer class MessageInteractionBuilder META_CONTENT_TYPE_HEADER = "contentType" JSON_CONTENT_TYPE = "application/json" PROT...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config.rb
lib/pact/v2/consumer/pact_config.rb
# frozen_string_literal: true require_relative "pact_config/grpc" module Pact module V2 module Consumer module PactConfig def self.new(transport_type, consumer_name:, provider_name:, opts: {}) case transport_type when :http Http.new(consumer_name: consumer_name, pro...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/plugin_sync_message_interaction_builder.rb
lib/pact/v2/consumer/plugin_sync_message_interaction_builder.rb
# frozen_string_literal: true require "pact/ffi/sync_message_consumer" require "pact/ffi/plugin_consumer" require "pact/ffi/logger" module Pact module V2 module Consumer class PluginSyncMessageInteractionBuilder class PluginInitError < Pact::V2::FfiError; end # https://docs.rs/pact_ffi/0...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/http_interaction_builder.rb
lib/pact/v2/consumer/http_interaction_builder.rb
# frozen_string_literal: true require "pact/ffi/sync_message_consumer" require "pact/ffi/plugin_consumer" require "pact/ffi/logger" require "json" module Pact module V2 module Consumer class HttpInteractionBuilder # https://docs.rs/pact_ffi/0.4.17/pact_ffi/plugins/fn.pactffi_interaction_contents....
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/plugin_async_message_interaction_builder.rb
lib/pact/v2/consumer/plugin_async_message_interaction_builder.rb
# frozen_string_literal: true require "pact/ffi/async_message_pact" require "pact/ffi/plugin_consumer" require "pact/ffi/logger" module Pact module V2 module Consumer class PluginAsyncMessageInteractionBuilder class PluginInitError < Pact::V2::FfiError; end # https://docs.rs/pact_ffi/0.4...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/plugin_http_interaction_builder.rb
lib/pact/v2/consumer/plugin_http_interaction_builder.rb
# frozen_string_literal: true require "pact/ffi/http_consumer" require "pact/ffi/plugin_consumer" require "pact/ffi/logger" module Pact module V2 module Consumer class PluginHttpInteractionBuilder class PluginInitError < Pact::V2::FfiError; end # https://docs.rs/pact_ffi/0.4.17/pact_ffi/...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/interaction_contents.rb
lib/pact/v2/consumer/interaction_contents.rb
# frozen_string_literal: true module Pact module V2 module Consumer class InteractionContents < Hash BASIC_FORMAT = :basic PLUGIN_FORMAT = :plugin attr_reader :format def self.basic(contents_hash) new(contents_hash, BASIC_FORMAT) end def self.plu...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/grpc_interaction_builder.rb
lib/pact/v2/consumer/grpc_interaction_builder.rb
# frozen_string_literal: true require "pact/ffi/sync_message_consumer" require "pact/ffi/plugin_consumer" require "pact/ffi/logger" module Pact module V2 module Consumer class GrpcInteractionBuilder CONTENT_TYPE = "application/protobuf" GRPC_CONTENT_TYPE = "application/grpc" PROTOB...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config/plugin_http.rb
lib/pact/v2/consumer/pact_config/plugin_http.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Consumer module PactConfig class PluginHttp < Base attr_reader :mock_host, :mock_port def initialize(consumer_name:, provider_name:, opts: {}) super @mock_host = opts[:m...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config/plugin_sync_message.rb
lib/pact/v2/consumer/pact_config/plugin_sync_message.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Consumer module PactConfig class PluginSyncMessage < Base attr_reader :mock_host, :mock_port def initialize(consumer_name:, provider_name:, opts: {}) super @mock_host = ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config/grpc.rb
lib/pact/v2/consumer/pact_config/grpc.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Consumer module PactConfig class Grpc < Base attr_reader :mock_host, :mock_port def initialize(consumer_name:, provider_name:, opts: {}) super @mock_host = opts[:mock_ho...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config/http.rb
lib/pact/v2/consumer/pact_config/http.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Consumer module PactConfig class Http < Base attr_reader :mock_host, :mock_port, :pact_handle def initialize(consumer_name:, provider_name:, opts: {}) super @mock_host =...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config/base.rb
lib/pact/v2/consumer/pact_config/base.rb
# frozen_string_literal: true module Pact module V2 module Consumer module PactConfig class Base attr_reader :consumer_name, :provider_name, :pact_dir, :log_level def initialize(consumer_name:, provider_name:, opts: {}) @consumer_name = consumer_name @pr...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config/message.rb
lib/pact/v2/consumer/pact_config/message.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Consumer module PactConfig class Message < Base def new_interaction(description = nil) MessageInteractionBuilder.new(self, description: description) end end end end ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/v2/consumer/pact_config/plugin_async_message.rb
lib/pact/v2/consumer/pact_config/plugin_async_message.rb
# frozen_string_literal: true require_relative "base" module Pact module V2 module Consumer module PactConfig class PluginAsyncMessage < Base attr_reader :mock_host, :mock_port def initialize(consumer_name:, provider_name:, opts: {}) super @mock_host =...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/cli/spec_criteria.rb
lib/pact/cli/spec_criteria.rb
module Pact module Cli class SpecCriteria def self.call options criteria = {} criteria[:description] = Regexp.new(options[:description]) if options[:description] criteria[:_id] = options[:pact_broker_interaction_id] if options[:pact_broker_interaction_id] criteria[:index] =...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/cli/run_pact_verification.rb
lib/pact/cli/run_pact_verification.rb
require 'pact/cli/spec_criteria' module Pact module Cli class RunPactVerification attr_reader :options def initialize options @options = options end def self.call options new(options).call end def call configure_output initialize_rspec ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/cli/generate_pact_docs.rb
lib/pact/cli/generate_pact_docs.rb
require 'pact/doc/doc_file' require 'pact/doc/generate' require 'pact/doc/markdown/generator' require 'pact/consumer'
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/generate.rb
lib/pact/doc/generate.rb
module Pact module Doc class Generate def self.call pact_dir = Pact.configuration.pact_dir, doc_dir = Pact.configuration.doc_dir, doc_generators = Pact.configuration.doc_generators doc_generators.each{| doc_generator| doc_generator.call pact_dir, doc_dir } end end end end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/doc_file.rb
lib/pact/doc/doc_file.rb
module Pact module Doc class DocFile def initialize consumer_contract, dir, consumer_contract_renderer, file_extension @dir = dir @consumer_contract = consumer_contract @consumer_contract_renderer = consumer_contract_renderer @file_extension = file_extension end ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/sort_interactions.rb
lib/pact/doc/sort_interactions.rb
module Pact module Doc class SortInteractions def self.call interactions interactions.sort_by { |interaction| sortable_id(interaction) } end private def self.sortable_id interaction "#{interaction.description.downcase} #{interaction.response.status} #{(interaction.provid...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/generator.rb
lib/pact/doc/generator.rb
require 'pact/doc/doc_file' require 'fileutils' module Pact module Doc class Generator def initialize pact_dir, doc_dir, options @doc_dir = doc_dir @pact_dir = pact_dir @consumer_contract_renderer = options[:consumer_contract_renderer] @doc_type = options[:doc_type] ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/interaction_view_model.rb
lib/pact/doc/interaction_view_model.rb
require 'pact/shared/active_support_support' require 'pact/reification' require 'cgi' module Pact module Doc class InteractionViewModel include Pact::ActiveSupportSupport def initialize interaction, consumer_contract @interaction = interaction @consumer_contract = consumer_contract ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/markdown/interaction_renderer.rb
lib/pact/doc/markdown/interaction_renderer.rb
require 'erb' require 'pact/doc/interaction_view_model' module Pact module Doc module Markdown class InteractionRenderer attr_reader :interaction def initialize interaction, pact @interaction = InteractionViewModel.new(interaction, pact) end def render_summary ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/markdown/consumer_contract_renderer.rb
lib/pact/doc/markdown/consumer_contract_renderer.rb
require 'pact/doc/markdown/interaction_renderer' require 'pact/doc/sort_interactions' module Pact module Doc module Markdown class ConsumerContractRenderer def initialize consumer_contract @consumer_contract = consumer_contract end def self.call consumer_contract ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/markdown/generator.rb
lib/pact/doc/markdown/generator.rb
require 'pact/doc/generator' require 'pact/doc/markdown/consumer_contract_renderer' require 'pact/doc/markdown/index_renderer' module Pact module Doc module Markdown class Generator < Pact::Doc::Generator def initialize pact_dir, doc_dir super(pact_dir, doc_dir, consumer_cont...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/doc/markdown/index_renderer.rb
lib/pact/doc/markdown/index_renderer.rb
require 'erb' module Pact module Doc module Markdown class IndexRenderer attr_reader :consumer_name attr_reader :docs # Hash of pact title => file_name def initialize consumer_name, docs @consumer_name = consumer_name @docs = docs end def self....
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/world.rb
lib/pact/consumer/world.rb
module Pact def self.consumer_world @consumer_world ||= Pact::Consumer::World.new end # internal api, for testing only def self.clear_consumer_world @consumer_world = nil end module Consumer class World def initialize @any_pact_examples_ran = false end def consumer...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/consumer_contract_builder.rb
lib/pact/consumer/consumer_contract_builder.rb
require 'uri' require 'json/add/regexp' require 'pact/logging' require 'pact/mock_service/client' require 'pact/consumer/interaction_builder' module Pact module Consumer class ConsumerContractBuilder include Pact::Logging attr_reader :mock_service_base_url def initialize(attributes) ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/spec_hooks.rb
lib/pact/consumer/spec_hooks.rb
require 'pact/doc/generate' require 'pact/consumer/world' require 'pact/mock_service/app_manager' require 'pact/mock_service/client' module Pact module Consumer class SpecHooks def before_all Pact::MockService::AppManager.instance.spawn_all FileUtils.mkdir_p Pact.configuration.pact_dir ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/consumer_contract_builders.rb
lib/pact/consumer/consumer_contract_builders.rb
module Pact module Consumer module ConsumerContractBuilders # Placeholder for mock service methods which will be dynamically created # from the Pact configuration. # To be included in RSpec end end end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/configuration.rb
lib/pact/consumer/configuration.rb
require 'pact/configuration' require 'pact/consumer/consumer_contract_builders' require 'pact/consumer/consumer_contract_builder' require 'pact/consumer/configuration/service_consumer' require 'pact/consumer/configuration/service_provider' require 'pact/consumer/configuration/dsl' require 'pact/consumer/configuration/c...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/interaction_builder.rb
lib/pact/consumer/interaction_builder.rb
require 'net/http' require 'pact/reification' require 'pact/consumer_contract/interaction' module Pact module Consumer class InteractionBuilder attr_reader :interaction def initialize &block @interaction = Interaction.new @callback = block end def without_writing_to_pac...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/rspec.rb
lib/pact/consumer/rspec.rb
require 'pact/consumer' require 'pact/consumer/spec_hooks' require 'pact/rspec' require 'pact/helpers' module Pact module Consumer module RSpec include Pact::Consumer::ConsumerContractBuilders include Pact::Helpers end end end hooks = Pact::Consumer::SpecHooks.new RSpec.configure do |config| ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/configuration/configuration_extensions.rb
lib/pact/consumer/configuration/configuration_extensions.rb
require 'pact/configuration' require 'pact/doc/markdown/generator' module Pact module Consumer module Configuration module ConfigurationExtensions DOC_GENERATORS = { markdown: Pact::Doc::Markdown::Generator } def doc_dir @doc_dir ||= File.expand_path("./doc/pacts") end ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/configuration/mock_service.rb
lib/pact/consumer/configuration/mock_service.rb
require 'pact/mock_service/version' require 'pact/mock_service/app_manager' require 'pact/consumer/consumer_contract_builder' require 'pact/consumer/consumer_contract_builders' require 'pact/consumer/world' module Pact module Consumer module Configuration class MockService extend Pact::DSL ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/configuration/service_consumer.rb
lib/pact/consumer/configuration/service_consumer.rb
require 'pact/shared/dsl' module Pact module Consumer module Configuration class ServiceConsumer extend Pact::DSL attr_accessor :app, :port, :name def initialize name @name = name @app = nil @port = nil end dsl do def app a...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/configuration/dsl.rb
lib/pact/consumer/configuration/dsl.rb
require 'pact/consumer/configuration/service_consumer' module Pact module Consumer module DSL def service_consumer name, &block Configuration::ServiceConsumer.build(name, &block) end end end end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/lib/pact/consumer/configuration/service_provider.rb
lib/pact/consumer/configuration/service_provider.rb
require 'pact/shared/dsl' require 'pact/consumer/configuration/mock_service' module Pact module Consumer module Configuration class ServiceProvider extend Pact::DSL attr_accessor :service, :consumer_name, :name def initialize name, consumer_name @name = name @...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/app/helpers/ckeditor/application_helper.rb
app/helpers/ckeditor/application_helper.rb
# frozen_string_literal: true module Ckeditor::ApplicationHelper end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/app/controllers/ckeditor/pictures_controller.rb
app/controllers/ckeditor/pictures_controller.rb
# frozen_string_literal: true class Ckeditor::PicturesController < Ckeditor::ApplicationController skip_before_action :verify_authenticity_token, only: :create, raise: false def index @pictures = Ckeditor.picture_adapter.find_all(ckeditor_pictures_scope) @pictures = Ckeditor::Paginatable.new(@pictures).pa...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/app/controllers/ckeditor/attachment_files_controller.rb
app/controllers/ckeditor/attachment_files_controller.rb
# frozen_string_literal: true class Ckeditor::AttachmentFilesController < Ckeditor::ApplicationController skip_before_action :verify_authenticity_token, only: :create, raise: false def index @attachments = Ckeditor.attachment_file_adapter.find_all(ckeditor_attachment_files_scope) @attachments = Ckeditor::...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/app/controllers/ckeditor/application_controller.rb
app/controllers/ckeditor/application_controller.rb
# frozen_string_literal: true class Ckeditor::ApplicationController < Ckeditor.parent_controller.constantize layout Ckeditor.controller_layout before_action :find_asset, only: [:destroy] before_action :ckeditor_authorize! before_action :authorize_resource protected def respond_with_asset(asset) asse...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/test_helper.rb
test/test_helper.rb
# frozen_string_literal: true # Configure Rails Envinronment ENV['RAILS_ENV'] = 'test' CKEDITOR_ORM = (ENV['CKEDITOR_ORM'] || :active_record).to_sym CKEDITOR_BACKEND = (ENV['CKEDITOR_BACKEND'] || :carrierwave).to_sym $LOAD_PATH.unshift File.dirname(__FILE__) puts "\n==> Ckeditor.orm = #{CKEDITOR_ORM.inspect}. CKEDITO...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/support/integration_case.rb
test/support/integration_case.rb
# frozen_string_literal: true # Define a bare test case to use with Capybara class ActiveSupport::IntegrationCase < ActiveSupport::TestCase include Capybara::DSL include Rails.application.routes.url_helpers end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/support/helpers.rb
test/support/helpers.rb
# frozen_string_literal: true require 'active_support/test_case' require 'action_dispatch/testing/test_process' class ActiveSupport::TestCase include ActionDispatch::TestProcess def new_attachment(data = nil) data ||= Rack::Test::UploadedFile.new('test/dummy/test/fixtures/files/rails.tar.gz', 'application/x-...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/integration/navigation_test.rb
test/integration/navigation_test.rb
# frozen_string_literal: true require 'test_helper' class NavigationTest < ActiveSupport::IntegrationCase test "truth" do assert_kind_of Dummy::Application, Rails.application end end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/controllers/attachment_files_controller_test.rb
test/controllers/attachment_files_controller_test.rb
# frozen_string_literal: true require 'test_helper' class AttachmentFilesControllerTest < ActionController::TestCase tests Ckeditor::AttachmentFilesController def setup @attachment = Rack::Test::UploadedFile.new('test/dummy/test/fixtures/files/rails.tar.gz', 'application/x-gzip') @routes = Ckeditor::Eng...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/controllers/pictures_controller_test.rb
test/controllers/pictures_controller_test.rb
# frozen_string_literal: true require 'test_helper' class PicturesControllerTest < ActionController::TestCase tests Ckeditor::PicturesController def setup @image = Rack::Test::UploadedFile.new('test/dummy/test/fixtures/files/rails.png', 'image/png') @routes = Ckeditor::Engine.routes end def teardown...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/models/picture_test.rb
test/models/picture_test.rb
# frozen_string_literal: true require 'test_helper' class PictureTest < ActiveSupport::TestCase def teardown @picture.destroy rescue nil end test 'Set file content_type and size' do @picture = create_picture assert_equal 'rails.png', @picture.data_file_name case CKEDITOR_BACKEND when :dra...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/models/attachment_file_test.rb
test/models/attachment_file_test.rb
# frozen_string_literal: true require 'test_helper' class AttachmentFileTest < ActiveSupport::TestCase def teardown @attachment.destroy rescue nil end test 'Set file content_type and size' do @attachment = create_attachment assert_equal 'rails.tar.gz', @attachment.data_file_name assert_equal 6...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/models/utils_test.rb
test/models/utils_test.rb
# frozen_string_literal: true require 'test_helper' class UtilsTest < ActiveSupport::TestCase test 'exists filethumb' do %w(avi doc docx exe gz htm jpg mp3 mpg pdf psd rar swf tar txt wmv xlsx zip).each do |ext| assert_equal "ckeditor/filebrowser/thumbs/#{ext}.gif", Ckeditor::Utils.filethumb("somefile.#{e...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/models/ckeditor_test.rb
test/models/ckeditor_test.rb
# frozen_string_literal: true require 'test_helper' class CkeditorTest < ActiveSupport::TestCase def teardown Ckeditor.picture_model = nil Ckeditor.attachment_file_model = nil Ckeditor.cdn_url = nil Ckeditor.assets = nil end test "truth" do assert_kind_of Module, Ckeditor end test 'set...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/generators/install_generator_test.rb
test/generators/install_generator_test.rb
# frozen_string_literal: true require 'test_helper' require 'fileutils' class InstallGeneratorTest < Rails::Generators::TestCase tests Ckeditor::Generators::InstallGenerator destination File.expand_path('../../tmp', __FILE__) setup :prepare_destination setup do dir = File.expand_path('../../', __FILE__) ...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/app/helpers/posts_helper.rb
test/dummy/app/helpers/posts_helper.rb
# frozen_string_literal: true module PostsHelper end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/app/helpers/application_helper.rb
test/dummy/app/helpers/application_helper.rb
# frozen_string_literal: true module ApplicationHelper end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/app/controllers/posts_controller.rb
test/dummy/app/controllers/posts_controller.rb
# frozen_string_literal: true class PostsController < ApplicationController # GET /posts # GET /posts.xml def index @posts = Post.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @posts } end end # GET /posts/1 # GET /posts/1.xml def show ...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/app/controllers/application_controller.rb
test/dummy/app/controllers/application_controller.rb
# frozen_string_literal: true class ApplicationController < ActionController::Base protect_from_forgery end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/app/models/post.rb
test/dummy/app/models/post.rb
# frozen_string_literal: true case CKEDITOR_ORM when :active_record class Post < ActiveRecord::Base validates_presence_of :title, :info, :content end when :mongoid class Post include Mongoid::Document field :title field :info field :content validates_presence_of :title, :info, :content ...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/db/migrate/20110623120047_create_posts.rb
test/dummy/db/migrate/20110623120047_create_posts.rb
# frozen_string_literal: true class CreatePosts < ActiveRecord::Migration[6.1] def up create_table :posts do |t| t.string :title t.text :info t.text :content t.timestamps null: false end end def down drop_table :posts end end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/db/migrate/20170806125915_create_active_storage_tables.rb
test/dummy/db/migrate/20170806125915_create_active_storage_tables.rb
class CreateActiveStorageTables < ActiveRecord::Migration[6.1] def change create_table :active_storage_blobs do |t| t.string :key, null: false t.string :filename, null: false t.string :content_type t.text :metadata t.bigint :byte_size, null: false t.string...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/db/migrate/20240702124877_create_active_storage_variant_records.rb
test/dummy/db/migrate/20240702124877_create_active_storage_variant_records.rb
# This migration comes from active_storage (originally 20191206030411) class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.1] def up create_table :active_storage_variant_records do |t| t.belongs_to :blob, null: false, index: false t.string :variation_digest, null: false t.index ...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/config/application.rb
test/dummy/config/application.rb
# frozen_string_literal: true require File.expand_path('../boot', __FILE__) require "rails" # Pick the frameworks you want: require "active_model/railtie" # require "active_job/railtie" require "active_record/railtie" require "action_controller/railtie" # require "action_mailer/railtie" require "action_view/railtie" ...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/config/environment.rb
test/dummy/config/environment.rb
# frozen_string_literal: true # Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Dummy::Application.initialize!
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/config/routes.rb
test/dummy/config/routes.rb
# frozen_string_literal: true Rails.application.routes.draw do resources :posts root to: "posts#index" mount Ckeditor::Engine, at: '/ckeditor' end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/config/boot.rb
test/dummy/config/boot.rb
# frozen_string_literal: true require 'rubygems' gemfile = File.expand_path('../../../../Gemfile', __FILE__) if File.exist?(gemfile) ENV['BUNDLE_GEMFILE'] = gemfile require 'bundler' Bundler.setup end $:.unshift File.expand_path('../../../../lib', __FILE__)
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/config/initializers/paperclip.rb
test/dummy/config/initializers/paperclip.rb
# frozen_string_literal: true if Object.const_defined?('Paperclip') Paperclip.options[:command_path] = '/usr/local/bin/' end
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false
galetahub/ckeditor
https://github.com/galetahub/ckeditor/blob/f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570/test/dummy/config/initializers/session_store.rb
test/dummy/config/initializers/session_store.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the ...
ruby
MIT
f6f8e2b2f61a8315ea0994db74d8e4a1ed6a2570
2026-01-04T15:56:58.833789Z
false