Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 06 17:03
    paul commented #32
  • Dec 06 16:44
    paul commented #32
  • Dec 06 10:56
    solnic commented #32
  • Dec 06 10:30
    solnic commented #32
  • Dec 05 09:29

    solnic on master

    Clear exception message when an… Add gem names to plugins Merge pull request #128 from sk… (compare)

  • Dec 05 09:29
    solnic closed #128
  • Dec 05 09:29
    solnic closed #127
  • Dec 04 18:49
    micahphone starred dry-rb/dry-monads
  • Dec 04 17:43
    icy-arctic-fox starred dry-rb/dry-types
  • Dec 02 12:37
    pedrofurtado starred dry-rb/dry-view
  • Dec 02 11:59
    lenon starred dry-rb/dry-monads
  • Dec 01 11:06

    flash-gordon on declare-finalized

    (compare)

  • Dec 01 11:06

    flash-gordon on master

    Set initial value for ivar Merge pull request #131 from dr… (compare)

  • Dec 01 11:06
    flash-gordon closed #131
  • Dec 01 11:05
    flash-gordon opened #131
  • Dec 01 11:03

    flash-gordon on declare-finalized

    Set initial value for ivar (compare)

  • Nov 30 16:50
    paul commented #32
  • Nov 30 16:50
    paul synchronize #32
  • Nov 30 16:44
    paul synchronize #32
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
we gotta add #arity and #parameters to Dry::Logic::Predicate too
they should quack like procs/method-objects