Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jeremy Woertink
    @jwoertink
    @wontruefree What version of Lucky? Are you able to upgrade to the latest?
    Also, I'm not sure about that SSL error. Do you have a code snippet? or is the stack trace saying that's coming from Lucky directly?
    Jack
    @wontruefree
    I tried 18.1 and master branch
    it is just a default app with no content
    you and just try using lucky init
    Paul Smith
    @paulcsmith
    Hey @wontruefree! Could you paste the full stack trace? I've started a number of new Lucky projects so I'm guessing it is either the JWT shard released a breaking patch change or maybe openssl like you mentioned. Hard to tell without the trace though
    Jack
    @wontruefree
    jwt is breaking and I made a pr to increment the version
    looks like it is already merged
    Jack
    @wontruefree
    can lucky use a redis session store?
    Jeremy Woertink
    @jwoertink
    Not out of the box
    You'd have to do some work with the session handler and stuff
    Jack
    @wontruefree
    Awesome thanks
    So it is all in the cookie then?
    Paul Smith
    @paulcsmith
    Yes that's correct
    Sébastien Nadon
    @snadon
    crystal 0.32 is getting released
    Jeremy Woertink
    @jwoertink
    Woo hoo!
    Adam Albrecht
    @adamalbrecht
    Is there a way to pass in a variable to an avram box that isn't linked to a database column? I want to give my UserBox a custom password that is then encrypted in the initialize function. In factory_bot, I'd use a transientblock. Thanks!
    Jeremy Woertink
    @jwoertink
    @adamalbrecht Untested, but I think you can create your own class method, pass in stuff, then in that, pass it to your own initialize, then call create at the end
    class UserBox < Avram::Box
      def self.custom_setup(attrs)
          self.new(attrs).create
      end
      def initialize(attrs)
      end
    end
    like doing something along these lines.
    then just do your encryption in your initialize. I guess you could just leave off the class method and do UserBox.new("password").create
    Paul Smith
    @paulcsmith
    Yeah I’d do that (the one without custom_setup) and instead add an optional arg to initialize
    This is one reason we went with classes. Most of the features in factory_bot can be handled with regular methods. Still need to add some after create callbacks for stuff like associating tags with a post but that’ll be added one of these day’s :)
    Adam Albrecht
    @adamalbrecht
    @jwoertink @paulcsmith Great thanks for your help
    Adam Albrecht
    @adamalbrecht
    Actually this ended up working pretty well:
    class UserBox < Avram::Box
      def initialize
        # ... normal stuff
      end
    
      def password(val)
        encrypted_password Authentic.generate_encrypted_password(val)
      end
    end
    
    UserBox.create do |box|
      box.password "supersecret"
    end
    Paul Smith
    @paulcsmith
    Nice!!
    Btw there is a shorthand block syntax that can be useful for stuff like this: UserBox.create &.password(“super secret”) works the same but can be a bit more concise
    Jack
    @wontruefree
    why does lucky use overmind or similar over docker?
    Paul Smith
    @paulcsmith
    @wontruefree Overmind solves a different problem. It doesn't install any packages or anything like that, just starts processes. We attempted to make a default Docker setup but it was fairly bug ridden and Docker on macOS with Crystal slows down compile times by about 2x
    You could still use Docker if you want it's just not the default. Does that answer your question?
    Paul Smith
    @paulcsmith
    @here I just released Lucky 0.18.2, along with a new patch release of Avram and Lucky CLI. Run shards update in your project to get a few bug fixes and minor (but helpful!) improvements
    KC Erb
    @KCErb

    Hi there, I'll just check back in here to say that I successfully defended my dissertation today and should have more time to get back to my old project!

    In my projects, I solve the Docker slowness problems on macOS with docker-sync (http://docker-sync.io/). It kind of sucks adding a Ruby dependency to the project but I think it's worth it to bring Docker to the table realistically.

    Jack
    @wontruefree
    @paulcsmith thanks I found a few closed issues
    I think that makes sense
    or is that someone else
    Paul Smith
    @paulcsmith
    @wontruefree we no longer maintain that. That was made when we were doing our initial experiments
    @KCErb congratulations!! That is a huge deal and a big accomplishment!
    Jack
    @wontruefree
    ok thanks :)
    KC Erb
    @KCErb
    @paulcsmith Thanks! I did the whole thing in Crystal too. Turns out there are a bunch of things that haven't been done in solid state physics simply because the people who know about them do their work by hand. Just one part of my work would require checking more than 13000 cases by hand but with my crystal libraries it's computed in less than a second and a nice latex table comes out the other end.
    Sébastien Nadon
    @snadon
    @paulcsmith The new version does not support Crystal 0.32 right?
    Sébastien Nadon
    @snadon
    Upgrading the jwt shards make it compile with crystal 0.32
    Paul Smith
    @paulcsmith
    @snadon it should work with 0.32.0 :)
    But give it a try and let me know
    Sébastien Nadon
    @snadon
    It's working :) I had to upgrade the jwt shard (one part of my project is still using my own implementation of jwt)
    Paul Smith
    @paulcsmith
    Awesome!