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.
Use Any (Jekyll) Theme on GitHub Pages - It's official! - Ex: Pluto Feed Reader
It’s official! You can now use any theme on GitHub Pages using the new jekyll-remote-theme machinery. See the Pluto Planet Guide (Book Edition) - Free Planet (Static) Website Generator - Auto-Build Web Pages From Published Web Feeds as a real-world live example :-) using the octobook/books-twentyeighteen-theme. Thanks ‘n’ congrats to @BenBalter et al
ComfortableMexicanSofa 2.0.0 Released
Your favorite CMS Engine got upgraded to support Rails 5.2 apps: https://github.com/comfy/comfortable-mexican-sofa
RubyMine 2017.3 Released!
RubyMine 2017.3 adds support for WSL, new refactoring and code style options, improved performance, EPP templates. customizable RuboCop, and more! Try it now https://www.jetbrains.com/ruby/whatsnew/
Errors notifications to ElasticSearch with ElasticNotifier gem
ElasticNotifier is a gem that provides a simple API to send error notifications to an ElasticSearch server, for analytics and Kibana dashboards. It is also compatible with “exception_notification” gem as a Notifier plug-in. https://hspazio.github.io/2017/elastic-notifier-gem/
Genderize.io gem
I have created and easy to use Genderize.io ruby gem called genderize-io for automatically determining a users gender.
Ruby #call method
Ruby method #call is common interface protocol for calling Lambdas, Method objects, Procs,… In this article I’ll try to present why it’s important to name the run method #call in your custom class objects [more inside]
Yuki & Moto Press Bookshelf Update - Free (Online) Books about Ruby 'n' Friends
Hello, I’m a big fan of the latest and greatest plugin addition to GitHub Pages (and Jekyll), that is, Jekyll Remote Themes. Using a simple config entry you can “automagically” pull in remote themes (layouts, includes, javascripts, etc). To once more show off / test the new functionality I’ve updated the Yuki & Moto Press Bookshelf (Static Website Source) to now use a remote book theme (that is, Octobook Twenty Eighteen) that turns your manuscripts in plain text w/ markdown formatting conventions into live (online) books. See the Gem Developer’s Guide as example. Happy reading. Happy publishing w/ GitHub Pages (and Jekyll). Cheers.
From Monolith to Microservices — Part 1: Reasoning behind the switch
Migrating the web application from monolithic architecture (in Shedul’s case — Ruby on Rails) is one of the most serious decisions one can take in any monolithic project’s lifetime. You can find tons of articles listing pros and cons of microservices in general — but in this entry, I’ll tell you about top three that made us make the actual call at Shedul. Read more on Shedul Tech Blog.
Zero downtime rebranding with Rails and Heroku
Learn how to migrate your Heroku-hosted application from one domain name to another. See how to rewire an existing Rails project (tests included!) and make it work with multiple domains on a single Heroku instance. SSL caveats are covered too.
kramdown 1.16.0 - Server-side KaTeX, bug fixes and more
Just released the newest version of kramdown, with support for server-side KaTeX, GFM task lists and more - see https://kramdown.gettalong.org/news.html - Thanks to all contributers and supporters!
Meerstats: Reduce the impact of silent production errors
I’m launching the beta of a side project I’ve had brewing for a while – Meerstats. It monitors key metrics and will report anomalies as they are detected. It also sends daily reports, so you can spot check any abnormalities yourself. This is all in an effort to catch silent production errors and reduce the amount of time your customers see them. It’s completely free for the duration of the beta.
7-Part Screencast Series on TDD with RSpec
I just finished creating a free screencast series on practicing test driven development with RSpec. It starts with an intro by using a plain old Ruby class and then covers a few different Rails scenarios. [more inside]
Magics That Rails Decorator/Presenter Gems Do to Make Your Type Less
An analysis of 6 different decorator/presenter gems, what magic have the gem authors done in order to make your type less.
Rails on Docker: Using Yarn to Manage Frontend Assets
A quick tutorial on how to use Yarn to manage frontend assets for your Dockerised Rails app. https://www.chrisblunt.com/rails-on-docker-using-yarn-to-manage-frontend-assets/
FIFO queues with resque
Need something like apache kafka but only want a pure ruby solution and reuses your resque workers? The resque-fifo-queue gem aims to do something like that. [more inside]
Very useful gem for development - any_login
Hello Ruby-developers, I want to share an updated version of any_login gem which is VERY useful for development. https://github.com/igorkasyanchuk/any_login Thanks to @daichirata, @eliotsykes, @zorab47, @linshaodongsam for support.
Traps on Rails - Overriding Boolean Methods in Models
One very useful feature of ActiveRecord is automatically defining attribute readers and writers for all the columns for given tables. For the ones with boolean type, however, there is one more addition – defining an alias of the method with a question mark. Sometimes it might be useful to override this method and add some extra requirements for a given condition. However, this might not be such a good idea. [more inside]
New Jekyll Remote Theme in Action - Turn Your Manuscripts into Live Books w/ Jekyll
Hello, the latest and greatest plugin to GitHub Pages (and Jekyll) is Jekyll Remote Themes. Using a simple config entry you can “automagically” pull in remote themes (layouts, includes, javascripts, etc). To once again show off / test the new functionality I’ve changed the World Classics Bookshelf (Static Website Source) to now use a remote book theme that turns your manuscripts in plain text w/ markdown formatting conventions into live (online) books. See The Trial by Franz Kafka as example. Happy reading. Happy publishing w/ GitHub Pages (and Jekyll). Cheers.
Spot fake accounts on Twitter
Example how to spot fake Twitter account using Ruby and Twitter gem [more inside]
RSpec recipe: remove constants created during a test execution
Learn how to automatically remove classes and modules declared in a RSpec test body. Read a recipe
Amazon API Gateway Can Now Generate Ruby SDKs
You can now generate a Ruby gem for consuming an Amazon API Gateway API with a simple button click or command. [more inside]