Permalink
Browse files

win32 support *gasp*

  • Loading branch information...
1 parent 973445e commit e6febabcb9139f76a633fc6be12646589b9de7b5 cloudhead committed May 11, 2010
Showing with 12 additions and 2 deletions.
  1. +5 −1 Rakefile
  2. +7 −1 lib/toto.rb
View
@@ -13,7 +13,11 @@ begin
gem.add_development_dependency "riot"
gem.add_dependency "builder"
gem.add_dependency "rack"
- gem.add_dependency "rdiscount"
+ if RUBY_PLATFORM =~ /win32/
+ gem.add_dependency "maruku"
+ else
+ gem.add_dependency "rdiscount"
+ end
end
Jeweler::GemcutterTasks.new
rescue LoadError
View
@@ -5,7 +5,13 @@
require 'digest'
require 'open-uri'
-require 'rdiscount'
+if RUBY_PLATFORM =~ /win32/
+ require 'maruku'
+ Markdown = Maruku
+else
+ require 'rdiscount'
+end
+
require 'builder'
$:.unshift File.dirname(__FILE__)

0 comments on commit e6febab

Please sign in to comment.