Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 19 lines (16 sloc) 0.595 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
require 'rubygems/package_task'

ax_elements = Gem::Specification.load('AXElements.gemspec')
Gem::PackageTask.new(ax_elements) { }

desc 'Build and install gem (not including deps)'
task :install => :gem do
  require 'rubygems/installer'
  Gem::Installer.new("pkg/#{ax_elements.file_name}").install
end

desc 'Install dependencies for development'
task :setup_dev do
  require 'rubygems/dependency_installer'
  ax_elements.development_dependencies.each do |dep|
    puts "Installing #{dep.name} (#{dep.requirement})"
    Gem::DependencyInstaller.new.install(dep.name, dep.requirement)
  end
end
Something went wrong with that request. Please try again.