Sha256: 5f1633566f586274bcd4efc6f84ee311480ee8db4e1b9b3a450a7af33dc94725
Contents?: true
Size: 840 Bytes
Versions: 12
Compression:
Stored size: 840 Bytes
Contents
# require "bundler/gem_tasks" # require 'rake/extensiontask' require 'rake/testtask' require 'pry' Rake::TestTask.new do |t| t.libs << 'test' t.test_files = FileList['test/**/*.rb'] end task :package do prys = `grep -Rn ^[^#]*pry lib/*` if prys.length > 0 puts "Gem packaging failed: please remove all prys" and return end `rm wovnrb-*` `bundle exec gem build wovnrb.gemspec` `bundle exec gem push wovnrb-*` `rm wovnrb-*` end desc 'Run tests' task :default => :test # Rake::ExtensionTask.new 'dom' do |ext| # ext.lib_dir = 'lib/wovnrb' # end # gemspec = Gem::Specification.load('wovnrb.gemspec') # Rake::ExtensionTask.new do |ext| # ext.name = 'dom' # ext.source_pattern = "*.{cpp,h}" # ext.ext_dir = 'ext/wovnrb' # ext.lib_dir = 'lib/wovnrb' # ext.gem_spec = gemspec # end # # task :default => [:compile]
Version data entries
12 entries across 12 versions & 1 rubygems