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.
Day 7 - Ruby Advent Calendar '17 - webservice - Script HTTP JSON APIs (Microservices)
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 7 with webservice - Script HTTP JSON APIs (web services) in classy Sinatra 2.0-style get / post methods with Mustermann 1.0 route / url pattern matching. Load (micro) web services at-runtime using Webservice.load_file. Get a free wiener lager, welsh red ale or kriek lambic beer delivered to your home (computer) in JSON and much much more. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
firebase_cloud_messenger Open-Source Gem Released
Google’s Firebase Cloud Messenger lets you send push notifications to android, iOS, and browsers for free, and firebase_cloud_messenger makes working with their most up-to-date and secure api easy.
How Teams Get Microservices Wrong From the Start
How Teams Get Microservices Wrong From the Start - There’s a lot of ambiguity and debate about what microservices are so we wrote this article to help you ensure your team starts off on the right foot with microservices.
Talking to ActionCable without Rails
ActionCable makes it easy to work with WebSockets from Rails apps, but what about connecting a plain React frontend to a Rails API backend? [more inside]
How to execute shell commands with TTY::Command
Learn how to execute shell commands with the tty-command gem, an alternative to Ruby’s backticks or Open3 module: https://readysteadycode.com/howto-execute-shell-commands-with-ruby-tty-command
Day 6 - Ruby Advent Calendar '17 - almost-sinatra - Build Your Own Webframework
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 6 with almost-sinatra - Build your own webframework from scratch with Rack and Tilt in less than ten lines. The legendary mega hack by Konstantin Haase - six lines of Almost Sinatra now “unobfuscated” and bundled up for easy (re)use and studying. Got inspired? Build your own webframework. New York, New York, Nancy, Cuba, Roda, and many more. Yes, you can! Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Exceptional Creatures: Ruby's ArgumentError
Ruby’s ArgumentError is an opinionated beast that makes its discontent known when you call a method with incorrect arguments.
Why Funding Open Source is Hard
I wanted to share this here. I’m a ruby developer and Code Sponsor supported many ruby projects. Hopefully, we can learn from this as a community. [more inside]
Modern Front-end in Rails. Part 1 of a three-part tutorial
An opinionated guide by Andy Barnov and Alexey Plutalov to modern, modular, component-based front-end in Rails 5.1+. No front-end frameworks involved. Follow our three-part tutorial to learn the bare minimum of up-to-date front-end techniques by following an example and finally make sense of it all. Part 1: goodbye Asset Pipeline, code organization, linting.
WhatIs.this: small useful entity resolver
WhatIs.this is a simple thing to resolve different types of text entities through Wikipedia. Like this: WhatIs.these('Paris', 'Berlin', 'Zagreb').values.map(&:coordinates)
Day 5 - Ruby Advent Calendar '17 - json-next - Read Next Generation JSON - Comments!
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 5 with json-next - Read next generation JSON versions (HanSON, SON, JSONX/JSON11, etc.) with comments, unquoted keys, multi-line strings, trailing commas, optional commas, and more. The json-next library / gem lets you convert and read (parse) next generation json versions including: HanSON e.g. HANSON.parse, SON e.g. SON.parse, JSONX e.g. JSONX.parse. Bonus: More JSON Formats. See the Awesome JSON (What’s Next?) collection / page. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Mobility 0.3: Ready for Prime Time
Just a little over six months ago, I released the first version of the Ruby translation framework I’ve called Mobility. Mobility allows you to store translations for your models using one of any number of different storage strategies (translation table, jsonb column, etc). The release of Mobility 0.3, described in an article on my blog posted today, comes with some important bug and usability fixes, as well as support for the latest versions of ActiveRecord (5.2.beta.2) and Sequel (5.x).
[Screencast] Tracking Errors with Sentry
Sentry is an Open Source error tracking that helps developers monitor and fix crashes in real time. Learn how to add and configure Sentry to your application. https://www.driftingruby.com/episodes/tracking-errors-with-sentry
Day 4 - Ruby Advent Calendar '17 - journaltxt - Blogging reinvented: Read Journal.TXT
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 4 with journaltxt - Blogging reinvented: Read Journal.TXT - single-text file journals - and write out (auto-build) a blog (w/ Jekyll posts etc.). Bonus: Add Your Perfect Day! Berlin.TXT, Munich.TXT, Salzburg.TXT, Paris.TXT, London.TXT, Rome.TXT, New York.TXT, Austin.TXT, Tornoto.TXT, Calgary.TXT, Melbourne.TXT, Sydney.TXT, … - Anyone? Write your perfect day(s) in a single-text file with Journal.TXT. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Chain of responsibility design pattern in Ruby
A chain of responsibility is a design pattern that allows to decouple a sender of a request from its receiver by giving multiple object a chance to handle that request. In an article on my blog I present that concept and I give an examples in Ruby.
Testing HTTPS in the development environment with self-signed certificates
I wrote an article explaining how to create self-signed root CA and certificates that are suited for HTTPS tests in the development environment and even created a simple Rack application to generate them from the web and made it available at Docker Hub. You can give it a try directly from the article in the last notes with a simple click of a button. Currently it only explains how to add the root CA to Linux and provides a sample nginx config. Pull requests to add instructions for other web servers (such as Apache) and operating systems (Windows, OSX) are welcome.
InvoicePrinter 1.1 will bring A4 page size support, command line client and more
Read on what’s coming in InvoicePrinter 1.1. 1.1.0.rc1 is out!
Day 3 - Ruby Advent Calendar '17 - quik - Quick Starter Template Script Wizard
Hello, welcome back to the Ruby Advent Calendar 2017. Let’s continue the series on Day 3 with quik - Quick starter template script wizard - the missing code generator and project scaffolder for gems, sinatra, jekyll & more. Ever asked yourself - Q: How do you get started with creating a new gem? Q: How do you get started with creating a new sinatra app or service? Q: How do you get started with creating a new jekyll theme? and so on. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
Day 2 - Ruby Advent Calendar '17 - factbook - Read the World Factbook 260+ Countries
Hello, welcome to the Ruby Advent Calendar 2017. Let’s continue the series on Day 2 with factbook - Turn the World Factbook (260+ country profiles) into open structured data e.g JSON. Explore the world with Ruby e.g. Where do you find gold? Look for the economy / resources section. What countries have the most internet hosts? What countries have the most proven crude oil reserves? And so on. Cheers. PS: You’re more than welcome to send in your articles (about your library / gem of choice) too!
How Dishwashers Ruin Ruby Apps
Learn how this obscure and non-obvious issue issue can bite you in production, and how you can avoid it.
Day 1 - Ruby Advent Calendar 2017 - blockchain-lite - Build your own blockchains
Hello, welcome to the Ruby Advent Calendar 2017. The idea is: 25 Days of Ruby Gems / Libraries from December 1 to December 25. Let’s kick off the series on Day 1 with blockchain-lite - Build your own blockchains with crypto hashes; revolutionize the world with blockchains, blockchains, blockchains one block at a time! Cheers. PS: You’re welcome to send in your articles (about your library / gem of choice) too!
APIQ CMS v1.1.0 Release
Learn what’s new in 1.1.0 release: https://www.apiq.io/2017/11/30/apiq-cms-1.1.0-release/