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.
[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.
New Org! CryptoCopycats (& Collectibles) - Unique Bits & Bytes on the Blockchain!
Hello, I’ve started a new (github) organization - CryptoCopycats (& CryptoCollectibles) - Unique Bits & Bytes on the Blockchain! to collect open source tools in ruby (incl. copycats, bitcat, base32-kai, etc.) for CryptoCollectibles incl. CryptoKitties and friends. The future is meow. Cheers. Prost.
Ruby + Herança
Não sabe Ruby e quer aprender? Vem comigo ! No post de hoje, falei sobre a implementação de herança em Ruby, vai la ver! https://merubygirl.wordpress.com/2018/03/30/classe-eu-sou-seu-pai/ [more inside]
Code editors for Mac (II)
I continue with this series analyzing the code syntax and file detection. https://medium.com/@davidmles/code-editors-for-mac-ii-5bee24ef2cee
Karafka framework 1.2 Release Notes - 3 times faster and with a more consistent API
New Karafka framework version is already available at RubyGems. In this article I describe new features, changes and some details on how we were able to reach possibility to process around 50k messages per second.
Ruby Conferences ‘n’ Camps in 2018 @ Planet Ruby Updated - What's Upcoming?
Hello, some new ruby conference ‘n camps added to the 2018 calendar @ planet ruby include ++ Ruby Open Source Software (ROSS) Conf Amsterdam (FREE) - May/11+12 (2d) Fri+Sat @ Amsterdam, the Netherlands ++ Gotham Ruby Conference (GoRuCo) - Jun/16 (1d) Sat @ Manhattan, New York City ++ Southeast Ruby - Aug/2+3 (2d) Thu+Fri @ Nashville, Tennessee ++ European Ruby Konference (EuRuKo) - Aug/24+25 (2d) Fri+Sat @ Vienna, Austria ++ Note: For the latest updates subscribe to the web feed (in XML or JSON). Cheers.
Phusion launches Fuse Panel, GUI for Passenger
Today Phusion launches the Fuse Panel, a graphical user interface for Passenger, introducing a much-requested feature: per-application log splitting. Whether you’re running Passenger open source or enterprise, the Fuse Panel’s aim is to provide tools to monitor, administer, analyze and troubleshoot your apps. [more inside]
WhereChain extension gem
Stop writing Post.where('comments > ?', 10), write Post.where.gt(comments: 10) instead! GitHub repository [more inside]
Rails ActiveRecord SQL queries log beautifier
Works with pure Ruby 2.2+ and with Rails 4.0+ [more inside]
The Comparable mixin
The Comparable mixin is part of the Ruby core. It’s used by classes that can be compared. [more inside]
How to Deploy Rails Applications With Ansible, Capistrano and Semaphore
I wrote a tutorial on how to use Ansible to orchestrate a server, deploy a Rails application to it with Capistrano, and set up continuous integration with Semaphore. [more inside]
The Definitive Guide To Time Complexity For Ruby Developers
Time complexity is one of the most interesting concepts you can learn from computer science. Read the full article: http://www.rubyguides.com/2018/03/time-complexity-for-ruby-developers/
Elapsed time with Ruby, the right way
Elapsed time calculations based on Time.now are wrong. Learn why they are wrong and how to fix them. https://blog.dnsimple.com/2018/03/elapsed-time-with-ruby-the-right-way/
Passenger 5.2.2 released: passenger_base_uri fixed + NEW Phusion product spoiler
Passenger 5.2.2 was released, fixing a passenger_base_uri regression, adding internal tooling AND hinting a new & free Phusion product to be launched very soon: https://blog.phusion.nl/2018/03/28/passenger-5-2-2/
Capistrano deploy to ubuntu with systemd, nginx/puma and rbenv
This tutorial will show you how to deploy a Rails app via Capistrano, run it with Puma, restart it without sudo access and be able to host multiple environments and apps on same server: [more inside]
Exotic Ruby: Module.class_exec, Custom JSON and Liquid Drops in Action
Ruby has quite a lot of “exotic” features that are not used that often, but when you need to utilize some metaprogramming magic, you can easily take advantage of them. One of such features is Object.instance_exec which you might be familiar with if you’ve ever built some more advanced DSL. [more inside]
Final Week for the 2018 Rails Community Survey!
The 2018 Ruby on Rails survey closes this week! If you’re a company-side product developer or freelancer that works in Ruby on Rails, I’d love if you took 5 minutes to complete the biggest survey of the Rails community. All the survey data is public! [more inside]