Browse files

Make it work with ruby-1.9.1rc2

  • Loading branch information...
1 parent 672b986 commit a5c95871ecb2217063ddd2dac86005e367483162 @xaviershay xaviershay committed Jun 20, 2009
Showing with 5 additions and 6 deletions.
  1. +1 −1 config/environment.rb
  2. +2 −0 lib/enki/config.rb
  3. +2 −5 spec/be_valid_xhtml.rb
View
2 config/environment.rb
@@ -15,7 +15,7 @@
# config.load_paths += %W( #{RAILS_ROOT}/extras )
# Specify gems that this application depends on and have them installed with rake gems:install
- config.gem "RedCloth", :lib => "redcloth", :version => "~> 4.1.0"
+ config.gem "RedCloth", :lib => "redcloth", :version => "~> 4.0"
config.gem "ruby-openid", :lib => "openid", :version => "~> 2.1.0"
config.gem "chronic", :version => "~> 0.2.0"
config.gem "coderay", :version => "~> 0.8.0"
View
2 lib/enki/config.rb
@@ -1,3 +1,5 @@
+require 'delegate'
+
module Enki
class Config < SimpleDelegator
def initialize(file_name)
View
7 spec/be_valid_xhtml.rb
@@ -1,11 +1,8 @@
# Paste me into spec_helper.rb, or save me somewhere else and require me in.
class BeValidXhtml
- # require 'action_controller/test_process'
- # require 'test/unit'
require 'net/http'
- require 'md5'
- require 'ftools'
+ require 'digest/md5'
def initialize(options)
@fragment = options[:fragment]
@@ -122,7 +119,7 @@ def cache_resource(base,resource,extension,fn)
filename = base_filename + extension
parent_dir = File.dirname(filename)
- File.makedirs(parent_dir) unless File.exists?(parent_dir)
+ FileUtils.mkdir_p(parent_dir) unless File.exists?(parent_dir)
File.open(filename, 'r') do |f|
file_md5 = MD5.md5(f.read(f.stat.size)).to_s

0 comments on commit a5c9587

Please sign in to comment.