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.
Custom pre-commit hooks with pre-commit gem
pre-commit comes with checks like missing-migrations/merge-conflicts/whitespace/jshint/… and now can also run project-specific checks via config/pre-commit.rb
I used RubyMine 5.0 for a week, here's what I thought
I’m a Vim user. Just give me an editor and get out of my way. But there’s always been something nagging me, it feels like I’m living in the past. So I decided to take the plunge and used RubyMine 5.0 for a week.
Search Amazon in Ruby
After having a difficult time finding an easy-to-use gem for searching Amazon products, I ended up writing my own gem from scratch. It provides a simple Ruby DSL for searching, looking up products, and retrieving “browse nodes” (i.e.: categories). You can find the gem named a2z on Github.
FFI: Foreign Function Interfaces for Fun & Industry
An FFI wrapper is much easier to write and maintain than a C extension, more portable across platforms and languages, and easier for users to install. Here’s when and how to use one.
Yet another Ruby shootout (round 2)
Yet another Ruby shootout (round 2): http://igor-alexandrov.github.com/blog/2013/02/15/yet-another-ruby-shootout-round-2/ [more inside]
What you did not know about Capistrano, yet
Capistrano is probably the oldest but still the most popular Rails deployment tool around. While there is some documentation around, I often end up browsing through the source code. Almost every time I discover things I did not know before. Today, I published a blog post about some great Capistrano features you probably did not know, yet.
Railsview: Ruby on Rails Theme Marketplace
I just launched RailsView a ruby on rails theme marketplace. Railsview has its own gem: You can buy or download themes and add a vest to your app in a few seconds with our gem “xkimo”. You don’t have to worry about converting your path: Railsview sells themes for Rails App. (with the right routes, and right path to your assets pipeline) Full HTML/JS/CSS themes and CSS based themes: With Railsview you can also build CSS based themes. All the Css based theme will be FREE. It’s FREE: It’s completely FREE to join and Railsview is taking 0% cut on our sellers sales until the end of our BETA. Sellers will keep 100% of each sales!
Everyday Rails Testing with RSpec now covers Capybara 2.0 and more
I just released a major update to Everyday Rails Testing with RSpec, my intro book on testing heretofore untested Rails applications. Of note, the update now covers the Capybara 2.0 DSL and RSpec’s preferred expect() syntax. I also rewrote the chapters on model specs and factories. [more inside]
Haml 4.0 released
Haml 4.0 has been released. The new version includes SCSS, Less and Coffeescript filters; better HTML5 support; hyphenated data attributes; security, performance, and thread-safety fixes; and more.
Github Contributors - gem to update static files with contributor list.
I just released Github Contributors gem for easy updating static files with list of Github project contributors list. [more inside]
Ruby Thread#kill and ensure blocks
It turns out ensure blocks are executed inside a Thread even after the Thread is killed. I write about it and show an example here.
Rails Assistant on the Mac App Store
I just launched Rails Assistant on the Mac App Store. It’s a developer tool for Ruby on Rails.
Copying server data from the command-line, safely
I released a command-line tool for One-Time Secret today which is handy for copying sensitive data to and from your servers.
$ gem install onetime
Code Reuse in Ruby -- It's complicated
This 13 page PDF summarizes what I’ve learned about the differences between behavior sharing and implementation sharing techniques (i.e. composition vs. inhertance). Hope it’s useful to you!
Ruby 2.0.0-rc2 - MetaCast
Ruby 2.0 introduces some new features and changes that could impact Ruby developers daily. In this episode* we’ll explore topics such as Module Prepend, Keyword Arguments, Enumerable#lazy, amongst others. With Ruby 2.0 around the corner Ruby developers should be aware of these new changes and how they’ll impact your code. [more inside]
A Casual Stroll Through Discourse's Source Code
Discourse is a new, open source discussion platform built on Rails and Ember.js. [more inside]
Private Job board for Rails Freelancers/Developers
Railyo is a Newly Launched private job board, dedicated for Rails Freelancers/Developers! So if you’re a rails developer - then you might want to signup for some cool projects, startups may find a great developer there! [more inside]
Mousetrap-rails v0.0.9 is out
I’ve just released new version of mousetrap-rails gem. Mousetrap-rails integrates Mousetrap javascript library with Rails Asset Pipeline so you can simple add hotkeys to your rails application.
bundler-audit: patch-level verification for Bundler
bundler-audit provides patch-level verification for Bundler. It will check the gem versions in Gemfile.lock against a local database of advisories. Check whether your Rails apps are updated against the recent Rails vulnerabilities! [more inside]
Avoiding SQL Injection in Rails
I promise this is not related to or prompted by the Rails CVEs today - just coincidental timing. [more inside]
Ruby on Rails vulnerable to mass assignment and SQL injection
Last week I notified the Ruby on Rails security team about a huge vulnerability that I spotted in the latest stable release of Rails and its related gems. As a result the Rails core team published a security advisory today, urging users to upgrade the json gem to the latest stable release. [more inside]
Heatmap generator for Ruby
This gem allows you to generate Heatmaps in Ruby, as easy as 1, 2, 3… read more
I've developed a simple online tool to monitor server/ports, please I need feedback
I have developed an online tool to check if a server or service is up and running (ping, url, custom port). Its simple to use and free, please give it a try: [more inside]
Getting To Know RubyMotion With Laurent Sansonetti
Not familiar with RubyMotion yet? Or want to learn more? Take a few minutes to read part 1 of my interview with Laurent Sansonetti. [more inside]