Sha256: 4a39243453c171e1acf9bf381709d8bb08bb0dd241bcc193afdda5944bef3a63
Contents?: true
Size: 548 Bytes
Versions: 19
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true require 'rake' require 'rubygems' require 'carioca' require 'tty-prompt' require 'pastel' $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 res = [] 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/rake/tasks/') Dir["#{tasks_path}/*.task*"].each { |ext| load ext }
Version data entries
19 entries across 19 versions & 1 rubygems