May 2009
2 posts
Introducing ... JAZZ HANDS
Jazzhands is a set of scripts and tasks that helps integrate the Jasmine javascript testing framework into your rails project. It’s still in a very early stage, so there’s not a lot of documentation, but you can create a project with integrated javascript unit testing (assuming you already have rspec installed on your machine) by doing the following:
rails ./some-project
cd...
Importing your Drupal blog posts to Tumblr with...
You’ll need the mysql and tumblr gems. Comments and tags are thrown to the four winds.
require 'rubygems'
require 'mysql'
require 'tumblr'
def create_post(row)
post(:type => 'regular',
:title => row['title'],
:body => row['body'],
:date => Time.at(row['created'].to_i).localtime
)
end
connection = Mysql.new('YOUR_MYSQL_SERVER', 'YOUR_MYSQL_USER',...