Skip to content
Browse files

[api] fix "make apidocs" with ruby 1.9

  • Loading branch information...
1 parent 1cfb5c0 commit 673f6cb17a0aaa251f769474d9f86f0468e090c6 @coolo coolo committed May 14, 2012
Showing with 6 additions and 5 deletions.
  1. +3 −4 docs/api/restility/bin/rest_doc
  2. +3 −1 docs/api/restility/lib/rest.rb
View
7 docs/api/restility/bin/rest_doc
@@ -3,16 +3,15 @@
require 'optparse'
require 'rubygems'
require 'active_support'
+require 'builder'
require 'erb'
include ERB::Util
-require "ftools"
-
$LOAD_PATH << "#{File.dirname(__FILE__)}/../lib"
-require "rest.rb"
-require "rest_htmlprinter.rb"
+require "rest"
+require "rest_htmlprinter"
class Options
View
4 docs/api/restility/lib/rest.rb
@@ -1,5 +1,7 @@
#!/usr/bin/ruby
+require 'fileutils'
+
class XmlFile
@@include_dir = ""
@@ -39,7 +41,7 @@ def XmlFile.copy file_name, output_dir
end
end
- File.copy( find_file( file_name ), output_dir )
+ FileUtils.copy( find_file( file_name ), output_dir )
end

0 comments on commit 673f6cb

Please sign in to comment.
Something went wrong with that request. Please try again.