Sha256: 25f9514192c6342a4ba6f654a4214a3242834729e6fcd233d25d9231c2721023
Contents?: true
Size: 1014 Bytes
Versions: 29
Compression:
Stored size: 1014 Bytes
Contents
require 'bundler' require 'rake/testtask' Bundler::GemHelper.install_tasks desc 'check that the static libraries shipping with the gem have the same version number as the gem itself' task :check_lib_versions do lib_path = File.expand_path( '../frank-skeleton/libFrank.a', __FILE__) lib_version = `what #{lib_path}`.chomp.split("\n").last.split(" ").last puts "LIBRARY VERSION: #{lib_version}" puts "GEM VERSION: #{Frank::Cucumber::VERSION}" unless lib_version == Frank::Cucumber::VERSION raise <<-EOS RUH ROH. static lib version doesn't match gem version. to fix this: (cd .. && rake build_for_release) EOS end end task :build => :check_lib_versions desc 'open up version.rb' task :edit_version do exec "vim #{File.dirname(__FILE__)}/lib/frank-cucumber/version.rb" end task :ev => :edit_version Rake::TestTask.new do |t| t.libs << "test" t.test_files = FileList['test/*_test.rb','test/*_acceptance.rb'] t.verbose = true end task :default => ["test"]
Version data entries
29 entries across 29 versions & 4 rubygems