Sha256: 8716db9e5c9af30ea8fdcdae771d43f4a0a57c2247dcd55004ec5d3edc4229d3
Contents?: true
Size: 780 Bytes
Versions: 6
Compression:
Stored size: 780 Bytes
Contents
#!/usr/bin/env rake require 'rake' require 'rake/clean' require "bundler/gem_tasks" ext_names = %w/event_monitor/ ext_names.each do |ext_name| CLEAN.include Dir.glob("ext/#{ext_name}/*{.o,.log}") CLEAN.include "ext/#{ext_name}/Makefile" CLOBBER.include "ext/#{ext_name}/#{ext_name}.bundle" CLOBBER.include "lib/#{ext_name}.bundle" file "lib/#{ext_name}.bundle" => Dir.glob("ext/#{ext_name}/*{.rb,.m}") do Dir.chdir("ext/#{ext_name}") do ruby "extconf.rb" sh "make" end cp "ext/#{ext_name}/#{ext_name}.bundle", "lib/" end task :spec => "lib/#{ext_name}.bundle" end require 'rspec/core' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] end task :default => :spec
Version data entries
6 entries across 6 versions & 1 rubygems