Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[api] fix "make apidocs" with ruby 1.9

  • Loading branch information...
commit 673f6cb17a0aaa251f769474d9f86f0468e090c6 1 parent 1cfb5c0
@coolo coolo authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.