Skip to content
This repository
Browse code

[api] fix "make apidocs" with ruby 1.9

  • Loading branch information...
commit 673f6cb17a0aaa251f769474d9f86f0468e090c6 1 parent 1cfb5c0
Stephan Kulow authored May 14, 2012
7  docs/api/restility/bin/rest_doc
@@ -3,16 +3,15 @@
3 3
 require 'optparse'
4 4
 require 'rubygems'
5 5
 require 'active_support'
  6
+require 'builder'
6 7
 
7 8
 require 'erb'
8 9
 include ERB::Util
9 10
 
10  
-require "ftools"
11  
-
12 11
 $LOAD_PATH << "#{File.dirname(__FILE__)}/../lib"
13 12
 
14  
-require "rest.rb"
15  
-require "rest_htmlprinter.rb"
  13
+require "rest"
  14
+require "rest_htmlprinter"
16 15
 
17 16
 class Options
18 17
 
4  docs/api/restility/lib/rest.rb
... ...
@@ -1,5 +1,7 @@
1 1
 #!/usr/bin/ruby
2 2
 
  3
+require 'fileutils'
  4
+
3 5
 class XmlFile
4 6
 
5 7
   @@include_dir = ""
@@ -39,7 +41,7 @@ def XmlFile.copy file_name, output_dir
39 41
       end
40 42
     end
41 43
     
42  
-    File.copy( find_file( file_name ), output_dir )
  44
+    FileUtils.copy( find_file( file_name ), output_dir )
43 45
     
44 46
   end
45 47
   

0 notes on commit 673f6cb

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