Permalink
Browse files

moved from hoe to jeweler, gem now up on gemcutter

  • Loading branch information...
1 parent d2f72db commit ebbb933a322adc7a8fc45cca16ad6dcd6ae0ae6a Ben J Woodcroft committed Nov 19, 2009
Showing with 51 additions and 60 deletions.
  1. +0 −3 Manifest.txt
  2. +51 −22 Rakefile
  3. +0 −35 rarff.gemspec
View
@@ -3,6 +3,3 @@ Manifest.txt
README.txt
Rakefile
lib/rarff.rb
-test/test_arff.arff
-test/test_sparse_arff.arff
-test/ts_rarff.rb
View
@@ -1,24 +1,53 @@
require 'rubygems'
-require 'hoe'
-#require './lib/rarff.rb'
-
-gem_name = 'rarff'
-hoe = Hoe.new(gem_name,'0.2.3') do |p|
-
- p.author = "Andy Payne, Ben J Woodcroft"
- p.email = "apayne .at. gmail.com, b.woodcroft@pgrad.unimelb.edu.au"
- p.url = "http://adenserparlance.blogspot.com/2007/01/rarff-simple-arff-library-in-ruby.html"
-
- p.description = 'Rarff is a Ruby library for dealing with Attribute-Relation File Format (ARFF) files. ARFF files are used to specify
-data sets for data mining and machine learning.'
- p.summary = 'Rarff is a Ruby library for dealing with Attribute-Relation File Format (ARFF) files'
-
- p.rdoc_pattern = /(^lib\/.*\.rb$|^examples\/.*\.rb$|^README|^History|^License)/
-
- p.spec_extras = {
- :require_paths => ['lib','test'],
- :has_rdoc => true,
- :extra_rdoc_files => ["README.txt"],
- :rdoc_options => ["--exclude", "test/*", "--main", "README.txt", "--inline-source"]
- }
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "wwood-rarff"
+ gem.summary = %Q{Rarff is a Ruby library for dealing with Attribute-Relation File Format (ARFF) files}
+ gem.description = %Q{Rarff is a Ruby library for dealing with Attribute-Relation File Format (ARFF) files. ARFF files are used to specify
+data sets for data mining and machine learning.}
+ gem.email = "donttrustben near gmail.com"
+ gem.homepage = "http://github.com/wwood/rarff"
+ gem.authors = ["Ben J Woodcroft","Andy Payne"]
+ gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
+ # 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|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "blah #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
end
View
@@ -1,35 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{rarff}
- s.version = "0.2.3"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Andy Payne, Ben J Woodcroft"]
- s.date = %q{2009-02-18}
- s.description = %q{Rarff is a Ruby library for dealing with Attribute-Relation File Format (ARFF) files. ARFF files are used to specify data sets for data mining and machine learning.}
- s.email = %q{apayne .at. gmail.com, b.woodcroft@pgrad.unimelb.edu.au}
- s.extra_rdoc_files = ["README.txt"]
- s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/rarff.rb", "test/test_arff.arff", "test/test_sparse_arff.arff ", "test/ts_rarff.rb", "test/test_rarff.rb"]
- s.has_rdoc = true
- s.homepage = %q{http://adenserparlance.blogspot.com/2007/01/rarff-simple-arff-library-in-ruby.html}
- s.rdoc_options = ["--exclude", "test/*", "--main", "README.txt", "--inline-source"]
- s.require_paths = ["lib", "test"]
- s.rubyforge_project = %q{rarff}
- s.rubygems_version = %q{1.3.1}
- s.summary = %q{Rarff is a Ruby library for dealing with Attribute-Relation File Format (ARFF) files}
- s.test_files = ["test/test_rarff.rb"]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<hoe>, [">= 1.8.3"])
- else
- s.add_dependency(%q<hoe>, [">= 1.8.3"])
- end
- else
- s.add_dependency(%q<hoe>, [">= 1.8.3"])
- end
-end

0 comments on commit ebbb933

Please sign in to comment.