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
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/db/migrate/20150304195244_change_tags_to_channels.rb
db/migrate/20150304195244_change_tags_to_channels.rb
class ChangeTagsToChannels < ActiveRecord::Migration def change create_table :channels do |t| t.string :name, null: false, index: true t.string :webhook_url, null: false end drop_table :pull_requests_tags remove_column :tags, :webhook_url add_column :tags, :channel_id, :integer, null...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/db/migrate/20150107200715_add_stats_to_pr.rb
db/migrate/20150107200715_add_stats_to_pr.rb
class AddStatsToPr < ActiveRecord::Migration def change add_column :pull_requests, :additions, :integer, null: false, default: 0 add_column :pull_requests, :deletions, :integer, null: false, default: 0 end end
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/rails_helper.rb
spec/rails_helper.rb
ENV["RAILS_ENV"] = "test" require File.expand_path("../../config/environment", __FILE__) require "rspec/rails" require "shoulda/matchers" Dir[Rails.root.join("spec/support/**/*.rb")].each { |file| require file } module Features # Extend this module in spec/support/features/*.rb include Formulaic::Dsl end RSpec...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/factories.rb
spec/factories.rb
FactoryBot.define do factory :channel do sequence(:name) { |n| "channel#{n}" } webhook_url { "http://example.com/home" } transient do tag_name { nil } end after :create do |channel, evaluator| if evaluator.tag_name.present? create(:tag, name: evaluator.tag_name, channel: chan...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/i18n_spec.rb
spec/i18n_spec.rb
require 'spec_helper' require 'i18n/tasks' describe 'I18n' do let(:i18n) { I18n::Tasks::BaseTask.new } let(:missing_keys) { i18n.missing_keys } let(:unused_keys) { i18n.unused_keys } it 'does not have missing keys' do expect(missing_keys).to be_empty, "Missing #{missing_keys.le...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH.unshift(File.expand_path("../../app", __FILE__)) require "webmock/rspec" require "active_support/testing/time_helpers" # http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.syntax = :expect end config.m...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/services/webhook_notifier_spec.rb
spec/services/webhook_notifier_spec.rb
require "rails_helper" describe WebhookNotifier do describe "#send_notification" do context "when given a pull request with channels" do it "sends a post to each of the webhook url" do channel1 = build_stubbed( :channel, webhook_url: "http://example.com/webhook", ) ...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/services/pull_request_reposter_spec.rb
spec/services/pull_request_reposter_spec.rb
require "rails_helper" describe PullRequestReposter do describe ".run" do it "reposts the given PRs to Slack" do prs_to_review = build_pair(:pull_request) notifier = double(:webhook_notifier) allow(WebhookNotifier).to receive(:new).and_return(notifier) allow(notifier).to receive(:send_not...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/services/payload_parser_spec.rb
spec/services/payload_parser_spec.rb
require "rails_helper" describe PayloadParser do describe "#comment_user_login" do it "is the comment user from the payload" do payload = JSON.parse( pull_request_review_comment_payload(comment_user: "houndci") ) parser = PayloadParser.new(payload, nil) expect(parser.comment_use...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/services/tag_parser_spec.rb
spec/services/tag_parser_spec.rb
require "spec_helper" require "services/tag_parser" describe TagParser do it "extracts tags beginning with # from a string" do result = TagParser.new.parse("#code") expect(result).to eq(["code"]) end it "ignores duplicate tags" do result = TagParser.new.parse("#code #web #code") expect(result....
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/services/project_matcher_spec.rb
spec/services/project_matcher_spec.rb
require "spec_helper" require "services/project_matcher" describe ProjectMatcher do it "matches when a project has the same github repo name as provided text" do url = "http://example.com/thoughtbot/pester" create(:project, github_url: url) result = ProjectMatcher.match(url) expect(result.first.git...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/capybara.rb
spec/support/capybara.rb
require "selenium/webdriver" Capybara.register_driver :chrome do |app| Capybara::Selenium::Driver.new(app, browser: :chrome) end Capybara.register_driver :headless_chrome do |app| capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( chromeOptions: { args: %w( headless disable...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/database_cleaner.rb
spec/support/database_cleaner.rb
RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.clean_with(:deletion) end config.before(:each) do DatabaseCleaner.strategy = :transaction end config.before(:each, :js => true) do DatabaseCleaner.strategy = :deletion end config.before(:each) do DatabaseCleaner.start ...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/factory_girl.rb
spec/support/factory_girl.rb
RSpec.configure do |config| config.include FactoryBot::Syntax::Methods end
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/i18n.rb
spec/support/i18n.rb
RSpec.configure do |config| config.include AbstractController::Translation end
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/background_jobs.rb
spec/support/background_jobs.rb
module BackgroundJobs def run_background_jobs_immediately delay_jobs = Delayed::Worker.delay_jobs Delayed::Worker.delay_jobs = false yield ensure Delayed::Worker.delay_jobs = delay_jobs end end RSpec.configure do |config| config.around(:each, type: :feature) do |example| run_background_jobs...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/action_mailer.rb
spec/support/action_mailer.rb
RSpec.configure do |config| config.before(:each) do ActionMailer::Base.deliveries.clear end end
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/github_payloads/pull_request_review_comment_payload.rb
spec/support/github_payloads/pull_request_review_comment_payload.rb
def pull_request_review_comment_payload( comment_user: "someone_else", github_url: "http://example.com" ) <<-EOS { "action": "created", "comment": { "url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments/18682909", "id": 1, "diff_hunk": "@@ -1,2 +1,4 @@ public-repo", "pa...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/github_payloads/pull_request_payload.rb
spec/support/github_payloads/pull_request_payload.rb
def pull_request_payload( action: "created", github_url: "http://url.com", body: "A body", user_name: "someone_else", avatar_url: "http://avatar.com", additions: 5, deletions: 10, comments: 0, review_comments: 1 ) <<-EOS { "action":"#{action}", "number":50, "pull_request":{ "url":"https...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/support/github_payloads/issue_comment_payload.rb
spec/support/github_payloads/issue_comment_payload.rb
def issue_comment_payload(body:, github_url:) <<-EOS { "action": "created", "issue": { "url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/51", "labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/51/labels{/name}", "comments_url": "https://api.github.com/re...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/requests/pull_requests_api_endpoint_spec.rb
spec/requests/pull_requests_api_endpoint_spec.rb
require "rails_helper" describe "pull requests API endpoint" do it "returns a list of open pull requests" do pull_requests = create_pair(:pull_request) get "/pull_requests.json" prs = json_body ids_from_json = prs.map { |pr| pr["id"].to_i } ids_from_db = pull_requests.map(&:id) expect(ids_f...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/controllers/github_payloads_controller_spec.rb
spec/controllers/github_payloads_controller_spec.rb
require "rails_helper" describe GithubPayloadsController do context "POST#create" do describe "for issue comments" do describe "when the comment has 'LGTM'" do it "completes the pull request" do pr_url = "https://github.com/org/repo/pulls/123" issue_url = pr_url.gsub("pulls", "i...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/actions/create_new_pr_spec.rb
spec/actions/create_new_pr_spec.rb
require "rails_helper" describe CreateNewPr do describe ".matches" do context "when there are no tags" do it "is false" do parser = double( :parser, action: "opened", body: "There are no tags here", repo_github_url: "http://example.com/" ) ex...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/actions/mark_pr_in_progress_spec.rb
spec/actions/mark_pr_in_progress_spec.rb
require "rails_helper" describe MarkPrInProgress do describe ".matches" do context "when the user is houndci" do it "is false" do parser = double( :parser, comment_user_login: "houndci", event_type: "pull_request_review_comment", ) expect(MarkPrInProgr...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/models/project_spec.rb
spec/models/project_spec.rb
require "rails_helper" describe Project do subject { FactoryBot.build(:project) } it { should validate_presence_of(:name) } it { should validate_uniqueness_of(:name) } it { should validate_presence_of(:default_channel) } it { should validate_presence_of(:github_url) } it { should validate_uniqueness_of(:gi...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/models/tag_spec.rb
spec/models/tag_spec.rb
require "rails_helper" describe Tag do it { should validate_presence_of(:channel) } it { should validate_presence_of(:channel_id) } it { should validate_presence_of(:name) } it { should belong_to(:channel) } it { should have_and_belong_to_many(:pull_requests) } it "validates the uniqueness of name" do ...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/models/pull_request_spec.rb
spec/models/pull_request_spec.rb
require "rails_helper" describe PullRequest do it { should validate_presence_of(:github_url) } it { should validate_presence_of(:repo_name) } it { should validate_presence_of(:repo_github_url) } it { should validate_presence_of(:status) } it { should validate_presence_of(:title) } it { should validate_pres...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/models/channel_spec.rb
spec/models/channel_spec.rb
require "rails_helper" describe Channel do it { should validate_presence_of(:name) } it { should validate_presence_of(:name) } it { should validate_presence_of(:webhook_url) } it { should have_many(:projects).dependent(:destroy) } it { should have_many(:tags).dependent(:destroy) } it { should have_many(:a...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/spec/features/user_views_prs_spec.rb
spec/features/user_views_prs_spec.rb
require "rails_helper" feature "User views PRs" do scenario "Sees all open Pull Requests" do create(:pull_request, title: "Implement Stuff") create(:pull_request, title: "Design Stuff") visit root_path expect(page).to have_content("Implement Stuff") expect(page).to have_content("Design Stuff") ...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/application.rb
config/application.rb
require_relative 'boot' require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module Pester class Application < Rails::Application # Initialize configuration defaults for originally generated Rails ve...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/environment.rb
config/environment.rb
# Load the Rails application. require_relative 'application' # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/puma.rb
config/puma.rb
# Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers: a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/routes.rb
config/routes.rb
Rails.application.routes.draw do ActiveAdmin.routes(self) resources :github_payloads, only: [:create] resource :session, only: [:new, :create, :destroy] get "/auth/:provider/callback", to: "sessions#create" get "/auth/githubteammember", as: "githubteammember_auth" root to: "pull_requests#index" resource...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/boot.rb
config/boot.rb
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/content_security_policy.rb
config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy # For further information see the following documentation # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy # Rails.application.config.content_security_policy do |policy| ...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/filter_parameter_logging.rb
config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/application_controller_renderer.rb
config/initializers/application_controller_renderer.rb
# Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # ) # end
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/errors.rb
config/initializers/errors.rb
require "net/http" require "net/smtp" # Example: # begin # some http call # rescue *HTTP_ERRORS => error # notify_hoptoad error # end HTTP_ERRORS = [ EOFError, Errno::ECONNRESET, Errno::EINVAL, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError, Timeout::Error ] SMTP_SER...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/session_store.rb
config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_pester_session'
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/json_encoding.rb
config/initializers/json_encoding.rb
ActiveSupport::JSON::Encoding.time_precision = 0
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/wrap_parameters.rb
config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters f...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/omniauth.rb
config/initializers/omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do provider :githubteammember, ENV.fetch("GITHUB_CLIENT_ID"), ENV.fetch("GITHUB_CLIENT_SECRET"), scope: "read:org", teams: { "team_member?" => ENV.fetch("GITHUB_TEAM_ID") } end
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/inflections.rb
config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/cookies_serializer.rb
config/initializers/cookies_serializer.rb
# 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 = :json
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/active_admin.rb
config/initializers/active_admin.rb
ActiveAdmin.setup do |config| # == Site Title # # Set the title that is displayed on the main layout # for each of the active admin pages. # config.site_title = "Pester" # Set the link url for the title. For example, to take # users to your main site. Defaults to no link. # # config.site_title_link...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/assets.rb
config/initializers/assets.rb
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path # Add Yarn node_modules ...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/backtrace_silencers.rb
config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/initializers/mime_types.rb
config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/environments/test.rb
config/environments/test.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suit...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/environments/development.rb
config/environments/development.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/environments/staging.rb
config/environments/staging.rb
require_relative "production" Mail.register_interceptor( RecipientInterceptor.new(ENV.fetch("EMAIL_RECIPIENTS")) ) Rails.application.configure do # ... config.action_mailer.default_url_options = { host: 'staging.pester.com' } end
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
thoughtbot/pester
https://github.com/thoughtbot/pester/blob/3986e373e5a79be115ccb02807568e77a3d9fc41/config/environments/production.rb
config/environments/production.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
ruby
MIT
3986e373e5a79be115ccb02807568e77a3d9fc41
2026-01-04T17:34:56.998205Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/jobs/application_job.rb
dummy/rails-5.2/app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/helpers/application_helper.rb
dummy/rails-5.2/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/controllers/users_controller.rb
dummy/rails-5.2/app/controllers/users_controller.rb
class UsersController < ApplicationController def new end def create render text: 'ok' end private def honeypot_string 'im-not-a-honeypot-at-all' end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/controllers/application_controller.rb
dummy/rails-5.2/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base def honeypot_fields { :my_custom_comment_body => 'Custom field name', 42 => 'Number field name', "post[title]" => 'Complex field name' } end # def honeypot_style_class # "hidden" # end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/models/application_record.rb
dummy/rails-5.2/app/models/application_record.rb
class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/models/user.rb
dummy/rails-5.2/app/models/user.rb
class User include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :name def persisted? false end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/mailers/application_mailer.rb
dummy/rails-5.2/app/mailers/application_mailer.rb
class ApplicationMailer < ActionMailer::Base default from: 'from@example.com' layout 'mailer' end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/channels/application_cable/channel.rb
dummy/rails-5.2/app/channels/application_cable/channel.rb
module ApplicationCable class Channel < ActionCable::Channel::Base end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/app/channels/application_cable/connection.rb
dummy/rails-5.2/app/channels/application_cable/connection.rb
module ApplicationCable class Connection < ActionCable::Connection::Base end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/db/seeds.rb
dummy/rails-5.2/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). # # Examples: # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Ch...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/test/application_system_test_case.rb
dummy/rails-5.2/test/application_system_test_case.rb
require "test_helper" class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :selenium, using: :chrome, screen_size: [1400, 1400] end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/test/test_helper.rb
dummy/rails-5.2/test/test_helper.rb
ENV['RAILS_ENV'] ||= 'test' require_relative '../config/environment' require 'rails/test_help' class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. fixtures :all # Add more helper methods to be used by all tests here... end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/application.rb
dummy/rails-5.2/config/application.rb
require_relative 'boot' require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module Rails522 class Application < Rails::Application # Initialize configuration defaults for originally generated Rails ...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/environment.rb
dummy/rails-5.2/config/environment.rb
# Load the Rails application. require_relative 'application' # Initialize the Rails application. Rails.application.initialize!
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/puma.rb
dummy/rails-5.2/config/puma.rb
# Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers: a minimum and maximum. # Any libraries that use thread pools should be configured to match # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/routes.rb
dummy/rails-5.2/config/routes.rb
Rails.application.routes.draw do resources :users end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/spring.rb
dummy/rails-5.2/config/spring.rb
%w[ .ruby-version .rbenv-vars tmp/restart.txt tmp/caching-dev.txt ].each { |path| Spring.watch(path) }
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/boot.rb
dummy/rails-5.2/config/boot.rb
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/content_security_policy.rb
dummy/rails-5.2/config/initializers/content_security_policy.rb
# Be sure to restart your server when you modify this file. # Define an application-wide content security policy # For further information see the following documentation # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy # Rails.application.config.content_security_policy do |policy| ...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/filter_parameter_logging.rb
dummy/rails-5.2/config/initializers/filter_parameter_logging.rb
# Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. Rails.application.config.filter_parameters += [:password]
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/application_controller_renderer.rb
dummy/rails-5.2/config/initializers/application_controller_renderer.rb
# Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do # ApplicationController.renderer.defaults.merge!( # http_host: 'example.org', # https: false # ) # end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/wrap_parameters.rb
dummy/rails-5.2/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters f...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/inflections.rb
dummy/rails-5.2/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections # are locale specific, and you may define rules for as many different # locales as you wish. All of these examples are active by default: # ActiveSupport::Inflector.inflections(:en) do |inflec...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/cookies_serializer.rb
dummy/rails-5.2/config/initializers/cookies_serializer.rb
# 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 = :json
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/assets.rb
dummy/rails-5.2/config/initializers/assets.rb
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path # Add Yarn node_modules ...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/backtrace_silencers.rb
dummy/rails-5.2/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
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/initializers/mime_types.rb
dummy/rails-5.2/config/initializers/mime_types.rb
# Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/environments/test.rb
dummy/rails-5.2/config/environments/test.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suit...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/environments/development.rb
dummy/rails-5.2/config/environments/development.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-5.2/config/environments/production.rb
dummy/rails-5.2/config/environments/production.rb
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/app/helpers/users_helper.rb
dummy/rails-3.2/app/helpers/users_helper.rb
module UsersHelper end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/app/helpers/application_helper.rb
dummy/rails-3.2/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/app/controllers/users_controller.rb
dummy/rails-3.2/app/controllers/users_controller.rb
class UsersController < ApplicationController def new end def create render text: 'ok' end private def honeypot_string 'im-not-a-honeypot-at-all' end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/app/controllers/application_controller.rb
dummy/rails-3.2/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/app/models/user.rb
dummy/rails-3.2/app/models/user.rb
class User include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :name def persisted? false end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/db/seeds.rb
dummy/rails-3.2/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/db/migrate/20150210215506_create_users.rb
dummy/rails-3.2/db/migrate/20150210215506_create_users.rb
class CreateUsers < ActiveRecord::Migration def change create_table :users do |t| t.timestamps end end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/test/test_helper.rb
dummy/rails-3.2/test/test_helper.rb
ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order. # # Note: You'll currently still have to declare fixtures explicitly in integrati...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/test/performance/browsing_test.rb
dummy/rails-3.2/test/performance/browsing_test.rb
require 'test_helper' require 'rails/performance_test_help' class BrowsingTest < ActionDispatch::PerformanceTest # Refer to the documentation for all available options # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory] # :output => 'tmp/performance', :formats => [:f...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/test/unit/user_test.rb
dummy/rails-3.2/test/unit/user_test.rb
require 'test_helper' class UserTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/test/unit/helpers/users_helper_test.rb
dummy/rails-3.2/test/unit/helpers/users_helper_test.rb
require 'test_helper' class UsersHelperTest < ActionView::TestCase end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/test/functional/users_controller_test.rb
dummy/rails-3.2/test/functional/users_controller_test.rb
require 'test_helper' class UsersControllerTest < ActionController::TestCase # test "the truth" do # assert true # end end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/config/application.rb
dummy/rails-3.2/config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require(*Rails.groups(:assets => %w(development test))) # If you want your assets lazily compiled in production, use this line # Bundler.requi...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/config/environment.rb
dummy/rails-3.2/config/environment.rb
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Rails3221::Application.initialize!
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/config/routes.rb
dummy/rails-3.2/config/routes.rb
Rails3221::Application.routes.draw do resources :users end
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/config/boot.rb
dummy/rails-3.2/config/boot.rb
require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/config/initializers/session_store.rb
dummy/rails-3.2/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Rails3221::Application.config.session_store :cookie_store, key: '_rails-3.2.21_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 "...
ruby
MIT
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false
curtis/honeypot-captcha
https://github.com/curtis/honeypot-captcha/blob/cb1317c3b5ef8138f91bdab81762c720dcf4b684/dummy/rails-3.2/config/initializers/wrap_parameters.rb
dummy/rails-3.2/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
cb1317c3b5ef8138f91bdab81762c720dcf4b684
2026-01-04T17:35:23.404602Z
false