The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML https://github.com/MarioRuiz/open_api_import
Hello, did you know? The world’s #1 (static) website compiler runs on ruby and is getting even better (and faster). To quote the latest official Jekyll tweet “We’re getting closer to releasing Jekyll 4!! A new beta dropped just now. Please give it a try and let us know how it goes!”. Happy website hacking (building) with ruby (and liquid, html & css).
Hello, I’ve added Artichoke Ruby to the Awesome Rubies (collection) page. What’s Artichoke Ruby? It’s a new upcoming ruby made in rust by Ryan Lopopolo et al. You can try Artichoke in your browser. Yes, the Artichoke playground runs a WebAssembly build of Artichoke. Congrats to Ryan Lopopolo for the inspiring code. What’s your take? Cheers. Prost.
A story about safeguarding Redis clients and servers. https://www.honeybadger.io/blog/safeguarding-redis/
When database tables get large, things can slow down significantly. In this episode, we look at a few things which helps keep databases performant and the client side responsive. https://www.driftingruby.com/episodes/working-with-large-data
You should not change the signature of a Sidekiq job which is running in production. By signature I mean: the arguments and the class name of the job. [more inside]
Watch how to sort banana bunches into fruit Baskets (Boxes) and take advantage of Ruby’s reduce method to create a hash of sorted data.
Hello, I’ve put together a short football data wrangling w/ ruby sample that lets you match 1500+ football club names from around the world using the sportdb gem / library and open football.db (public domain) datasets. Enjoy the beautiful game. Cheers. Prost.
In this article we’re going to explore the following topics:
By explicitly picking out tests at will to run, we can develop faster! https://emmanuelhayford.com/7-ways-to-selectively-run-rspec-tests/
If you need to add aspect ratio validation like
validates :photo, aspect_ratio: :landspace (or :is_16_9, :square, etc) for your ActiveStorage files: [more inside]
https://github.com/MarioRuiz/slack-smart-bot Create a Slack bot that is smart and so easy to expand, create new bots on demand, run ruby code on chat, create shortcuts… The main scope of this gem is to be used internally in the company so teams can create team channels with their own bot to help them on their daily work, almost everything is suitable to be automated!! slack-smart-bot can create bots on demand, create shortcuts, run ruby code… just on a chat channel. You can access it just from your mobile phone if you want and run those tests you forgot to run, get the results, restart a server… no limits.
Ruby and ActiveSupport have two handy options for casting objects into arrays which helps guarantee your code is working with arrays and helps remove conditionals and simplify code. Learn how to use the Array() and Array.wrap methods in Ruby and ActiveSupport
I saw the recent release of Mimic and decided to dive into the code to see how it was built. Learn how to build a tool to help with your projects
Read more about Lefthook, just out of Evil Martians’ foundries. The tool to manage all the Git hooks for your team in an environment-agnostic manner allows you to half your local and CI times linting/testing times, also comes as a Ruby gem, and works naturally with Bundler.