Skip to content

Instantly share code, notes, and snippets.

View al2o3cr's full-sized avatar

Matt Jones al2o3cr

View GitHub Profile

Keybase proof

I hereby claim:

  • I am al2o3cr on github.
  • I am al2o3cr (https://keybase.io/al2o3cr) on keybase.
  • I have a public key whose fingerprint is 8BFF C530 4A5F 6C05 A195 B6BA 3DCB F07C 45C1 B4CE

To claim this, I am signing this object:

@al2o3cr
al2o3cr / output-4.1.1.log
Created December 8, 2014 03:30
Test case for Rails #17015
Parent Load (0.1ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 1]]
(0.0ms) begin transaction
SQL (0.0ms) INSERT INTO "students" DEFAULT VALUES
SQL (0.0ms) INSERT INTO "student_parents" ("parent_id", "student_id") VALUES (?, ?) [["parent_id", 1], ["student_id", 1]]
(0.0ms) commit transaction
@al2o3cr
al2o3cr / presentation.md
Last active March 1, 2019 23:02
50 Ways To Leave Your Method
@al2o3cr
al2o3cr / test_association.rb
Last active September 3, 2015 00:44
Issue found investigating rails/rails #21466
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# NOTE: test passes on 4.1.13, fails against 4.2.0+
@al2o3cr
al2o3cr / test_associations.rb
Created September 3, 2015 00:48
Attempted repro for rails/rails #21466
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'activerecord', '4.2.4'
@al2o3cr
al2o3cr / test_case.rb
Created September 20, 2015 17:54
inverse_of regression in 4.2
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# NOTE: tests pass on 4.1.x, fail on 4.2
require 'thwait'
class Voice
BASELINE = %w( there is no - poop ing - on - the bus - )
VOICES = `say -v '?'`.lines.map { |line| line.split.first }
attr_reader :voice_name, :rate
def initialize(voice_name, rate)
@i = 0
@al2o3cr
al2o3cr / test_aliased_through.rb
Created January 14, 2017 23:04
Reproduction script for rails/rails #27666
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "http://rubygems.org"
# Activate the gem you are reporting the issue against.
@al2o3cr
al2o3cr / test_association_save.rb
Last active September 29, 2017 22:07
Test case for rails/rails #28536
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do