Sha256: 2915ab9685471fc0842d3e8b0d8f6d2050488324dd23565ec7dd22e4d5b4b316

Contents?: true

Size: 859 Bytes

Versions: 22

Compression:

Stored size: 859 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']
  t.options = '-p'
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

22 entries across 22 versions & 1 rubygems

Version Path
wovnrb-2.0.1 Rakefile
wovnrb-2.0.0 Rakefile