Skip to content

Instantly share code, notes, and snippets.

View ardecvz's full-sized avatar

Artur Petrov ardecvz

View GitHub Profile
@ardecvz
ardecvz / keybase.md
Created March 27, 2023 14:31
keybase.md

Keybase proof

I hereby claim:

  • I am ardecvz on github.
  • I am ardecvz (https://keybase.io/ardecvz) on keybase.
  • I have a public key ASBzpk2uJ4ifi3Y4WJgw_Mig92jT5U-MfiTOb6Fswzqj9go

To claim this, I am signing this object:

@ardecvz
ardecvz / 00_evil_martians_api_client.md
Last active April 18, 2024 20:35
A ready-to-use example that features an opinionated Faraday configuration, optionally serving as a starting point for your own HTTP client
├── bin
│   └── console
├── config
│   └── evil_martians_api.yml
├── lib
│   ├── evil_martians_api
│   │   ├── api
│   │   │   └── developers.rb
│ │ ├── client
@ardecvz
ardecvz / vcr_intro.rb
Last active May 14, 2024 08:22
A VCR trick to include preparation and cleanup phases for external services directly within the test files (the phases run ONLY when recording cassettes)
# frozen_string_literal: true
# A VCR trick to include preparation and cleanup phases for external services
# directly within the test files (the phases run ONLY when recording cassettes):
#
# RSpec.describe EvilMartiansAPI::Client, vcr: true do
# let(:client) { described_class.new }
#
# let(:developer_team_number) { 42 }
#