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.
Acceptance Tests at a Single Level of Abstraction
Each acceptance test tells a story: a logical progression through a task within an application. As developers, it’s our responsibility to tell each story in a concise manner and to keep the reader engaged, aware of what is happening, and understanding of the purpose of the story. [more inside]
A few tips for cutting down exception noise
Exceptions should be exceptional, they should be unexpected. But how unexpected can an error be if you see it thirty times a day? [more inside]
The Serialization Duck Type
We’re going to take a look at common Duck Types in Ruby. [more inside]
Downloading track from SoundCloud with Ruby
How to get raw sound track from SoundCloud with Ruby?
The value of the docs badge
I blogged about the value of the docs badge provided by Inch CI and what project maintainers can get out of it. [more inside]
DSL for Pundit
After migrating several projects from Cancan to Pundit i’ve wrote a simple DSL for make writing Pundit’s rules easier pundit_dsl
Role-Based Authorization in Rails
I’ve written an article on Rails authorization, showing how to implement simple role-based authorization, and comparing the Pundit and CanCan gems, with links to the rails-devise-roles example application, which you can generate with Rails Composer.
parse CSV to Hash
For my personal purpose i needed to map complex and unstructured csv files, i’ve wrote a gems csv2hash for help me to do that, is a parser based rules, i hope this gems can be useful for another persons.
Many to many relationships with hstore
In this post, I show you how to build alternative many-to-many relationships without creating join tables. [more inside]
Rails 4.2 active job and global id new gems
I just wrote an introduction about how the new gems active job and global id interact in rails 4.2
FastAttributes 0.7.0 is just released
FastAttributes is a gem which defines attributes with their types in your model and does it in the fastest way. Version 0.7.0 is just released and since now, it supports lenient data types.
Green Ruby News #82
Finished my weekly links harvesting, check the result on Green Ruby News #82.
Make the most of SQS using Ruby
While not particularly famous in the Ruby community, SQS is a really amazing queueing service, check out what it can do for you and how little Ruby code you have to write to use it.
DescriptiveStatistics is a gem that adds...
DescriptiveStatistics is a gem that adds methods to the Enumerable module to allow easy calculation of basic descriptive statistics of Numeric sample data in collections that have included Enumerable such as Array, Hash, Set, and Range. The statistics that can be calculated include Number, Sum, Mean, Median, Mode, Variance, Standard Deviation, Percentile, Percentile Rank, Descriptive Statistics, and Quartiles. [more inside]
Creating a simple ToDo with Rails
Creating a simple ToDo application With Rails.
From Sinatra to Amazon Simple Queue Service (SQS)
Amazon provides Simple Queue Service also knows as SQS. It is a fast, reliable, scalable, fully managed message queuing service in the cloud that you can use from your applications. This is how you can use it from Sinatra/Ruby.
Getting Started with Spree, Wombat and Ninefold
Imagine developing an application where you need to grab shipping data in real time, send products, inventory, and order information over at least ten different APIs including Amazon and eBay. When I first heard that I had to do this, there could only be one answer: “Challenge accepted”. Continue reading.
Easy Gem Configuration Variables with Defaults
Made a thing that makes setting up configurable gem variables with optional defaults super easy. Implementation details here -
Paperdragon: Explicit Image Processing
Paperdragon is a new alternative to Paperclip and CarrierWave. Its very explicit API uses Dragonfly under the hood and gives you control about every aspect for processing uploaded images.
ITTIA DB SQL Now Available for QNX Neutrino RTOS 6.6
ITTIA DB SQL offers big data capabilities for smart embedded systems with limited local resources, enabling the distribution of a large data set across a wide array of devices, and the potential to store millions of rows per device. Applications can then run queries on individual devices, or pool data together in a back-end system for data warehousing and data mining. In this way, developers benefit from highly reliable embedded database software with a strong track record in mission-critical systems.
How you can implement living documentation
This is part 3 in my series about living documentation. Here I discuss effective ways to implement end-to-end tests. Part 2 discussed how we can write better living documentation, and Part 1 discussed why you should give living documentation a chance.
Rails Fundamentals: Include vs Joins
A fundamental Active Record feature known as eager loading regularly trips up new Rails developers to the detriment of their application’s performance. In this post I offer a concrete example illustrating the difference between the includes and joins approaches, complete with a log of the queries executed when each approach is implemented.
Ruby version usage in commercial projects, 2014 edition
Following up on last year’s report, here’s a chart of Ruby versions used in commercial projects, sourced from Semaphore CI.
Ruby resources for intermediate to advanced developers.
After a list of free resources for Ruby beginners, this time we’ve coined a list of handy Ruby resources to follow for intermediate to advanced devs.