lib/nake/rake.rb in nake-0.0.8 vs lib/nake/rake.rb in nake-0.0.9.pre

- old
+ new

@@ -1,23 +1,15 @@ +# encoding: utf-8 + +require "filelist" # rake is distributed with Ruby 1.9 anyway + module Rake def self.method_missing raise NotImplementedError end def self.const_missing(constant) raise NotImplementedError, "Nake doesn't support Rake::#{constant}, please use normal Rake" - end -end - -# lazy-loading FTW! -def Object.const_missing(constant) - if constant.eql?(:FileList) - begin - require "filelist" - FileList - rescue LoadError - raise LoadError, "You have to install filelist gem!" - end end end module Nake module RakeDSL