Sha256: 01dcf5f67ca98f508d8d41e96f5222a3ffabde9af219864d2e81caacf6a490c9

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 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.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|
  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

1 entries across 1 versions & 1 rubygems

Version Path
marc4j4r-1.2.0 Rakefile