Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable gem building on GitHub.

  • Loading branch information...
commit 0c1454429631e4046d8c21281f6be278fc5a4cd6 1 parent 516105e
@david authored
Showing with 29 additions and 28 deletions.
  1. +3 −28 Rakefile
  2. +26 −0 minibot.gemspec
View
31 Rakefile
@@ -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
View
26 minibot.gemspec
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.