Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 15 19:07
    jjw starred dry-rb/dry-types
  • Dec 15 18:13

    flash-gordon on master

    Remove unreachable method (compare)

  • Dec 15 18:11

    flash-gordon on master

    Remove Dry::Types.type_keys It… (compare)

  • Dec 15 18:09

    flash-gordon on master

    Remove unreachable code (compare)

  • Dec 15 18:04

    flash-gordon on master

    Coverage for function.rb (compare)

  • Dec 15 17:15

    flash-gordon on fix-maybe-call-safe

    (compare)

  • Dec 15 17:15

    flash-gordon on master

    Fix behavior of Maybe#call_safe… Merge pull request #380 from dr… (compare)

  • Dec 15 17:15
    flash-gordon closed #380
  • Dec 15 17:13
    flash-gordon synchronize #380
  • Dec 15 17:13

    flash-gordon on fix-maybe-call-safe

    Fix behavior of Maybe#call_safe… (compare)

  • Dec 15 17:12
    flash-gordon opened #380
  • Dec 15 17:11

    flash-gordon on fix-maybe-call-safe

    Fix behavior of Maybe#call_safe… (compare)

  • Dec 15 17:00

    flash-gordon on fix-maybe-try

    (compare)

  • Dec 15 17:00

    flash-gordon on master

    Fix behavior of Types::Maybe#try Merge pull request #379 from dr… (compare)

  • Dec 15 17:00
    flash-gordon closed #379
  • Dec 15 15:09

    flash-gordon on master

    Fix typo Merge pull request #67 from gru… (compare)

  • Dec 15 15:09
    flash-gordon closed #67
  • Dec 15 14:43
    flash-gordon opened #379
  • Dec 15 14:43

    flash-gordon on fix-maybe-try

    Fix behavior of Types::Maybe#try (compare)

  • Dec 15 14:30

    flash-gordon on master

    Lax coverage (compare)

Tristan Mortimer
@Qwuke
Hey all, I was wondering whether or not anyone knew of any examples of dry-rb/dry-monads being used in an API client library - am curious how that type of error handling would look in a somewhat fleshed out project
Grant Shangreaux
@gcentauri
is it possible to write a dry predicate that depends on more than one value?
Kasper Sacharias Roos Eenberg
@kse
I use dry-validation for validating input, is there a way to fail if it encounters keys I have written a rule for?
In essence, I want it to be strict.
Alexandru Beu
@alexandrubeu
hey, I'm using dry stack and I have a question related to dry-container in relation with dry-system. Is it possible to have scoped per request dependencies? Thanks
Nikita Shilnikov
@flash-gordon
@alexandrubeu nothing working OOTB. You can create a container on every request, though, with a certain amount of effort this should be good enough. At least I did this, but now I'm experimenting on providing context-aware dependencies using a different approach. If it works fine (atm it appears so) I'm going to build another library for this, it's a matter of months
Alexandru Beu
@alexandrubeu
thanks a lot... I will try to create another container which will be handled by the web.rb hooks :before and :after
Nikita Shilnikov
@flash-gordon
btw, what do you want to add there?
Alexandru Beu
@alexandrubeu
I would like to inject some dependencies like a tenant which should be registered every time a request has arrived. Based on that fact I don't need to pass the param tenant in all my app
Nikita Shilnikov
@flash-gordon
exactly my case
Christian Georgii
@cgeorgii
Hey @flash-gordon, not sure if you had the chance to check this dry-rb/dry-types#277 out? I think we're just waiting for your input. No hurry, though, just don't want the momentum to get lost.
Nikita Shilnikov
@flash-gordon
on my list, working on dry-configurable atm
Christian Georgii
@cgeorgii
Ok, thanks for letting me know ;)
Kumayl Nazary
@knazary
Hey @timriley, appreciate you guiding me here!
I'm working at a company and we've been building an API to replace our legacy java platform.. everything has been going well in the past year up until very recently. Our ruby application (the api) is dockerized and deployed to AWS' Elastic Container Service.
However, after the latest changes, when I try to deploy (building and publishing via docker), on the bundle install step (from my dockerfile), I receive this error: `fatal: Could not parse object '#{some long hash}'.
Any idea how I could fix this? @timriley @solnic
Tim Riley
@timriley
@knazary there’s not enough information to help you here, and the error could be coming from anything, really, not necessarily anything to do with dry-rb.
@knazary Also, we cannot provide support related to application deployment. This is outside our purview as gem developers.
Kumayl Nazary
@knazary
This happened ever since the rodakase repo was archived. I think there may have been specific commits removed?
got it.
Tim Riley
@timriley
@knazary yeah, maybe some commits disappeared. You should 100% no longer be using rodakase. That project was converted to dry-web, dry-system, dry-view a long time ago.
Piotr Solnica
@solnic
:point_up_2:
Tim Riley
@timriley
Rodakase was also very clearly a bleeding edge/experimental project, we didn’t get anywhere even close to guaranteeing stability there
Kumayl Nazary
@knazary
Guys, you are the geniuses. I'm a 25 year old mediocre developer struggling with legacy code here :D
Tim Riley
@timriley
I would definitely encourage you move off that and onto the corresponding dry-rb gems.
In the meantime, perhaps there’s a checked out copy of that commit in your local bundle cache
Kumayl Nazary
@knazary
haha, thanks for pointing me towards the real solution though
Piotr Solnica
@solnic
:point_up_2: ^2 :smile:
Tim Riley
@timriley
you might be able to save yourself by finding that and pushing it up to your own repo
However, do NOT let that prevent you from doing the right thing and getting off that repo ASAP
Kumayl Nazary
@knazary
Got it. This was great. In relation to my local bundle cache, which file(s)/directory would be the right one to push to a repo of my own?
Tim Riley
@timriley
If it’s a git repo clone, you want to push the whole thing up
Kumayl Nazary
@knazary
image.png
Tim Riley
@timriley
¯_(ツ)_/¯
Just find a working local cached copy, if you can, push it up, then point your Gemfile to that repo’s master
I have no idea if this will work, but it’s something
It’s late here and I don’t have the time to look into bundler’s internals right now so unfortunately I can’t help further
Nikita Shilnikov
@flash-gordon
I would check out bundler
Kumayl Nazary
@knazary
Thanks a bunch @timriley ! Will try this workaround for now. And next up will be a real upgrade.
Nikita Shilnikov
@flash-gordon
since it's a git-source dep it must be managed by bundler, not rubygems
Kumayl Nazary
@knazary
@flash-gordon could you expand/elaborate on what you mean?
Tim Riley
@timriley
Go into your (hopefully working) local checkout of the app
type bundle show rodakase
that will show you where bundler has checked out the copy of the gem
Kumayl Nazary
@knazary
probably because i'm using rbenv
image.png
ah found it.. that was cuz i removed my gemfile.lock
image.png
Nikita Shilnikov
@flash-gordon
okay then you can re-push it wherever you like and update your gemfile after that