Sha256: a69302b7494c5324c3a13e8d9470cd5cf98b6adfa3c4e5ade235fb3b2a89b237

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

# -* coding: utf-8 -*-
require 'rake/testtask'
require 'rake/extensiontask'
require 'rake/packagetask'
begin
  require 'bundler/gem_helper'  # instead of 'bundler/gem_tasks' -> need manual
                                # calls of install_tasks (see below)
rescue LoadError
  puts 'If you want to create gem, You must install Bundler'
end

# manual calls of install_tasks to support multiple gemspec files
Bundler::GemHelper.install_tasks(name: "gphys")
Bundler::GemHelper.install_tasks(name: "gphys-bigmem")

require './lib/numru/gphys/version.rb'
def version
  NumRu::GPhys::VERSION
end

task :default => :test
task :test => :compile
Rake::TestTask.new do |t|
  t.libs << 'lib' << 'test'
  t.test_files = FileList['test/test_*.rb'].exclude('test/test_assoccoords.rb')
end

Rake::ExtensionTask.new do |ext|
  ext.name = 'gphys_ext'
  ext.ext_dir = 'ext/numru/gphys'
  ext.lib_dir = 'lib/numru'
end

Rake::PackageTask.new('gphys', "#{version}") do |t|
  t.need_tar_gz = true
  t.package_files.include `git ls-files`.split("\n")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gphys-1.5.0 Rakefile