Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:56
    solnic commented #32
  • 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
  • Nov 30 16:02
    paul synchronize #32
  • Nov 30 16:01
    paul commented #32
Andy Holland
@AMHOL
haha
I can't, I'm at work
Piotr Solnica
@solnic
yeah Luca just sent an invite, there’s another guy from the US but the call is on Friday
Andy Holland
@AMHOL
:(
Piotr Solnica
@solnic
ah right
Andy Holland
@AMHOL
Ahh, what time?
Piotr Solnica
@solnic
10am :P
Andy Holland
@AMHOL
lol, yep, will be at work
Piotr Solnica
@solnic
that work thing you do man, gotta stop
;)
Andy Holland
@AMHOL
haha
That would be nice
Piotr Solnica
@solnic
just stop, be a free man, work 12hrs/day, like me, LOL
Andy Holland
@AMHOL
I keep playing Lotto
Piotr Solnica
@solnic
it’s called Lotto in UK too? :D
Andy Holland
@AMHOL
haha yeah, a FREE man?
Yeah
Lotto and Lotto Euro Millions
Piotr Solnica
@solnic
sweet, didn’t know that
Andy Holland
@AMHOL
I need a win on the Euro
Piotr Solnica
@solnic
I thought Lotto is a polish brand
Andy Holland
@AMHOL
Nope, is it run by Camelot there?
Piotr Solnica
@solnic
no idea, I think it’s a national lottery
Andy Holland
@AMHOL
Yeah, Camelot -> National Lottery = Lotto (AFAIK)
Piotr Solnica
@solnic
OK :)
hey I gotta run
I’ll describe my rodakase vision and put it in a readme soon
Andy Holland
@AMHOL
OK :wave:
Piotr Solnica
@solnic
we could start at least chatting about it :)
cheers
:wave:
Andy Holland
@AMHOL
Yeah, just give me a shout when you do
Piotr Solnica
@solnic
will do
Andy Holland
@AMHOL
@solnic you around?
Piotr Solnica
@solnic
Kinda
Andy Holland
@AMHOL
lol, just messing about with the validator stuff
Piotr Solnica
@solnic
Oh cool. Where?
Andy Holland
@AMHOL
Not pushed it anywhere yet, just making a gist
The gist vs the comment
I'm leaning towards the gist myself, that would allow the processor to be switched out for nested validations or anything else someone wants to do
Then I can put the extractor/validation container config on the processor
WDYT?
Piotr Solnica
@solnic
I'll check it out tomorrow. Too late for me already :)
Andy Holland
@AMHOL
:+1: cheers
Andy Holland
@AMHOL
Getting somewhere with this now
Andy Holland
@AMHOL
v = Dry::Validator.new(
  name: {
    presence: true
  },
  test: {
    embedded: {
      tester: {
        presence: true
      }
    }
  }
)

v.call(name: '', test: { tester: '' })
# => {:name=>[{:code=>"presence", :options=>true}], :test=>[{:tester=>[{:code=>"presence", :options=>true}]}]}
v.call(name: 'Joe', test: { tester: 't' })
# => {}
v = Dry::Validator.new(
  users: {
    each: {
      name: {
        presence: true
      }
    }
  }
)

v.call(users: [{ name: 'Joe' }, { name: '' }])
# => {:users=>[{}, {:name=>[{:code=>"presence", :options=>true}]}]}
v.call(users: [{ name: 'Joe' }])
# => {}
Piotr Solnica
@solnic
looking good
Andy Holland
@AMHOL
:)