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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Rspec, system tests, JavaScript and Select2 recipes
System tests are great and they can actually be fast now. They just currently have a few gotchas. This article aims at introducing system tests onto your app and test a jQuery select2 tag implementation. Read more on blog
How To Make An App Like Periscope
How To Make An App Like Periscope [more inside]
SOLID Principles #4 - Interface Segregation Principle
Five-part series of blog posts about SOLID Principles. This one is about the fourth of them - Interface Segregation Principle: [more inside]
Fixing Kernel#singleton_method bug in Ruby.
It’s a story about how I fixed a bug in Ruby’s Kernel#singleton_method. [more inside]
ImageProcessing 1.0 Released: Wrapper for ImageMagick and Libvips
ImageProcessing is a gem that provides higher-level image processing helpers that are commonly needed when handling image uploads. Initially the gem came with a simple module-based API and provided only processing with ImageMagick (via MiniMagick), but recently it was rewritten with a more flexible chainable API, and also gained libvips support which can be up to 10x faster than ImageMagick. Read more about it here.
Understanding a Ruby Wat
A few weeks ago, a co-worker found something really interesting. He posted on our slack channel this line of code. Does anyone know what the output of this is? “(data)”.gsub(“(data)”, “15\01\2018”) [more inside]
Client Side File Uploads with Amazon S3 for a production project
One of our most recent clients needed a site to promote their 25 years anniversary event. At first, they thought to develop it on top of their Ruby powered CMS. However, after a careful analysis, we found out that they didn’t really need any of the features provided by their CMS. As a promotional site, a static website was enough to fulfil their needs. [more inside]
RubyMine 2018.1 released: Faster IDE, Run anything action, and other improvements
The new RubyMine 2018.1 features Postfix code completion, Run and Debug anything actions, significant performance updates, and many other improvements. Learn more and download the new version from the What’s new page:
Exceptional Creatures: SignalException
SignalException can pop up when you least expect it. Learn all about signals, how to trap them, when you should (and shouldn’t) rescue them, and how popular projects like Puma, Unicorn, and NGINX use them in the wild.
Passenger 5.2.3 released
Version 5.2.3 of the Passenger application server released, fixing a macOS build issue and improving Python 3 support, ao:
Multi Environment Credentials for Rails 5.2.0
Encrypted Credentials are coming in Rails 5.2.0, however they’re missing a way to handle non production credentials in a unified API. That’s why the gem creds was built. Check out a brief introduction on https://freeletics.engineering/2018/04/04/creds-multi-environment-credentials.html
Phoenix Chat for your Rails application
How to create Phoenix chat application that can be easily added to your existing Rails project and have some other nice features
How Scott's Cheap Flights is Scaling with Rails
Scott’s Cheap Flights is a curator of international flight deals that travelers can subscribe to. They recently migrated from WordPress to a custom Rails app. Hear from their Lead Developer about the transition. P.S. They’re hiring for Rails devs! [more inside]
Do you really need WebSockets?
Over the years I’ve had this conversation a couple of times. This post will explain why we use WebSockets, how they can be used, what alternatives exist and when to use them. Read more…
Design Patterns in Large Rails Applications: Query Objects
Design patterns in large Ruby on Rails web applications: constructing a Query Object class that is responsible for elegantly querying a database READ MORE
How Getting Featured by Hacker News Affected my Passive Income
Two weeks ago my blog post made it to the top of Hacker News. Around 30k people read about my side project Slack bot that day. In this blog post, I will describe how it affected the project and my other passive monetization and marketing strategies. [more inside]
[Screencast] ActiveRecord Tricks
In this episode, we look at what would seemingly be simple queries, but are more complex once you start looking into them. Using built in ActiveRecord functions, we can make the queries readable and easy to work with. https://www.driftingruby.com/episodes/activerecord-tricks
A Matter of Attributes
In OOP, the member access control concept is important as it allows to control the access to encapsulated variables. [more inside]
Organize as middleware
Need to implement wired logic with a lot of if and rescue? [more inside]
Gemsmith 12.0.0
Gemsmith 12.0.0 is out with improved Semantic Versioning. Inspiration came from publishing Elm packages so Ruby and Elm libraries have similar behavior (see the Gemsmith 12.0.0 release as an example). Additionally, crafting new gems will provide better metadata so your gem will have appropriate source code, changelog, and bug tracker links within RubyGems (example). [more inside]
Big update for LanguageCards
Learn foreign language characters with this command line base flash card game LanguageCards. Currently available flash cards are Japanese Hiragana and Katakana. LanguageCards supports MVC, I18n, and YAML card sets. Please submit new flash card sets! [more inside]
Ruby Conferences & Camps in April 2018 - What's Upcoming?
Hello, at the calendar page @ Planet Ruby we collect all ruby conferences and camps from around the world. What’s upcoming in April 2018? ++ Isle of Ruby - Apr/13-15 (3d) Fri-Sun @ Exeter, England, United Kingdom ++ RailsConf - Apr/17-19 (3d) Tue-Thu @ Pittsburgh, Pennsylvania, United States ++ RubyConf Belarus - Apr/21 (1d) Sat @ Minsk, Belarus ++ Ruby X Elixir Conf Taiwan - Apr/27+28 (2d) Fri+Sat @ Taipei, Taiwan ++ See all conferences & camps in 2018. Anything missing? Updates welcome. Cheers. Prost.
Forecaster - Fetch weather data directly from the Global Forecast System
Forecaster is a gem wrapping wgrib2 to fetch and read weather data directly from the Global Forecast System. It comes with a library and a CLI allowing you to type commands like forecast for this afternoon in paris in your terminal to get the latest weather forecast.