Permalink
Browse files

Switch to using echoe to manage the gem.

  • Loading branch information...
1 parent ff6cfa0 commit db98bd03b52a0c932b9f75f739fd5a1fa86ceb19 Daz Oakley committed Jan 19, 2011
Showing with 21 additions and 59 deletions.
  1. +2 −3 Manifest.txt → Manifest
  2. +19 −26 Rakefile
  3. +0 −2 lib/biomart.rb
  4. +0 −14 script/destroy
  5. +0 −14 script/generate
@@ -9,10 +9,9 @@ lib/biomart/database.rb
lib/biomart/dataset.rb
lib/biomart/filter.rb
lib/biomart/server.rb
-script/console
-script/destroy
-script/generate
tasks/metrics.rake
tasks/shoulda.rake
+tasks/yard.rake
test/test_biomart.rb
test/test_helper.rb
+Manifest
View
@@ -1,32 +1,25 @@
-require "rubygems"
+require 'rubygems'
+require 'rake'
-gem "flog", "= 2.2.0"
-gem "hoe", ">= 2.1.0"
+require './lib/biomart'
-require "hoe"
-require "fileutils"
-require "./lib/biomart"
+begin
+ require 'echoe'
-Hoe.plugin :newgem
-# Hoe.plugin :website
-# Hoe.plugin :cucumberfeatures
+ Echoe.new('biomart', '0.2.0') do |p|
+ p.description = 'A ruby API for interacting with Biomart XML based webservices.'
+ p.url = 'http://github.com/dazoakley/biomart'
+ p.author = 'Darren Oakley'
+ p.email = 'daz.oakley@gmail.com'
+ p.ignore_pattern = ['tmp/*', 'script/*']
+ p.dependencies = [['builder','~>2']]
+ p.development_dependencies = [['shoulda','>= 2.10'],['yard', '>= 0']]
+ end
-# Generate all the Rake tasks
-# Run "rake -T" to see list of generated tasks (from gem root directory)
-$hoe = Hoe.spec "biomart" do
- self.developer "Darren Oakley", "daz.oakley@gmail.com"
- self.rubyforge_name = self.name
- self.url = "http://github.com/dazoakley/biomart"
- self.summary = "A ruby API for interacting with Biomart services."
- self.description = "A ruby API for interacting with Biomart XML based webservices."
- self.extra_deps = [["builder",">= 0"]]
- self.extra_dev_deps = [["shoulda",">= 2.10"]]
- self.extra_rdoc_files = ["README.rdoc"]
+rescue LoadError => boom
+ puts "You are missing a dependency required for meta-operations on this gem."
+ puts "#{boom.to_s.capitalize}."
end
-require "newgem/tasks"
-Dir["tasks/*.rake"].each { |t| load t }
-
-# TODO - want other tests/tasks run by default? Add them to the list
-# remove_task :default
-# task :default => [:spec, :features]
+Dir['tasks/*.rake'].each { |t| load t }
+task :default => [:test]
View
@@ -8,8 +8,6 @@
require "builder"
module Biomart
- VERSION = "0.2.0"
-
# This is the base Biomart error/exception class. Rescue it if
# you want to catch any exceptions that this code might raise.
class BiomartError < StandardError
View
@@ -1,14 +0,0 @@
-#!/usr/bin/env ruby
-APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
-
-begin
- require 'rubigen'
-rescue LoadError
- require 'rubygems'
- require 'rubigen'
-end
-require 'rubigen/scripts/destroy'
-
-ARGV.shift if ['--help', '-h'].include?(ARGV[0])
-RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
-RubiGen::Scripts::Destroy.new.run(ARGV)
View
@@ -1,14 +0,0 @@
-#!/usr/bin/env ruby
-APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
-
-begin
- require 'rubigen'
-rescue LoadError
- require 'rubygems'
- require 'rubigen'
-end
-require 'rubigen/scripts/generate'
-
-ARGV.shift if ['--help', '-h'].include?(ARGV[0])
-RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
-RubiGen::Scripts::Generate.new.run(ARGV)

0 comments on commit db98bd0

Please sign in to comment.