timriley on v0.24.0
timriley on remove-dry-struct
github-actions[bot] on main
[devtools] sync (compare)
action-hero[bot] on main
Update dry-system.gemspec from … (compare)
flash-gordon on main
Remove dry-struct dependency I… Bump version Update CHANGELOG (compare)
txn = define_transaction do
custom_step_adapter 'step_1', using: :value_1
custom_step_adapter 'step_2', using: :value_2
map 'step_3'
end
txn.call(value_1: 1, value_2: 2)
def my_step(value_1)
value_1 + 1
end
def my_step(value_2)
value_2 + 1
end
def step_3(context)
context # { value_1: 2, value_2: 3 }
end
options
which is basically a hash, and passed from step to step (per default) http://trailblazer.to/gems/operation/2.0/#state-and-result
rake
runs two rspec suites
dry-struct
. on the first attribute
call.equalizer.instance_variable_get('@keys').concat(new_schema.keys)
NoMethodError: undefined method `concat' for nil:NilClass
/Users/kukunin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/dry-struct-fbe71e6445a8/lib/dry/struct/class_interface.rb:78:in `attributes'
/Users/kukunin/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/dry-struct-fbe71e6445a8/lib/dry/struct/class_interface.rb:50:in `attribute'
/Users/kukunin/Sites/matic-www/gems/shift-domain/lib/shift/domain/attachment.rb:8:in `block in <module:Domain>'
getting started
guide that walks the newcomers through some storybased steps introducing new concepts on every chapter like you did in the series post of Icelab blog?rule(variant_presence: [:variant_id, :sku]) do |variant_id, sku|
variant_id.filled? | (sku.filled? & Spree::Variant.where(sku: value(:sku)).any?)
end
But i have +arel+ is not a valid predicate name
error. I really cant find nothing about this in documentation.