source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
square/ruby-rrule
https://github.com/square/ruby-rrule
lib/rrule/generators/all_occurrences.rb
Ruby
apache-2.0
185
master
277
# frozen_string_literal: true module RRule class AllOccurrences < Generator def combine_dates_and_times(dayset, timeset) dayset.compact.map { |i| context.first_day_of_year + i }.flat_map do |date| process_timeset(date, timeset) end end end end
github
square/ruby-rrule
https://github.com/square/ruby-rrule
lib/rrule/generators/by_set_position.rb
Ruby
apache-2.0
185
master
616
# frozen_string_literal: true module RRule class BySetPosition < Generator attr_reader :by_set_positions def initialize(by_set_positions, context) @by_set_positions = by_set_positions super(context) end def combine_dates_and_times(dayset, timeset) valid_dates(dayset).flat_map do |...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/weekday_spec.rb
Ruby
apache-2.0
185
master
830
# frozen_string_literal: true require 'spec_helper' describe RRule::Weekday do describe '.parse' do subject(:weekday) { described_class.parse(weekday_string) } context 'with an explicit + for the ordinal' do let(:weekday_string) { '+2SU' } it 'parses correctly' do expect(weekday.ordina...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/spec_helper.rb
Ruby
apache-2.0
185
master
964
# frozen_string_literal: true require 'rrule' require 'pry' RSpec.configure do |config| config.expect_with :rspec do |expectations| # This option will default to `true` in RSpec 4. It makes the `description` # and `failure_message` of custom matchers include text for helper methods # defined using `chai...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/context_spec.rb
Ruby
apache-2.0
185
master
8,630
# frozen_string_literal: true require 'spec_helper' describe RRule::Context do let(:context) do RRule::Context.new( { freq: 'DAILY', count: 3 }, Time.parse('Tue Sep 2 06:00:00 PDT 1997'), 'America/Los_Angeles' ) end before(:each) { context.rebuild(1997, 1) } describe '#year_length...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/rule_spec.rb
Ruby
apache-2.0
185
master
126,618
# frozen_string_literal: true require 'spec_helper' describe RRule::Rule do describe '#next' do it 'can sequentially return values' do rrule = 'FREQ=DAILY;COUNT=10' dtstart = Time.parse('Tue Sep 2 06:00:00 PDT 1997') timezone = 'America/New_York' rrule = RRule::Rule.new(rrule, dtstart:...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/filters/by_month_spec.rb
Ruby
apache-2.0
185
master
791
# frozen_string_literal: true require 'spec_helper' describe RRule::ByMonth do let(:context) do RRule::Context.new( { freq: 'MONTHLY', count: 4 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end subject { described_class.new([1, 3], context).reject?(date....
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/filters/by_month_day_spec.rb
Ruby
apache-2.0
185
master
837
# frozen_string_literal: true require 'spec_helper' describe RRule::ByMonthDay do let(:context) do RRule::Context.new( { freq: 'MONTHLY', count: 4 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end subject { described_class.new([3, -3], context).reject?(d...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/filters/by_week_day_spec.rb
Ruby
apache-2.0
185
master
870
# frozen_string_literal: true require 'spec_helper' describe RRule::ByWeekDay do let(:context) do RRule::Context.new( { freq: 'WEEKLY', count: 4 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end subject { described_class.new([RRule::Weekday.parse('TU'), ...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/filters/by_week_number_spec.rb
Ruby
apache-2.0
185
master
975
# frozen_string_literal: true require 'spec_helper' describe RRule::ByWeekNumber do let(:context) do RRule::Context.new( { freq: 'YEARLY', wkst: 1 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end subject { described_class.new([2, -3], context).reject?(d...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/filters/by_year_day_spec.rb
Ruby
apache-2.0
185
master
835
# frozen_string_literal: true require 'spec_helper' describe RRule::ByYearDay do let(:context) do RRule::Context.new( { freq: 'YEARLY', count: 4 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end subject { described_class.new([45, -45], context).reject?(d...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/monthly_spec.rb
Ruby
apache-2.0
185
master
2,317
# frozen_string_literal: true require 'spec_helper' describe RRule::Monthly do let(:interval) { 1 } let(:context) do RRule::Context.new( { interval: interval }, date, 'America/Los_Angeles' ) end let(:filters) { [RRule::ByMonthDay.new([date.day], context)] } let(:generator) { ...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/daily_spec.rb
Ruby
apache-2.0
185
master
2,169
# frozen_string_literal: true require 'spec_helper' describe RRule::Daily do let(:interval) { 1 } let(:context) do RRule::Context.new( { interval: interval }, date, 'America/Los_Angeles' ) end let(:filters) { [] } let(:generator) { RRule::AllOccurrences.new(context) } let(:...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/secondly_spec.rb
Ruby
apache-2.0
185
master
1,882
# frozen_string_literal: true require 'spec_helper' describe RRule::Secondly do let(:interval) { 1 } let(:context) do RRule::Context.new( { interval: interval }, date, 'America/Los_Angeles' ) end let(:filters) { [] } let(:generator) { RRule::AllOccurrences.new(context) } let(:tim...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/yearly_spec.rb
Ruby
apache-2.0
185
master
1,977
# frozen_string_literal: true require 'spec_helper' describe RRule::Yearly do let(:interval) { 1 } let(:context) do RRule::Context.new( { interval: interval, wkst: 1 }, date, 'America/Los_Angeles' ) end let(:filters) { [RRule::ByMonth.new([date.month], context), RRule::ByMonthD...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/weekly_spec.rb
Ruby
apache-2.0
185
master
3,548
# frozen_string_literal: true require 'spec_helper' describe RRule::Weekly do let(:interval) { 1 } let(:context) do RRule::Context.new( { interval: interval, wkst: 1 }, date, 'America/Los_Angeles' ) end let(:filters) { [RRule::ByWeekDay.new([RRule::Weekday.new(date.wday)], cont...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/simple_weekly_spec.rb
Ruby
apache-2.0
185
master
1,615
# frozen_string_literal: true require 'spec_helper' describe RRule::SimpleWeekly do let(:context) { RRule::Context.new({ interval: interval }, date, 'America/Los_Angeles') } let(:frequency) { described_class.new(context, nil, generator, timeset) } let(:generator) { RRule::AllOccurrences.new(context) } let(:ti...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/hourly_spec.rb
Ruby
apache-2.0
185
master
1,834
# frozen_string_literal: true require 'spec_helper' describe RRule::Hourly do let(:interval) { 1 } let(:context) do RRule::Context.new( { interval: interval }, date, 'America/Los_Angeles' ) end let(:filters) { [] } let(:generator) { RRule::AllOccurrences.new(context) } let(:times...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/frequencies/minutely_spec.rb
Ruby
apache-2.0
185
master
1,842
# frozen_string_literal: true require 'spec_helper' describe RRule::Minutely do let(:interval) { 1 } let(:context) do RRule::Context.new( { interval: interval }, date, 'America/Los_Angeles' ) end let(:filters) { [] } let(:generator) { RRule::AllOccurrences.new(context) } let(:tim...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/generators/generator_spec.rb
Ruby
apache-2.0
185
master
4,391
# frozen_string_literal: true require 'spec_helper' describe RRule::Generator do let(:context) do RRule::Context.new( { interval: 1, wkst: 1 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end around(:each) do |example| Time.use_zone('America/Los_Angel...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/generators/by_set_position_spec.rb
Ruby
apache-2.0
185
master
1,139
# frozen_string_literal: true require 'spec_helper' describe RRule::BySetPosition do let(:context) do RRule::Context.new( { interval: 1, wkst: 1 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end around(:each) do |example| Time.use_zone('America/Los_A...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
spec/generators/all_occurrences_spec.rb
Ruby
apache-2.0
185
master
1,376
# frozen_string_literal: true require 'spec_helper' describe RRule::AllOccurrences do let(:context) do RRule::Context.new( { interval: 1, wkst: 1 }, Time.parse('Wed Jan 1 00:00:00 PST 1997'), 'America/Los_Angeles' ) end around(:each) do |example| Time.use_zone('America/Los_...
github
square/ruby-rrule
https://github.com/square/ruby-rrule
scripts/benchmark.rb
Ruby
apache-2.0
185
master
706
# frozen_string_literal: true $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '../lib/')) require 'rrule' require 'benchmark' rules_to_benchmark = ['FREQ=WEEKLY', 'FREQ=WEEKLY;BYDAY=WE'] rrule_version = '0.3.0' puts "Benchmarking rules in version #{rrule_version}: 1000 expansions over one month\n" Benchmark.ben...
github
gregorym/bump
https://github.com/gregorym/bump
bump.gemspec
Ruby
mit
185
master
399
# frozen_string_literal: true Gem::Specification.new "bump" do |s| s.version = "0.10.1" s.author = "Gregory Marcilhacy" s.email = "g.marcilhacy@gmail.com" s.homepage = "https://github.com/gregorym/bump" s.summary = "Bump your gem version file" s.required_ruby_version = '>= 2.7.0' s.files = `git ls-files...
github
gregorym/bump
https://github.com/gregorym/bump
Gemfile
Ruby
mit
185
master
209
# frozen_string_literal: true source "https://rubygems.org" gemspec gem 'bundler' gem 'debug', platform: :mri gem 'rake' gem 'rspec' gem 'rubocop', '~> 1.50.0' # avoid accidental bumps since tha breaks PRs
github
gregorym/bump
https://github.com/gregorym/bump
Rakefile
Ruby
mit
185
master
291
# frozen_string_literal: true require 'bundler/setup' require 'bundler/gem_tasks' require 'bump/tasks' require 'rspec/core/rake_task' require 'rubocop/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = '--color' end RuboCop::RakeTask.new task default: [:spec, :rubocop]
github
gregorym/bump
https://github.com/gregorym/bump
spec/bump_spec.rb
Ruby
mit
185
master
20,156
# frozen_string_literal: true require "spec_helper" require "tempfile" describe Bump do let(:gemspec) { "fixture.gemspec" } inside_of_folder("spec/fixture") it "should fail if it cannot find anything to bump" do bump("current", fail: true).should include "Unable to find" end it "should fail if invali...
github
gregorym/bump
https://github.com/gregorym/bump
spec/spec_helper.rb
Ruby
mit
185
master
1,201
# frozen_string_literal: true require "bundler/setup" require "rspec/support/spec/shell_out" require "bump" module SpecHelpers module InstanceMethods def write(file, content) folder = File.dirname(file) run "mkdir -p #{folder}" unless File.exist?(folder) File.write(file, content) end ...
github
gregorym/bump
https://github.com/gregorym/bump
spec/bump/tasks_spec.rb
Ruby
mit
185
master
2,501
# frozen_string_literal: true require "spec_helper" describe "rake bump" do inside_of_folder("spec/fixture") before do write "VERSION", "1.2.3\n" rakefile_require = "require File.expand_path('../../../lib/bump/tasks', __FILE__)" write "Rakefile", rakefile_require write "Rakefile.with_defaults", "...
github
gregorym/bump
https://github.com/gregorym/bump
lib/bump.rb
Ruby
mit
185
master
9,496
# frozen_string_literal: true module Bump class InvalidIncrementError < StandardError; end class InvalidOptionError < StandardError; end class InvalidVersionError < StandardError; end class UnfoundVersionError < StandardError; end class TooManyVersionFilesError < StandardError; end class UnfoundVersionFile...
github
gregorym/bump
https://github.com/gregorym/bump
lib/bump/tasks.rb
Ruby
mit
185
master
1,227
# frozen_string_literal: true require "bump" namespace :bump do run_bump = lambda do |bump, options| output, status = Bump::Bump.run(bump, options) puts output abort unless status == 0 end (Bump::Bump::BUMPS + ["current", "file", "show-next"]).each do |bump| case bump when "current" then de...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
Rakefile
Ruby
mit
185
master
206
require "bundler/gem_tasks" require 'rspec/core/rake_task' task :default => :spec RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = 'spec/**/*_spec.rb' spec.rspec_opts = ['-c --backtrace'] end
github
airbnb/stemcell
https://github.com/airbnb/stemcell
stemcell.gemspec
Ruby
mit
185
master
1,586
# -*- encoding: utf-8 -*- $:.push File.expand_path("../lib", __FILE__) require 'stemcell/version' Gem::Specification.new do |s| s.name = "stemcell" s.version = Stemcell::VERSION s.authors = ["Martin Rhoads", "Igor Serebryany", "Nelson Gauthier", "Patrick Viet"] s.email = ["igor.ser...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
Gemfile
Ruby
mit
185
master
229
source 'https://rubygems.org' # Specify your gem's dependencies in stemcell.gemspec gemspec group :test do gem 'rspec', '~> 3.4' gem 'simplecov', :require => false gem 'rake', '~> 10.3.2' end gem 'nokogiri', '~> 1.16.0'
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell.rb
Ruby
mit
185
master
249
require 'stemcell/version' require 'stemcell/errors' require 'stemcell/command_line' require 'stemcell/option_parser' require 'stemcell/launcher' require 'stemcell/log_tailer' require 'stemcell/metadata_launcher' require 'stemcell/metadata_source'
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/command_line.rb
Ruby
mit
185
master
7,162
require 'aws/creds' require 'colored' module Stemcell class CommandLine attr_reader :launcher attr_reader :showing_help attr_reader :chef_root attr_reader :chef_role VERSION_STRING = "Stemcell #{VERSION} (c) 2012-2016 Airbnb." BANNER_STRING = "Launch instances from metadata stored in roles!...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/option_parser.rb
Ruby
mit
185
master
13,789
require 'trollop' module Stemcell class OptionParser attr_reader :options attr_reader :defaults attr_reader :version attr_reader :banner attr_reader :override_help OPTION_DEFINITIONS = [ { :name => 'local_chef_root', :desc => "directory of your local chef repository"...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/launcher.rb
Ruby
mit
185
master
11,716
require 'aws-sdk-ec2' require 'base64' require 'logger' require 'erb' require 'set' module Stemcell class Launcher REQUIRED_OPTIONS = [ 'region', ] REQUIRED_LAUNCH_PARAMETERS = [ 'chef_role', 'chef_environment', 'chef_data_bag_secret', 'git_branch', 'git_key', '...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/metadata_source.rb
Ruby
mit
185
master
4,573
require 'stemcell/metadata_source/chef_repository' require 'stemcell/metadata_source/configuration' module Stemcell class MetadataSource include Chef::Mixin::DeepMerge attr_reader :chef_root attr_reader :config_filename attr_reader :config attr_reader :chef_repo DEFAULT_CONFIG_FILENAME = '...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/errors.rb
Ruby
mit
185
master
1,149
module Stemcell # This is the class from which all stemcell errors descend. class Error < StandardError; end class MissingMetadataConfigError < Error; end class MetadataConfigParseError < Error; end class RoleExpansionError < Error; end class EmptyRoleError < Error; end class UnknownBackingStoreError <...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/metadata_launcher.rb
Ruby
mit
185
master
3,300
module Stemcell class MetadataLauncher attr_reader :chef_root attr_accessor :interactive attr_reader :source def initialize(options={}) @chef_root = options[:chef_root] @interactive = options.fetch(:interactive, false) raise ArgumentError, "You must specify chef_root" unless chef_...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/log_tailer.rb
Ruby
mit
185
master
3,058
require 'socket' require 'net/ssh' module Stemcell class LogTailer attr_reader :hostname attr_reader :username attr_reader :ssh_port attr_reader :finished attr_reader :interrupted # Don't wait more than two minutes MAX_WAIT_FOR_SSH = 120 TAILING_COMMAND = "while [ ! -s /var/l...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/metadata_source/chef_repository.rb
Ruby
mit
185
master
2,590
require 'chef' module Stemcell class MetadataSource class ChefRepository include Chef::Mixin::DeepMerge attr_reader :chef_root # Search for instance metadata in the following role attributes, with # priority given to the keys at the head. METADATA_ATTRIBUTES = [ :instance...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
lib/stemcell/metadata_source/configuration.rb
Ruby
mit
185
master
2,262
require 'json' module Stemcell class MetadataSource class Configuration attr_reader :config_path attr_reader :all_options attr_reader :default_options attr_reader :backing_store_options attr_reader :availability_zones def initialize(config_path) @config_path = confi...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
spec/support/fixture_helper.rb
Ruby
mit
185
master
390
module FixtureHelper def self.chef_repo_fixture_path File.expand_path("../../fixtures/chef_repo", __FILE__) end def self.expected_metadata_path File.join(chef_repo_fixture_path, 'roles-expected-metadata') end def self.expected_metadata_for_role(role) fixture_path = File.join(expected_metadata_pa...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
spec/lib/stemcell/command_line_spec.rb
Ruby
mit
185
master
514
require 'spec_helper' describe Stemcell::CommandLine do describe '#run!' do let(:chef_root) { FixtureHelper.chef_repo_fixture_path } let(:config_fn) { 'Stemcell::MetadataSource::DEFAULT_CONFIG_FILENAME' } it 'outputs a help message' do stub_const 'ARGV', ["--local-chef-root=#{chef_root}", "--help"]...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
spec/lib/stemcell/option_parser_spec.rb
Ruby
mit
185
master
367
require 'spec_helper' describe Stemcell::OptionParser do describe '#parse!' do it 'returns a hash containing all of the options' do result = subject.parse!([]) expect(result).to be_an_instance_of(Hash) possible_keys = described_class::OPTION_DEFINITIONS.map { |d| d[:name] } expect(result...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
spec/lib/stemcell/launcher_spec.rb
Ruby
mit
185
master
7,811
require 'spec_helper' require 'base64' describe Stemcell::Launcher do before do Aws.config[:stub_responses] = true end let(:launcher) { opts = {'region' => 'region'} launcher = Stemcell::Launcher.new(opts) launcher } let(:operation) { 'op' } let(:instances) do ('1'..'4').map do |id| ...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
spec/lib/stemcell/metadata_source_spec.rb
Ruby
mit
185
master
10,163
require 'spec_helper' describe Stemcell::MetadataSource do let(:chef_root) { FixtureHelper.chef_repo_fixture_path } let(:config_filename) { 'stemcell.json' } let(:metadata_source) do Stemcell::MetadataSource.new(chef_root, config_filename) end let(:config) { metadata_source.config } let(:chef_...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
spec/lib/stemcell/metadata_source/configuration_spec.rb
Ruby
mit
185
master
3,989
require 'spec_helper' describe Stemcell::MetadataSource::Configuration do let(:config_filename) { 'stemcell.json' } let(:chef_root) { FixtureHelper.chef_repo_fixture_path } let(:path) { File.join(chef_root, config_filename) } let(:config) { Stemcell::MetadataSource::Configuration.new(path) } descr...
github
airbnb/stemcell
https://github.com/airbnb/stemcell
spec/lib/stemcell/metadata_source/chef_repository_spec.rb
Ruby
mit
185
master
6,039
require 'spec_helper' describe Stemcell::MetadataSource::ChefRepository do let(:chef_root) { FixtureHelper.chef_repo_fixture_path } let(:chef_repo) { Stemcell::MetadataSource::ChefRepository.new(chef_root) } describe '#initialize' do it "sets chef_root" do expect(chef_repo.chef_root).to eql(chef_roo...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
testcontainers.gemspec
Ruby
mit
184
main
1,114
# frozen_string_literal: true require_relative "core/lib/testcontainers/version" Gem::Specification.new do |spec| spec.name = "testcontainers" spec.version = Testcontainers::VERSION spec.authors = ["Guillermo Iguaran"] spec.email = ["guilleiguaran@gmail.com"] spec.summary = "Testcontainers for Ruby." spe...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
Rakefile
Ruby
mit
184
main
824
# frozen_string_literal: true $:.unshift __dir__ require "bundler/gem_tasks" require "rake/testtask" require "yard" require "standard/rake" MODULES = %w[core mysql redis postgres nginx elasticsearch opensearch kafka mariadb mongo redpanda] %w[test standard].each do |task_name| desc "Run #{task_name} task for all p...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
Gemfile
Ruby
mit
184
main
1,062
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers.gemspec gemspec gem "testcontainers-core", path: "./core" gem "testcontainers-mysql", path: "./mysql" gem "testcontainers-redis", path: "./redis" gem "testcontainers-postgres", path: "./postgres" gem "test...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/mysql_ar_rspec.rb
Ruby
mit
184
main
1,618
require "bundler/inline" gemfile do source "https://rubygems.org" gem "rspec" gem "testcontainers-core", path: "../core" gem "testcontainers-mysql", path: "../mysql" gem "activerecord" gem "mysql2" end require "active_record" require "logger" require "rspec" require "rspec/autorun" require "testcontainers...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/redpanda_rspec.rb
Ruby
mit
184
main
1,716
require "bundler/inline" gemfile do source "https://rubygems.org" gem "testcontainers-core", path: "../core" gem "testcontainers-redpanda", path: "../redpanda" gem "rspec" gem "rdkafka" end require "rdkafka" require "rspec" require "rspec/autorun" require "timeout" RSpec.configure do |config| config.add...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/memcached_rspec.rb
Ruby
mit
184
main
1,191
require "bundler/inline" gemfile do source "https://rubygems.org" gem "rspec" gem "testcontainers-core", path: "../core" gem "dalli" end require "dalli" require "rspec" require "rspec/autorun" require "testcontainers" RSpec.configure do |config| config.add_setting :memcached_container, default: nil conf...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/wkhtmltopdf_rspec.rb
Ruby
mit
184
main
2,037
require "bundler/inline" gemfile do source "https://rubygems.org" gem "rspec" gem "wkhtmltopdf-binary" gem "testcontainers-core", path: "../core", require: "testcontainers" group :test do gem "webmock" end end require "rspec" require "rspec/autorun" require "webmock/rspec" RSpec.configure do |config|...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/redis_backed_cache_rspec.rb
Ruby
mit
184
main
1,245
require "bundler/inline" gemfile do source "https://rubygems.org" gem "redis", require: "redis" gem "rspec", require: "rspec" gem "testcontainers-core", path: "../core", require: "testcontainers" end class RedisBackedCache def initialize(host, port) @redis = Redis.new(host: host, port: port) end de...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/redis_container_rspec.rb
Ruby
mit
184
main
1,201
require "bundler/inline" gemfile do source "https://rubygems.org" gem "rspec" gem "testcontainers-core", path: "../core" gem "testcontainers-redis", path: "../redis" gem "redis" end require "redis" require "rspec" require "rspec/autorun" require "testcontainers/redis" RSpec.configure do |config| config.a...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/clickhouse_rspec.rb
Ruby
mit
184
main
1,457
require "bundler/inline" gemfile do source "https://rubygems.org" gem "testcontainers-core", path: "../core" gem "testcontainers-clickhouse", path: "../clickhouse" gem "rspec" gem "clickhouse-activerecord" gem "activerecord", "~> 7.2" end require "active_record" require "clickhouse-activerecord" require ...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
examples/redis_backed_cache_minitest.rb
Ruby
mit
184
main
1,433
require "bundler/inline" gemfile do source "https://rubygems.org" gem "redis", require: "redis" gem "minitest" gem "minitest-hooks" gem "testcontainers-core", path: "../core", require: "testcontainers" end class RedisBackedCache def initialize(host, port) @redis = Redis.new(host: host, port: port) e...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
nginx/testcontainers-nginx.gemspec
Ruby
mit
184
main
1,792
# frozen_string_literal: true require_relative "lib/testcontainers/nginx/version" Gem::Specification.new do |spec| spec.name = "testcontainers-nginx" spec.version = Testcontainers::Nginx::VERSION spec.authors = ["Guillermo Iguaran"] spec.email = ["guilleiguaran@gmail.com"] spec.summary = "Testcontainers fo...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
nginx/Gemfile
Ruby
mit
184
main
248
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-nginx.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
nginx/Rakefile
Ruby
mit
184
main
263
# frozen_string_literal: true require "bundler/gem_tasks" require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] end require "standard/rake" task default: %i[test standard]
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
nginx/test/test_helper.rb
Ruby
mit
184
main
217
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "testcontainers/nginx" require "minitest/autorun" require "minitest/hooks/test" class TestcontainersTest < Minitest::Test include Minitest::Hooks end
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
nginx/test/nginx_container_test.rb
Ruby
mit
184
main
1,572
# frozen_string_literal: true require "test_helper" require "net/http" class NginxContainerTest < TestcontainersTest def before_all super @container = Testcontainers::NginxContainer.new @container.start @host = @container.host @port = @container.first_mapped_port end def after_all if @...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
nginx/lib/testcontainers/nginx.rb
Ruby
mit
184
main
1,597
require_relative "nginx/version" require "testcontainers" module Testcontainers # NginxContainer class is used to manage containers that run an NGINX server class NginxContainer < ::Testcontainers::DockerContainer # Default port used by the container NGINX_DEFAULT_PORT = 80 # Default image used by the...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
rabbitmq/Gemfile
Ruby
mit
184
main
251
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-rabbitmq.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
rabbitmq/testcontainers-rabbitmq.gemspec
Ruby
mit
184
main
1,905
# frozen_string_literal: true require_relative "lib/testcontainers/rabbitmq/version" Gem::Specification.new do |spec| spec.name = "testcontainers-rabbitmq" spec.version = Testcontainers::Rabbitmq::VERSION spec.authors = ["Pedro Piza", "Guillermo Iguaran"] spec.email = ["pedro920224@gmail.com", "guilleiguaran@...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
rabbitmq/test/test_helper.rb
Ruby
mit
184
main
236
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "testcontainers/rabbitmq" require "minitest/autorun" require "minitest/hooks/test" require "bunny" class TestcontainersTest < Minitest::Test include Minitest::Hooks end
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
rabbitmq/test/rabbitmq_container_test.rb
Ruby
mit
184
main
3,044
# frozen_string_literal: true require "test_helper" require "bunny" class RabbitmqContainerTest < TestcontainersTest def before_all super @container = Testcontainers::RabbitmqContainer.new @container.start @host = @container.host @port = @container.first_mapped_port end def after_all i...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
rabbitmq/lib/testcontainers/rabbitmq.rb
Ruby
mit
184
main
5,299
require_relative "rabbitmq/version" require "testcontainers" require "uri" module Testcontainers # RabbitmqContainer class is used to manage containers that runs a RabbitMQ message broker # # @attr_reader [String] username used by the container # @attr_reader [String] password used by the container # @attr_r...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
redis/testcontainers-redis.gemspec
Ruby
mit
184
main
1,844
# frozen_string_literal: true require_relative "lib/testcontainers/redis/version" Gem::Specification.new do |spec| spec.name = "testcontainers-redis" spec.version = Testcontainers::Redis::VERSION spec.authors = ["Guillermo Iguaran"] spec.email = ["guilleiguaran@gmail.com"] spec.summary = "Testcontainers fo...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
redis/Gemfile
Ruby
mit
184
main
248
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-redis.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
redis/lib/testcontainers/redis.rb
Ruby
mit
184
main
1,814
require_relative "redis/version" require "testcontainers" module Testcontainers # RedisContainer class is used to manage containers that run a Redis database class RedisContainer < ::Testcontainers::DockerContainer # Default port used by the container REDIS_DEFAULT_PORT = 6379 # Default image used by ...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
redis/test/test_helper.rb
Ruby
mit
184
main
217
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "testcontainers/redis" require "minitest/autorun" require "minitest/hooks/test" class TestcontainersTest < Minitest::Test include Minitest::Hooks end
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
redis/test/redis_container_test.rb
Ruby
mit
184
main
1,703
# frozen_string_literal: true require "test_helper" require "redis" class RedisContainerTest < TestcontainersTest def before_all super @container = Testcontainers::RedisContainer.new @container.start @host = @container.host @port = @container.first_mapped_port end def after_all if @con...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
clickhouse/Gemfile
Ruby
mit
184
main
253
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-clickhouse.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
clickhouse/testcontainers-clickhouse.gemspec
Ruby
mit
184
main
1,866
# frozen_string_literal: true require_relative "lib/testcontainers/clickhouse/version" Gem::Specification.new do |spec| spec.name = "testcontainers-clickhouse" spec.version = Testcontainers::Clickhouse::VERSION spec.authors = ["Vitaly Slobodin", "Guillermo Iguaran"] spec.email = ["vitaliy.slobodin@gmail.com",...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
clickhouse/lib/testcontainers/clickhouse.rb
Ruby
mit
184
main
5,312
# frozen_string_literal: true require_relative "clickhouse/version" require "testcontainers" module Testcontainers # ClickhouseContainer class is used to manage containers that runs a Clickhouse server # # @attr_reader [String] username used by the container # @attr_reader [String] password used by the contai...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
clickhouse/test/clickhouse_container_test.rb
Ruby
mit
184
main
2,422
# frozen_string_literal: true require "net/http" require "test_helper" class ClickhouseContainerTest < TestcontainersTest def before_all super @container = Testcontainers::ClickhouseContainer.new @container.start @host = @container.host @database = @container.database @port = @container.map...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
clickhouse/test/test_helper.rb
Ruby
mit
184
main
222
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "testcontainers/clickhouse" require "minitest/autorun" require "minitest/hooks/test" class TestcontainersTest < Minitest::Test include Minitest::Hooks end
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
postgres/testcontainers-postgres.gemspec
Ruby
mit
184
main
1,901
# frozen_string_literal: true require_relative "lib/testcontainers/postgres/version" Gem::Specification.new do |spec| spec.name = "testcontainers-postgres" spec.version = Testcontainers::Postgres::VERSION spec.authors = ["Pedro Piza", "Guillermo Iguaran"] spec.email = ["pedro920224@gmail.com", "guilleiguaran@...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
postgres/Gemfile
Ruby
mit
184
main
251
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-postgres.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
postgres/lib/testcontainers/postgres.rb
Ruby
mit
184
main
4,206
require_relative "postgres/version" require "testcontainers" require "uri" module Testcontainers # PostgresContainer class is used to manage containers that runs a PostgresQL database # # @attr_reader [String] username used by the container # @attr_reader [String] password used by the container # @attr_reade...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
postgres/test/postgres_container_test.rb
Ruby
mit
184
main
3,386
# frozen_string_literal: true require "test_helper" require "pg" class PostgresContainerTest < TestcontainersTest def before_all super @container = Testcontainers::PostgresContainer.new @container.start @host = @container.host @port = @container.first_mapped_port end def after_all if @...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
postgres/test/test_helper.rb
Ruby
mit
184
main
220
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "testcontainers/postgres" require "minitest/autorun" require "minitest/hooks/test" class TestcontainersTest < Minitest::Test include Minitest::Hooks end
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
elasticsearch/Gemfile
Ruby
mit
184
main
256
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-elasticsearch.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
elasticsearch/testcontainers-elasticsearch.gemspec
Ruby
mit
184
main
1,908
# frozen_string_literal: true require_relative "lib/testcontainers/elasticsearch/version" Gem::Specification.new do |spec| spec.name = "testcontainers-elasticsearch" spec.version = Testcontainers::Elasticsearch::VERSION spec.authors = ["Guillermo Iguaran"] spec.email = ["guilleiguaran@gmail.com"] spec.summ...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
elasticsearch/test/elasticsearch_container_test.rb
Ruby
mit
184
main
1,863
# frozen_string_literal: true require "test_helper" require "elasticsearch" class ElasticsearchContainerTest < TestcontainersTest def before_all super @container = Testcontainers::ElasticsearchContainer.new @container.start @host = @container.host @http_port = @container.mapped_port(@container....
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
elasticsearch/test/test_helper.rb
Ruby
mit
184
main
225
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "testcontainers/elasticsearch" require "minitest/autorun" require "minitest/hooks/test" class TestcontainersTest < Minitest::Test include Minitest::Hooks end
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
elasticsearch/lib/testcontainers/elasticsearch.rb
Ruby
mit
184
main
3,614
require_relative "elasticsearch/version" require "testcontainers" module Testcontainers # ElasticsearchContainer class is used to manage Docker containers running Elasticsearch. # It extends the generic DockerContainer class and provides Elasticsearch-specific functionality. # # @attr_reader username [String] ...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
selenium/testcontainers-selenium.gemspec
Ruby
mit
184
main
1,880
# frozen_string_literal: true require_relative "lib/testcontainers/selenium/version" Gem::Specification.new do |spec| spec.name = "testcontainers-selenium" spec.version = Testcontainers::Selenium::VERSION spec.authors = ["Guillermo Iguaran"] spec.email = ["guilleiguaran@gmail.com"] spec.summary = "Testcont...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
selenium/Gemfile
Ruby
mit
184
main
251
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-selenium.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
selenium/test/selenium_container_test.rb
Ruby
mit
184
main
2,731
# frozen_string_literal: true require "test_helper" require "selenium-webdriver" class SeleniumContainerTest < TestcontainersTest def before_all super @container = Testcontainers::SeleniumContainer.new @container.start @host = @container.host @port = @container.first_mapped_port end def aft...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
selenium/test/test_helper.rb
Ruby
mit
184
main
220
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "testcontainers/selenium" require "minitest/autorun" require "minitest/hooks/test" class TestcontainersTest < Minitest::Test include Minitest::Hooks end
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
selenium/lib/testcontainers/selenium.rb
Ruby
mit
184
main
2,571
require_relative "selenium/version" require "testcontainers" module Testcontainers # SeleniumContainer class is used to manage containers that runs a automaticates test class SeleniumContainer < ::Testcontainers::DockerContainer # Default ports used by the container SELENIUM_DEFAULT_PORT = 4444 VNC_DE...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
redpanda/testcontainers-redpanda.gemspec
Ruby
mit
184
main
1,868
# frozen_string_literal: true require_relative "lib/testcontainers/redpanda/version" Gem::Specification.new do |spec| spec.name = "testcontainers-redpanda" spec.version = Testcontainers::Redpanda::VERSION spec.authors = ["Guillermo Iguaran"] spec.email = ["guilleiguaran@gmail.com"] spec.summary = "Testcont...
github
testcontainers/testcontainers-ruby
https://github.com/testcontainers/testcontainers-ruby
redpanda/Gemfile
Ruby
mit
184
main
251
# frozen_string_literal: true source "https://rubygems.org" # Specify your gem's dependencies in testcontainers-redpanda.gemspec gemspec # Use the latest version of testcontainers-core from the local path gem "testcontainers-core", path: "../core"