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
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
test/cookbooks/rabbitmq_test/recipes/lwrps.rb
Ruby
apache-2.0
212
v5.x
2,471
# frozen_string_literal: true # # Cookbook Name:: rabbitmq_test # Recipe:: lwrps # # Copyright 2013, Chef Software, Inc. <legal@chef.io> # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lic...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
test/cookbooks/rabbitmq_test/recipes/default.rb
Ruby
apache-2.0
212
v5.x
1,089
# frozen_string_literal: true # # Cookbook Name:: rabbitmq_test # Recipe:: default # # Copyright 2012-2017, Chef Software, Inc. <legal@chef.io> # Copyright 2017-2019, VMware, Inc. or its affiliates <info@rabbitmq.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
test/integration/cluster/default_spec.rb
Ruby
apache-2.0
212
v5.x
355
# The Inspec reference, with examples and extensive documentation, can be # found at https://inspec.io/docs/reference/resources/ describe file('/var/lib/rabbitmq/.erlang.cookie') do it { should be_file } end describe file('/etc/rabbitmq/rabbitmq.config') do it { should be_file } skip(:content) { should match(/^...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
test/integration/management_plugin/default_spec.rb
Ruby
apache-2.0
212
v5.x
525
# The Inspec reference, with examples and extensive documentation, can be # found at https://inspec.io/docs/reference/resources/ describe package('rabbitmq-server') do it { should be_installed } end describe service('rabbitmq-server') do it { should be_running } end describe command('HOSTNAME=$(hostname) rabbitm...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
test/integration/default/default_spec.rb
Ruby
apache-2.0
212
v5.x
1,325
# The Inspec reference, with examples and extensive documentation, can be # found at https://inspec.io/docs/reference/resources/ describe package('rabbitmq-server') do it { should be_installed } end describe service('rabbitmq-server') do it { should be_running } end # make sure HOSTNAME is set which seems not to...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
test/integration/lwrps/default_spec.rb
Ruby
apache-2.0
212
v5.x
577
# The Inspec reference, with examples and extensive documentation, can be # found at https://inspec.io/docs/reference/resources/ describe command('curl -u guest:guest -H "Accept: application/json" -X GET "http://localhost:15672/api/overview"') do its(:exit_status) { should eq 0 } end describe command('rabbitmqctl l...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
test/integration/limits/default_spec.rb
Ruby
apache-2.0
212
v5.x
769
# The Inspec reference, with examples and extensive documentation, can be # found at https://inspec.io/docs/reference/resources/ describe package('rabbitmq-server') do it { should be_installed } end describe service('rabbitmq-server') do it { should be_running } end describe command('HOSTNAME=$(hostname) rabbitm...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
libraries/default.rb
Ruby
apache-2.0
212
v5.x
3,837
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Library:: default # Author:: Jake Davis (<jake@simple.com>) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.ap...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
libraries/helpers.rb
Ruby
apache-2.0
212
v5.x
697
module RabbitMQ module NodeHelpers require 'mixlib/shellout' def reset_current_node # stop rmq stop_rmq = Mixlib::ShellOut.new('rabbitmqctl stop_app') stop_rmq.run_command stop_rmq.error! # remove self from cluster reset_rmq = Mixlib::ShellOut.new('rabbitmqctl reset') ...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/systemd_limits_spec.rb
Ruby
apache-2.0
212
v5.x
909
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::systemd_limits' do let(:runner) { ChefSpec::ServerRunner.new(REDHAT_OPTS) } let(:node) { runner.node } cached(:chef_run) do runner.converge(described_recipe) end let(:template) { chef_run.template('/etc/systemd/system/rabbitmq-server...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/vhosts_spec.rb
Ruby
apache-2.0
212
v5.x
410
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::vhosts' do let(:runner) { ChefSpec::ServerRunner.new(REDHAT_OPTS) } let(:node) { runner.node } cached(:chef_run) do runner.converge(described_recipe) end let(:file_cache_path) { Chef::Config[:file_cache_path] } it 'includes the `...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/policies_spec.rb
Ruby
apache-2.0
212
v5.x
1,097
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::policies' do let(:runner) { ChefSpec::ServerRunner.new(REDHAT_OPTS) } let(:node) { runner.node } let(:chef_run) do node.override['rabbitmq']['policies']['ha-all']['pattern'] = '^(?!amq\\.).*' node.override['rabbitmq']['policies']['ha...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/community_plugins_spec.rb
Ruby
apache-2.0
212
v5.x
1,133
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::community_plugins' do let(:runner) { ChefSpec::ServerRunner.new(REDHAT_OPTS) } let(:node) { runner.node } let(:chef_run) do node.override['rabbitmq']['community_plugins'] = { 'rabbitmq_community_plugin' => 'http://sample.com/rabbitmq_com...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/policy_spec.rb
Ruby
apache-2.0
212
v5.x
3,031
require 'spec_helper' describe 'rabbitmq_policy' do step_into :rabbitmq_policy platform 'ubuntu' context 'when policies do not exist' do before do shellout = double allow(Mixlib::ShellOut).to receive(:new).with( /rabbitmqctl list_policies/, { env: { 'HOME' => // } } ).and_return(s...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/spec_helper.rb
Ruby
apache-2.0
212
v5.x
801
# Encoding: utf-8 # frozen_string_literal: true require 'chefspec' require 'chefspec/berkshelf' require 'fauxhai' require 'chef/application' # rubocop:disable all LOGLEVEL = :fatal SUSE_OPTS = { :platform => 'suse', :version => '12.5', :log_level => LOGLEVEL } REDHAT_OPTS = { :platform => 'redhat', :versio...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/users_spec.rb
Ruby
apache-2.0
212
v5.x
630
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::users' do let(:runner) { ChefSpec::ServerRunner.new(REDHAT_OPTS) } let(:node) { runner.node } cached(:chef_run) do runner.converge(described_recipe) end let(:file_cache_path) { Chef::Config[:file_cache_path] } it 'includes the `d...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/management_ui_spec.rb
Ruby
apache-2.0
212
v5.x
416
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::mgmt_console' do let(:runner) { ChefSpec::ServerRunner.new(REDHAT_OPTS) } let(:node) { runner.node } cached(:chef_run) do runner.converge(described_recipe) end let(:file_cache_path) { Chef::Config[:file_cache_path] } it 'includes...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/cluster_spec.rb
Ruby
apache-2.0
212
v5.x
1,089
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Spec:: cluster # # Author: Sunggun Yu <sunggun.dev@gmail.com> # Copyright (C) 2015 Sunggun Yu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/plugins_spec.rb
Ruby
apache-2.0
212
v5.x
411
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::plugins' do let(:runner) { ChefSpec::ServerRunner.new(REDHAT_OPTS) } let(:node) { runner.node } cached(:chef_run) do runner.converge(described_recipe) end let(:file_cache_path) { Chef::Config[:file_cache_path] } it 'includes the ...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
spec/default_spec.rb
Ruby
apache-2.0
212
v5.x
14,045
# frozen_string_literal: true require 'spec_helper' describe 'rabbitmq::default' do let(:runner) do ChefSpec::ServerRunner.new(REDHAT_OPTS) do |node, _| node.override['rabbitmq']['version'] = '3.8.28' end end let(:node) { runner.node } let(:chef_run) do runner.converge(described_recipe) en...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/erlang_zypper_repository_on_suse_factory.rb
Ruby
apache-2.0
212
v5.x
1,819
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Provider:: erlang_yum_repository_on_cloudsmith # # Copyright 2019-2021, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a co...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/vhost.rb
Ruby
apache-2.0
212
v5.x
1,786
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: vhost # # Copyright 2011-201, Chef Software, Inc. # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/plugin.rb
Ruby
apache-2.0
212
v5.x
1,969
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: plugin # # Copyright 2011-2019, Chef Software, Inc. # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/erlang_package_from_cloudsmith.rb
Ruby
apache-2.0
212
v5.x
3,535
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: erlang_package_from_cloudsmith # # Copyright 2019-2021, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/cluster.rb
Ruby
apache-2.0
212
v5.x
11,489
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: cluster # # Author: Sunggun Yu <sunggun.dev@gmail.com> # Copyright (C) 2015 Sunggun Yu # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/parameter.rb
Ruby
apache-2.0
212
v5.x
2,304
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: parameter # # Author: Sean Porter <portertech@gmail.com> # Copyright 2015 by Sean Porter # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/policy.rb
Ruby
apache-2.0
212
v5.x
2,673
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: policy # # Author: Robert Choi <taeilchoi1@gmail.com> # Copyright 2013 by Robert Choi # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in co...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/user.rb
Ruby
apache-2.0
212
v5.x
7,141
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: user # # Copyright 2011-2019, Chef Software, Inc. # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/erlang_yum_repository_on_cloudsmith.rb
Ruby
apache-2.0
212
v5.x
2,486
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: erlang_yum_repository_on_cloudsmith # # Copyright 2019-2021, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a co...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
resources/erlang_apt_repository_on_cloudsmith.rb
Ruby
apache-2.0
212
v5.x
1,730
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Resource:: erlang_apt_repository_on_cloudsmith # # Copyright 2019-2021, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a co...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/vhosts.rb
Ruby
apache-2.0
212
v5.x
1,058
# -*- coding: utf-8 -*- # frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: vhosts # # Copyright 2013, Grégoire Seux # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/systemd_limits.rb
Ruby
apache-2.0
212
v5.x
1,478
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: systemd_limits # # Configures kernel limits on systemd-based distributions # using a systemd unit file. # For older distributions, use a separate cookbook such as # ulimit2. # # Copyright 2018-2021, VMware, Inc or its affiliates. # # Licensed under t...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/users.rb
Ruby
apache-2.0
212
v5.x
1,636
# -*- coding: utf-8 -*- # frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: users # # Copyright 2013, Grégoire Seux # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/user_management.rb
Ruby
apache-2.0
212
v5.x
825
# -*- coding: utf-8 -*- # frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: user_management # # Copyright 2013, Grégoire Seux # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may n...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/policies.rb
Ruby
apache-2.0
212
v5.x
1,209
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: policies # # Author: Robert Choi <taeilchoi1@gmail.com> # Copyright 2013 by Robert Choi # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/esl_erlang_package.rb
Ruby
apache-2.0
212
v5.x
915
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: esl_erlang_package # # A convenience recipe for provisioning Erlang from # Erlang Solution. Identical to `recipe[erlang::esl]`. # Added to go with a recipe that provisions Erlang via RabbitMQ's own # packages. # # Copyright 2019-2021, VMware, Inc or ...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/default.rb
Ruby
apache-2.0
212
v5.x
13,134
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: default # # Copyright 2009, Benjamin Black # Copyright 2009-2013, Chef Software, Inc. # Copyright 2012, Kevin Nuckolls <kevin.nuckolls@gmail.com> # Copyright 2016-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/plugin_management.rb
Ruby
apache-2.0
212
v5.x
855
# -*- coding: utf-8 -*- # frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: plugin_management # # Copyright 2013, Grégoire Seux # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/management_ui.rb
Ruby
apache-2.0
212
v5.x
1,038
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: mgmt_console # # Copyright 2012, Tacit Knowledge, Inc. # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file ex...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/erlang_package.rb
Ruby
apache-2.0
212
v5.x
3,402
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: erlang_package # # Provisions Erlang via RabbitMQ's own # packages for Debian and CentOS. # # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except i...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/policy_management.rb
Ruby
apache-2.0
212
v5.x
845
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: policy_management # # Author: Robert Choi <taeilchoi1@gmail.com> # Copyright 2013 by Robert Choi # Copyright 2013, Chef Software, Inc. # Copyright 2019-2021, VMware, Inc or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "Lice...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/community_plugins.rb
Ruby
apache-2.0
212
v5.x
1,421
# -*- coding: utf-8 -*- # frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: community_plugins # # Copyright 2013, Grégoire Seux # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/plugins.rb
Ruby
apache-2.0
212
v5.x
1,113
# -*- coding: utf-8 -*- # frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: plugins # # Copyright 2013, Grégoire Seux # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/cluster.rb
Ruby
apache-2.0
212
v5.x
1,516
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: cluster # # Author: Sunggun Yu <sunggun.dev@gmail.com> # Copyright 2015 Sunggun Yu # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # ...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/virtualhost_management.rb
Ruby
apache-2.0
212
v5.x
833
# -*- coding: utf-8 -*- # frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: virtualhost_management # # Copyright 2013, Grégoire Seux # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # yo...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
recipes/mgmt_console.rb
Ruby
apache-2.0
212
v5.x
813
# frozen_string_literal: true # # Cookbook Name:: rabbitmq # Recipe:: mgmt_console # # Copyright 2012, Tacit Knowledge, Inc. # Copyright 2013-2018, Chef Software, Inc. # Copyright 2018-2019, VMware, Inc. or its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file ex...
github
rabbitmq/chef-cookbook
https://github.com/rabbitmq/chef-cookbook
attributes/default.rb
Ruby
apache-2.0
212
v5.x
12,359
# frozen_string_literal: true # Version to install default['rabbitmq']['version'] = '3.8.28' # When true, distribution-provided package will be used. # This may be useful e.g. on old distributions. default['rabbitmq']['use_distro_version'] = false # Allow the distro version to be optionally pinned default['rabbitmq'][...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
daemon_controller.gemspec
Ruby
mit
212
main
617
# frozen_string_literal: true require_relative "lib/daemon_controller/version" require_relative "lib/daemon_controller/packaging" Gem::Specification.new do |s| s.name = "daemon_controller" s.version = DaemonController::VERSION_STRING s.summary = "A library for implementing daemon management capabilities" s.em...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
Rakefile
Ruby
mit
212
main
471
require_relative "lib/daemon_controller/version" PACKAGE_NAME = "daemon_controller" PACKAGE_VERSION = DaemonController::VERSION_STRING desc "Run the unit tests" task :test do ruby "-S rspec spec/*_spec.rb" end desc "Build gem" task :gem do mkdir_p "pkg" sh "gem build daemon_controller.gemspec -o pkg/#{PACKAGE_...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
lib/daemon_controller.rb
Ruby
mit
212
main
24,220
# frozen_string_literal: true # daemon_controller, library for robust daemon management # Copyright (c) 2010-2025 Asynchronous B.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without ...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
lib/daemon_controller/version.rb
Ruby
mit
212
main
1,325
# frozen_string_literal: true # daemon_controller, library for robust daemon management # Copyright (c) 2010-2025 Asynchronous B.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without ...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
lib/daemon_controller/lock_file.rb
Ruby
mit
212
main
5,070
# frozen_string_literal: true # daemon_controller, library for robust daemon management # Copyright (c) 2010-2025 Asynchronous B.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without ...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
lib/daemon_controller/spawn.rb
Ruby
mit
212
main
1,380
# frozen_string_literal: true # daemon_controller, library for robust daemon management # Copyright (c) 2010-2025 Asynchronous B.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without ...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
lib/daemon_controller/packaging.rb
Ruby
mit
212
main
1,349
# frozen_string_literal: true # daemon_controller, library for robust daemon management # Copyright (c) 2013-2025 Asynchronous B.V. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without ...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
spec/unresponsive_daemon.rb
Ruby
mit
212
main
262
#!/usr/bin/env ruby # frozen_string_literal: true dir = File.dirname(__FILE__) Dir.chdir(File.dirname(dir)) Signal.trap("SIGTERM", "IGNORE") if ARGV.include?("--ignore-sigterm") File.open("spec/echo_server.pid", "w") do |f| f.puts(Process.pid) end sleep 60
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
spec/daemon_controller_spec.rb
Ruby
mit
212
main
23,529
# frozen_string_literal: true require_relative "test_helper" require "daemon_controller" require "benchmark" require "socket" require "tmpdir" require "shellwords" require "stringio" require "logger" describe DaemonController, "#start" do include TestHelper around :each do |example| error = example.run @...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
spec/echo_server.rb
Ruby
mit
212
main
4,219
#!/usr/bin/env ruby # frozen_string_literal: true # A simple echo server, used by the unit test. require "socket" require "optparse" options = { port: 3230, chdir: "/", log_file: "/dev/null", wait1: 0, wait2: 0, stop_time: 0, daemonize: true } parser = OptionParser.new do |opts| opts.banner = "Usage: ...
github
FooBarWidget/daemon_controller
https://github.com/FooBarWidget/daemon_controller
spec/test_helper.rb
Ruby
mit
212
main
4,772
# frozen_string_literal: true require "shellwords" require "logger" root = File.absolute_path(File.join(File.dirname(__FILE__), "..")) Dir.chdir(root) # Ensure subprocesses (with could be a different Ruby) are # started without Bundler environment variables. ENV.replace(Bundler.with_unbundled_env { ENV.to_h.dup }) ...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
Gemfile
Ruby
mit
212
master
337
source "https://rubygems.org" # Declare your gem's dependencies in mailgun_rails.gemspec. # Bundler will treat runtime dependencies like base dependencies, and # development dependencies will be added by default to the :development group. gemspec gem 'sqlite3', platform: :ruby gem 'activerecord-jdbcsqlite3-adapter', ...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
mailgun_rails.gemspec
Ruby
mit
212
master
935
$:.push File.expand_path("../lib", __FILE__) # Maintain your gem's version: require "mailgun_rails/version" # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = "mailgun_rails" s.version = MailgunRails::VERSION s.authors = ["Jorge Manrubia"] s.email = [...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
Rakefile
Ruby
mit
212
master
486
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'MailgunRails' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') ...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/spec_helper.rb
Ruby
mit
212
master
866
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration requi...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/dummy/config/application.rb
Ruby
mit
212
master
2,868
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) require "mailgun_rails" if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require(*Rails.groups(:assets => %w(development test))) # If you want your assets lazily...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/dummy/config/initializers/secret_token.rb
Ruby
mit
212
master
496
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attac...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/dummy/config/environments/test.rb
Ruby
mit
212
master
1,591
Dummy::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...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/dummy/config/environments/development.rb
Ruby
mit
212
master
1,666
Dummy::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...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/dummy/config/environments/production.rb
Ruby
mit
212
master
2,542
Dummy::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 # Do not eager load code on boot. config.eager_load = true # Full error reports are disabled and caching is turned on co...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/lib/mailgun_rails/client_spec.rb
Ruby
mit
212
master
547
require 'spec_helper' require 'mailgun_rails/client' describe MailgunRails::Client do let(:client){MailgunRails::Client.new(:some_api_key, :some_domain)} describe "#send_message" do it 'should make a POST rest request passing the parameters to the mailgun end point' do expected_url = "https://api:some_a...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/lib/mailgun_rails/deliverer_spec.rb
Ruby
mit
212
master
8,580
require 'spec_helper' require 'mailgun_rails/deliverer' require 'mailgun_rails/client' require 'json' describe MailgunRails::Deliverer do describe "#deliver" do let(:api_key) { :some_api_key } let(:domain) { :some_domain } let(:mailgun_client) { double(MailgunRails::Client) } before(:each) do ...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
spec/lib/mailgun_rails/attachment_spec.rb
Ruby
mit
212
master
1,453
require 'spec_helper' require 'mailgun_rails/attachment' describe MailgunRails::Attachment do describe "#send_message" do before do @mail = Mail.new() @mail.attachments["attachment.png"] = "\312\213\254\232" @mail.attachments.inline["attachment2.png"] = "\312\213\254\232" @mail.attachment...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
lib/mailgun_rails/client.rb
Ruby
mit
212
master
611
require 'rest_client' module MailgunRails class Client attr_reader :api_key, :domain, :verify_ssl def initialize(api_key, domain, verify_ssl = true) @api_key = api_key @domain = domain @verify_ssl = verify_ssl end def send_message(options) RestClient::Request.execute( ...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
lib/mailgun_rails/deliverer.rb
Ruby
mit
212
master
4,392
module MailgunRails class Deliverer attr_accessor :settings def initialize(settings) self.settings = settings end def domain self.settings[:domain] end def api_key self.settings[:api_key] end def verify_ssl #default value = true self.settings[:verify_...
github
jorgemanrubia/mailgun_rails
https://github.com/jorgemanrubia/mailgun_rails
lib/mailgun_rails/attachment.rb
Ruby
mit
212
master
457
module MailgunRails class Attachment < StringIO attr_reader :original_filename, :content_type, :path def initialize (attachment, *rest) @path = '' if rest.detect {|opt| opt[:inline] } basename = @original_filename = attachment.cid else basename = @original_filename = attachm...
github
ankane/autosuggest
https://github.com/ankane/autosuggest
Gemfile
Ruby
mit
212
master
282
source "https://rubygems.org" gemspec gem "rake" gem "minitest" ar_version = ENV["AR_VERSION"] || "8.1.0" gem "activerecord", "~> #{ar_version}" case ENV["ADAPTER"] when "postgresql" gem "pg" when "mysql" gem "mysql2" when "trilogy" gem "trilogy" else gem "sqlite3" end
github
ankane/autosuggest
https://github.com/ankane/autosuggest
autosuggest.gemspec
Ruby
mit
212
master
619
require_relative "lib/autosuggest/version" Gem::Specification.new do |spec| spec.name = "autosuggest" spec.version = Autosuggest::VERSION spec.summary = "Generate autocomplete suggestions based on what your users search" spec.homepage = "https://github.com/ankane/autosuggest" spec.l...
github
ankane/autosuggest
https://github.com/ankane/autosuggest
test/model_test.rb
Ruby
mit
212
master
1,783
require_relative "test_helper" class ModelTest < Minitest::Test def setup Autosuggest::Suggestion.delete_all end def test_works top_queries = {"apple" => 3, "banana" => 2, "carrot" => 1} autosuggest = Autosuggest::Generator.new(top_queries) update_suggestions(autosuggest) results = Autosugg...
github
ankane/autosuggest
https://github.com/ankane/autosuggest
test/generator_test.rb
Ruby
mit
212
master
6,332
require_relative "test_helper" class GeneratorTest < Minitest::Test def test_suggestions top_queries = {"tomato" => 2, "tomatoes" => 1} autosuggest = Autosuggest::Generator.new(top_queries) suggestions = autosuggest.suggestions assert_equal 1, suggestions.size assert_equal "tomato", suggestions.f...
github
ankane/autosuggest
https://github.com/ankane/autosuggest
test/support/active_record.rb
Ruby
mit
212
master
1,066
require "active_record" # for debugging ActiveRecord::Base.logger = ActiveSupport::Logger.new(ENV["VERBOSE"] ? STDOUT : nil) ActiveRecord::Migration.verbose = ENV["VERBOSE"] # migrations case ENV["ADAPTER"] when "postgresql" ActiveRecord::Base.establish_connection adapter: "postgresql", database: "autosuggest_test"...
github
ankane/autosuggest
https://github.com/ankane/autosuggest
lib/autosuggest.rb
Ruby
mit
212
master
298
# stdlib require "set" require "yaml" # for obscenity # dependencies require "mittens" require "obscenity" # modules require_relative "autosuggest/generator" require_relative "autosuggest/version" module Autosuggest def self.new(*args, **options) Generator.new(*args, **options) end end
github
ankane/autosuggest
https://github.com/ankane/autosuggest
lib/autosuggest/generator.rb
Ruby
mit
212
master
6,041
module Autosuggest class Generator def initialize(top_queries, language: "english") @top_queries = top_queries @concepts = {} @words = Set.new @non_duplicates = Set.new @blocked_words = {} @preferred_queries = {} @profane_words = {} @concept_tree = {} begin ...
github
ankane/autosuggest
https://github.com/ankane/autosuggest
lib/generators/autosuggest/suggestions_generator.rb
Ruby
mit
212
master
853
require "rails/generators/active_record" module Autosuggest module Generators class SuggestionsGenerator < Rails::Generators::Base include ActiveRecord::Generators::Migration source_root File.join(__dir__, "templates") def copy_templates template "model.rb", "app/models/autosuggest/sug...
github
antirez/redlock-rb
https://github.com/antirez/redlock-rb
redlock.rb
Ruby
bsd-2-clause
212
master
2,460
require 'redis' class Redlock DefaultRetryCount=3 DefaultRetryDelay=200 ClockDriftFactor = 0.01 UnlockScript=' if redis.call("get",KEYS[1]) == ARGV[1] then return redis.call("del",KEYS[1]) else return 0 end' def initialize(*server_urls) @servers = [] ser...
github
antirez/redlock-rb
https://github.com/antirez/redlock-rb
example2.rb
Ruby
bsd-2-clause
212
master
911
require './redlock.rb' def thread_main(count) dlm = Redlock.new("redis://127.0.0.1:6379","redis://127.0.0.1:6380","redis://127.0.0.1:6381") incr=0 count.times { my_lock = dlm.lock("foo",1000) if my_lock if my_lock[:validity] > 500 # Note: we assume we can do it ...
github
antirez/redlock-rb
https://github.com/antirez/redlock-rb
example.rb
Ruby
bsd-2-clause
212
master
307
require './redlock.rb' dlm = Redlock.new("redis://127.0.0.1:6379","redis://127.0.0.1:6380","redis://127.0.0.1:6381") while 1 my_lock = dlm.lock("foo",1000) if my_lock puts "Acquired by client #{dlm}" dlm.unlock(my_lock) else puts "Error, lock not acquired" end end
github
kamilc/email_verifier
https://github.com/kamilc/email_verifier
email_verifier.gemspec
Ruby
mit
212
master
881
# -*- encoding: utf-8 -*- lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'email_verifier/version' Gem::Specification.new do |gem| gem.name = "email_verifier" gem.version = EmailVerifier::VERSION gem.authors = ["Kamil Ciemniewski"] ...
github
kamilc/email_verifier
https://github.com/kamilc/email_verifier
lib/email_verifier.rb
Ruby
mit
212
master
774
require "email_verifier/version" module EmailVerifier require 'email_verifier/checker' require 'email_verifier/exceptions' require 'email_verifier/config' require "email_verifier/validates_email_realness" if defined?(Rails::Railtie) class Railtie < ::Rails::Railtie #:nodoc: initializer 'rails-i18n...
github
kamilc/email_verifier
https://github.com/kamilc/email_verifier
lib/email_verifier/exceptions.rb
Ruby
mit
212
master
228
module EmailVerifier class NoMailServerException < StandardError; end class OutOfMailServersException < StandardError; end class NotConnectedException < StandardError; end class FailureException < StandardError; end end
github
kamilc/email_verifier
https://github.com/kamilc/email_verifier
lib/email_verifier/checker.rb
Ruby
mit
212
master
2,483
require 'net/smtp' require 'dnsruby' class EmailVerifier::Checker ## # Returns server object for given email address or throws exception # Object returned isn't yet connected. It has internally a list of # real mail servers got from MX dns lookup def initialize(address) @email = address _, @domai...
github
kamilc/email_verifier
https://github.com/kamilc/email_verifier
lib/email_verifier/validates_email_realness.rb
Ruby
mit
212
master
1,517
if defined?(ActiveSupport) ActiveSupport.on_load(:active_record) do module EmailVerifier module ValidatesEmailRealness module Validator class EmailRealnessValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) begin re...
github
kamilc/email_verifier
https://github.com/kamilc/email_verifier
lib/email_verifier/config.rb
Ruby
mit
212
master
371
module EmailVerifier module Config class << self attr_accessor :verifier_email attr_accessor :test_mode def reset @verifier_email = "nobody@nonexistant.com" @test_mode = false if defined?(Rails) and defined?(Rails.env) and Rails.env.test? @test_mode = true ...
github
carbonfive/raygun
https://github.com/carbonfive/raygun
raygun.gemspec
Ruby
mit
212
main
1,124
File.expand_path("lib", __dir__).tap do |lib| $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) end require "raygun/version" Gem::Specification.new do |gem| gem.name = "raygun" gem.version = Raygun::VERSION gem.authors = ["Christian Nelson", "Jonah Williams", "Jason Wadsworth"] ge...
github
carbonfive/raygun
https://github.com/carbonfive/raygun
spec/raygun/c5_conventions_spec.rb
Ruby
mit
212
main
1,176
require_relative "../spec_helper" require_relative "../../lib/raygun/c5_conventions" require "tmpdir" describe Raygun::C5Conventions do subject(:install) { described_class.install(target: target, sources: sources) } let(:target) { Dir.mktmpdir } let(:sources) { described_class::SOURCES } describe ".install"...
github
carbonfive/raygun
https://github.com/carbonfive/raygun
lib/colorize.rb
Ruby
mit
212
main
4,712
# # Colorize String class extension. # # Borrowed directly from the colorize gem. It hasn't changed in 4 years and I didn't # want to add a gem dependency. class String # # Colors Hash # COLORS = { black: 0, red: 1, green: 2, yellow: 3, blue: 4, magenta: 5, cyan: 6, white: 7, ...
github
carbonfive/raygun
https://github.com/carbonfive/raygun
lib/raygun/raygun.rb
Ruby
mit
212
main
10,337
require "optparse" require "ostruct" require "fileutils" require "securerandom" require "net/http" require "json" require "colorize" require_relative "version" require_relative "c5_conventions" require_relative "template_repo" module Raygun class Runner CARBONFIVE_REPO = "carbonfive/raygun-rails" attr_acce...
github
carbonfive/raygun
https://github.com/carbonfive/raygun
lib/raygun/template_repo.rb
Ruby
mit
212
main
2,360
module Raygun class TemplateRepo attr_reader :name, :branch, :tarball, :sha def initialize(repo) @name, @branch = repo.split("#").map(&:strip) fetch end private def fetch return if @branch && @sha @branch ? fetch_branches : fetch_tags end def handle_github_erro...
github
carbonfive/raygun
https://github.com/carbonfive/raygun
lib/raygun/c5_conventions.rb
Ruby
mit
212
main
2,146
require "colorize" require "open-uri" module Raygun class C5Conventions REPO = "carbonfive/c5-conventions".freeze SOURCES = [ "https://raw.githubusercontent.com/#{REPO}/main/rubocop/.rubocop.yml", "https://raw.githubusercontent.com/#{REPO}/main/rubocop/.rubocop-common.yml", "https://raw.gi...
github
phillbaker/capybara-mechanize
https://github.com/phillbaker/capybara-mechanize
Rakefile
Ruby
mit
212
master
409
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: :spec require 'rdoc/task' RDoc::Task.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : '' rdoc.rdoc_dir = 'rdoc' rdoc.title = "capybara-mechanize #{ver...
github
phillbaker/capybara-mechanize
https://github.com/phillbaker/capybara-mechanize
capybara-mechanize.gemspec
Ruby
mit
212
master
1,245
# frozen_string_literal: true $:.push File.expand_path('lib', __dir__) require 'capybara/mechanize/version' Gem::Specification.new do |s| s.name = 'capybara-mechanize' s.version = Capybara::Mechanize::VERSION s.required_ruby_version = '>= 2.6.0' s.required_rubygems_version = Gem::Requirement.new('>= 0') if s...
github
phillbaker/capybara-mechanize
https://github.com/phillbaker/capybara-mechanize
lib/capybara/mechanize.rb
Ruby
mit
212
master
517
# frozen_string_literal: true require 'capybara' module Capybara::Mechanize class << self # Host that should be considered local (includes default_host) def local_hosts @local_hosts ||= begin default_host = URI.parse(Capybara.default_host || '').host || Capybara.default_host [default_h...
github
phillbaker/capybara-mechanize
https://github.com/phillbaker/capybara-mechanize
lib/capybara/spec/extended_test_app.rb
Ruby
mit
212
master
1,719
# frozen_string_literal: true require 'capybara/spec/test_app' class ExtendedTestApp < TestApp set :environment, :production # so we don't get debug info that makes our test pass! disable :protection get %r{/redirect_to/(.*)} do redirect params[:captures].first end get '/form_with_relative_action_to_h...