Sha256: 7f70798c8ec53cd14126f523f54d09a7d1ed8c588fc5051df6afd0cc0ea76a90

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

require 'rubygems'
require 'rake'
require 'ftools'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "marc4j4r"
    gem.summary = %Q{Use marc4j java library in JRuby in a more ruby-ish way}
    gem.description = %Q{Syntactic sugar and some extra methods to deal with MARC data using the java .jar marc4j}
    gem.email = "bill@dueber.com"
    gem.homepage = "http://github.com/billdueber/javamarc/tree/master/ruby/marc4j4r/"
    gem.authors = ["BillDueber"]
    gem.add_development_dependency "bacon", ">= 0"
    gem.add_development_dependency "yard", ">= 0"
    
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end


# Make sure we've got the right .jar
LOCALJAR = 'jars/marc4j.jar'
JAVAJAR  = '../../marc4j.jar'


file LOCALJAR => JAVAJAR do |t|
  File.copy(JAVAJAR, LOCALJAR)
end
  


require 'rake/testtask'
Rake::TestTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |spec|
    spec.libs << 'spec'
    spec.pattern = 'spec/**/*_spec.rb'
    spec.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :spec => [:check_dependencies, LOCALJAR]

task :default => :spec

begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  task :yardoc do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marc4j4r-0.9.0 Rakefile
marc4j4r-0.2.4 Rakefile