Sha256: 03e70ad0165b37576f8b586358a938409f22fccca823ed15e589a8ff2563fcb7
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
require 'tasks/config' require 'pathname' #----------------------------------------------------------------------- # Extensions #----------------------------------------------------------------------- if ext_config = Configuration.for_if_exist?('extension') then namespace :ext do desc "Build the extension(s)" task :build do Hitimes::GEM_SPEC.extensions.each do |extension| path = Pathname.new(extension) parts = path.split conf = parts.last Dir.chdir(path.dirname) do |d| ruby conf.to_s sh "rake default" end end end task :clean do ext_config.configs.each do |extension| path = Pathname.new(extension) parts = path.split conf = parts.last Dir.chdir(path.dirname) do |d| sh "rake clean" end end end task :clobber do ext_config.configs.each do |extension| path = Pathname.new(extension) parts = path.split conf = parts.last Dir.chdir(path.dirname) do |d| sh "rake clobber" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hitimes-0.2.0 | tasks/extension.rake |
hitimes-0.2.1 | tasks/extension.rake |