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.
swift_client v0.0.8 released
The swift_client gem is a really small and powerful alternative to interact with the OpenStack Swift Object Storage.
Testing Neo4j Rails apps and gems
Over the last few weeks I’ve been working on a Sunspot_Neo4j gem, but found it difficult to test that it was working across versions of Neo4j. I ended up creating the Neo4j_Test_Server to do just that without having to setup a bunch of dedicated Neo4j instances. Here’s how.
Infinities - INFINITY ∞ for the infinitely lazy
Annoyed by typing Float::INFINITY? Wish you could just use the word or symbol instead? The infinities gem should do the trick.
Don’t Use “#” In the Paperclip Gem
I’ve learned a whole lot more about ImageMagick commands last week than I ever really wanted to know. The problem was that our uploaded images were having content cropped off the top, bottom, and sides. Like many folks in the Rails world, we pass our attachments through Paperclip to handle all of the nitty gritty resizing operations. I was interested in understanding how we could prevent our content from being cropped…: http://mrfrosti.com/2015/04/28/dont-use-in-the-paperclip-gem/
Awesome Rubies (Compilers, Interpreters, Virtual Machines, Parsers, etc.) List
Hello, I’ve started yet another awesome collection on GitHub over at the Planet Ruby. What’s news? The awesome-rubies repo collects Ruby compilers, interpreters, virtual machines, parsers, docu generators, static code analyzers, type annotations, version managers, etc. Anything missing? Contributions welcome. Cheers.
Fixing a slow Rails development server
We recently helped one of our clients speed up their Rails app in development. Please join us on this journey towards better performance, developer-happiness, and saving $$$!
Newscombinator
Reading a lot of news-sites is tiring. Being top-informed on Reddit, Ycombinator, Makernews, Datatau, Coinspotting and many more has become a hassle. The Newscombinator combines all those sites and grabs it from a publicly available API. [more inside]
Better Persistence with ROM
The blog post of Adam Hawkins with an example of using Ruby Object Mapper. [more inside]
Setting up Atom for Ruby and Rails Development
After using Sublime and Vim for several years, I switched to Atom a year ago, and have not missed one feature from the other two so far. Here are the packages, preferences, and tips I recommend for getting the most out of this great open source editor. [more inside]
ActiveRecord Strict Validations, Minitest, and Shoulda
Are you using Thoughbot’s shoulda gem with Minitest? How about strict validations in ActiveRecord? I think these are great things to add to your Rails backpack of tools. Here’s why.
Your template language is killing the web.
I wrote an article about how template languages increase complexity when building for the modern web.
Slack on Rails
How to add a Slack integration to your Rails apps. (Spoiler alert: it’s super easy.) [more inside]
Some lessons learned using the Google Directory SDK Ruby client
Here are some lessons I learned during a recent project that hit the Google Directory API using the google-api-client gem.
simple rspec helpers that make testing APIs more fun
rspec-api_helper was just released and helps you test your JSON API without parsing and scraping your own API endpoints.
Updates to Rails Composer
An option to disable Rails Turbolinks, installation of the Bundler gem (because RVM no longer installs it automatically), fixed errors with Haml and Slim, and added the rails-stripe-membership-saas example application. See the blog post about Updates to Rails Composer for details.
Splitting your app into smaller apps using RabbitMQ
After many years of development, we realized our app had become too complex, causing development, testing and debugging to be much harder - to solve this problem we used RabbitMQ, moving some functionality outside of main app: http://igorzhivilo.com/rails/splitting-your-app-into-smaller-apps-using-rabbitmq/
Released AS::Duration
I’ve just released AS::Duration, which is an extraction of ActiveSupport::Duration. If you’re in a non-Rails project, and you want the lovely 2.days.ago and 1.month.from_now syntax (but without having to pull in ActiveSupport), this gem is for you!
Lex tool in Ruby released!
I’ve released lex, a Ruby implementation of GNU lex tool. I’m looking forward to community contributions in implementing lexers for the many languages inside the lexers.
How Gemnasium is using docker
Gemnasium explains how they use docker everyday: Gemnasium in Docker wonderland
7 Deadly Sins in Ruby Metaprogramming
My guest post on codeschool blog: 7 Deadly Sins in Ruby Metaprogramming
SOLID Review: Dependency Inversion Principle
The final SOLID principle is known as the Dependency Inversion principle. Arguably the most important of the five principles, the Dependency Inversion principle can be thought of as a culmination of the principles preceding it. Systems that abide by the other SOLID principles tend to follow the Dependency Inversion principle as a result. [more inside]
Gem of Week #17 - datapak gem - work with tabular data packages (.csv files w/ .json)
Hello, over at the Planet Ruby the Gem of the Week series continues with #17 - datapak - that lets you work with tabular data packages (.csv files w/ datapackage.json) using SQLite (w/ ActiveRecord). Full article. Cheers.