lib/buildr/core/util.rb in vic-buildr-1.3.3 vs lib/buildr/core/util.rb in vic-buildr-1.3.4
- old
+ new
@@ -14,11 +14,16 @@
# the License.
require 'rbconfig'
require 'pathname'
-require 'builder' # A different kind of buildr, one we use to create XML.
+autoload :Tempfile, 'tempfile'
+autoload :YAML, 'yaml'
+autoload :REXML, 'rexml/document'
+gem 'xml-simple' ; autoload :XmlSimple, 'xmlsimple'
+gem 'builder' ; autoload :Builder, 'builder' # A different kind of buildr, one we use to create XML.
+require 'highline/import'
module Buildr
module Util
@@ -29,11 +34,11 @@
end
# In order to determine if we are running on a windows OS,
# prefer this function instead of using Gem.win_platform?.
#
- # Gem.win_platform? only checks the RUBY_PLATFORM global,
+ # Gem.win_platform? only checks these RUBY_PLATFORM global,
# that in some cases like when running on JRuby is not
# succifient for our purpose:
#
# For JRuby, the value for RUBY_PLATFORM will always be 'java'
# That's why this function checks on Config::CONFIG['host_os']
@@ -284,6 +289,6 @@
value = self[key].gsub(/[\t\r\n\f\\]/) { |escape| "\\" + {"\t"=>"t", "\r"=>"r", "\n"=>"n", "\f"=>"f", "\\"=>"\\"}[escape] }
"#{key}=#{value}"
}.join("\n")
end
-end
+end
\ No newline at end of file