I recently launched Tork for efficient continuous Ruby/Rails/Cucumber testing.
January 27, 2012
Since MetaWhere is not compatible with Rails 3.1/3.2 and we are now directed to use Squeel instead, and I needed to use CanCan MetaWhere depending functionality, I made this gist that replaces MetaWhere with Squeel in CanCan 1.6.7 . Now one can write:
This fixes several issues. Happy coding!
can :manage, User, :permissions.outer => {:type.matches => 'Manage%'}}
This fixes several issues. Happy coding!
I just launched some groovy thing and ya... dev.mensfeld.pl
I just launched some groovy thing and yada yada.
Deploying Rails 3.2 with Ruby 1.9.3 on Heroku railsapps.github.com
Heroku offers Ruby 1.9.2 as a default with its newest stack. But did you know you can use Ruby 1.9.3 (Ruby's current recommended stable release)? Here's how to set up an app with Rails 3.2 and Ruby 1.9.3 on Heroku. See Deploying Rails 3.2 with Ruby 1.9.3 on Heroku.
Guide to Installing Rails 3.2 railsapps.github.com
Detailed instructions (with advice) on how to install the latest release of Rails 3.2. See a Guide to Installing Rails 3.2.
Rails v3.2.1 has been released to provide minor fixes to the previous release. See the Ruby on Rails v3.2.1 Changelogs.
January 26, 2012
Upgrading to Rails 3.2.0 from Rails 3.1.3 dev.mensfeld.pl
I just wrote a small how-to about upgrading to Rails 3.2.0 from Rails 3.1.3. It's not so hard as I thought it'd be and new Rails bring us some cool new features. Enjoy :)
Rail's engines can be a bit of a pain to write tests for. Since they don't run in the full Rails stack it requires a bit of pain to setup anything but the most basic testing. test_engine solves this problem by making it almost as easy to write tests in your engine as it is to write tests in your Rails app. If you have been holding out on testing your engines because you don't know a good way to implement it maybe this is your ticket to get back on track.
How to insert more Disqus comments box in a single page blog.devinterface.com
I wrote a post about how to insert more Disqus comments box in a single page using Ruby on Rails, an iframe and jQuery to dinamically load the comments box.
Can You Write the Fastest and/or Shortest Ruby Code? therubygame.com
therubygame, a good site to learn some ruby trick. You can participate to test your skill or just watch other peoples code and learn some new trick. The task this week, Roman numerals. What are they good IV?.
New RubyStack upgraded to Rails 3.2.0 bitnami.org
We have just released a new version of BitNami Rubystack that supports Rails 3.2.0. BitNami RubyStack is an easy one-click installer for Windows, OS X and Linux. It is self-contained and independent so you can install it without modifying your system. You can also download Virtual Appliances or run the Cloud Images in Amazon AWS.
The new 3.2.0 version includes the following updated components:
* Ruby 1.9.3-p0
* Rails 3.2.0
* SQLite 3.7.3
* Apache 2.2.21
* PHP 5.3.9
* MySQL 5.5.16 for Linux and OS X
* phpMyAdmin 3.4.9
* NGinx 1.0.10
* Git 1.7.8
* Subversion 1.7.1
* Phusion Passenger 3.0.11
* Memcached 1.4.5
* and many more updated packages that you can check in the Changelog.
The new 3.2.0 version includes the following updated components:
* Ruby 1.9.3-p0
* Rails 3.2.0
* SQLite 3.7.3
* Apache 2.2.21
* PHP 5.3.9
* MySQL 5.5.16 for Linux and OS X
* phpMyAdmin 3.4.9
* NGinx 1.0.10
* Git 1.7.8
* Subversion 1.7.1
* Phusion Passenger 3.0.11
* Memcached 1.4.5
* and many more updated packages that you can check in the Changelog.
Setting the Database Free with ActiveRecord's Connection API daniel-azuma.com
I posted an article on the ActiveRecord Connection API, the low-level API that I've been using more and more to interact with the database's advanced features.
January 25, 2012
Ruby driver released for Factual's data platform blog.factual.com
Factual has released an open source officially supported Ruby driver for their data platform. It supports all the main features of their growing data ecosystem, including geolocation queries against their curated Places data.
Preventing "Double Validations" railway.at
Have you ever needed multiple validations on one field (I bet you did!) but didn't like multiple error messages showing up at the same time? Read my blog post to see how you can prevent it.
If you have to process a large amount of external http requests bound by database access, maybe the em-resque gem we've just created could be useful for you. You can get more information in related article about it.
Seeding different Rails environments dennisreimann.de
Here's a little Rails tip for splitting up seed data for various environments.
Testing Rails Engines with RSpec whilefalse.net
Steve Anderson just posted some notes on setting up a new Rails Engine with RSpec from his lightning talk at Ruby North East last night.
500 participants have already signed up for this, the first round of the FREE Online Course: Programming for the Web with Ruby It has gotten the attention of some people we look up to, like Antonio Cangiano and Matt Almonetti and Steve Klabnik, among others. A 10 day course, with the first 4 days already open, awaiting the opening day. We had to open those days, because our participants are just too excited, and needed to have something while we await the start date!
RefineryCMS and Rails 3.2 semanteks.com
A follow-up to my article on deploying a Rails 3.1.3 RefineryCMS app. Updated to account for Rails 3.2 and the new changes to RefineryCMS edge.
January 24, 2012
ITTIA DB SQL now offers new security and authentication features that provide flexible data safety techniques for mission-critical application developers. Using these comprehensive features, software developers can achieve the greatest level of data security in embedded applications by encrypting both network communications and storage media.
The Right Way To Code DCI in Ruby mikepackdev.com
There's been a bit of misrepresentation of DCI in recent articles. I try to amend that by describing The Right Way To Code DCI in Ruby. I would love to hear feedback.
Arlington Ruby's first Unconference February 4 conf.arlingtonruby.org
Arlington Ruby is a group that's less than a year old but we're growing strong and putting together our first unconference. This is a FREE event, just contact us for a coupon code: http://conf.arlingtonruby.org/
Faster controller specs with sorcery lucapette.com
I just published faster controller specs with sorcery. Check it out if you're using RSpec and sorcery in your Rails apps.
Keep your peanut butter out of my chocolate. notmagic.org
The view layer in web app frameworks is broken, and here's why.
Why Every Ruby Developer Should Learn Smalltalk victorsavkin.com
No matter what kind of programming you are doing these days you probably heard a lot about Smalltalk. And there is a reason for that. Its influence on what we are doing and using right now is hard to overestimate. Refactoring, XP, TDD, many VM technologies came from the Smalltalk community. more
January 23, 2012
tconsole: Testing console for Rails github.com
I just launched tconsole, a testing console for Rails with mintiest. It speeds up test performance by preloading your Rails environment (similar to how Spork does), but also helps out with testing workflow by providing a pretty simple syntax for testing single test files or even specific tests.
Check out the README on GitHub for more info!
Check out the README on GitHub for more info!
Typed Fields in Ruby victorsavkin.com
One of a few things I missed when I switched from ActiveRecord to ActiveModel is all type conversions AR takes care of. You just pass a bunch of strings and it knows what to do with them. TypedFields gem does similar kind if stuff but without tying it to ActiveRecord.
More
More
January 22, 2012
systemd socket activation and Ruby ku1ik.com
Backing up with Backup freelancing-gods.com
It seems many Rubyists aren't familiar with the Backup gem - so I've written up a blog post about how I've used it and patched it.
January 20, 2012
I have just pushed Slop version 3.0.0-pre1. Slop is a simple to use command line option parser (yep, another one!). It's lightweight and has an easy to remember API. The v3 branch can be found at slop/v3. Although the README needs some work, I would love some feedback on the API changes and design/usability.
https://github.com/danchoi/docs_on_kindle is a Ruby framework for turning web documentation into attractively formatted and easy-to-navigate Kindle ebooks. The first ebook to come out of this project is for the documentation for Heroku. You can download it at the github page. Contributors are needed to write Kindle ebook recipes for the documentation of other services, APIs, and tools.
January 19, 2012
Rails & Spine.JS Series metaskills.net
I have just published the first 3 parts of a ongoing series of my experiences using Rails and Spine.JS for a complete rewrite of a personal project: Using The CoffeeScript Source, Jasmine Testing Part 1, and Jasmine Testing Part 2
Pipeline style processing with Stages github.com
We just launched a gem to let us do data processing with little modular reusable code snippets, and decided to share. Code and much more info in the stages github repo.
cheatorious: "Being victorious through a means so amazing it cannot possibly be achieved without cheating." (Urban Dictionary)
https://github.com/lfcipriani/cheatorious
Cheatsheets are very good to start learning or keep knowledge of some language or tool, but very often you just don't have the proper cheatsheet at hand when you need to remember that cryptic keyboard shortcut. Furthermore, wouldn't be nice to keep or create your own cheatsheets in a neat ruby DSL? Wouldn't be great if you have easy access to them, such as via command-line interface?
https://github.com/lfcipriani/cheatorious
Cheatsheets are very good to start learning or keep knowledge of some language or tool, but very often you just don't have the proper cheatsheet at hand when you need to remember that cryptic keyboard shortcut. Furthermore, wouldn't be nice to keep or create your own cheatsheets in a neat ruby DSL? Wouldn't be great if you have easy access to them, such as via command-line interface?
I've refactored my pws gem and now it's fun to use :)
January 18, 2012
I have just created a small demo app called Bugs Bunny: a Unicorn served Sinatra application which uses Bunny (a Ruby AMQP 0.9.1 client) to broadcast messages to every Unicorn worker. It requires an AMQP message server, such as RabbitMQ, in order to publish and receive messages. Clone the repository and run it yourself at Github.
Everything you need to compete in the Heroku Neo4j Challenge maxdemarzi.com
Check out the third part of Neo4j on Heroku and you'll have be ready to enter the contest (and win some prizes).
I stumbled across a newish gem, ios-checkboxes, which makes it incredibly easy to include stylish checkboxes in your projects! Rock on, dnagir and tdreyno.
WebSockets, SPDY, SSL, and persistent connections are in, except that our infrastructure can't support most of these use cases. To enable the modern, real-time web, we need to drag our 'back office' architectures into this century.
Seeing double: how Ruby shares string values patshaughnessy.net
I just posted a follow up to my "23 chars" article from two weeks ago: Seeing double: how Ruby shares string values.
January 17, 2012
Could using DCI degrade performance? Benchmarking DCI in Ruby mikepackdev.com
I just wrote an article benchmarking DCI in the Ruby world. I've addressed possible concerns about the performance implications of using the DCI (Data-Context-Interaction) architecture.
TaskJuggler 3.1.0 has been released taskjuggler.org
Are you looking for a to-do list manager with text based input like emacs org-mode that can scale all the way up to a full project management suite if you need to? Then have a look at TaskJuggler! This release features new account reports, comprehensive leave management and the ability to use TaskJuggler as a to-do list manager. In addition to these highlights, we also have a long list of medium to small improvements that can be found in the change log. TaskJuggler is written in Ruby and is hosted on github.
January 16, 2012
ruby_bashrockets.vim converts Ruby 1.8-style hashes to 1.9-style hashes and back.
rails31nav.vim lets you select related Rails files from a simple drop down.
rails31nav.vim lets you select related Rails files from a simple drop down.
A Primer on Ruby C Extensions Part 2 - FFI libfugu.so
Second part on Ruby C exensions, working with FFI. A Primer on Ruby C Extensions Part 2 - FFI
Rails or Sinatra: Best of Both Worlds? rubysource.com
Darren Jones talks about one of Ruby's age-old crossroads in his latest post. Darren talks to some of Ruby's pillars to get perspective and opinion.
See how to build your own Neoflix website with Neo4j, Sinatra and Heroku.
