Permalink
Browse files

Merge remote-tracking branch 'vazexqi/patch-1'

  • Loading branch information...
2 parents 14f371c + 5788ca8 commit 5568e5698c3672276cc84f7b63117511a23bcbb9 @mojombo mojombo committed May 30, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/jekyll/migrators/typo.rb
@@ -2,6 +2,7 @@
require 'fileutils'
require 'rubygems'
require 'sequel'
+require 'yaml'
module Jekyll
module Typo
@@ -24,7 +25,7 @@ def self.process dbname, user, pass, host='localhost'
FileUtils.mkdir_p '_posts'
db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8')
db[SQL].each do |post|
- next unless post[:state] =~ /Published/
+ next unless post[:state] =~ /published/
name = [ sprintf("%.04d", post[:date].year),
sprintf("%.02d", post[:date].month),

0 comments on commit 5568e56

Please sign in to comment.