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
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/lib/staytus/version.rb
lib/staytus/version.rb
module Staytus VERSION = '1.3.1' end
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/lib/staytus/email.rb
lib/staytus/email.rb
module Staytus class Email class << self # # Send an email to the given recipient # def deliver(subscriber, template, attributes = {}) original_zone = Time.zone Time.zone = Site.first.time_zone mail = Mail.new mail.to subscriber.email_address ...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/lib/staytus/config.rb
lib/staytus/config.rb
require 'staytus/version' module Staytus module Config class << self def theme_name ENV['STAYTUS_THEME'] || 'default' end def theme_root ENV['STAYTUS_THEME_ROOT'] ? File.join(ENV['STAYTUS_THEME_ROOT'], self.theme_name) : Rails.root.join('content', 'themes', self.theme_name) ...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/lib/staytus/error.rb
lib/staytus/error.rb
module Staytus class Error < StandardError end end
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/lib/staytus/errors/no_site.rb
lib/staytus/errors/no_site.rb
module Staytus module Errors class NoSite < StandardError end end end
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/application.rb
config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module Staytus class Application < Rails::Application config.eager_load_paths += %W(#{config.root}/l...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/environment.rb
config/environment.rb
# Load the Rails application. require File.expand_path('../application', __FILE__) # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/puma.rb
config/puma.rb
# Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum, this matches ...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/routes.rb
config/routes.rb
Rails.application.routes.draw do namespace :admin do # # Authentication # get 'login' => 'sessions#new' post 'login' => 'sessions#create' delete 'logout' => 'sessions#destroy' # Settings # get 'settings' => 'settings#index' get 'settings/general' => 'settings#edit' patch ...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/boot.rb
config/boot.rb
ENV['RAILS_ENV'] ||= 'production' ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) $stdout.sync = true $stderr.sync = true require 'bundler/setup'
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/filter_parameter_logging.rb
config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/application_controller_renderer.rb
config/initializers/application_controller_renderer.rb
# Be sure to restart your server when you modify this file. # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # )
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/new_framework_defaults_5_1.rb
config/initializers/new_framework_defaults_5_1.rb
# Be sure to restart your server when you modify this file. # # This file contains migration options to ease your Rails 5.1 upgrade. # # Once upgraded flip defaults one by one to migrate to the new default. # # Read the Guide for Upgrading Ruby on Rails for more info on each option. # Make `form_with` generate non-rem...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/nilify_blanks.rb
config/initializers/nilify_blanks.rb
ActiveRecord::Base.nilify_blanks
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/session_store.rb
config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_staytus_session'
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/wrap_parameters.rb
config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters f...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/inflections.rb
config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/delayed_job.rb
config/initializers/delayed_job.rb
Delayed::Worker.max_attempts = 1
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/smtp.rb
config/initializers/smtp.rb
if ENV['STAYTUS_SMTP_HOSTNAME'] ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => ENV['STAYTUS_SMTP_HOSTNAME'], :port => ENV['STAYTUS_SMTP_PORT'], :user_name => ENV['STAYTUS_SMTP_USERNAME'], :password ...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/cookies_serializer.rb
config/initializers/cookies_serializer.rb
# Be sure to restart your server when you modify this file. Rails.application.config.action_dispatch.cookies_serializer = :json
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/assets.rb
config/initializers/assets.rb
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_path # Precompile additional ...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/backtrace_silencers.rb
config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/mime_types.rb
config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/secret_token.rb
config/initializers/secret_token.rb
if ENV['SECRET_KEY_BASE'] Rails.application.secrets.secret_key_base = ENV['SECRET_KEY_BASE'] else unless File.exists?("config/secret_token.yml") puts ">> Generating new secret token in config/secret_token.yml" File.open("config/secret_token.yml", "w") do |f| f.write SecureRandom.hex(128).to_yaml e...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/initializers/validators.rb
config/initializers/validators.rb
ActiveValidators.activate(:email) ActiveValidators.activate(:slug) ActiveValidators.activate(:url)
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/environments/test.rb
config/environments/test.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suit...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/environments/development.rb
config/environments/development.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
adamcooke/staytus
https://github.com/adamcooke/staytus/blob/3e204359b91109a6dbddf5e6ea22c34051d8db48/config/environments/production.rb
config/environments/production.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
ruby
MIT
3e204359b91109a6dbddf5e6ea22c34051d8db48
2026-01-04T15:57:17.185640Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/spec_helper.rb
spec/spec_helper.rb
require "logstash/devutils/rspec/spec_helper" require 'rspec/expectations' # running the grok code outside a logstash package means # LOGSTASH_HOME will not be defined, so let's set it here # before requiring the grok filter unless LogStash::Environment.const_defined?(:LOGSTASH_HOME) LogStash::Environment::LOGSTASH_...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/bro_spec.rb
spec/patterns/bro_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "BRO_HTTP", ['legacy', 'ecs-v1'] do let(:message) do # old BRO logging format "1432555199.633017 COpk6E3vkURP8QQNKl 192.168.9.35 55281 178.236.7.146 80 4 POST www.amazon.it /xa/dealcontent/v2/GetDeals?nocache=1432555199326...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/mcollective_spec.rb
spec/patterns/mcollective_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "MCOLLECTIVE", ['legacy', 'ecs-v1'] do let(:message) { "I, [2010-12-29T11:15:32.321744 #11479] INFO -- : mcollectived:33 The Marionette Collective 1.1.0 started logging at info level" } it do should include("timestamp"...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/haproxy_spec.rb
spec/patterns/haproxy_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "HAPROXYHTTP", ['legacy', 'ecs-v1'] do context "log line from raw syslog line" do let(:message) do 'Dec 9 13:01:26 localhost haproxy[28029]: 127.0.0.1:39759 [09/Dec/2013:12:59:46.633] loadbalancer default/instance8...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/nagios_spec.rb
spec/patterns/nagios_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "NAGIOSLOGLINE - CURRENT HOST STATE", [ 'legacy', 'ecs-v1' ] do let(:message) { "[1427925600] CURRENT HOST STATE: nagioshost;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 2.24 ms" } it "a pattern pass the grok expression" do ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/rails3_spec.rb
spec/patterns/rails3_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "RAILS3", ['legacy', 'ecs-v1'] do context "single-line log" do let(:message) { 'Started POST "/api/v3/internal/allowed" for 127.0.0.1 at 2015-08-05 11:37:01 +0200' } # Started it do if ecs_compatibility? ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/maven_spec.rb
spec/patterns/maven_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe "MAVEN_VERSION" do let(:pattern) { 'MAVEN_VERSION' } context "when maven version is simple" do let(:value) { '1.1.0' } it "should match the version" do expect(grok_match(pattern,value)).to pass end end conte...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/core_spec.rb
spec/patterns/core_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "SYSLOGLINE", ['legacy', 'ecs-v1'] do let(:message) { "Mar 16 00:01:25 evita postfix/smtpd[1713]: connect from camomile.cloud9.net[168.100.1.3]" } it "a pattern pass the grok expression" do expect(grok).to pass end ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/redis_spec.rb
spec/patterns/redis_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern 'REDISTIMESTAMP', [ 'legacy', 'ecs-v1' ] do let(:message) { '14 Nov 07:01:22.119'} it "a pattern pass the grok expression" do expect(grok_match(pattern, message)).to pass end end describe_pattern 'REDISLOG', [ 'lega...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/mongodb_spec.rb
spec/patterns/mongodb_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "MONGO3_LOG", ['legacy', 'ecs-v1'] do context "parsing an standard/basic message" do let(:message) { "2014-11-03T18:28:32.450-0500 I NETWORK [initandlisten] waiting for connections on port 27017" } it { should includ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/shorewall_spec.rb
spec/patterns/shorewall_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "SHOREWALL", ['legacy', 'ecs-v1'] do context "parsing a message with OUT interface" do let(:message) do "May 28 17:23:25 myHost kernel: [3124658.791874] Shorewall:FORWARD:REJECT:" + "IN=eth2 OUT=eth2 SRC=1.2.3...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/bind_spec.rb
spec/patterns/bind_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "BIND9", ['legacy', 'ecs-v1'] do let(:message) do # Bind 9.10 '17-Feb-2018 23:06:56.326 queries: info: client 172.26.0.1#12345 (test.example.com): query: test.example.com IN A +E(0)K (172.26.0.3)' end it 'matches' do ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/aws_spec.rb
spec/patterns/aws_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "ELB_ACCESS_LOG", ['legacy', 'ecs-v1'] do context "parsing an access log" do let(:message) do "2014-02-15T23:39:43.945958Z my-test-loadbalancer 192.168.131.39:2817 10.0.0.1:80 0.000073 0.001048 0.000057 200 200 0 29...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/exim_spec.rb
spec/patterns/exim_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern 'EXIM', ['legacy', 'ecs-v1'] do context 'message arrival (old)' do let(:message) do "1995-10-31 08:57:53 0tACW1-0005MB-00 <= kryten@dwarf.fict.example H=mailer.fict.example [192.168.123.123] " + "U=exim P=...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/netscreen_spec.rb
spec/patterns/netscreen_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "NETSCREENSESSIONLOG", ['legacy', 'ecs-v1'] do context "traffic denied (Juniper)" do let(:message) do 'Jun 2 14:53:31 sample-host isg1000-A2: NetScreen device_id=0000011001000011 [Root]system-notification-00257(tra...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/bacula_spec.rb
spec/patterns/bacula_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "BACULA_LOG_MAX_CAPACITY", ['legacy', 'ecs-v1'] do let(:message) do 'User defined maximum volume capacity 108,372,182,400 exceeded on device "FStorage" (/var/lib/bac/storage).' end it 'matches' do if ecs_compatibi...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/squid_spec.rb
spec/patterns/squid_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "SQUID3", ['legacy', 'ecs-v1'] do describe 'CONNECT sample' do let(:message) do '1525344856.899 16867 10.170.72.111 TCP_TUNNEL/200 6256 CONNECT logs.ap-southeast-2.amazonaws.com:443 - HIER_DIRECT/53.140.206.134 -' ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/java_spec.rb
spec/patterns/java_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe "JAVACLASS" do let(:example) { 'hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor' } it "matches a java class with underscores" do expect(grok_match(subject, example, true)['tags']).to be_nil end end describe "JAVAFILE" d...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/syslog_spec.rb
spec/patterns/syslog_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "SYSLOGLINE", ['legacy', 'ecs-v1'] do it "matches a simple message with pid" do match = grok_match pattern, "May 11 15:17:02 meow.soy.se CRON[10973]: pam_unix(cron:session): session opened for user root by (uid=0)" if ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/junos_spec.rb
spec/patterns/junos_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" # NOTE: we only support non-structured log formats for all RT_FLOW_ describe_pattern "RT_FLOW1", ['legacy', 'ecs-v1'] do let(:message) do 'Dec 17 08:05:30 RT_FLOW: RT_FLOW_SESSION_CLOSE: session closed TCP FIN: 10.10.10.2/53836->10.10.10....
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/firewalls_spec.rb
spec/patterns/firewalls_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" CISCOFW_ALLOWED_TOP_LEVEL_NAMESPACES = ['event', 'cisco', 'observer', 'source', 'destination'].freeze describe_pattern "CISCOFW104001", ['legacy', 'ecs-v1'] do let(:message) { "(Secondary) Switching to ACTIVE - Service card in other unit has ...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/spec/patterns/httpd_spec.rb
spec/patterns/httpd_spec.rb
# encoding: utf-8 require "spec_helper" require "logstash/patterns/core" describe_pattern "HTTPD_COMBINEDLOG", ['legacy', 'ecs-v1'] do context "typical test case" do let(:message) { '83.149.9.216 - - [24/Feb/2015:23:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 20...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
logstash-plugins/logstash-patterns-core
https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/lib/logstash/patterns/core.rb
lib/logstash/patterns/core.rb
module LogStash module Patterns module Core extend self BASE_PATH = ::File.expand_path('../../../patterns', ::File.dirname(__FILE__)) private_constant :BASE_PATH def path(type = 'legacy') case type = type.to_s when 'legacy', 'ecs-v1' ::File.join(BASE_PATH, type)...
ruby
Apache-2.0
f01f3f34cfab13a28b0822bdba33db41823cb1d8
2026-01-04T15:57:19.247391Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/scratchpad.rb
scratchpad.rb
Ideas for expectation DSL Unfortunately RSpec has already stolen the method "example". Could use: eg ex my_provider. given("a thing exists"). upon_receiving("a request for a thing").with({:method => 'get', :path => '/thing'}) will_respond_with({:body => { name: ex("Fred"), ag...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/rails_helper_v2.rb
spec/rails_helper_v2.rb
# frozen_string_literal: true ENV["RAILS_ENV"] = "test" # Engine root is used by rails_configuration to correctly # load fixtures and support files require "pathname" ENGINE_ROOT = Pathname.new(File.expand_path("..", __dir__)) puts "Loading Rails environment for tests from #{ENGINE_ROOT}" require "webmock" require "...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/spec_helper_v2.rb
spec/spec_helper_v2.rb
# frozen_string_literal: true ENV["RAILS_ENV"] = "test" require "bundler/setup" require "rspec" require "rspec_junit_formatter" is_windows = Gem.win_platform? RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/spec_helper.rb
spec/spec_helper.rb
require 'rspec' require 'rspec/its' require 'fakefs/spec_helpers' require 'pact' require 'webmock/rspec' require 'support/factories' require 'support/spec_support' require 'pact/provider/rspec' WebMock.disable_net_connect!(allow_localhost: true, allow: "https://www.google-analytics.com") require './spec/support/activ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/ssl_server.rb
spec/support/ssl_server.rb
if __FILE__ == $0 SSL_KEY = "spec/fixtures/certificates/key.pem" SSL_CERT = "spec/fixtures/certificates/client_cert.pem" SSL_CA_CERT = "spec/fixtures/certificates/ca_cert.pem" trap(:INT) do @server.shutdown exit end def webrick_opts port certificate = OpenSSL::X509::Certificate.new(File.read(...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/vcr.rb
spec/support/vcr.rb
# frozen_string_literal: true VCR.configure do |c| c.cassette_library_dir = "spec/fixtures/vcr" c.hook_into :webmock c.configure_rspec_metadata! c.ignore_hosts "127.0.0.1", "localhost" c.default_cassette_options = { record: :once, match_requests_on: %i[method uri body], decode_compressed_response...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/message_spec_helper.rb
spec/support/message_spec_helper.rb
require 'pact/message' # Example data store class DataStore def self.greeting_recipient= greeting_recipient @greeting_recipient = greeting_recipient end def self.greeting_recipient @greeting_recipient end end # Example message producer class BarProvider def create_message { text: "Hello...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/pact_helper.rb
spec/support/pact_helper.rb
# This is the pact_helper for rake pact:tests require 'json' require 'pact/provider/rspec' require './spec/support/active_support_if_configured' module Pact module Test class TestApp def call env if env['PATH_INFO'] == '/weather' [200, {'Content-Type' => 'application/json'}, [{message: WEATHER[:current_...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/case-insensitive-response-header-matching.rb
spec/support/case-insensitive-response-header-matching.rb
module Pact module Test class CaseInsensitiveResponseHeadersApp def call env [200, {'cOnTent-tYpe' => 'application/hippo'},[]] end end end end Pact.service_provider "Provider" do app { Pact::Test::CaseInsensitiveResponseHeadersApp.new } end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/spec_support.rb
spec/support/spec_support.rb
require 'pact/rspec' module Pact module SpecSupport extend self def remove_ansicolor string string.gsub(/\e\[(\d+)m/, '') end Pact::RSpec.with_rspec_2 do def instance_double *args double(*args) 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/spec/support/bar_pact_helper.rb
spec/support/bar_pact_helper.rb
require 'json' require 'pact/provider/rspec' module Pact module Test class BarApp def call env [200, {'Content-Type' => 'application/json'}, [{name: "Thing 1"}.to_json]] end end Pact.configure do | config | config.logger.level = Logger::DEBUG end Pact.service_provider ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/factories.rb
spec/support/factories.rb
require 'hashie' require 'hashie/extensions/key_conversion' module Pact module HashUtils class Converter < Hash include Hashie::Extensions::KeyConversion include Hashie::Extensions::DeepMerge end def symbolize_keys hash Hash[Converter[hash].symbolize_keys] end def stringify_k...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/active_support_if_configured.rb
spec/support/active_support_if_configured.rb
if ENV['LOAD_ACTIVE_SUPPORT'] $stderr.puts 'LOADING ACTIVE SUPPORT!!!! Hopefully it all still works' require 'active_support/all' require 'active_support' require 'active_support/json' end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/response_body_term_app.rb
spec/support/response_body_term_app.rb
require 'pact/provider/rspec' class App def self.call env [200, {'Content-Type' => 'application/json'}, []] end end Pact.service_provider 'Provider' do app { App } end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/options_app.rb
spec/support/options_app.rb
require 'pact/provider/rspec' class App def self.call env if env['REQUEST_METHOD'] == 'OPTIONS' [200, {}, []] else [500, {}, ["Expected an options request"]] end end end Pact.service_provider 'Provider' do app { App } end
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/stubbing_using_allow.rb
spec/support/stubbing_using_allow.rb
require 'pact/provider/rspec' require 'rspec/mocks' require './spec/support/active_support_if_configured' class StubbedThing def self.stub_me end end class App def self.call env [200, {}, [StubbedThing.stub_me]] end end Pact.provider_states_for 'Consumer' do provider_state 'something is stubbed' do ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/cli.rb
spec/support/cli.rb
module Pact module Support module CLI def execute_command command, options = {} output = `#{command}` ensure_patterns_present(command, options, output) if options[:with] ensure_patterns_not_present(command, options, output) if options[:without] end def ensure_patterns_p...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/pact_helper_for_provider_state_params_test.rb
spec/support/pact_helper_for_provider_state_params_test.rb
# This is the pact_helper for rake pact:tests require 'json' require 'pact/provider/rspec' require 'ostruct' module Pact module Test class ParamsTestApp ALLIGATORS = [] def call env [200, {'Content-Type' => 'application/json'}, [ALLIGATORS.first.to_h.to_json]] end end Pact.co...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/app_for_config_ru.rb
spec/support/app_for_config_ru.rb
class AppForConfigRu def call env 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/spec/support/shared_examples_for_request.rb
spec/support/shared_examples_for_request.rb
shared_examples "a request" do describe 'matching' do let(:expected) do Pact::Request::Expected.from_hash( 'method' => 'get', 'path' => 'path', 'query' => /b/ ) end let(:actual) do Pact::Consumer::Request::Actual.from_hash( 'method' => 'get', 'path' => 'path', 'query' =...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/support/warning_silencer.rb
spec/support/warning_silencer.rb
module WarningSilencer extend self def enable old, $VERBOSE = $VERBOSE, nil yield ensure $VERBOSE = old 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/spec/support/bar_fail_pact_helper.rb
spec/support/bar_fail_pact_helper.rb
require 'json' require 'pact/provider/rspec' module Pact module Test class BarApp def call env [200, {'Content-Type' => 'application/hal+json'}, [{name: "Thing 2"}.to_json]] end end Pact.configure do | config | config.logger.level = Logger::DEBUG end Pact.service_provider "Bar" do app { Ba...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/executing_verify_from_wrapper_language_spec.rb
spec/integration/executing_verify_from_wrapper_language_spec.rb
RSpec.describe "executing pact verify", skip_windows: true do let(:command) { "bundle exec rake pact:verify:test_app:fail > /dev/null" } let(:reports_dir) { 'tmp/spec_reports' } # The config for this is in spec/support/pact_helper.rb before do FileUtils.rm_rf reports_dir end after do FileUtils.rm_rf...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_with_form_spec.rb
spec/integration/consumer_with_form_spec.rb
require 'spec_helper' require 'net/http' require 'pact/consumer' require 'pact/consumer/rspec' require 'faraday' load 'pact/consumer/world.rb' describe "A service consumer side of a pact", :pact => true do let(:body) { 'That is some good Mallory.' } context 'submitting a form' do before :all do Pact....
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_with_v2_matching.rb
spec/integration/consumer_with_v2_matching.rb
require 'pact/consumer' require 'pact/consumer/rspec' load 'pact/consumer/world.rb' require 'faraday' describe "When the pact_specification_version is set to 2", :pact => true do before do Pact.clear_configuration Pact.service_consumer "Consumer" do has_pact_with "Zebra Service" do mock_serv...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_with_pact_term_in_path.rb
spec/integration/consumer_with_pact_term_in_path.rb
require 'pact/consumer' require 'pact/consumer/rspec' load 'pact/consumer/world.rb' require 'faraday' describe "A service consumer side of a pact", :pact => true do context "with a provider state" do before do Pact.clear_configuration Pact.service_consumer "Consumer" do has_pact_with "Zebra...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/cli_spec.rb
spec/integration/cli_spec.rb
require 'open3' require 'support/cli' describe "running the pact verify CLI", skip_windows: true do include Pact::Support::CLI # Running this under RSpec 2 gives different output let(:expected_test_output) { %r{(6 examples|2 interactions), 0 failures} } describe "running a failing test with --backtrace" do ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_with_form_hash_spec.rb
spec/integration/consumer_with_form_hash_spec.rb
require 'spec_helper' require 'net/http' require 'pact/consumer' require 'pact/consumer/rspec' require 'faraday' load 'pact/consumer/world.rb' describe "A service consumer side of a pact", :pact => true do let(:body) { 'That is some good Mallory.' } context 'submitting a form specified as a Hash' do before...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/publish_verification_spec.rb
spec/integration/publish_verification_spec.rb
require 'pact/provider/verification_results/publish_all' require 'pact/provider/pact_uri' describe "publishing verifications" do before do allow(Pact.configuration).to receive(:provider).and_return(provider_configuration) allow($stdout).to receive(:puts) end let(:provider_configuration) do double('p...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_with_params_hash_spec.rb
spec/integration/consumer_with_params_hash_spec.rb
require 'spec_helper' require 'net/http' require 'pact/consumer' require 'pact/consumer/rspec' require 'faraday' load 'pact/consumer/world.rb' describe "A service consumer side of a pact", :pact => true do # Helper to make Faraday requests. # Faraday::FlatParamsEncoder may only be needed with our current version...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_with_a_provider_state_spec.rb
spec/integration/consumer_with_a_provider_state_spec.rb
require 'pact/consumer' require 'pact/consumer/rspec' load 'pact/consumer/world.rb' require 'faraday' describe "A service consumer side of a pact", :pact => true do context "with a provider state" do before do Pact.clear_configuration Pact.service_consumer "Consumer" do has_pact_with "Zebra...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_with_pact_term_header.rb
spec/integration/consumer_with_pact_term_header.rb
require 'pact/consumer' require 'pact/consumer/rspec' load 'pact/consumer/world.rb' require 'faraday' describe "A service consumer side of a pact", :pact => true do context "when the header is a Pact::Term" do before do Pact.clear_configuration Pact.service_consumer "Consumer" do has_pact_w...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_more_than_one_matching_interaction_spec.rb
spec/integration/consumer_more_than_one_matching_interaction_spec.rb
require 'pact/consumer' require 'pact/consumer/rspec' load 'pact/consumer/world.rb' describe "A service consumer side of a pact", :pact => true do context "with more than one matching interaction found" do let(:expected_response) do {"message"=>"Multiple interaction found for GET /path", "matching_intera...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_no_matching_interaction_spec.rb
spec/integration/consumer_no_matching_interaction_spec.rb
require 'pact/consumer' require 'pact/consumer/rspec' load 'pact/consumer/world.rb' describe "A service consumer side of a pact", :pact => true do context "with no matching interaction found" do let(:expected_response) do { "message"=>"No interaction found for GET /path", "interaction_dif...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/consumer_async_request_spec.rb
spec/integration/consumer_async_request_spec.rb
require 'spec_helper' require 'pact/consumer' require 'pact/consumer/rspec' load 'pact/consumer/world.rb' describe "A service consumer side of a pact", :pact => true do context "with an asynchronous interaction with provider" do before do Pact.clear_configuration Pact.service_consumer "Consumer" d...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/cli_docs_spec.rb
spec/integration/cli_docs_spec.rb
require 'open3' require 'support/cli' require 'fileutils' describe "running the pact docs CLI", skip_windows: true do include Pact::Support::CLI before do FileUtils.rm_rf "tmp/docs" end let(:command) { "bundle exec bin/pact docs --pact-dir spec/support/docs --doc-dir tmp/docs" } it "writes some docs"...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/pact/consumer_configuration_spec.rb
spec/integration/pact/consumer_configuration_spec.rb
require 'spec_helper' require 'pact/configuration' require 'pact/consumer/configuration' describe "consumer side" do describe "configure" do class TestHelper include Pact::Consumer::ConsumerContractBuilders end let(:application) { double("App")} let(:world) { Pact::Consumer::World.new } ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/integration/pact/provider_configuration_spec.rb
spec/integration/pact/provider_configuration_spec.rb
require 'spec_helper' require 'pact/provider/rspec' describe "provider side" do describe "configure" do class TestHelper include Pact::Provider::RSpec::InstanceMethods end let(:application) { double("App")} before do app_block = ->{ application } Pact.service_pr...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact_specification/compliance-1.0.0.rb
spec/pact_specification/compliance-1.0.0.rb
require 'spec_helper' require 'pact/consumer/request' require 'pact/consumer_contract/request' PACT_SPEC_DIR = "../pact-specification/testcases" REQUEST_TEST_CASE_FOLDERS = Dir.glob("#{PACT_SPEC_DIR}/request/**") REQUEST_TEST_CASE_FILES = Dir.glob("#{PACT_SPEC_DIR}/request/**/*.json") TEST_DESCRIPTIONS = {true => "ma...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/grpc_client_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/grpc_client_spec.rb
# frozen_string_literal: true require "pact/v2/rspec" RSpec.describe "Pact::V2::Providers::Test::GrpcClient", :pact_v2 do has_grpc_pact_between "pact-ruby-v2-test-app", "pact-ruby-v2-test-app" let(:pet_id) { 123 } let(:api) { ::PetStore::Grpc::PetStore::V1::Pets::Stub.new("localhost:3009", :this_channel_is_i...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/http_client_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/http_client_spec.rb
# frozen_string_literal: true require "pact/v2/rspec" RSpec.describe "Pact::V2::Providers::Test::HttpClient", :pact_v2 do has_http_pact_between "pact-ruby-v2-test-app", "pact-ruby-v2-test-app", opts: { mock_port: 3000 } let(:pet_id) { 123 } let(:host) { "localhost:3000" } let(:interaction) { new_intera...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/plugin_grpc_sync_message_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/plugin_grpc_sync_message_spec.rb
# frozen_string_literal: true require 'pact/v2/rspec' RSpec.describe 'Test grpc sync message plugin loading', :pact_v2 do has_plugin_sync_message_pact_between 'pact-ruby-v2-test-app', 'pact-ruby-v2-test-app', opts: { mock_port: 3009 } let(:pet_id) { 123 } let(:api) { ::PetStore::Grpc::PetStore::V1::Pets::Stub...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/message_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/message_spec.rb
require 'pact/v2' require 'pact/v2/rspec' require_relative '../../../internal/app/consumers/test_message_consumer' describe TestMessageConsumer, :pact_v2 do has_message_pact_between 'Test Message Consumer', 'Test Message Provider' subject(:consumer) { TestMessageConsumer.new } describe 'Test Message Consumer' ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/kafka_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/kafka_spec.rb
# frozen_string_literal: true require "pact/v2/rspec" RSpec.describe "Pact::V2::Providers::Test::Kafka", :pact_v2, skip_windows: true do has_message_pact_between "pact-ruby-v2-test-app", "pact-ruby-v2-test-app-kafka" let(:karafka_message) { Struct.new(:payload, keyword_init: true) } let(:interaction) do n...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_http_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_http_spec.rb
# frozen_string_literal: true require 'pact/v2/rspec' require 'net/http' require 'json' require 'faraday' RSpec.describe 'HTTP transport', :pact_v2 do has_plugin_http_pact_between 'myconsumer', 'myprovider' let(:matt_request) { { 'request' => { 'body' => 'hello' } } } let(:matt_response) { { 'response' => { 'bo...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_sync_message_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_sync_message_spec.rb
# frozen_string_literal: true require "pact/v2/rspec" RSpec.describe 'Test matt plugin sync message loading', :pact_v2 do has_plugin_sync_message_pact_between "myconsumer", "myprovider" let(:matt_message) do { "request" => { "body" => "hellotcp" }, "response" => { "body" => "tcpworld" } } e...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_async_message_spec.rb
spec/pact/providers/pact-ruby-v2-test-app/plugin_matt_async_message_spec.rb
# frozen_string_literal: true require "pact/v2/rspec" RSpec.describe 'Test matt plugin sync message loading', :pact_v2 do has_plugin_async_message_pact_between "matttcpconsumer", "matttcpprovider" let(:matt_message) do { "response" => { "body" => "tcpworld" } } end let(:interaction) do new...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/consumers/multi_spec.rb
spec/pact/consumers/multi_spec.rb
# frozen_string_literal: true require "pact/v2/rspec" RSpec.describe "Pact::V2::Consumers::Http", :pact_v2 do mixed_pact_provider "pact-v2-test-app", opts: { http: { http_port: 3000, log_level: :info, pact_dir: File.expand_path('../../pacts', __dir__), }, grpc: { grpc_port: 3009 ...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false
pact-foundation/pact-ruby
https://github.com/pact-foundation/pact-ruby/blob/5563e56523bc1856e6216c2cc6ded980fc8da4af/spec/pact/consumers/message_spec.rb
spec/pact/consumers/message_spec.rb
# frozen_string_literal: true require 'pact/v2' require 'pact/v2/rspec' require_relative '../../internal/app/producers/test_message_producer' RSpec.describe 'Test Message Provider', :pact_v2 do message_pact_provider 'Test Message Producer', opts: { pact_dir: File.expand_path('../../pacts', __dir__), } hand...
ruby
MIT
5563e56523bc1856e6216c2cc6ded980fc8da4af
2026-01-04T15:57:25.715386Z
false