Skip to content

Instantly share code, notes, and snippets.

View iwz's full-sized avatar
🤷‍♂️
🤷‍♂️

Ian Zabel iwz

🤷‍♂️
🤷‍♂️
View GitHub Profile
#!/bin/bash
set -x
mkdir -p /tmp/repro-7468
cd /tmp/repro-7468
bundle env
# Bundler 2.0.2
# Ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
@iwz
iwz / has_many_through_definition_order_matters.rb
Last active February 27, 2017 20:00
has_many :through must be defined after the has_many it needs
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"
# Activate the gem you are reporting the issue against.
def fib(ceiling)
a = 0
b = 1
while a <= ceiling
yield a
a = a + b
b = a - b