Sha256: 398be176c08a89856f682cc5bd438b36c54ae373385894bc64c8beaf9a5c30a1

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

here = File.dirname __FILE__
require "#{here}/annotate/version"

module Annotate
  def self.load_tasks
    if File.exists?('Rakefile')
      require 'rake'
      load 'Rakefile'
      # Rails 3 wants to load our .rake files for us.
      # TODO: selectively do this require on Rails 2.x?
      Dir[File.join(File.dirname(__FILE__), 'tasks', '**/*.rake')].each { |rake| load rake }
      return true
    else
      return false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
annotate-2.5.0 lib/annotate.rb
annotate-2.5.0.pre3 lib/annotate.rb
annotate-2.5.0.pre2 lib/annotate.rb
annotate-2.5.0.pre1 lib/annotate.rb