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.
RubyEvents: Really simple Ruby style events/callbacks
RubyEvents is a really simple event implementation that hooks into the Object class by default; it can also be used to extend modules and classes as needed with event functionality. Now all your objects can join in the fun of firing events! RubyEvents even offers you callbacks on already defined methods, without having to do the hard work yourself, allowing callbacks on standard library methods without having to monkey patch!
BostonRB June Video Presentations: MacRuby
MacRuby core contributor Joshua Ballanco presented at the June meeting for BostonRB. Part 1 (1hour) Part 2 (30 min)
Bricks: a hybrid object factory/builder, for DRYer tests
Bricks is a hybrid implementation of the object factory/builder patterns, bringing together the convenience of object factories and the flexibility of object builders. If you ever wished you could use several named factories at the same time to build a single object, this is for you.
TcpSyslog is now a gem
Tech-Angels has just launched TcpSyslog 1.0.0 gem. TcpSyslog is rails logger using syslog with TCP instead of UPD.
vim-bundler: bundler like solution for managing vim plugins
I put it there
Ruby Midwest 2011 - Call for Speakers ends 6/25 - Early Bird almost over!
Call for Speakers ends June 25, 2011: Submit a proposal to come share your excitement, experience, and expertise with fellow Rubyists in the Midwest! [more inside]
I just launched simple_eav. Allows you ...
I just launched simple_eav. Allows you to create and persist any number of attributes for a model without a mapped db column. Useful when absolutely necessary otherwise keep writing migrations and pretend this gem doesn’t exist.
GemAWeek Episode 3 - Capybara
Just released episode 3 of GemAWeek: All about Integration Testing with Capybara and RSpec. Check it out for a lightweight alternative to Cucumber.
Redis_orm: Yet Another ORM for Redis
I used a couple of gems to work with Redis key-value store (redis-objects, dm-redis-adapter with dm-core, ohm) but all of them have some drawbacks (even ohm does not have polymorphic associations yet), so I decided to write an ORM for Redis. [more inside]
Laser Infers Block Use Patterns
I’ve written a post full of examples where Laser, a static analyzer being developed for Ruby, can statically infer how a method uses its block argument: does it require a block? Ignore a block? Use it optionally? Laser can tell!
Benchmarking Date.today and Time.now
Curious about how fast Date.today gets processed in comparison to Time.now? I was, so I ran some tests.
Asynchronous callbacks in Ruby C extensions
“Asynchronous callbacks in Ruby C extensions” is my attempt at explaining a technique on how to handle binding asynchronous C libraries to Ruby. It’s an advanced topic, and there’s a very limited amount of information available explaining how to do this (if any?).
Give the RubyGems documentation some love
As part of my ongoing effort to improve RubyGems, I’ve volunteered to help get guides.rubygems.org updated and to make it more useful for end users and plugin developers. Please file tickets to help me figure out what I should be working on.
“Real Time” Search with ElasticSearch
Check out the “realtime” or “reversed” search with ElasticSearch’s percolator feature recently supported by the Tire gem: read the annotated source or grab the plain old gist
.
Capybara 1.0.0 released
Jonas Nicklas just announced the release of Capybara 1.0.0. Congrats, Jonas! [GitHub]
Automatic Login Links
They’re not as scary as you think! They’re no less secure than password-reset links and can give your users a much more pleasant experience. This blog post shows how to implement automatic login links easily and properly.
The Simplicity that is Pow
I have been using Pow a lot lately and learned a bunch so I wanted to share my experiences - The Simplicity that is Pow.
Learn how to build your own cloud platform with Cloud Foundry
Watch as we talk with Ezra Zygmuntowicz about CloudFoundry. Sit back and learn how Cloud Foundry works, what technologies they use, and how they enabling cloud platforms.
Rails 3.1 Asset Pipeline in the Real World
See this blog post to learn what you need to do to your images, JavaScript and CSS when upgrading to Rails 3.1. The post is based on how we handled it at Flowdock.
Cells 3.6 released - Portlets for Rails 3.x
A quick summary of what changed in Cells 3.6 and how we support Rails 3.0 and 3.1 in one gem.
2 require tips for Rails 3.1 assets bundling with sprockets
I just published an article on our blog: 2 require tips for Rails 3.1 assets bundling with sprockets.
EPAS Released (Amazon EC2/Puppet auto signer)
I just released the epas (ec2 puppet auto signer) gem. This gem provides a simple script to autosign ec2 instances into puppet. This way you can launch new instances in ec2 and avoid having to sign them manually.
Book Review - Eloquent Ruby
How to Use Postgres On OS X For Ruby and Rails Development [Screencast]
Over on Ruby Inside, I’ve put together a post that links to a great written writeup of installing and using Postgres for Rails development by 37signals’ Will Jessop but also a screencast version of my own. Enjoy. It has some Rebecca Black action in there.