Rakefile in leanback-0.4.2 vs Rakefile in leanback-0.5.0

- old
+ new

@@ -13,12 +13,12 @@ Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options gem.name = "leanback" gem.homepage = "http://github.com/obi-a/leanback" gem.license = "MIT" - gem.summary = %Q{lightweight Ruby interface to CouchDB} - gem.description = %Q{lightweight Ruby interface to CouchDB} + gem.summary = %Q{Simple Ruby interface to CouchDB} + gem.description = %Q{Simple Ruby interface to CouchDB} gem.email = "obioraakubue@yahoo.com" gem.authors = ["Obi Akubue"] # Include your dependencies below. Runtime dependencies are required when using your gem, # and development dependencies are only needed for development (ie running rake tasks, tests, etc) # gem.add_runtime_dependency 'jabber4r', '> 0.1' @@ -31,23 +31,14 @@ test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end -require 'rcov/rcovtask' -Rcov::RcovTask.new do |test| - test.libs << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true +task :repl do + leanback_file = File.expand_path(File.join(File.dirname(__FILE__), '..', 'leanback/lib/leanback')) + irb = "bundle exec pry -r #{leanback_file}" + sh irb end -task :default => :test +task :r => :repl -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" - - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "leanback #{version}" - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end +task :default => :test