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 |
|---|---|---|---|---|---|---|---|---|
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/spec/acceptance_spec.rb | spec/acceptance_spec.rb | require "spec_helper"
describe "Acceptance" do
let(:breaker) do
CB2::Breaker.new(
strategy: :percentage,
duration: 10,
threshold: 9,
reenable_after: 5)
end
def fail!
breaker.run { raise SocketError }
rescue SocketError
end
def pass!
breaker.run { true }
end
it "... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/spec/spec_helper.rb | spec/spec_helper.rb | require "bundler/setup"
Bundler.setup
require "timecop"
require "rr"
require "cb2"
# establish a Redis connection to the default server (localhost:6379)
Redis.new
RSpec.configure do |config|
config.expect_with :minitest
config.include RR::DSL
config.before(:each) do
redis.flushdb
end
def redis
@... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/spec/strategies/rolling_window_spec.rb | spec/strategies/rolling_window_spec.rb | require "spec_helper"
describe CB2::RollingWindow do
let(:breaker) do
CB2::Breaker.new(
strategy: :rolling_window,
duration: 60,
threshold: 5,
reenable_after: 600)
end
let(:strategy) { breaker.strategy }
describe "#open?" do
it "starts closed" do
refute strategy.open?
... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/spec/strategies/stub_spec.rb | spec/strategies/stub_spec.rb | require "spec_helper"
describe CB2::Stub do
describe "default behavior (allow all)" do
before { @breaker = CB2::Breaker.new(strategy: :stub, allow: true) }
it "always leave the breaker closed, allowing all calls" do
refute @breaker.open?
end
end
describe "when disabled" do
before { @break... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/spec/strategies/percentage_spec.rb | spec/strategies/percentage_spec.rb | require "spec_helper"
describe CB2::Percentage do
let(:breaker) do
CB2::Breaker.new(
strategy: :percentage,
duration: 60,
threshold: 10,
reenable_after: 600)
end
let(:strategy) { breaker.strategy }
describe "#error" do
before { @t = Time.now }
it "opens the circuit when... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/lib/cb2.rb | lib/cb2.rb | require "redis"
require "securerandom"
module CB2
end
require "cb2/breaker"
require "cb2/error"
require "cb2/strategies/rolling_window"
require "cb2/strategies/percentage"
require "cb2/strategies/stub"
| ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/lib/cb2/breaker.rb | lib/cb2/breaker.rb | class CB2::Breaker
attr_accessor :service, :strategy
def initialize(options)
@service = options[:service] || "default"
@strategy = initialize_strategy(options)
end
def run
if open?
raise CB2::BreakerOpen.new("#{service} breaker open")
end
begin
process_count
ret = yield... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/lib/cb2/error.rb | lib/cb2/error.rb | module CB2
class BreakerOpen < StandardError
end
end
| ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/lib/cb2/strategies/rolling_window.rb | lib/cb2/strategies/rolling_window.rb | class CB2::RollingWindow
attr_accessor :service, :duration, :threshold, :reenable_after, :redis
def initialize(options)
@service = options.fetch(:service)
@duration = options.fetch(:duration)
@threshold = options.fetch(:threshold)
@reenable_after = options.fetch(:reenable_after)
... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/lib/cb2/strategies/stub.rb | lib/cb2/strategies/stub.rb | class CB2::Stub
attr_accessor :allow
def initialize(options)
@allow = options.fetch(:allow)
end
def open?
!allow
end
end
| ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
prognostikos/cb2 | https://github.com/prognostikos/cb2/blob/338cb29d8154a07128501044175eb90e087a7a00/lib/cb2/strategies/percentage.rb | lib/cb2/strategies/percentage.rb | class CB2::Percentage < CB2::RollingWindow
# keep a rolling window of all calls too
def count
@current_count = increment_rolling_window(key("count"))
end
private
def should_open?(error_count)
# do not open until we have a reasonable number of requests
return false if @current_count < 5
erro... | ruby | MIT | 338cb29d8154a07128501044175eb90e087a7a00 | 2026-01-04T17:47:11.173474Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/spreadsheet_on_rails_test.rb | test/spreadsheet_on_rails_test.rb | require 'test_helper'
class SpreadsheetOnRailsTest < ActiveSupport::TestCase
test "xls mime type" do
assert_equal "application/xls", Mime[:xls].to_s
end
test "xls sym should be xls" do
assert_equal :xls, Mime[:xls].to_sym
end
end
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/test_helper.rb | test/test_helper.rb | # Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "rails/test_help"
require 'capybara/rails'
require "shoulda"
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f|... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/integration/navigation_test.rb | test/integration/navigation_test.rb | require 'test_helper'
class NavigationTest < ActionDispatch::IntegrationTest
context "sending an xls file" do
setup do
visit koala_path
click_link 'XLS'
end
should "set binary header" do
assert_equal 'binary', headers['Content-Transfer-Encoding']
end
should "set correct filenam... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/app/helpers/application_helper.rb | test/dummy/app/helpers/application_helper.rb | module ApplicationHelper
end
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/app/controllers/koala_controller.rb | test/dummy/app/controllers/koala_controller.rb | class KoalaController < ApplicationController
def index
respond_to do |format|
format.html
format.xls { render :xls => "koalatastic"}
end
end
def another
render :xls => "contents", :template => "koala/index"
end
end
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/app/controllers/application_controller.rb | test/dummy/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
protect_from_forgery
end
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/application.rb | test/dummy/config/application.rb | require File.expand_path('../boot', __FILE__)
require 'rails/all'
Bundler.require
require "spreadsheet_on_rails"
module Dummy
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/init... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/environment.rb | test/dummy/config/environment.rb | # Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Dummy::Application.initialize!
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/routes.rb | test/dummy/config/routes.rb | Dummy::Application.routes.draw do
get "/koala(.:format)", :to => "koala#index", :as => :koala
get "/another(.:format)", :to => "koala#another", :as => :another
end
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/boot.rb | test/dummy/config/boot.rb | require 'rubygems'
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
if File.exist?(gemfile)
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
end
$:.unshift File.expand_path('../../../../lib', __FILE__) | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/initializers/session_store.rb | test/dummy/config/initializers/session_store.rb | # Be sure to restart your server when you modify this file.
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails gener... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/initializers/wrap_parameters.rb | test/dummy/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 ... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/initializers/inflections.rb | test/dummy/config/initializers/inflections.rb | # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', ... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/initializers/backtrace_silencers.rb | test/dummy/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 | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/initializers/mime_types.rb | test/dummy/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
# Mime::Type.register_alias "text/html", :iphone
Mime::Type.register "application/xls", :xls
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/initializers/secret_token.rb | test/dummy/config/initializers/secret_token.rb | # 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... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/environments/test.rb | test/dummy/config/environments/test.rb | 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... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/environments/development.rb | test/dummy/config/environments/development.rb | 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... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/test/dummy/config/environments/production.rb | test/dummy/config/environments/production.rb | 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
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_c... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/lib/spreadsheet_on_rails.rb | lib/spreadsheet_on_rails.rb | module SpreadsheetOnRails
def self.render_xls_string(spreadsheet)
<<RENDER
workbook = Spreadsheet::Workbook.new
#{spreadsheet}
blob = StringIO.new("")
workbook.write(blob)
blob.string
RENDER
end
end
# Setups the template handling
require "action_view/template"
require 'spreadsheet'
ActionView::... | ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
atog/spreadsheet_on_rails | https://github.com/atog/spreadsheet_on_rails/blob/74187c02fa23bd2cefa9da27c685ff0965db49b5/lib/spreadsheet_on_rails/version.rb | lib/spreadsheet_on_rails/version.rb | module SpreadsheetOnRails
VERSION = "1.0.1"
end
| ruby | MIT | 74187c02fa23bd2cefa9da27c685ff0965db49b5 | 2026-01-04T17:47:13.296637Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/ext/mkrf_conf.rb | ext/mkrf_conf.rb | rbx = defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
def already_installed(dep)
!Gem::DependencyInstaller.new(domain: :local).find_gems_with_sources(dep).empty? ||
!Gem::DependencyInstaller.new(domain: :local, prerelease: true).find_gems_with_sources(dep).empty?
end
if rbx
require 'rubygems'
require 'rubygems/... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/spec/spec_helper.rb | spec/spec_helper.rb | require 'logger'
LOGGER = Logger.new STDOUT
TESTAPP_ROOT = Pathname.new File.expand_path('../tmp/aruba/testapp', __FILE__)
FileUtils.rm_rf TESTAPP_ROOT if File.exists? TESTAPP_ROOT
ENV['RAILS_ENV'] = 'test'
ENV['BUNDLE_GEMFILE'] ||= TESTAPP_ROOT.join('Gemfile')
LOGGER.info "Generating Rails app in #{TESTAPP_ROOT}...... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/spec/support/model_builder.rb | spec/support/model_builder.rb | module ModelBuilder
def self.included(example_group)
example_group.class_eval do
before do
@created_tables ||= []
end
after do
drop_created_tables
end
end
end
def create_table(table_name, options = {}, &block)
connection.create_table(table_name, options, &bloc... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/spec/support/class_builder.rb | spec/support/class_builder.rb | module ClassBuilder
def self.included example_group
example_group.class_eval do
after do
teardown_defined_constants
end
end
end
def define_class class_name, base = Object, &block
Object.const_set class_name, Class.new(base)
Object.const_get(class_name).tap do |constant_cl... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/spec/shoulda/active_model/callback_matcher_spec.rb | spec/shoulda/active_model/callback_matcher_spec.rb | require 'spec_helper'
describe Shoulda::Callback::Matchers::ActiveModel do
context "invalid use" do
before do
@callback_object_class = define_model :callback do
define_method("before_create"){}
define_method("after_save"){}
end
callback_object = @callback_object_class.new... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | true |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/lib/shoulda-callback-matchers.rb | lib/shoulda-callback-matchers.rb | require_relative 'shoulda/callback/matchers'
| ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/lib/shoulda/callback/matchers.rb | lib/shoulda/callback/matchers.rb | require_relative 'matchers/version'
require_relative 'matchers/rails_version_helper'
if defined?(RSpec)
require_relative 'matchers/integrations/rspec'
end
require_relative 'matchers/integrations/test_unit'
| ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/lib/shoulda/callback/matchers/version.rb | lib/shoulda/callback/matchers/version.rb | module Shoulda
module Callback
module Matchers
VERSION = '1.1.4'.freeze
end
end
end
| ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/lib/shoulda/callback/matchers/active_model.rb | lib/shoulda/callback/matchers/active_model.rb | require 'ostruct'
module Shoulda # :nodoc:
module Callback # :nodoc:
module Matchers # :nodoc:
module ActiveModel # :nodoc:
# Ensures that the given model has a callback defined for the given method
#
# Options:
# * <tt>before(:lifecycle)</tt>. <tt>Symbol</tt>. - define the... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/lib/shoulda/callback/matchers/rails_version_helper.rb | lib/shoulda/callback/matchers/rails_version_helper.rb | # :enddoc:
module Shoulda
module Callback
module Matchers
module RailsVersionHelper
class RailsVersion
%w(< <= > >= ==).each do |operand|
define_method operand do |version_string|
version_int = convert_str_to_int(version_string)
rails_version_int.sen... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/lib/shoulda/callback/matchers/integrations/test_unit.rb | lib/shoulda/callback/matchers/integrations/test_unit.rb | # :enddoc:
include Shoulda::Callback::Matchers::RailsVersionHelper
# in environments where test/unit is not required, this is necessary
unless defined?(Test::Unit::TestCase)
begin
require rails_version >= '4.1' ? 'minitest' : 'test/unit/testcase'
rescue LoadError
# silent
end
end
if defined?(Test::Unit... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
jdliss/shoulda-callback-matchers | https://github.com/jdliss/shoulda-callback-matchers/blob/b8a3680bc1d19ac713e43054a2b33238ce845698/lib/shoulda/callback/matchers/integrations/rspec.rb | lib/shoulda/callback/matchers/integrations/rspec.rb | # :enddoc:
if defined?(::ActiveRecord)
require 'shoulda/callback/matchers/active_model'
module RSpec::Matchers
include Shoulda::Callback::Matchers::ActiveModel
end
elsif defined?(::ActiveModel)
require 'shoulda/callback/matchers/active_model'
module RSpec::Matchers
include Shoulda::Callback::Matchers... | ruby | MIT | b8a3680bc1d19ac713e43054a2b33238ce845698 | 2026-01-04T17:47:17.480742Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/scripts/internal_sources.rb | scripts/internal_sources.rb | #!/usr/bin/env ruby
require "net/http"
require "openssl"
require "tmpdir"
require "yaml"
ARTIFACTORY_REPO_URL = ENV["ARTIFACTORY_REPO_URL"]
ARTIFACTORY_PASSWORD = ENV["ARTIFACTORY_TOKEN"]
def print_usage
puts "Must provide path to internal_sources.yml file."
puts "Usage: ./internal_sources.rb <file path> [only]"
... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/test/generate_steps.rb | test/generate_steps.rb | #!/usr/bin/env ruby
require "open3"
# Get the branch to compare against (rename default to 'main' once migration occurs)
BRANCH = ENV["BUILDKITE_PULL_REQUEST_BASE_BRANCH"] || "main"
# Read in all the versions that are specified by SOFTWARE
def version(version = nil)
$versions << version
end
def default_version(ve... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/test/omnibus.rb | test/omnibus.rb | #
# This file is used to configure the harmony project. It contains
# some minimal configuration examples for working with Omnibus. For a full list
# of configurable options, please see the documentation for +omnibus/config.rb+.
#
# Build internally
# ------------------------------
# By default, Omnibus uses system fo... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/test/validation/validate_openssl_ruby.rb | test/validation/validate_openssl_ruby.rb | #!/opt/test/embedded/bin/ruby
# Check if the omnibus Ruby is installed (this should exist after build)
# The test project installs to /opt/test
omnibus_ruby = "/opt/test/embedded/bin/ruby"
unless File.exist?(omnibus_ruby)
puts "ERROR: Omnibus Ruby not found at #{omnibus_ruby}"
puts "Build may not have completed su... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/test/config/projects/test.rb | test/config/projects/test.rb | name "test"
maintainer "Chef Software, Inc."
homepage "https://www.chef.io"
install_dir "#{default_root}/#{name}"
build_version Omnibus::BuildVersion.semver
build_iteration 1
dependency ENV["SOFTWARE"]
if ENV["VERSION"]
override ENV["SOFTWARE"].to_sym, version: ENV["VERSION"]
end | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/lib/omnibus-software.rb | lib/omnibus-software.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/lib/omnibus-software/version.rb | lib/omnibus-software/version.rb | module OmnibusSoftware
VERSION = File.read(File.join(__dir__, "../../VERSION")).strip.freeze
end
| ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/automake.rb | config/software/automake.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/patchelf.rb | config/software/patchelf.rb | #
# Copyright 2019-2020 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/erlang.rb | config/software/erlang.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/nokogiri.rb | config/software/nokogiri.rb | # Copyright:: Copyright (c) Chef Software Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/valkey.rb | config/software/valkey.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/config_guess.rb | config/software/config_guess.rb | #
# Copyright 2015 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libedit.rb | config/software/libedit.rb |
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/keepalived.rb | config/software/keepalived.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/rbzmq.rb | config/software/rbzmq.rb | #
# Copyright 2012-2017 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libsodium.rb | config/software/libsodium.rb | #
# Copyright:: Copyright (c) 2012-2019, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
#
# http://www.apache.org/licenses/LICE... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/rsync.rb | config/software/rsync.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/jre-from-jdk.rb | config/software/jre-from-jdk.rb | #
# Copyright 2013-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/gecode.rb | config/software/gecode.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/redis-gem.rb | config/software/redis-gem.rb | #
# Copyright 2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/ruby-cleanup.rb | config/software/ruby-cleanup.rb | #
# Copyright:: Copyright (c) 2014-2020, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
#
# http://www.apache.org/licenses/LICE... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/dep-selector-libgecode.rb | config/software/dep-selector-libgecode.rb | #
# Copyright 2014-2018 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/curl.rb | config/software/curl.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/perl.rb | config/software/perl.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/ncurses.rb | config/software/ncurses.rb | #
# Copyright 2012-2019, Chef Software Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/python.rb | config/software/python.rb | #
# Copyright 2013-2015 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libxslt.rb | config/software/libxslt.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libffi.rb | config/software/libffi.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/figlet-fonts.rb | config/software/figlet-fonts.rb | #
# Copyright 2015 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libtool.rb | config/software/libtool.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/figlet.rb | config/software/figlet.rb | #
# Copyright 2015 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/relx.rb | config/software/relx.rb | #
# Copyright 2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/redis.rb | config/software/redis.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/opensearch.rb | config/software/opensearch.rb | #
# Copyright 2020 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libuuid.rb | config/software/libuuid.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/ibm-jre.rb | config/software/ibm-jre.rb | #
# Copyright 2015 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/perl-thread-queue.rb | config/software/perl-thread-queue.rb | #
# Copyright 2019 Oregon State University
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/makedepend.rb | config/software/makedepend.rb | #
# Copyright 2014 Chef, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/berkshelf.rb | config/software/berkshelf.rb | #
# Copyright 2014-2018 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/rebar.rb | config/software/rebar.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/chef.rb | config/software/chef.rb | #
# Copyright:: Copyright (c) Chef Software Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/ruby-windows-devkit-bash.rb | config/software/ruby-windows-devkit-bash.rb | #
# Copyright:: Copyright (c) 2014-2017, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
#
# http://www.apache.org/licenses/LICE... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/omnibus-ctl.rb | config/software/omnibus-ctl.rb | #
# Copyright 2012-2015 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/bzip2.rb | config/software/bzip2.rb | #
# Copyright 2013-2018 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/elixir.rb | config/software/elixir.rb | #
# Copyright 2017 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libnghttp2.rb | config/software/libnghttp2.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/gmp.rb | config/software/gmp.rb | #
# Copyright 2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/libxml2.rb | config/software/libxml2.rb | #
# Copyright:: Chef Software Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/google-protobuf.rb | config/software/google-protobuf.rb | #
# Copyright 2018 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/help2man.rb | config/software/help2man.rb | #
# Copyright 2012-2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/ruby-msys2-devkit.rb | config/software/ruby-msys2-devkit.rb | #
# Copyright 2022 Progress Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/go-uninstall.rb | config/software/go-uninstall.rb | #
# Copyright 2019 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/autoconf.rb | config/software/autoconf.rb | #
# Copyright:: Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/inspec.rb | config/software/inspec.rb | #
# Copyright:: Copyright (c) Chef Software Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
chef/omnibus-software | https://github.com/chef/omnibus-software/blob/d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f/config/software/expat.rb | config/software/expat.rb | #
# Copyright 2014 Chef Software, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | ruby | Apache-2.0 | d6fce7b6c5e6a9ba1f3a21eef2b2be8ee778391f | 2026-01-04T17:47:07.582014Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.