RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

karmiq — 25 posts

Check out a draft of Ruby domain objects persistence in Elasticsearch via the repository pattern. Live application available at (source at Github).
The elasticsearch-model and elasticsearch-rails gems for ActiveModel/Record and Rails integration with Elasticsearch have been released. Read more at
Check out a pre-release version of ActiveModel/Record and Ruby on Rails integrations for Elasticsearch at

(You can generate a fully working Rails application with a single command.)
A 0.2 version of the Tire gem for ElasticSearch has been released with much improved support for ActiveRecord models and lots of small fixes. gem install tire and check out the „ActiveModel Integration” chapter in the Readme.
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.
Get personal with ElasticSearch and feed it with e-mail from your Gmail account! Grab the source code or read the accompanying article.
If you'd like to check out how easy is to put stuff into ElasticSearch with the Tire gem and search it, run ruby elasticoverflow.rb from the following gist. (All instructions are provided in the gist, leave a comment otherwise.)
The Tire gem for ElasticSearch was released. It focuses on Ruby-like API for communication with the ElasticSearch server, comfortable DSL for constructing search queries, and full compatibility with ActiveRecord/ActiveModel. Check out the documentation or kick the tires and generate a fully working Rails application in one line: $ rails new tired -m
Ruby API/DSL for ElasticSearch
“You know, for search”: the slingshot-rb gem for ElasticSearch, the ultimate RESTful HTTP/JSON/distributed/flexible search engine/database.
I have released clearance_http_auth to enable simple, instant HTTP Basic Authentication for applications using Clearance to authenticate users. It's a combination of middleware and a current_user helper method override, and it's very easy to set up and use.
I released monittr, a Ruby interface to load info from multiple Monit instances and a Sinatra extension to display them inside your admin application (see the screenshot). Checkout the source and the background article.
For a workshop on Rails hosting/deployment for a hosting company, I've created number or Sprinkle recipes to explain and install various stacks. If you are a consultant, teacher, evangelist or just curious, you may find some use for them. You'll find the recipes in a Github repository, while some background can be found in an accompanying article.
I have summarized some of my frustrations when working with CouchDB in Ruby. Comments welcome at the gist.
I wrote a short post about Rack middleware use-case examples. Code inside the article or in this gist.
Euruko 2010 summary
Check out brief summary of talks at Euruko 2010 in Kraków: Day One and Day Two, from Markus Prinz.
If you're using Pivotal Tracker and need to print your stories for estimating/discussion, you should have a look on a Ruby script I've created to lay out a nice PDF version of your story cards, ready to print and cutting up. The PDF is generated with Prawn so you should have no trouble modyfing it to suit your needs.
Broader issues with current Rails controversy: Smut On Rails. (If you think this was "storm in a teacup" -- etc. etc. --, read at least this one.)
Pushr, a Sinatra application deploying apps by calling cap deploy when you push to a Git repo, just got refactored and makes it easy to add more notifiers, IRC and Jabber are included.
If you need to teach someone (or yourself) OOP and Ruby, there's nothing better than a game. Read extensive walktrough of building simple game with bunch of sheep and a dog in Shoes framework or browse the source code. (Different steps of building the code are saved in Git tags for easy switching between versions.)
Tiny Sinatra application to deploy your applications with Capistrano by running Github post-receive hooks just got better with support for HTTP Basic Auth, cap task configuration, smarter deployment strategy and Thin backend. Read the summary of changes or grab the source code at Github.
If you're getting "no such file" on sqlite3 after updating/installing some gem recently (could be Merb, Integrity, etc) have a look on this thread on Ruby on Rails: Talk. You have to remove some data_objects/data_mapper related .dll.
Introduction to Rack
Thorough introduction to Rack web server interface and why it matters from Pratik Naik
Make your Rails application “deploy itself” with Pushr, deploying it by Github post-receive hook or by clicking a button in web interface. Read more or browse the source-code.
Have a look at Marley, a blog engine written in Sinatra framework, which has no administrative interface and silly s, but stores content in plain-text files and comes with Capistrano tasks for setting up elaborate Git post-receive hooks to synchronize your content. See the introductory post or source code at Github directly. It has instructive README and has some basic test coverage.
There's a Rails plugin "localized_country_select" which stores country codes, not names, in database and supports localization of country codes at Github. It is well documented and has basic test coverage. Thanks to the Rails I18n team was the localization part so simple it almost hurts .)