Sha256: ce3b4bd5d518de30b823d6b6ceb8014a0893fe2f4385a148d243a70b2a4002f8
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
require "rubygems" require "isolate" class Hoe # :nodoc: # This module is a Hoe plugin. You can set its attributes in your # Rakefile's Hoe spec, like this: # # Hoe.plugin :isolate # # Hoe.spec "myproj" do # self.isolate_dir = "tmp/isolated" # end # # NOTE! The Isolate plugin is a little bit special: It messes with # the plugin ordering to make sure that it comes before everything # else. module Isolate # Where should Isolate, um, isolate? [default: <tt>"tmp/gems"</tt>] attr_accessor :isolate_dir def initialize_isolate # :nodoc: # Tee hee! Move ourselves to the front to beat out :test. Hoe.plugins.unshift Hoe.plugins.delete(:isolate) self.isolate_dir ||= "tmp/gems" end def define_isolate_tasks # :nodoc: i = ::Isolate.new self.isolate_dir # TODO: consider sneakily adding test lib deps if they don't exist (self.extra_deps + self.extra_dev_deps).each do |name, version| i.gem name, *Array(version) end i.activate end end end
Version data entries
7 entries across 7 versions & 1 rubygems