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.
Errbit: an open source Hoptoad API compatible error catcher
I just released an open source self-hosted exception notifier. It is API compatible with Hoptoad so you just have to point hoptoad_notifier at it. Check it out.
Easy "paranoid" with Rails 3
Small blog article about how you can implement a “paranoid” behaviour (soft delete) in your models in a few lines of code.
Exploring CQRS, Event Sourcing and DDD with Ruby
I just started BankSimplistic, a sandbox for exploring concepts like Command-Query Responsibility Segregation, Event Sourcing and Domain-Driven Design with Ruby. I’m using Rails and Redis for this current implementation. Everyone interested in these topics is welcome to participate in this exploration. You can find more info in the project’s Readme. Check it out!
Deploying, monitoring and securing your Rails application to a clean Ubuntu 10.04 install
Learn in a step by step guide how to setup an Ubuntu 10.04 server with Nginx and Unicorn and deploy your Rails application to it, including Monitoring and also some security best practices. Check it out here.
Measuring complexity of Ruby 1.9 code with metric_abc
I have just released metric_abc. It is a tool that can help you find bad code in your Ruby 1.9 projects. It is much simplier cousin of Flog, but does the job in absence of Flog in Ruby 1.9 world. Check out post on my company’s blog as well.
Redcar 0.4: open commit policy, bracket highlighting, find in project, git integration and more
Redcar 0.4 is out exactly one year after we began porting it to JRuby with 0.3. Tons of new features. Install it with “sudo gem install redcar”
Fetch current user in models
I wrote an article Fetch current user in models, you may know it, but this technique is useful for new comer.
Project, streamlined project workflows
I created Project to help reduce the repetitive nature of common daily tasks. By registering projects against workflows you can quickly create a set of commands that will be run against each project. Check out the Github page here or grab the gem from Rubygems.
Gallerby: gallery generator
I wanted to have a simple static gallery to share pictures with my family. So, this sunday, I released gallerby (demo).
A new database-backed HTTP caching library for OpenURI
open_uri_db_cache extends OpenURI to cache content in a database. This allows you to pull things like RSS feeds faster and be nicer to other servers. Uses ActiveRecord for storage. Honors things like ETag and If-Modified-Since headers.
Code coverage on 1.9 using simplecov
Check out simplecov, a library for code coverage on Ruby 1.9 that sits on top of the built-in Coverage lib and gives you filtering, grouping and merging across test suites (i.e. code coverage for both cucumber and unit tests).
Discussion with a Java switcher
Here is a summary of the many discussions I had with a Java developer who switched to Ruby. Topics addressed: Threads / Concurrency; Rails is slow; Object allocation / Garbage Collection; Tools; ActiveRecord; Tools; What can we do?
Ask for best practices on rails-bestpractices.com
http://rails-bestpractices.com added a new feature, asking for best practices, it allows users to ask for a best practice about any rails-related work, such as “How to detect N+1 queries?” and “How to upload a large file with progress bar?”. Then everyone can post your answer with your own best practice solution to the questions. Check it here.
Map of Upcoming Ruby Conferences
Conference is a top search term here at Rubyflow. This post shows how to create a map of ‘em. Ruby is used to scrape the a list from the web (Hpricot) and geocode it (using Google). A map is then created by calling R from Ruby through Rserve.
'validate_block', a gem to make ActiveRecord validations a little less bad
validate_block is a Ruby gem designed to make the ‘validates_*’ declarations in ActiveRecord modules a little less repetitive, DRYer a bit more scope-able.
Notes on Behavior Driven Development (BDD)
Check out this review on the RSpec Book’s chapter about BDD. Learn why and how to apply the concepts on BDD in your daily work!
Limiting Red: Smarter test builds through metrics
Applying some of the ideas of Kent Becks JunitMax tool to Cucumber. http://blog.josephwilk.net/ruby/limiting-red-smarter-test-builds-through-metrics.html
Example of creating a simple DSL alone.
My investigations about ruby-tricks that allow us to create domain-specific language.
Managing Windows from Ruby or...
How I learned to stop worrying and manage Windows from Linux. http://bit.ly/blog_winrm_part1
Cinch version 1.0 released!
We’ve just released version 1.0 of the Cinch IRC Bot Building Framework, which boasts some awesome new features! Check out the blog post for more information.
How To Clean A Campfire Room Of Uploads
Playing around with Tinder/HTTParty to clean up your campfire uploads. Useful if you only care about your textual transcripts and reaching your file limit.
ZSH completion scripts for RVM and Bundler
For the why day, I just hacked two ZSH completion scripts for Bundler and RVM.
Advice on using Ruby, RVM, Passenger, Rails, Bundler in development
Jeremy Lecour wrote a nice and useful article on how to use ruby, rvm, passenger, rails and bundler while you develop.
pixelglass.es: pixelated class hierarchy
In celebration of _why day pixelglass.es is getting a home on the internet today in an attempt to explore a new way of visualizing class diagrams, and eventually, documentation.
Do you know the official Ruby interpreter "goruby"?
If you don’t know what to do on whyday, do not play code golf! It is frustrating! And it is addictive! And you don’t create something useful by golfing! But it is also fun! And I am not the only one who wants to squeeze code even more. The original Ruby 1.9 interpreter comes with pretty crazy version of itself: a version for code golfing!