Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
added jeweler to generate gemspec
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Ivy <lance@cainlevy.net>
  • Loading branch information
langalex authored and cainlevy committed Aug 1, 2009
1 parent 8b326e9 commit b374181
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .document
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README.rdoc
lib/**/*.rb
bin/*
features/**/*.feature
LICENSE
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
test/debug.log
rdoc
*.sw?
.DS_Store
coverage
rdoc
pkg
46 changes: 33 additions & 13 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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

4 changes: 4 additions & 0 deletions VERSION.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
:major: 0
:minor: 0
:patch: 1

0 comments on commit b374181

Please sign in to comment.