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.
Submit your Talk Proposal for Rubyconf Brasil!
This month we opened up the Call for Proposals website for the 8th edition of Rubyconf Brasil. We’ve been running this conference for 8 years in a row and it’s the largest Ruby conference in Latin America amassing around 1k attendees. Also, if your company is interested in reaching out to this large Ruby community, let us know. We will have a brand new conference format this year, read the description at the CFP site.
Tacokit.rb - a simple Ruby wrapper for the Trello API
We use Trello to manage our development process and Ruby to extra data from Trello. Other Trello Ruby wrappers didn’t fit our needs. We wanted something simple, well-tested, and easy to use; we wanted ocktokit.rb for Trello. So we built tacokit.rb. Though still a work-in-progress, it’s now open source and we hope others will find it useful as well.
Avdi Grimm at Tropical Ruby 2015: The Soul of Software
Tropical Ruby just released its first video and it’s the most anticipated one: with you, Mr. Avdi Grimm talking about the Soul of Software.
Rails 5 - Much Faster Collection Rendering
Here’s how we made rendering a collection a whole lot faster in Rails 5.
Documenting Ruby command-line apps (pdf download)
Very few people would be able to use your commandline app without proper documentation. Users would have to read and understand the source code to know what options and commands the app provides, what the options mean, and what arguments the app accepts or requires. If you intend to make the app available to others and use the app multiple times periodically, for a long time, you must document your app. Luckily, there’s a standard for building cli apps that include the right features and proper, well-formatted documention.
PersistentOpenStruct: a faster OpenStruct
Addressing a situation where we wanted to use OpenStruct as a flexible data container but didn’t want the awful performance, I put together a faster version which defines methods on the class rather than defining singleton methods on the object. This gem is ideal for situations where you need flexibility at runtime, but you’re basically using the same set of keys again and again. It’s available on RubyGems as persistent_open_struct, and you can learn more at the GitHub repo and on my blog.
How can you deliver content from a Rails app as fast as a Statically Generated Site
Many developers will suggest you should just try Jekyll or other similar tools to generate a static HTMLs and deploy to S3. But many times we want to have Rails features for a more robust application. But you don’t have to live with slower requests, you can deliver content from Rails as fast as with a static generated website without leaving Rails as I explained in my article
How to dispel Ruby magic and understand your gems
Most gems aren’t doing that you couldn’t. It’s just Ruby code. Sometimes it’s complicated Ruby code. But when you explore that code, you’ll begin to understand where that magic comes from.
Idiosyncratic Ruby: Episode 17-20
The latest of I.rb: The ruby -n command-line option, how to init and when to use structs, reserved symbols, and an overview of the standard library!
So what's the deal with refinements, anyway?
Confused about what “refinements” are? I’ve published a video and article introducing this somewhat controversial Ruby feature, using a practical example.
Passenger now provides Debian 8, Ubuntu 15.04 and Red Hat packages
Passenger now provides Debian 8, Ubuntu 15.04 and Red Hat packages. This makes Ruby deployment easier than ever. [more inside]
How To Integrate Clickatell In Rails Application
When it comes to sending an SMS using Ruby on Railst, there are two approaches you can take. The first – and more complicated – is to use your own hardware and something like the ruby-sms library to communicate with the hardware.
An example of using real life React app with Rails API
Flux/Flummox, React/Router, Immutable, Webpack, Babel on Rails Can be found on GitHub [more inside]
local-subdomain: for working with subdomains on localhost
Today I’ve just released version 1.0.0 of my latest gem local-subdomain offering subdomain support for your development environment, out of the box. [more inside]
12 Gems for Quicker and Easier Software Testing
Here’s a handy list of gems that will help you with automation software testing. https://netguru.co/blog/gems-software-testing
FizzBuzz in Ruby & Elixir
My take on solving “FizzBuzz” in Ruby & Elixir, and talking about some of the differences between the two languages.
Idiosyncratic Ruby: Episode 13-16
You can use episodes 13-16 to explore Enumerable’s slice_*, initialize local variables in uncommon ways, create string literals in even more uncommon ways, and what to avoid!
The Secret Life of Your Database, Part 1: Migrations
Have you ever looked closely at a migration file and wondered what’s really going on? This post unpacks the secret life of your Rails database, highlighting the differences between the up, down, and change methods and irreversible migrations.
Using CoffeeScript to Trigger Click Events
In part three of this multi-part series on building a fully functional calendar in Ruby, we will be adding some CoffeeScript and Rails to create and render events to the calendar. Ir runs a little long, so I will have to do another episode to make the sql query more efficient. [more inside]
Change terminal colorscheme depending on hour of a day (flux-like functionality)
Not really about ruby, but about something we use on our daily basis - shell. Tutorial how to make your terminal change colorscheme automatically based on time of the day. http://swistak35.com/2015/05/18/terminal-colorscheme-by-day-or-night/
ProcMe: DRY and handy blocks for your arrays
I’ve recently released a small procme gem. It is intended to simplify and DRY tasks like “sort array by several attributes of each object”, “filter list by item attribute values” and so on. It seems to be small and nice addition to Ruby’s syntax, take a look.
Handling Randomly Failing Cucumber Scenarios in CI
I just published a post answering on question how to deal with randomly failing Cucumber tests when it’s blocking your deploy? Take a look »