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.
Linner, a full-featured HTML5 application assembler.
I just launched Linner, a full-featured HTML5 application assembler. [more inside]
A Rubyist Guide to Creating jQuery Plugins
Learn how to create a jQuery plugin using Haml, Sass, and CoffeeScript. Then deploy the plugin to the jQuery plugin repository. Read the full article here.
Protector got StrongParameters and CanCan support
Protector is a Ruby ORM extension for managing security restrictions on a field level. The new 0.5 release features built-in StrongParameters integration and additional gem providing integration layer with CanCan.
Use Belongs_to With Presence Validator
I just wrote a blogpost Use Belongs_to With Presence Validator
Vagrant for Rails developers
I’ve been using Vagrant, a tool for creating instant development environments quite a bit recently. I’ve written a blog post to Introduce Rails developers to vagrant.
slideshow (S9) gem Update - Template Pack, Quick Starter Sample n Plugin Index/Registry
I’ve added a new slideshow update command that lets you update the shortcut index for template packs, quick starter samples and plugins. Issue slideshow update to fetch the latest index (that is, slideshow.index.yml). Template packs include: s5blank, s6blank, impress.js, deck.js, slidy, g5 and more. Cheers.
Karo - A command line companion for a Rails application
I just launched Karo a command line companion for a rails application which makes performing routine commands locally or on the server easier. [more inside]
A simple lexical analyzer written in Ruby
Hi everybody! I launched a simple lexical analyzer a couple of weeks a go. It’s a dependency that I have created for a bigger project of mine. Please check it out here.
Gusteau - a tasteful Chef Solo wrapper and configuration manager v1.1 released
We’ve just released a new version of Gusteau, our favourite way of using Chef Solo. [more inside]
Better Way to Parse User Info From Omniauth Hash
I just wrote a post to handle omniauth type in a much better and cleaner way. Suggestions and improvements in my code are much welcomed
Incremental Redesign with Rails
I just wrote a blog post, Incremental Redesign with Rails, about using prepend_view_path to allow you to incrementally release the new version of your app.
Integration tests vs. Bogus
Bogus verifies that you only stub real method calls. There must be a context in which the stubbed method acts the way you stubbed it, or Bogus will fail your tests. Therefore Bogus checks the contract between mocked components – something that you would usually use integration tests for. [more inside]
Wrote new blog post about whats new in rails 4 app directory
http://raysrashmi.com/2013/07/09/rails4-directory-structure/
Heroku OAuth API with Sinatra
Do more with Heroku OAuth, and their API all running in Sinatra.
Vimscript And You!
Just wrote a article outlining how to TDD a Vim plugin with Vimrunner and Rspec. Vimscript and You!.
The Self-Pipe Trick Explained
This post explains the only safe way to handle Unix signals in the face of waiting on file descriptors (eg. sockets, pipes). This technique is used by awesome server software like Unicorn, Passenger, Foreman, and non-Ruby projects like nginx. Give it a read on RubySource.
Actually good content detection with LanguageFilter
I just created the language_filter gem, which detects and optionally filters multiple categories of language. I’ve seen a few gems that already try to offer this - most notably tjackiw’s obscenity and intridea’s profanity_filter. This gem is based on the former, but is completely refactored and offers many improvements, including the creation multiple, independent filters; simpler configuration; a diverse and growing set of pre-packaged matchlists (for not only profanity, but also sexual, violent, and hateful content); more robust whitelist handling; and much more.
Lita: A multi-service chat bot with extendable behavior
Lita is a chat bot written in Ruby with persistent storage provided by Redis. It can connect to any chat service (given that there is an adapter available for it) and can have new behavior added via handlers. The plugin system is managed with regular RubyGems and Bundler. [more inside]
RSpec 2.14 Released
RSpec 2.14 has been released. Highlights include improvements to the profiler, a --warnings flag, shared example groups scoped by context, a new message expectation syntax (expect(foo).to receive(:bar)), and test spies (expect(foo).to have_received(:bar)).
CouchDB Sinatra REST bare-metal call test application
Some months ago I was involved in configuring an API to use with CouchDB. In the process of this, I created a test application using Sinatra to utilize the various CouchDB REST calls. This is that application. [more inside]