Skip to content

Instantly share code, notes, and snippets.

View Mozart2234's full-sized avatar
🏠
Working from home

Alexei Mamani Mozart2234

🏠
Working from home
View GitHub Profile
docker run -it -v ${PWD}:/usr/src/app ruby:2.6 bash # iniciar bash para instalar rails usando una version de ruby especifica.
docker run -it -v ${PWD}:/usr/src/app ruby:2.6 bash # iniciar bash para instalar rails usando una version de ruby especifica.
@Mozart2234
Mozart2234 / base.rb
Last active September 21, 2023 15:49
migrator library
require_relative "./row"
class Migrator::Base
def initialize(configs:)
@configs = configs
@headers = configs.map { |config| config[:name] }
end
def valid_row(values)
row = Migrator::Row.new(configs: @configs, values: values)
@Mozart2234
Mozart2234 / Gemfile
Created September 21, 2023 17:16
Easy Broker requests
# Gemfile
source 'https://rubygems.org'
gem 'rspec'
gem 'webmock'