Permalink
Browse files

* Removed hoe to simplify the project setup.

  • Loading branch information...
1 parent ef35b3e commit 791bb19e963863c24f7e2f0ccc7a2fad5ee255fe @donv donv committed Oct 16, 2012
Showing with 39 additions and 28 deletions.
  1. +9 −28 Rakefile
  2. +27 −0 gruff.gemspec
  3. +3 −0 lib/gruff/version.rb
View
37 Rakefile
@@ -1,52 +1,33 @@
-require 'rubygems'
-require 'hoe'
+require 'fileutils'
+require 'rake/clean'
$:.unshift(File.dirname(__FILE__) + "/lib")
-require 'gruff'
+require 'gruff/version'
-Hoe.spec('Gruff') do
- self.name = "gruff"
- self.author = "Geoffrey Grosenbach"
- self.description = "Beautiful graphs for one or multiple datasets. Can be used on websites or in documents."
- self.email = 'boss@topfunky.com'
- self.summary = "Beautiful graphs for one or multiple datasets."
- self.url = "http://nubyonrails.com/pages/gruff"
- self.clean_globs = ['test/output/*.png']
- self.changes = self.paragraphs_of('History.txt', 0..1).join("\n\n")
- self.remote_rdoc_dir = '' # Release to root
-end
+CLEAN << ['pkg', 'test/output/*']
-desc "Simple require on packaged files to make sure they are all there"
-task :verify => :package do
- # An error message will be displayed if files are missing
- if system %(ruby -e "require 'pkg/gruff-#{Gruff::VERSION}/lib/gruff'")
- puts "\nThe library files are present"
- end
- raise "\n*** Gruff::Base::DEBUG must be set to false for releases ***\n\n" if Gruff::Base::DEBUG
+desc "Build the gem"
+task :gem do
+ sh 'gem build gruff.gemspec'
+ FileUtils.mkdir_p 'pkg'
+ FileUtils.mv "gruff-#{Gruff::VERSION}.gem", 'pkg/'
end
-task :release => :verify
-
namespace :test do
-
desc "Run mini tests"
task :mini => :clean do
Dir['test/test_mini*'].each do |file|
system "ruby #{file}"
end
-
end
-
end
##
# Catch unmatched tasks and run them as a unit test.
-#
# Makes it possible to do
#
# rake pie
#
# To run the +test/test_pie+ and +test/test_mini_pie+ files.
-
rule '' do |t|
# Rake::Task["clean"].invoke
Dir["test/test_*#{t.name}*.rb"].each do |filename|
View
27 gruff.gemspec
@@ -0,0 +1,27 @@
+$:.unshift(File.dirname(__FILE__) + "/lib")
+require 'gruff/version'
+
+Gem::Specification.new do |s|
+ s.name = %q{gruff}
+ s.version = Gruff::VERSION
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ['Geoffrey Grosenbach', 'Uwe Kubosch']
+ s.date = Date.today.to_s
+ s.description = %q{Beautiful graphs for one or multiple datasets. Can be used on websites or in documents.}
+ s.email = %q{boss@topfunky.com}
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
+ s.files = ["History.txt", "MIT-LICENSE", "Manifest.txt", "README.txt", "Rakefile", "assets/bubble.png", "assets/city_scene/background/0000.png", "assets/city_scene/background/0600.png", "assets/city_scene/background/2000.png", "assets/city_scene/clouds/cloudy.png", "assets/city_scene/clouds/partly_cloudy.png", "assets/city_scene/clouds/stormy.png", "assets/city_scene/grass/default.png", "assets/city_scene/haze/true.png", "assets/city_scene/number_sample/1.png", "assets/city_scene/number_sample/2.png", "assets/city_scene/number_sample/default.png", "assets/city_scene/sky/0000.png", "assets/city_scene/sky/0200.png", "assets/city_scene/sky/0400.png", "assets/city_scene/sky/0600.png", "assets/city_scene/sky/0800.png", "assets/city_scene/sky/1000.png", "assets/city_scene/sky/1200.png", "assets/city_scene/sky/1400.png", "assets/city_scene/sky/1500.png", "assets/city_scene/sky/1700.png", "assets/city_scene/sky/2000.png", "assets/pc306715.jpg", "assets/plastik/blue.png", "assets/plastik/green.png", "assets/plastik/red.png", "init.rb", "lib/gruff.rb", "lib/gruff/accumulator_bar.rb", "lib/gruff/area.rb", "lib/gruff/bar.rb", "lib/gruff/bar_conversion.rb", "lib/gruff/base.rb", "lib/gruff/bullet.rb", "lib/gruff/deprecated.rb", "lib/gruff/dot.rb", "lib/gruff/line.rb", "lib/gruff/mini/bar.rb", "lib/gruff/mini/legend.rb", "lib/gruff/mini/pie.rb", "lib/gruff/mini/side_bar.rb", "lib/gruff/net.rb", "lib/gruff/photo_bar.rb", "lib/gruff/pie.rb", "lib/gruff/scene.rb", "lib/gruff/side_bar.rb", "lib/gruff/side_stacked_bar.rb", "lib/gruff/spider.rb", "lib/gruff/stacked_area.rb", "lib/gruff/stacked_bar.rb", "lib/gruff/stacked_mixin.rb", "rails_generators/gruff/gruff_generator.rb", "rails_generators/gruff/templates/controller.rb", "rails_generators/gruff/templates/functional_test.rb", "test/gruff_test_case.rb", "test/test_accumulator_bar.rb", "test/test_area.rb", "test/test_bar.rb", "test/test_base.rb", "test/test_bullet.rb", "test/test_dot.rb", "test/test_legend.rb", "test/test_line.rb", "test/test_mini_bar.rb", "test/test_mini_pie.rb", "test/test_mini_side_bar.rb", "test/test_net.rb", "test/test_photo.rb", "test/test_pie.rb", "test/test_scene.rb", "test/test_side_bar.rb", "test/test_sidestacked_bar.rb", "test/test_spider.rb", "test/test_stacked_area.rb", "test/test_stacked_bar.rb"]
+ s.has_rdoc = true
+ s.homepage = %q{http://nubyonrails.com/pages/gruff}
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{gruff}
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{Beautiful graphs for one or multiple datasets.}
+ s.test_files = ["test/test_accumulator_bar.rb", "test/test_area.rb", "test/test_bar.rb", "test/test_base.rb", "test/test_bullet.rb", "test/test_dot.rb", "test/test_legend.rb", "test/test_line.rb", "test/test_mini_bar.rb", "test/test_mini_pie.rb", "test/test_mini_side_bar.rb", "test/test_net.rb", "test/test_photo.rb", "test/test_pie.rb", "test/test_scene.rb", "test/test_side_bar.rb", "test/test_sidestacked_bar.rb", "test/test_spider.rb", "test/test_stacked_area.rb", "test/test_stacked_bar.rb"]
+ s.add_dependency(%q<rmagick>, [">= 2.12.2"])
+
+ # s.specification_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ # s.add_development_dependency(%q<hoe>, [">= 1.8.2"])
+end
View
3 lib/gruff/version.rb
@@ -0,0 +1,3 @@
+module Gruff
+ VERSION = '0.3.7'
+end

0 comments on commit 791bb19

Please sign in to comment.