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.
What's new in Haml 3.2?
Here’s a writeup on some of the changes coming in Haml 3.2, now in beta.
Learn about your gems
…by quickly finding their docs.
Ruby Hash - Fetch - Returning a (Default) Value for a Key That Does Not Exist
I just launched Ruby Hash - Fetch - Returning a (Default) Value for a Key That Does Not Exist
GitHub API v3 command line access
Much improved version of github_cli gem has been released. It sports better configuration, generous test suite and smoother interface. Comments/suggestions/observations are more than welcome.
Investigate slow methods in your Ruby app /w StackTracy
Investigate slow methods in your stacktrace with this cool little tool that is StackTracy. Read more
NeoSocial Example App:Connecting to Facebook with Neo4j
Learn how to connect to Facebook with Neo4j using the Neography, Koala, and Sidekiq gems. Plus an awesome visualization of your friends network with D3.js.
jruby-memcached 0.4.0 released
I just released jruby-memcached 0.4.0. Now it runs as a daemon thread, adds a rails cache_store, and makes full use of jruby annotations. Check out more details here
How Go kicks Ruby in real life app
I just published Egoistat a small app written in Go with Backbone.js frontend. It shows number of social shares for specified url, simple stuff. And here’s the blog post describing how Go implementation kicks Ruby in benchmarks, also few tips included there:
Videos of BostonRB Talks in August - Ben Orenstein and Mark Bates
The videos from BostonRB’s monthly meeting are now live! Ben Orenstein gave a talk on refactoring in which he did nothing but live coding. Mark Bates introduced us to the RubyMotion toolchain and gave a demo of the live console. Read more
DHH shows off code from their Basecamp Next rewrite & reveals their advanced caching strategies.
David Heinemeier Hansson shows off code from the Basecamp Next rewrite and reveals their new advanced Russian Doll caching strategy (caching digest to be included in Rails 4.0).
The Greenfield App Continuum
Earlier today, I posted The Greenfield App Continuum, an article describing some of the philosophical choices we make (or don’t) when starting work on a new application.
New Rails Engine for Managing Banner Ads
My colleagues just released ad_man, a new, easy-to-use mountable engine that can help you power a small banner ad system. If you want to support your Rails site with simple banner ads, this may be the piece you need to make it happen. It’s just released, so comments and pull requests are welcome!
Practicing Ruby Monthly - For busy Rubyists who love their eBook readers
I’ve been working on the Practicing Ruby Journal since 2010, and have managed to produce nearly 70 great articles during that time. However, because that’s a lot of content, not everyone is able to get the most out of that service. Today I launched Practicing Ruby Monthly, which is essentially a trimmed down version of my journal that provides readers with one of my finest articles in eBook friendly formats on a monthly basis. Read more
The Gang of Four is Wrong and You Don't Understand Delegation
Getting programming concepts wrong leads to problems understanding them, of course. The Gang of Four cited the original work on delegation and explained it incorrectly because their language couldn’t do it. Get delegation right. Ruby doesn’t.
Open source social media monitoring for every business
After 12 months of grinding it out, I am happy to announce that we have finally published the first version of our open source social media monitoring platform, which will include all sorts of SEO tasks, social engagement, review tracking and so on. The best thing - I got the point across that we used Ruby for …well… everything! Here is the GitHub project. I even made a YouTube video which came out pretty bad but still gives a good idea what the solution is about
Ephemeral, an ORM for non-persisted objects
Ephemeral brings ORM-like functionality to non-persisted objects. The anticipated use case is for an application that consumes an API and materializes one or more collections of objects from a JSON response or XML response. This release brings one-to-many relationships and chainable scopes for your in-memory objects.
Subclassing Module For Fun and Profit
I just blogged about subclassing Module class. Check it out here.
a video on pjax on rails
I just created a video on pjax on rails .
Deploying from Git with Capistrano
With a few changes to our Capistrano configuration, we’re able to deploy a Rails-based web application directly from the source code repository. Here’s how.
Released ffi-extractor 0.1.0
Released ffi-extractor 0.1.0, Ruby FFI bindings to libextractor, a library for extracting metadata from a variety of file formats. Read more
Seedbank 0.2.0 released.
Version 0.2.0 of Seedbank has just been released. Seedbank gives you more control of your Rails seed data, letting you break seed data into individual files with dependencies. You can seed different data for each Rails environment and share common seeds between environments.
tryit -- An alternative to Object#try
After a discussion on StackOverflow, we whipped up an alternative to Rails Object#try called tryit. This could be useful if you need similar functionality in pure Ruby or if chaining try calls annoys you. [Ed: moved code examples into comment]
Bitwise operations in Ruby, and an example application to testing with Rspec
The title says it all - here’s a gentle introduction to some common bitwise operations with the Ruby language, as well as an example of how to apply such operations to simplify some testing scenarios in Rspec. Read more
rolify 3.2 is out - Role management library with resource scoping w/ Mongoid support
rolify gem allows you to manage the roles in your app easily and provides the ability to scope the role on a resource instance or class: user.add_role :moderator, Forum.find(3)
It integrates smoothly with Devise and CanCan to build a full authentication/authorization stack Read more
Synchronized Times In Ruby & JavaScript Acceptance Tests Using Capybara, Timecop & Sinon.JS
What if you are working on a rich JavaScript application that is backed and tested by something like a Rails application and you want to alter the test browser’s clock?