Sha256: 550c2608152e774ba77c9c1a46a700cc3ef92e8a9fd110410de188a7d0ae2f37

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

unless defined?(SKIP_ECHOE)
  
#
# GEM settings
#
GEM_ROOT = File.expand_path("#{File.dirname(__FILE__)}/..")

if gem_config = YAML.load(File.read("#{GEM_ROOT}/config/gem.yml"))
  require 'echoe'  

  #
  # a dependency reader
  module Dependency
    @@dependencies = []

    def self.require(file)
      @@dependencies << file
    end

    def self.load
      eval File.read("#{GEM_ROOT}/config/dependencies.rb"), binding
      @@dependencies
    end
  end

  Echoe.new(File.basename(GEM_ROOT), File.read("#{GEM_ROOT}/VERSION")) do |p|  
    gem_config.each do |k,v|
      p.send "#{k}=",v
    end
    
    p.runtime_dependencies = Dependency.load
  end

  desc "Rebuild and install the gem"
  task :rebuild => %w(manifest default build_gemspec package) do
    gem = Dir.glob("pkg/*.gem").sort_by do |filename|
      File.new(filename).mtime
    end.last

    puts "============================================="
    puts "Installing gem..."

    system "gem install #{gem} --no-test --no-ri --no-rdoc > /dev/null 2>&1"

    puts ""
    puts "I built and installed the gem for you. To upload, run "
    puts
    puts "    gem push #{gem}"
  end
end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vex-0.4.2 tasks/echoe.rake
vex-0.3.3 tasks/echoe.rake
vex-0.2.9 tasks/echoe.rake
vex-0.2.8 tasks/echoe.rake
vex-0.2.7 tasks/echoe.rake
vex-0.2.6 tasks/echoe.rake
vex-0.2.5 tasks/echoe.rake
vex-0.2.2 tasks/echoe.rake