timriley on support-component-dirs-with-mixed-namespaces
Fix rubocop issue (compare)
timriley on support-component-dirs-with-mixed-namespaces
Add Identifier docs Fix rubocop issues Add coment (compare)
timriley on support-component-dirs-with-mixed-namespaces
Update tests (compare)
ComicsScraper.namespace(:persistence) do |persistence|
persistence.finalize(:rom) do
init do
end
start do
end
end
end
finalizers
hash contains this value: {:rom=>[ComicsScraper, #<Proc:0x007f9cb4205870@/Users/wafcio/projects/comics/scraper/system/boot/persistence.rb:2>]}
ComicsScraper.namespace
=> ComicsScraper.finalize
# system/boot/db.rb
Application.finalize(:db) do |container|
init do
require 'some/3rd/party/db'
container.register(:db, DB.configure(ENV['DB_URL']))
end
start do
db.establish_connection
end
stop do
db.close_connection
end
end
to_time = -> x { Time.iso8601("#{x}Z") }
ISOTime = Types::Strict::Time.constructor(to_time)
Schema = Dry::Validation.JSON do
optional(:sent_at, :time).value(ISOTime)
...
optional(:sent_at) { time? | value(ISOTime) }
?