Conversation between Melissa Kaulfuss and George Sheppard.
mel [11:36 AM]
joined #aws
mel
[11:37 AM]
sup
Conversation between Melissa Kaulfuss and George Sheppard.
mel [11:36 AM]
joined #aws
mel
[11:37 AM]
sup
irb(main):001:0> class A | |
irb(main):002:1> def self.cow | |
irb(main):003:2> "hello I am a cow" | |
irb(main):004:2> end | |
irb(main):005:1> def moo | |
irb(main):006:2> "Mooooo!" | |
irb(main):007:2> end | |
irb(main):008:1> end | |
=> :moo | |
irb(main):009:0> A.cow |
Yesterday when attempting to initialize /.init
a Docker Container (for the first time) I got a strange error that I just assumed was down to my set up. Hadn't yet spun this up on my new machine.
The failure occurred when hitting exec bundle exec rake db:create
.
The error output:
Gem::Exception: can't find executable rake for gem rake. rake is not currently included in the bundle,
perhaps you meant to add it to your Gemfile?
Today I had to add a parameter to a request we were sending to an external API.
My unit test passed ✅ The acceptance specs did not - I had 20 failures. ❌
The failures were super cryptic, something about not being able to merge Nil:NilClass into a hash or something weirdly unrelated. One of my colleagues suspected it was to do with the VCR gem we used to simulate HTTP requests/responses from APIs.
Turns out VCR uses query strings as the key for the cassette (I did not know this). Because I'd added a param to the query string, the existing string (in the cassettes) was broken.
Go into the app folder and run:
tail -f log/*
docker-compose exec app_name <bundle update --source gem_name>
where the command is the thing in the <>
docker-compose exec <container-name> bash
then tail -f log/*logs
git commit --fixup sha
<commit-sha>
", then:git push origin head
git rebase -i origin/master --autosquash
git push origin head -f
git checkout master && git merge br-name --ff-only
You can use mitmproxy which is an interactive HTTPS proxy.
brew install mitmproxy
common-services.yml
bookings-base
, reservations-base
HOOROO_PROXY: "http://middleman:8080"
http://middleman.ted:8081
./start