Sha256: 68d4f4b67eee376a884a4a40b755b55bb16ec47b2c03cc4fab578687493d1202

Contents?: true

Size: 1.75 KB

Versions: 2

Compression:

Stored size: 1.75 KB

Contents

require 'rubygems'
require 'rake'

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_dependency "jlogger", ">= 0.0.4"
    gem.add_development_dependency "bacon", ">= 0"
    gem.add_development_dependency "yard", ">= 0"
    
    gem.files.include 'jars/*.jar'
    
    # 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/javamarc.jar'
JAVAJAR  = '../../javamarc.jar'



file LOCALJAR => JAVAJAR do |t|
  FileUtils.cp(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-1.4.1 Rakefile
marc4j4r-1.4.0 Rakefile