Skip to content

Commit

Permalink
Enable gem building on GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jun 21, 2008
1 parent 516105e commit 0c14544
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
31 changes: 3 additions & 28 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,10 @@ require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'

GEM = "minibot"
VERSION = "0.0.1"
AUTHOR = "David Leal"
EMAIL = "dgleal@gmail.com"
HOMEPAGE = "http://davidleal.com"
SUMMARY = "A mini Ruby IRC bot framework"
load 'minibot.gemspec'

spec = Gem::Specification.new do |s|
s.name = GEM
s.version = VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README", "LICENSE", "TODO"]
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE

# Uncomment this to add a dependency
# s.add_dependency "foo"

s.require_path = 'lib'
s.autorequire = GEM
s.files = %w(LICENSE README TODO Rakefile) + Dir.glob("{lib,specs}/**/*")
end

Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
Rake::GemPackageTask.new(SPEC) do |pkg|
pkg.gem_spec = SPEC
end

task :install => [:package] do
Expand Down
26 changes: 26 additions & 0 deletions minibot.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
GEM = "minibot"
VERSION = "0.0.1"
AUTHOR = "David Leal"
EMAIL = "dgleal@gmail.com"
HOMEPAGE = "http://davidleal.com"
SUMMARY = "A mini Ruby IRC bot framework"

SPEC = Gem::Specification.new do |s|
s.name = GEM
s.version = VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README", "LICENSE", "TODO"]
s.summary = SUMMARY
s.description = s.summary
s.author = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE

# Uncomment this to add a dependency
# s.add_dependency "foo"

s.require_path = 'lib'
s.autorequire = GEM
s.files = %w(LICENSE README TODO Rakefile) + Dir.glob("{lib,specs}/**/*")
end

0 comments on commit 0c14544

Please sign in to comment.