Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Marc Anguera Insa
    Albert Vilà Picas
    Tom Bortels
    November 2014??? That's a bit disappointing. I came here for a gold mine of useful ruby bits, not a ghost town. Chat it up, people! I will start. Pry https://github.com/pry/pry is awesome. I would marry it, if it was a nice girl and I wasn't married already. Or ask, anyway. If you use it, you know, and if you don't - go try it.
    Aniruddha Barapatre
    Was still stuck in irb. Thanks for pointing out this to me @bortels.
    Tom Bortels
    My pleasure. Pass it on. I hope it saves you the trouble it's saved me. Seriously - my biggest bag on other languages I have been looking at (mostly go) is "no pry". I am spoiled.
    Aniruddha Barapatre
    @bortels Any other libraries that have made your job easier. I am still newbie in terms of Ruby development, so my setup is limited to Terminal, IRB and Vim along with using gems depending on my requirements.
    Tom Bortels
    lol that is what I was counting on you all for! But sure. Hang a sec - I may already have a reasonable list
    Tom Bortels

    So - nothing stands out as much as pry, but here are a few of my other must-haves:

    • pry-rescue and pry-stack_explorer - add ons for pry that give more info. rescue is particularly fun, because it will drop you into pry on an unhandled exception, so you can look at the state of your variables and such. brilliant.
    • rest-client - I do a lot of work with rest APIs, and there are a lot of different gems for this, but rest-client is the workhorse. Darn handy.
    • sinatra and sinatra-contrib - I find Rails to be a bit heavyweight for my normal tasks; sinatra is a thinned down rack-compatible library for web routing and templating.
    • hashie - this is a guilty pleasure, as it does nuke performance a bit, but there's many a time I want hashes to to just a bit more, and hashie does it. I would be a bit leary about using it for big stuff, but most of what I do is smaller, so it works.
    • r509 - I do a lot of work with SSL certs, and this bad-boy wraps it up nice. There's an ugly level of complexity that comes as baggage with SSL, and this doesn't hide it all, but it helps make it a bit more managable. Plus, it comes with nice helpers and apps that exercise it, so there's code to look at if the docs come up short.
    • redis, pg, rbvmomi, slack-api, docker-api, and aws-sdk - I tend to write websites and glue/automation, and these let me get to the services I talk to easily. You might think that would imply I like all of these - I don't. But - if you must use any of these, these are the best gems I have found for that.
    • rbenv - this isn't really a gem, it's the rbenv ruby environment manager. The big alternative there is rvm, or perhaps docker or something like brew. I used rvm for a while, switched to rbenv, it was just easier for me to understand. YMMV. All are superior to monkeying with the native ruby installed with your OS (if any).

    All of the above is purely opinion. I welcome (anticipate with hunger!) alternatives. You think something above is crap, cool - educate me, I am keen to replace a good tool with a better one, as I hope we all are.

    The above, fwiw, are from my "rubydev" docker image - https://registry.hub.docker.com/u/bortels/rubydev/ - if you do not run docker, fix that. Just sayin.
    Tom Bortels
    Now - can someone recommend a templating language, other than erb, supported by sinatra? The specific use-case I am trying to better solve for is that I have an ugly data structure (from someone else) I am trying to pick thru and display data from - and there are times data is simply missing. So - erb barfs a lot, because I try to fetch a deeply nested value that isn't there. I guess a good alternative would be a nice, fast, friendly library for indexing and searching a big (61 megs on disk) ugly nested hash of hashes. I have found a lot of possible solutions for both of the above - what I am asking here is, which are awesome?
    (I have also considered just dumping it into hashie, but I am concerned about speed - hashie may make my code more robust, but if the page takes 30 seconds to render because each of my 150+ lookups takes 200 ms, that won't fly)
    R.J. Robinson
    However, 150+ look ups
    Reid Morrison
    Anyone know of a good cron parsing gem that will return the next time the job/task should run when given a cron string?
    Reid Morrison
    I am going with rufus-scheduler to parse cron strings since it supports time zones. Bigger library than I wanted, but the only one that appears to support time zones.
    hey, if anyone has any remote remote , designer, DevOps or Sysadmin jobs they can post them at http://webwork.io
    This message was deleted
    Punita Ojha
    This message was deleted
    Armand Fardeau
    Hey ruby enthusiast, do you know Decidim, The participatory democracy framework which has a complex and state of the art architecture. It's made with ruby and ruby on rails.
    Armand Fardeau
    Hi, how are you?
    Hi, all!
    Nice to meet you.
    I am a web developer with +10 years experience.
    Now I am leading a team of 5 developers and have enough work for us.
    I am looking to grow my team this year.
    Can we talk ?