Sha256: 75bd9f006662fa0afb4ae1b03f8e053f3045ba486de6eb4f1513ad68b888072b
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require 'rake' require 'rubygems' require 'carioca' $VERBOSE = nil if Gem::Specification.respond_to?(:find_by_name) begin spec = Gem::Specification.find_by_name('carioca') res = spec.lib_dirs_glob.split('/') rescue LoadError spec = nil end else spec = Gem.searcher.find('carioca') res = Gem.searcher.lib_dirs_for(spec).split('/') end res.pop tasks_path = res.join('/').concat('/lib/carioca/tasks/') Dir["#{tasks_path}/*.rake"].each { |ext| load ext }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
carioca-1.3 | lib/carioca/tasks/rake.rb |
carioca-1.1 | lib/carioca/tasks/rake.rb |