Browse files

More flexible gemspec.

  • Loading branch information...
1 parent 4d34f6a commit 67ef3126b39d75cbf4fed6ff83bb50792f1659a0 Jakub Šťastný aka Botanicus committed Jan 5, 2011
Showing with 28 additions and 79 deletions.
  1. +28 −79 amqp.gemspec
View
107 amqp.gemspec
@@ -1,90 +1,39 @@
#!/usr/bin/env gem build
# encoding: utf-8
-require File.expand_path('../lib/amqp/version', __FILE__)
+require "base64"
+require File.expand_path("../lib/amqp/version", __FILE__)
-spec = Gem::Specification.new do |s|
- s.name = 'amqp'
+Gem::Specification.new do |s|
+ s.name = "amqp"
s.version = AMQP::VERSION
- s.date = '2009-12-29'
- s.summary = 'AMQP client implementation in Ruby/EventMachine'
- s.email = "amqp@tmm1.net"
- s.homepage = "http://amqp.rubyforge.org/"
- s.rubyforge_project = 'amqp'
- s.description = "An implementation of the AMQP protocol in Ruby/EventMachine for writing clients to the RabbitMQ message broker"
+ s.authors = ["Aman Gupta", "Jakub Stastny aka botanicus"]
+ s.homepage = "http://github.com/tmm1/amqp"
+ s.summary = "AMQP client implementation in Ruby/EventMachine."
+ s.description = "An implementation of the AMQP protocol in Ruby/EventMachine for writing clients to the RabbitMQ message broker."
+ s.cert_chain = nil
+ s.email = Base64.decode64("c3Rhc3RueUAxMDFpZGVhcy5jeg==\n")
+
+ # files
+ s.files = `git ls-files`.split("\n")
+ s.require_paths = ["lib"]
+
+ # RDoc
s.has_rdoc = true
s.rdoc_options = '--include=examples'
+ s.extra_rdoc_files = ["README.md"] + Dir.glob("doc/*")
- # ruby -rpp -e' pp `git ls-files`.split("\n").grep(/^(doc|README)/) '
- s.extra_rdoc_files = [
- "README.md",
- "doc/EXAMPLE_01_PINGPONG",
- "doc/EXAMPLE_02_CLOCK",
- "doc/EXAMPLE_03_STOCKS",
- "doc/EXAMPLE_04_MULTICLOCK",
- "doc/EXAMPLE_05_ACK",
- "doc/EXAMPLE_05_POP",
- "doc/EXAMPLE_06_HASHTABLE"
- ]
+ # Dependencies
+ s.add_dependency "eventmachine", ">= 0.12.4"
- s.authors = ["Aman Gupta"]
- s.add_dependency('eventmachine', '>= 0.12.4')
+ begin
+ require "changelog"
+ rescue LoadError
+ warn "You have to have changelog gem installed for post install message"
+ else
+ s.post_install_message = CHANGELOG.new.version_changes
+ end
- # ruby -rpp -e' pp `git ls-files`.split("\n") '
- s.files = [
- "README.md",
- "Rakefile",
- "amqp.gemspec",
- "amqp.todo",
- "doc/EXAMPLE_01_PINGPONG",
- "doc/EXAMPLE_02_CLOCK",
- "doc/EXAMPLE_03_STOCKS",
- "doc/EXAMPLE_04_MULTICLOCK",
- "doc/EXAMPLE_05_ACK",
- "doc/EXAMPLE_05_POP",
- "doc/EXAMPLE_06_HASHTABLE",
- "examples/amqp/simple.rb",
- "examples/mq/ack.rb",
- "examples/mq/clock.rb",
- "examples/mq/pop.rb",
- "examples/mq/hashtable.rb",
- "examples/mq/internal.rb",
- "examples/mq/logger.rb",
- "examples/mq/multiclock.rb",
- "examples/mq/pingpong.rb",
- "examples/mq/primes-simple.rb",
- "examples/mq/primes.rb",
- "examples/mq/stocks.rb",
- "lib/amqp.rb",
- "lib/amqp/version.rb",
- "lib/amqp/buffer.rb",
- "lib/amqp/client.rb",
- "lib/amqp/frame.rb",
- "lib/amqp/protocol.rb",
- "lib/amqp/server.rb",
- "lib/amqp/spec.rb",
- "lib/ext/blankslate.rb",
- "lib/ext/em.rb",
- "lib/ext/emfork.rb",
- "lib/mq.rb",
- "lib/mq/exchange.rb",
- "lib/mq/header.rb",
- "lib/mq/logger.rb",
- "lib/mq/queue.rb",
- "lib/mq/rpc.rb",
- "old/README",
- "old/Rakefile",
- "old/amqp-0.8.json",
- "old/amqp_spec.rb",
- "old/amqpc.rb",
- "old/codegen.rb",
- "protocol/amqp-0.8.json",
- "protocol/amqp-0.8.xml",
- "protocol/codegen.rb",
- "protocol/doc.txt",
- "research/api.rb",
- "research/primes-forked.rb",
- "research/primes-processes.rb",
- "research/primes-threaded.rb"
- ]
+ # RubyForge
+ s.rubyforge_project = "amqp"
end

0 comments on commit 67ef312

Please sign in to comment.