Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 20 19:40
    lancecarlson starred dry-rb/dry-monads
  • Nov 20 15:22
    scaint starred dry-rb/dry-monads
  • Nov 20 11:05
    FunkyloverOne starred dry-rb/dry-monads
  • Nov 20 06:22
    zlei1 starred dry-rb/dry-web
  • Nov 18 00:58
    dteoh starred dry-rb/dry-types
  • Nov 17 21:02
    flash-gordon commented #374
  • Nov 17 21:01

    flash-gordon on master

    Update custom_ci.yml Merge pull request #374 from sk… (compare)

  • Nov 17 21:01
    flash-gordon closed #374
  • Nov 17 20:59
    skryukov opened #374
  • Nov 17 16:42

    flash-gordon on use-immutable-equalizer

    (compare)

  • Nov 17 16:42

    flash-gordon on master

    Use immutable equalizer for all… Merge pull request #373 from dr… (compare)

  • Nov 17 16:42
    flash-gordon closed #373
  • Nov 17 16:38
    flash-gordon opened #373
  • Nov 17 16:38

    flash-gordon on use-immutable-equalizer

    Use immutable equalizer for all… (compare)

  • Nov 17 16:34

    flash-gordon on no-rewrap-for-structs

    (compare)

  • Nov 17 16:34

    flash-gordon on master

    Don't build constructors when c… Merge pull request #371 from dr… (compare)

  • Nov 17 16:34
    flash-gordon closed #371
  • Nov 16 11:28
    marekciupak starred dry-rb/dry-monads
  • Nov 16 07:48
    luizfonseca starred dry-rb/dry-view
Tim Riley
@timriley
e.g. include MyComponent::Inject.args["foo"]
Piotr Solnica
@solnic
:heart_eyes:
Tim Riley
@timriley
MyComponent::Inject.args.hash.kwargs.args[“foo”] if you really want
;)
I’ll add an issue to remind me to do that to dry-auto_inject directly
And I’ll release dry-component today :)
@gotar I think I have a fix for your repo issue
And changed class Posts to be class Posts < Base[:posts]
and change class Base to be class Base < ROM::Repository::Root
Piotr Solnica
@solnic
@timriley did you figure out that complex stuff with lazy-booting components on demand?
Tim Riley
@timriley
@solnic Indeed I did.
Piotr Solnica
@solnic
:scream_cat:
Oskar Szrajer
@gotar
Hmm I will try tmr for sure. Thx for advice.
Tim Riley
@timriley
Well, I think I did, @solnic! haha
Piotr Solnica
@solnic
can't wait to try this stuff out
but that has to wait until rom is out with dry-v/t/l upgrades
Tim Riley
@timriley
:)
Piotr Solnica
@solnic
:zzz: time :wave:
Tim Riley
@timriley
:wave:
Andy Holland
@AMHOL
:D
Chase Gilliam
@Ch4s3
:clap:
John Backus
@backus
@solnic if you agree with dry-rb/dry-validation#179 I would be interested in implementing it
Would be easier to implement this if attr hadn't been nixed entirely
Oskar Szrajer
@gotar
@timriley I change code to reflect your proposals, all works - thx
Tim Riley
@timriley
@gotar super! :D
Fran Worley
@fran-worley
@solnic should I merge dry-rb/dry-validation#178 ?
Piotr Solnica
@solnic
@fran-worley oh fantastic <3 could you add a more descriptive message when merging?
Fran Worley
@fran-worley
Yeah sorry I forgot to change it before I pushed it!
Piotr Solnica
@solnic
no worries :)
it just helps when compiling a changelog as we all keep forgetting about keeping it up-to-date :laughing:
@fran-worley I’m gonna take care of dis: dry-rb/dry-validation#165
Fran Worley
@fran-worley
Thanks, I got really stuck :cry: I've updated the changelog dry-rb/dry-validation@a99c644
Piotr Solnica
@solnic
@fran-worley no worries, we’ll figure this out :)
thanks for the changelog update <3
@AMHOL heeyyyyy is dry-container supposed to work with objects too?
Fran Worley
@fran-worley
@solnic cool. Happy to have another look at dry-rb/dry-logic#13 when you've sorted dry-rb/dry-validation#165.
Piotr Solnica
@solnic
dry-rb/dry-validation#180 /cc @fran-worley
now I gotta make that registry available in the DSL so we can actually verify if a given predicate is valid
and the last step will be to figure out how to recompile rules and automatically bind predicates to a new instance of a schema w/o recompiling everything
Fran Worley
@fran-worley
:smirk: now I remember why I left this until you got back @solnic !
Piotr Solnica
@solnic
hah!
Piotr Solnica
@solnic
@fran-worley ok this is ready (except recompilation improvement, but that can wait)
check dis out:
(byebug) klass = Class.new(Dry::Validation::Schema)
(byebug) klass.registry[:min_size?]
#<Dry::Logic::Predicate id=:min_size? args=[]>
(byebug) klass.registry[:min_size?].fn.parameters
[[:opt, :num], [:opt, :input]]
Fran Worley
@fran-worley
Amazing :smile:
Piotr Solnica
@solnic
and this is now available in the DSL objects via registry object that’s passed to the dsl
I added validation of predicate definitions too, checking names and arity for a good start