Para modularizar el monolito, estamos usando engines de Rails.
Para facilitar la tarea de crear nuevos engines y gemas, usamos Gemaker
de la siguiente manera:
bin/gemaker new nombre_engine
Para modularizar el monolito, estamos usando engines de Rails.
Para facilitar la tarea de crear nuevos engines y gemas, usamos Gemaker
de la siguiente manera:
bin/gemaker new nombre_engine
Me imagino algo así:
Ledgerizer.setup do |conf|
conf.tenant(:subsidiary, currency: :clp) do
conf.liability :user_funds_custody, currencies: [:clp, :btc] # estas son las currencies que acepta la cuenta
conf.asset :user_funds_to_confirm, currencies: [:clp, :btc]
conf.entry :user_deposit, document: :ledger_line do
conf.debit account: :user_funds_to_confirm, accountable: :account
ENV['RAILS_ENV'] = ARGV[0] || 'production' | |
DIR = File.dirname(__FILE__) | |
require DIR + '/config/environment' | |
Migration::FillDemoPriceChanges.for |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
ENV['RAILS_ENV'] = ARGV[0] || 'production' | |
DIR = File.dirname(__FILE__) | |
require DIR + '/config/environment' | |
class LoadOldValues | |
include PricingLogger | |
def initialize(realm) | |
raise 'invalid realm' unless ["gasco", "enex"].include?(realm) | |
@realm = realm |
ENV['RAILS_ENV'] = ARGV[0] || 'production' | |
DIR = File.dirname(__FILE__) | |
require DIR + '/config/environment' | |
class DupPriceChanges | |
include PricingLogger | |
def initialize(realm) | |
raise 'invalid realm' unless ["gasco", "enex"].include?(realm) | |
@realm = realm |
require 'open-uri' | |
class LocalResource | |
def initialize(_url, _tmp_filename) | |
@uri = URI.parse(_url) | |
@tmp_file_name = File.basename(_tmp_filename, ".*") | |
@tmp_file_ext = File.extname(_tmp_filename) | |
end | |
def file |