Skip to content

Commit

Permalink
[api] fix "make apidocs" with ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed May 14, 2012
1 parent 1cfb5c0 commit 673f6cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions docs/api/restility/bin/rest_doc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion docs/api/restility/lib/rest.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/ruby

require 'fileutils'

class XmlFile

@@include_dir = ""
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 673f6cb

Please sign in to comment.