Sha256: c170f3a91cc27787ff095668da28f4fc6d4ad1ebdef71e63ad26bf0663283a9c
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
#!/usr/bin/env rake require 'rake' require 'rake/clean' require 'bundler/gem_tasks' require 'shellwords' ext_name = 'skype_api' 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,.h}") 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" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mac-skype-0.0.3-x86_64-darwin-13 | Rakefile |
mac-skype-0.0.2-x86_64-darwin-11 | Rakefile |
mac-skype-0.0.1-x86_64-darwin-11 | Rakefile |