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
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/missing_archive_number.rb
test/fixtures/missing_archive_number.rb
# name - string # archived_at - datetime class MissingArchiveNumber < ActiveRecord::Base acts_as_archival end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/poly.rb
test/fixtures/poly.rb
# archiveable_id - integer # archiveable_type - string # archive_number - string # archived_at - datetime class Poly < ActiveRecord::Base acts_as_archival belongs_to :archiveable, polymorphic: true end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/missing_archived_at.rb
test/fixtures/missing_archived_at.rb
# name - string # archive_number - string class MissingArchivedAt < ActiveRecord::Base acts_as_archival end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/application_record.rb
test/fixtures/application_record.rb
class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/archival_table_name.rb
test/fixtures/archival_table_name.rb
# name - string # archive_number - string # archived_at - datetime class ArchivalTableName < ActiveRecord::Base self.table_name = "legacy" acts_as_archival end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/exploder.rb
test/fixtures/exploder.rb
# archival_id - integer # archive_number - string # archived_at - datetime class Exploder < ActiveRecord::Base acts_as_archival belongs_to :archival end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/another_polys_holder.rb
test/fixtures/another_polys_holder.rb
# name - string # archival_id - integer # archive_number - string # archived_at - datetime class AnotherPolysHolder < ActiveRecord::Base acts_as_archival has_many :polys, dependent: :destroy, as: :archiveable end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/test/fixtures/archival_kid.rb
test/fixtures/archival_kid.rb
# archival_id - integer # archive_number - string # archived_at - datetime class ArchivalKid < ActiveRecord::Base acts_as_archival belongs_to :archival has_many :archival_grandkids, dependent: :destroy end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/lib/acts_as_archival.rb
lib/acts_as_archival.rb
require "acts_as_archival/version" require "expected_behavior/association_operation/base" require "expected_behavior/association_operation/archive" require "expected_behavior/association_operation/unarchive" require "expected_behavior/acts_as_archival" require "expected_behavior/acts_as_archival_active_record_methods...
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/lib/acts_as_archival/version.rb
lib/acts_as_archival/version.rb
module ActsAsArchival VERSION = "2.1.0".freeze end
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/lib/expected_behavior/acts_as_archival_active_record_methods.rb
lib/expected_behavior/acts_as_archival_active_record_methods.rb
module ExpectedBehavior module ActsAsArchivalActiveRecordMethods def self.included(base) base.extend ARClassMethods base.send :include, ARInstanceMethods end module ARClassMethods def archival? included_modules.include?(ExpectedBehavior::ActsAsArchival::InstanceMethods) ...
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/lib/expected_behavior/acts_as_archival.rb
lib/expected_behavior/acts_as_archival.rb
module ExpectedBehavior module ActsAsArchival require "digest/md5" unless defined?(MissingArchivalColumnError) == "constant" && MissingArchivalColumnError.instance_of?(Class) MissingArchivalColumnError = Class.new(ActiveRecord::ActiveRecordError) end unless defined?(CouldNotArchiveError) == "c...
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/lib/expected_behavior/association_operation/base.rb
lib/expected_behavior/association_operation/base.rb
module ExpectedBehavior module ActsAsArchival module AssociationOperation class Base attr_reader :model, :head_archive_number def initialize(model, head_archive_number) @model = model @head_archive_number = head_archive_number end def execute ...
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/lib/expected_behavior/association_operation/unarchive.rb
lib/expected_behavior/association_operation/unarchive.rb
module ExpectedBehavior module ActsAsArchival module AssociationOperation class Unarchive < Base protected def act_on_archivals(scope) scope.archived.where(archive_number: head_archive_number).find_each do |related_record| raise ActiveRecord::Rollback unless related_r...
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
expectedbehavior/acts_as_archival
https://github.com/expectedbehavior/acts_as_archival/blob/65a6f284884d49cfbf1276602178fdae5982a09f/lib/expected_behavior/association_operation/archive.rb
lib/expected_behavior/association_operation/archive.rb
module ExpectedBehavior module ActsAsArchival module AssociationOperation class Archive < Base protected def act_on_archivals(archivals) archivals.unarchived.find_each do |related_record| raise ActiveRecord::Rollback unless related_record.archive!(head_archive_number)...
ruby
MIT
65a6f284884d49cfbf1276602178fdae5982a09f
2026-01-04T17:51:12.709644Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/spec/spec_helper.rb
spec/spec_helper.rb
require "rack/builder" require "rack/json_schema" require "rack/test" require "rspec/json_matcher" RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.include RSpec::JsonMatcher end
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/spec/rack/spec_spec.rb
spec/rack/spec_spec.rb
require "spec_helper" describe Rack::JsonSchema do include Rack::Test::Methods let(:app) do local_schema = schema local_ignore_invalid_content_type = ignore_invalid_content_type local_ignore_missing_path = ignore_missing_path local_response_body = response_body local_response_headers = respons...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/spec/rack/spec/mock_spec.rb
spec/rack/spec/mock_spec.rb
require "spec_helper" describe Rack::JsonSchema::Mock do include Rack::Test::Methods let(:app) do local_schema = schema Rack::Builder.app do use Rack::JsonSchema::ErrorHandler use Rack::JsonSchema::Mock, schema: local_schema run ->(env) do [ 200, {}, ...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/spec/rack/spec/schema_provider_spec.rb
spec/rack/spec/schema_provider_spec.rb
require "spec_helper" describe Rack::JsonSchema::SchemaProvider do include Rack::Test::Methods let(:app) do local_schema_url_path = schema_url_path local_schema = schema Rack::Builder.app do use Rack::JsonSchema::SchemaProvider, path: local_schema_url_path, schema: local_schema run ->(env)...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/spec/rack/spec/docs_spec.rb
spec/rack/spec/docs_spec.rb
require "spec_helper" describe Rack::JsonSchema::Docs do include Rack::Test::Methods let(:app) do local_docs_path = docs_path local_schema = schema Rack::Builder.app do use Rack::JsonSchema::Docs, path: local_docs_path, schema: local_schema run ->(env) do [ 200, ...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack-json_schema.rb
lib/rack-json_schema.rb
require "rack/json_schema"
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema.rb
lib/rack/json_schema.rb
require "erubis" require "jdoc" require "json" require "json_schema" require "rack" require "rack/json_schema/base_request_handler" require "rack/json_schema/error" require "rack/json_schema/docs" require "rack/json_schema/error_handler" require "rack/json_schema/mock" require "rack/json_schema/request_validation" req...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/request_validation.rb
lib/rack/json_schema/request_validation.rb
module Rack module JsonSchema class RequestValidation # Behaves as a rack-middleware # @param app [Object] Rack application # @param ignore_invalid_content_type [false, true] Ignore requests with non json content-type # @param ignore_missing_path [false, true] Ignore requests not defined i...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/version.rb
lib/rack/json_schema/version.rb
module Rack module JsonSchema VERSION = "1.5.4" end end
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/schema_provider.rb
lib/rack/json_schema/schema_provider.rb
module Rack module JsonSchema class SchemaProvider DEFAULT_PATH = "/schema" # Behaves as a rack-middleware # @param app [Object] Rack application # @param path [String, nil] URL path to return JSON Schema (default: /schema) # @param schema [Hash] Schema object written in JSON schema...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/docs.rb
lib/rack/json_schema/docs.rb
module Rack module JsonSchema class Docs DEFAULT_PATH = "/docs" # Behaves as a rack-middleware # @param app [Object] Rack application # @param path [String, nil] URL path to return document (default: /docs) # @param schema [Hash] Schema object written in JSON schema format def...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/base_request_handler.rb
lib/rack/json_schema/base_request_handler.rb
module Rack module JsonSchema # Base class for providing some utility methods to handle Rack env and JSON Schema class BaseRequestHandler # Utility wrapper method def self.call(*args, **kwargs) new(*args, **kwargs).call end # @param env [Hash] Rack env # @param schema [J...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/error_handler.rb
lib/rack/json_schema/error_handler.rb
module Rack module JsonSchema class ErrorHandler # Behaves as a rack middleware # @param app [Object] Rack application def initialize(app) @app = app end # Behaves as a rack middleware # @param env [Hash] Rack env def call(env) @app.call(env) rescue...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/response_validation.rb
lib/rack/json_schema/response_validation.rb
module Rack module JsonSchema class ResponseValidation # Behaves as a rack-middleware # @param app [Object] Rack application # @param schema [Hash] Schema object written in JSON schema format # @raise [JsonSchema::SchemaError] def initialize(app, schema: nil) @app = app ...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/mock.rb
lib/rack/json_schema/mock.rb
module Rack module JsonSchema class Mock # Behaves as a rack-middleware # @param app [Object] Rack application # @param schema [Hash] Schema object written in JSON schema format # @raise [JsonSchema::SchemaError] def initialize(app, schema: nil) @app = app @schema = S...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/schema.rb
lib/rack/json_schema/schema.rb
module Rack module JsonSchema # Utility wrapper class for JsonSchema::Schema class Schema # Recursively extracts all links in given JSON schema # @param json_schema [JsonSchema::Schema] # @return [Array] An array of JsonSchema::Schema::Link def self.extract_links(json_schema) ...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
r7kamura/rack-json_schema
https://github.com/r7kamura/rack-json_schema/blob/f2dee02dd401b55bb2a216279201f77bc30a358e/lib/rack/json_schema/error.rb
lib/rack/json_schema/error.rb
module Rack module JsonSchema class Error < StandardError # @return [Array] Rack response def to_rack_response [status, headers, [body]] end private # @note Override this def status 500 end # @note Override this def id "internal_serv...
ruby
MIT
f2dee02dd401b55bb2a216279201f77bc30a358e
2026-01-04T17:51:21.313181Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/app/helpers/flipper_helper.rb
app/helpers/flipper_helper.rb
# frozen_string_literal: true module FlipperHelper def should_add_tour(flipper_key, flipper_activation) return true if !flipper_defined? case process_activation_option(flipper_activation) when "enabled" return (flipper_key && Flipper.enabled?(flipper_key.to_sym)) || flipper_key.nil? when "disa...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/app/helpers/abraham_helper.rb
app/helpers/abraham_helper.rb
# frozen_string_literal: true module AbrahamHelper include FlipperHelper def abraham_tour # Do we have tours for this controller/action in the user's locale? tours = Rails.configuration.abraham.tours["#{controller_path}.#{action_name}.#{I18n.locale}"] # Otherwise, default to the default locale tou...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/app/controllers/abraham_histories_controller.rb
app/controllers/abraham_histories_controller.rb
# frozen_string_literal: true class AbrahamHistoriesController < ApplicationController def create @abraham_history = AbrahamHistory.new(abraham_history_params) @abraham_history.creator_id = current_user.id respond_to do |format| if @abraham_history.save format.json { render json: @abraham_h...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/app/models/application_record.rb
app/models/application_record.rb
# frozen_string_literal: true class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/app/models/abraham_history.rb
app/models/abraham_history.rb
# frozen_string_literal: true class AbrahamHistory < ActiveRecord::Base end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/application_system_test_case.rb
test/application_system_test_case.rb
require "test_helper" Capybara.server = :webrick Capybara.register_driver(:headless_chrome) do |app| capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( chromeOptions: { args: %w[headless disable-gpu] } ) Capybara::Selenium::Driver.new( app, browser: :chrome, desired_capabilities: ...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/install_generator_test.rb
test/install_generator_test.rb
# frozen_string_literal: true require "test_helper" require "rails/generators" require "generators/abraham/install_generator" class InstallGeneratorTest < Rails::Generators::TestCase tests Abraham::Generators::InstallGenerator destination File.expand_path("../tmp", __dir__) setup :prepare_destination test "...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/test_helper.rb
test/test_helper.rb
# frozen_string_literal: true # Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path('../dummy/config/environment.rb', __FILE__) ActiveRecord::Migrator.migrations_paths = [File.expand_path('../dummy/db/migrate', __FILE__)] require 'rails/test_help' require 'mocha/minitest' # Filter out Mini...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/abraham_test.rb
test/abraham_test.rb
# frozen_string_literal: true require "test_helper" class Abraham::Test < ActiveSupport::TestCase test "truth" do assert_kind_of Module, Abraham end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/models/abraham_history_test.rb
test/models/abraham_history_test.rb
# frozen_string_literal: true require "test_helper" class AbrahamHistoryTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/jobs/application_job.rb
test/dummy/app/jobs/application_job.rb
# frozen_string_literal: true class ApplicationJob < ActiveJob::Base end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/helpers/dashboard_helper.rb
test/dummy/app/helpers/dashboard_helper.rb
# frozen_string_literal: true module DashboardHelper end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/helpers/application_helper.rb
test/dummy/app/helpers/application_helper.rb
# frozen_string_literal: true module ApplicationHelper end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/controllers/dashboard_controller.rb
test/dummy/app/controllers/dashboard_controller.rb
# frozen_string_literal: true class DashboardController < ApplicationController def home; end def other; end def placement; end def missing; end def buttons; end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/controllers/application_controller.rb
test/dummy/app/controllers/application_controller.rb
# frozen_string_literal: true class ApplicationController < ActionController::Base protect_from_forgery with: :exception helper_method :current_user def current_user OpenStruct.new(id: Random.rand(1..99_999)) end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/controllers/foobar/dashboard_controller.rb
test/dummy/app/controllers/foobar/dashboard_controller.rb
# frozen_string_literal: true class Foobar::DashboardController < ApplicationController def home; end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/models/application_record.rb
test/dummy/app/models/application_record.rb
# frozen_string_literal: true class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/mailers/application_mailer.rb
test/dummy/app/mailers/application_mailer.rb
# frozen_string_literal: true class ApplicationMailer < ActionMailer::Base default from: "from@example.com" layout "mailer" end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/channels/application_cable/channel.rb
test/dummy/app/channels/application_cable/channel.rb
# frozen_string_literal: true module ApplicationCable class Channel < ActionCable::Channel::Base end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/app/channels/application_cable/connection.rb
test/dummy/app/channels/application_cable/connection.rb
# frozen_string_literal: true module ApplicationCable class Connection < ActionCable::Connection::Base end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/db/schema.rb
test/dummy/db/schema.rb
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # dat...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/db/migrate/20161118143752_create_abraham_histories.rb
test/dummy/db/migrate/20161118143752_create_abraham_histories.rb
# frozen_string_literal: true class CreateAbrahamHistories < ActiveRecord::Migration[5.0] def change create_table :abraham_histories do |t| t.string :controller_name t.string :action_name t.string :tour_name t.references :creator, null: false, index: true t.timestamps index: true ...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/test/system/tours_test.rb
test/dummy/test/system/tours_test.rb
require "application_system_test_case" class ToursTest < ApplicationSystemTestCase setup do @user_id = Random.rand(1..99999) @cookie_name = "abraham-dummy-#{@user_id}-dashboard-home-intro" ApplicationController.any_instance.stubs(:current_user).returns(OpenStruct.new(id: @user_id)) end test "see and...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/test/helpers/flipper_helper_test.rb
test/dummy/test/helpers/flipper_helper_test.rb
# frozen_string_literal: true require "test_helper" class FlipperHelperTest < ActionView::TestCase test "Add tour whenever all options nil" do assert should_add_tour(nil, nil) end test "Add tour whenever Flipper is disabled " do # Flipper is not enabled, so tour should be added regardless of options a...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/test/controllers/abraham_histories_controller_test.rb
test/dummy/test/controllers/abraham_histories_controller_test.rb
# frozen_string_literal: true require "test_helper" class AbrahamHistoriesControllerTest < ActionDispatch::IntegrationTest test "should create AbrahamHistory" do assert_difference ["AbrahamHistory.count"] do post abraham_histories_url, as: :json, params: { abraham_history: { action_name: "foo", controller...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/test/controllers/dashboard_controller_test.rb
test/dummy/test/controllers/dashboard_controller_test.rb
# frozen_string_literal: true require "test_helper" class DashboardControllerTest < ActionDispatch::IntegrationTest setup do I18n.locale = :en end teardown do I18n.locale = :en end test "uses configured shepherd configuration" do # No options Rails.configuration.abraham.tour_options = nil ...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/test/controllers/foobar/dashboard_controller_test.rb
test/dummy/test/controllers/foobar/dashboard_controller_test.rb
# frozen_string_literal: true require "test_helper" class Foobar::DashboardControllerTest < ActionDispatch::IntegrationTest test "home should have home tour code" do get foobar_dashboard_home_url assert_response :success assert_select "body script" do |element| # it's the Foobar module home tour ...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/application.rb
test/dummy/config/application.rb
# frozen_string_literal: true require_relative "boot" require "rails/all" Bundler.require(*Rails.groups) require "abraham" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in ...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/environment.rb
test/dummy/config/environment.rb
# frozen_string_literal: true # Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/puma.rb
test/dummy/config/puma.rb
# frozen_string_literal: true # Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minim...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/routes.rb
test/dummy/config/routes.rb
# frozen_string_literal: true Rails.application.routes.draw do get "dashboard/home" get "dashboard/other" get "dashboard/placement" get "dashboard/missing" get "dashboard/buttons" namespace :foobar do get "dashboard/home" end # For details on the DSL available within this file, see http://guides....
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/spring.rb
test/dummy/config/spring.rb
# frozen_string_literal: true %w[ .ruby-version .rbenv-vars tmp/restart.txt tmp/caching-dev.txt ].each { |path| Spring.watch(path) }
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/boot.rb
test/dummy/config/boot.rb
# frozen_string_literal: true # Set up gems listed in the Gemfile. ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__) require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) $LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/filter_parameter_logging.rb
test/dummy/config/initializers/filter_parameter_logging.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/application_controller_renderer.rb
test/dummy/config/initializers/application_controller_renderer.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # )
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/session_store.rb
test/dummy/config/initializers/session_store.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: "_dummy_session"
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/abraham.rb
test/dummy/config/initializers/abraham.rb
# frozen_string_literal: true Rails.application.configure do tours = {} tours_root = Pathname.new(Rails.root.join("config/tours")) if Rails.root.join("config/tours").exist? Dir.glob(Rails.root.join("config/tours/**/*.yml")).each do |yml| relative_filename = Pathname.new(yml).relative_path_from(tours_r...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/new_framework_defaults.rb
test/dummy/config/initializers/new_framework_defaults.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # # This file contains migration options to ease your Rails 5.0 upgrade. # # Read the Rails 5.0 release notes for more info on each option. # Enable per-form CSRF tokens. Previous versions had false. Rails.application.config.act...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/wrap_parameters.rb
test/dummy/config/initializers/wrap_parameters.rb
# frozen_string_literal: true # 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_con...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/inflections.rb
test/dummy/config/initializers/inflections.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflect...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/cookies_serializer.rb
test/dummy/config/initializers/cookies_serializer.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. # Valid options are :json, :marshal, and :hybrid. Rails.application.config.action_dispatch.cookies_serializer = :marshal
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/assets.rb
test/dummy/config/initializers/assets.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = "1.0" # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/backtrace_silencers.rb
test/dummy/config/initializers/backtrace_silencers.rb
# frozen_string_literal: true # 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 ...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/initializers/mime_types.rb
test/dummy/config/initializers/mime_types.rb
# frozen_string_literal: true # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/environments/test.rb
test/dummy/config/environments/test.rb
# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "s...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/environments/development.rb
test/dummy/config/environments/development.rb
# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/test/dummy/config/environments/production.rb
test/dummy/config/environments/production.rb
# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, a...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/lib/abraham.rb
lib/abraham.rb
# frozen_string_literal: true require "abraham/engine" module Abraham end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/lib/generators/abraham/install_generator.rb
lib/generators/abraham/install_generator.rb
# frozen_string_literal: true require "rails/generators" require "rails/generators/active_record" module Abraham module Generators class InstallGenerator < ActiveRecord::Generators::Base argument :name, type: :string, default: "random_name" class_option :'skip-migration', type: :boolean, desc: "Don...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/lib/generators/abraham/templates/initializer.rb
lib/generators/abraham/templates/initializer.rb
# frozen_string_literal: true Rails.application.configure do tours = {} tours_root = Pathname.new(Rails.root.join("config/tours")) if Rails.root.join("config/tours").exist? Dir.glob(Rails.root.join("config/tours/**/*.yml")).each do |yml| relative_filename = Pathname.new(yml).relative_path_from(tours_r...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/lib/generators/abraham/templates/migration.rb
lib/generators/abraham/templates/migration.rb
# frozen_string_literal: true class CreateAbrahamHistories < ActiveRecord::Migration[5.0] def change create_table :abraham_histories do |t| t.string :controller_name t.string :action_name t.string :tour_name t.references :creator, null: false, index: true t.timestamps index: true ...
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/lib/abraham/version.rb
lib/abraham/version.rb
# frozen_string_literal: true module Abraham VERSION = "2.6.1" end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/lib/abraham/engine.rb
lib/abraham/engine.rb
# frozen_string_literal: true require "rubygems" module Abraham class Engine < ::Rails::Engine end end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
actmd/abraham
https://github.com/actmd/abraham/blob/881f4553119315243c636c9de97359e56a53d9ec/config/routes.rb
config/routes.rb
# frozen_string_literal: true Rails.application.routes.draw do resources :abraham_histories, only: :create end
ruby
MIT
881f4553119315243c636c9de97359e56a53d9ec
2026-01-04T17:51:22.478424Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/metadata.rb
metadata.rb
name "td-agent" maintainer "Treasure Data, Inc." maintainer_email "k@treasure-data.com" license "Apache 2.0" description "Installs/Configures td-agent" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version "3.2.1" recipe "td-agent", "td-agent...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/1x-chef12/bash/spec/spec_helper.rb
test/integration/1x-chef12/bash/spec/spec_helper.rb
require "serverspec"
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/1x-chef12/bash/spec/localhost/td-agent_spec.rb
test/integration/1x-chef12/bash/spec/localhost/td-agent_spec.rb
require 'serverspec' set :backend, :exec describe package('td-agent') do it { should be_installed } end describe service('td-agent') do it { should be_running } end describe file('/etc/td-agent') do it { should be_a_directory } end describe file('/etc/td-agent/td-agent.conf') do it { should be_a_file } i...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/1x-chef12/bash/spec/localhost/lwrp_spec.rb
test/integration/1x-chef12/bash/spec/localhost/lwrp_spec.rb
require 'serverspec' set :backend, :exec describe package('td-agent') do it { should be_installed } end describe service('td-agent') do it { should be_running } end describe file('/etc/td-agent') do it { should be_a_directory } end describe file('/etc/td-agent/td-agent.conf') do it { should be_a_file } i...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/2x-chef13/bash/spec/spec_helper.rb
test/integration/2x-chef13/bash/spec/spec_helper.rb
require "serverspec"
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/2x-chef13/bash/spec/localhost/td-agent_spec.rb
test/integration/2x-chef13/bash/spec/localhost/td-agent_spec.rb
require 'serverspec' set :backend, :exec describe package('td-agent') do it { should be_installed } end describe service('td-agent') do it { should be_running } end describe file('/etc/td-agent') do it { should be_a_directory } end describe file('/etc/td-agent/td-agent.conf') do it { should be_a_file } i...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/2x-chef13/bash/spec/localhost/lwrp_spec.rb
test/integration/2x-chef13/bash/spec/localhost/lwrp_spec.rb
require 'serverspec' set :backend, :exec describe package('td-agent') do it { should be_installed } end describe service('td-agent') do it { should be_running } end describe file('/etc/td-agent') do it { should be_a_directory } end describe file('/etc/td-agent/td-agent.conf') do it { should be_a_file } i...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/2x-chef12/bash/spec/spec_helper.rb
test/integration/2x-chef12/bash/spec/spec_helper.rb
require "serverspec"
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/2x-chef12/bash/spec/localhost/td-agent_spec.rb
test/integration/2x-chef12/bash/spec/localhost/td-agent_spec.rb
require 'serverspec' set :backend, :exec describe package('td-agent') do it { should be_installed } end describe service('td-agent') do it { should be_running } end describe file('/etc/td-agent') do it { should be_a_directory } end describe file('/etc/td-agent/td-agent.conf') do it { should be_a_file } i...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/integration/2x-chef12/bash/spec/localhost/lwrp_spec.rb
test/integration/2x-chef12/bash/spec/localhost/lwrp_spec.rb
require 'serverspec' set :backend, :exec describe package('td-agent') do it { should be_installed } end describe service('td-agent') do it { should be_running } end describe file('/etc/td-agent') do it { should be_a_directory } end describe file('/etc/td-agent/td-agent.conf') do it { should be_a_file } i...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/fixtures/td-agent-spec/metadata.rb
test/fixtures/td-agent-spec/metadata.rb
name 'td-agent-spec' maintainer 'Jack Naglieri' maintainer_email 'jacknagzdev@gmail.com' license 'Apache 2.0' description 'Unit test fixture cookbook to verify custom resources within td-agent cookbook' long_description 'Unit test fixture cookbook to verify custom resources within td-agent cookbook' version '0.1.0' de...
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/fixtures/td-agent-spec/recipes/source.rb
test/fixtures/td-agent-spec/recipes/source.rb
include_recipe 'td-agent::default' td_agent_source '01_input' do action :create type 'forward' tag 'test' parameters(port: 22222, bind: '0.0.0.0') end
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/fixtures/td-agent-spec/recipes/filter.rb
test/fixtures/td-agent-spec/recipes/filter.rb
include_recipe 'td-agent::default' td_agent_filter '01_filter' do action :create type 'record_transformer' tag 'test' parameters( record: { hostname: '"#{Socket.gethostname}"', tag: '${tag}' } ) end
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false
treasure-data/chef-td-agent
https://github.com/treasure-data/chef-td-agent/blob/fdb75ce53550c43bdcc0878f849c6ee3c8886283/test/fixtures/td-agent-spec/recipes/match.rb
test/fixtures/td-agent-spec/recipes/match.rb
include_recipe 'td-agent::default' td_agent_match '01_out_file' do action :create type 'file' tag 'my.data' parameters( path: '/var/log/fluent/myapp', compress: 'gzip', buffer: { timekey: '1d', timekey_use_utc: true, timekey_wait: '10m' } ) end
ruby
Apache-2.0
fdb75ce53550c43bdcc0878f849c6ee3c8886283
2026-01-04T17:51:25.360527Z
false