Permalink
Browse files

added jeweler to generate gemspec

Signed-off-by: Lance Ivy <lance@cainlevy.net>
  • Loading branch information...
1 parent 8b326e9 commit b3741814f5f18a2e21610d5ede121cbf423a3270 @langalex langalex committed with Jun 19, 2009
Showing with 47 additions and 15 deletions.
  1. +5 −0 .document
  2. +5 −2 .gitignore
  3. +33 −13 Rakefile
  4. +4 −0 VERSION.yml
View
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
@@ -1,2 +1,5 @@
-test/debug.log
-rdoc
+*.sw?
+.DS_Store
+coverage
+rdoc
+pkg
View
@@ -1,22 +1,42 @@
+require 'rubygems'
require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "components"
+ gem.summary = %Q{TODO}
+ gem.email = "alex@upstream-berlin.com"
+ gem.homepage = "http://github.com/langalex/components"
+ gem.authors = ["Lance Ivy", "Alexander Lang"]
+
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
+
require 'rake/testtask'
-require 'rake/rdoctask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = false
+end
-desc 'Default: run unit tests.'
task :default => :test
-desc 'Test the components plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
-end
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ if File.exist?('VERSION.yml')
+ config = YAML.load(File.read('VERSION.yml'))
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
+ else
+ version = ""
+ end
-desc 'Generate documentation for the components plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Components'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
+ rdoc.title = "components #{version}"
+ rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
+
View
@@ -0,0 +1,4 @@
+---
+:major: 0
+:minor: 0
+:patch: 1

0 comments on commit b374181

Please sign in to comment.