Sha256: da093af899439c0f05c44f57b44c187c0aea627b1565a4f1f27be1b034f306e5

Contents?: true

Size: 1.49 KB

Versions: 2

Compression:

Stored size: 1.49 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "bert"
    gem.summary = %Q{BERT Serializiation for Ruby}
    gem.description = %Q{BERT Serializiation for Ruby}
    gem.email = "tom@mojombo.com"
    gem.homepage = "http://github.com/mojombo/bert"
    gem.authors = ["Tom Preston-Werner"]
    gem.add_dependency('erlectricity', '>= 1.1.0')
    gem.add_development_dependency("thoughtbot-shoulda")
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

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

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.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 :test => :check_dependencies

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION')
    version = File.read('VERSION')
  else
    version = ""
  end

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "bert #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

task :console do
  exec('irb -I lib -rbert')
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bert-1.0.0 Rakefile
bert-0.2.0 Rakefile