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.
The Grape Swagger Stack
How to build clean and lightweight microservices complete of UI and documentation in Ruby with Grape and Swagger: http://www.roialty.com/ruby-the-grape-swagger-stack/
Pakyow v0.10 Release
We just pushed out a bit update to Pakyow, a realtime web framework for Ruby. This release introduces WebSockets, channels, reactive views, and a some other goodies. Read the announcement
Pronto v0.5.0
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And v0.5.0 is the best version of Pronto yet. It includes bug fixes and features requested and created by the community. If you haven’t had a chance to check Pronto out in the past, there’s no better time than now!
Quick, no-hack emoji support with MySQL & Rails
Don’t want to suffer the huge migration from utf8 to utf8mb4 to get emoji support? Rails has a built in way to help with that: https://dev.firmafon.dk/blog/quick-no-hack-emoji-support-with-mysql-rails/
What To Do When You're Stuck In Ruby
There are lots of tools to help you debug your Ruby code, but it’s not always obvious which ones are right for the job. Especially when you have to dig into somebody else’s code. So before you head over to Stack Overflow out of desperation, let’s see if we can figure out this problem ourselves.
How to stay up to date on security alerts
One of the common reason for compromise when security breaches occur is software patches not being applied. For Ruby & Rails developers it’s important to stay up to date on security alerts, and I’ve put together a short post on how to do that.
Introducing DRG CMS
New opensource CMS and rapid web application development tool DRG CMS uses Ruby on Rails and MongoDB in unique way to provide super fast web development. Read introduction and try to make your own web site in 15 minutes
Greenjaguar
Applies retry behavior to arbitrary code blocks with different policies like fibonacci, exponential backoff, FixedInterval, etc. This basically is the ‘retry’ construct on steroids. [more inside]
Creating a Rails 5 Project
Set up the bleeding edge Rails by reading the Setting up a Rails 5 project article.
Introducing FiveStar - A Ruby generic rating library
FiveStar is a library to build a rating system - it allows you to rate something in your domain by various classification or criteria you define. [more inside]
Benchmarking Ruby 2.3 string literals + new Ruby features
Ruby 2.3.0 brings few new features to the table. In this post, apart from listing all of them I also decided to benchmark new frozen string literals feature. The difference in performance can be astonishing! http://dev.mensfeld.pl/2015/11/ruby-2-3-0-changes-and-features/
Investigating Kafka as an Event Store
In this post we explore using Kafka as an Event Store. Kafka is “publish-subscribe messaging rethought as a distributed commit log”. Includes Ruby code examples.
Enumerable - How I Fell in Love with Ruby
Slides for a recent talk I gave demonstrating some useful features of Enumerable and Enumerator through lots of examples. https://speakerdeck.com/rossta/enumerable-how-i-fell-in-love-with-ruby
Implement a Lazy Hash in Ruby
Create a Hash that self propagates when you access keys that don’t exist yet. I give a few demonstrations of smarter Hashes that work with invalid, or partial, key entry. http://6ftdan.com/allyourdev/2015/11/13/implement-a-lazy-hash-in-ruby/
New features in ruby 2.3
Learn about hash and array dig methods, inverse grep, hash comparisons, and more new features in ruby 2.3.
Rails Rumble - the Experience
This is my personal experience in competing in Rails Rumble twice with teams of people I’ve never worked with before. http://6ftdan.com/allyourdev/2015/11/13/rails-rumble-the-experience/
ReverseMarkdown 1.0.0
reverse markdown transmogrifies given HTML into markdown for storing or further processing. The library just hit 1.0.0 with major speed improvements, but also some breaking changes, so please update with care! For details look at the changelog.
Introducing Godmin 1.0
Godmin is an admin framework for Rails 4+. It helps you build dedicated admin sections for your apps, or stand alone admin apps such as internal tools. It has support for common features such as scoping, filtering and performing batch actions on your models. Read more in our blog post
Debugging Capybara: screenshot of error page on CircleCI
It’s crucial, to have a screenshot with failed integration spec on CI, and it turned out to be dead simple with CircleCI. Check out how in the blog post.
Changing from an embedded document to a relationship with Rails and Mongoid
Recently had to deal with moving an embedded document on MongoDB to a relationship between two models under Rails. I wrote up a step-by-step procedure that can be adapted according to your needs. Check it out on the blog post at CookiesHQ
Ruby 2.3.0 preview 1
Ruby 2.3.0 preview 1 was announced and, as usual it includes plenty of improvements and new features. [more inside]
Notable features in Ruby 2.3.0-preview1 explained
If official announcement is too short for you, read extended version with a bit of a humour in it.
Bulletproof Rails Background Jobs
As Rails applications have grown and matured, we’ve asked them to do more complete and weighty tasks, and background jobs have been a necessity to keep the web application side of things responsive and zippy. But in a lot of cases, developers simply dump code into workers and call it a day. Just by following a few common-sense patterns, you can keep the back side of your code as neat and well-ordered as the front.
Get Sentimental About SMS with Twilio, Bluemix and AlchemyAPI
IBM’s Bluemix platform is home to an ever growing number of cognitive computing services that, as developers, we can use in our applications to learn more about our data. We look at how to get a Ruby application set up with Bluemix and use the AlchemyAPI and Twilio to respond to SMS messages based on sentiment.