Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version bump to 1.2.0, new & improved Rakefile.

  • Loading branch information...
commit ce658c8699c0bdc524ee563cad65a60f85a46c7f 1 parent 4239182
@assaf authored
View
2  CHANGELOG
@@ -1,4 +1,4 @@
-Release 1.1.2 (birkirb: planned)
+Release 1.2.0 (Planned)
* Changed: Refactored enqueue logic to ease filtering.
* Added: Header parameter specifing activation time, ensuring a message
View
73 Rakefile
@@ -1,69 +1,40 @@
-# Adapted from the rake Rakefile.
+require 'rake/testtask'
+require 'rake/rdoctask'
-require "rake/testtask"
-require "rake/rdoctask"
-require "rake/gempackagetask"
+spec = Gem::Specification.load(File.expand_path("reliable-msg.gemspec", File.dirname(__FILE__)))
desc "Default Task"
-task :default => [:tests, :rdoc]
+task :default => :test
-desc "Run test case for Queue API"
-Rake::TestTask.new :test_queue do |test|
- test.verbose = true
- test.test_files = ["test/test-queue.rb"]
-end
-desc "Run test case for Topic API"
-Rake::TestTask.new :test_topic do |test|
- test.verbose = true
- test.test_files = ["test/test-topic.rb"]
-end
-desc "Run test case for Rails integration"
-Rake::TestTask.new :test_rails do |test|
- test.verbose = true
- test.test_files = ["test/test-rails.rb"]
-end
desc "Run all test cases"
-Rake::TestTask.new :tests do |test|
+Rake::TestTask.new do |test|
test.verbose = true
- test.test_files = ["test/*.rb"]
- #test.warning = true
+ test.test_files = ['test/*.rb']
+ test.warning = true
end
-
# Create the documentation.
Rake::RDocTask.new do |rdoc|
- rdoc.main = "README.rdoc"
- rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
- rdoc.title = "Reliable Messaging"
+ rdoc.rdoc_files.include "README.rdoc", "lib/**/*.rb"
+ rdoc.options = spec.rdoc_options
end
-# Create the GEM package.
-gem_spec = Gem::Specification.load('birkirb-reliable-msg.gemspec')
-
-gem = Rake::GemPackageTask.new(gem_spec) do |pkg|
- pkg.need_tar = true
- pkg.need_zip = true
-end
-
-
-desc "Look for TODO and FIXME tags in the code"
-task :todo do
- FileList["**/*.rb"].egrep /#.*(FIXME|TODO|TBD)/
+desc "Push new release to rubyforge and git tag"
+task :push do
+ sh "git push"
+ puts "Tagging version #{spec.version} .."
+ sh "git tag v#{spec.version}"
+ sh "git push --tag"
+ puts "Building and pushing gem .."
+ sh "gem build #{spec.name}.gemspec"
+ sh "gem push #{spec.name}-#{spec.version}.gem"
end
-
-# --------------------------------------------------------------------
-# Creating a release
-
-desc "Make a new release"
-task :release => [:tests, :clobber, :package] do
- puts
- puts "**************************************************************"
- puts "* Release #{spec.version} Complete."
- puts "* Packages ready to upload."
- puts "**************************************************************"
- puts
+desc "Install #{spec.name} locally"
+task :install do
+ sh "gem build #{spec.name}.gemspec"
+ sh "gem install #{spec.name}-#{spec.version}.gem"
end
View
28 birkirb-reliable-msg.gemspec
@@ -1,28 +0,0 @@
-Gem::Specification.new do |spec|
- spec.name = 'birkirb-reliable-msg'
- spec.version = '1.1.2'
- spec.summary = "Reliable messaging and persistent queues for building asynchronous applications in Ruby"
- spec.description = <<-EOF
- This package provides reliable messaging and persistent queues for
- building asynchronous applications in Ruby.
-
- It supports transaction processing, message selectors, priorities,
- delivery semantics, remote queue managers, disk-based and MySQL message
- stores and more.
- EOF
- spec.author = 'Birkir A. Barkarson'
- spec.email = 'birkirb@stoicviking.net'
- spec.homepage = 'http://github.com/birkirb/reliable-msg'
- spec.rubyforge_project = 'reliable-msg'
-
- spec.files = Dir['{bin,test,lib,docs}/**/*', 'README.rdoc', 'MIT-LICENSE', 'Rakefile', 'changelog.txt']
- spec.require_path = 'lib'
- spec.bindir = 'bin'
- spec.executables = ['queues']
- spec.default_executable = 'queues'
-
- spec.has_rdoc = true
- spec.rdoc_options << '--main' << 'README.rdoc' << '--title' << "Reliable Messaging for Ruby"
- spec.extra_rdoc_files = ['README.rdoc']
- spec.add_dependency 'uuid', '~>2.0'
-end
View
12 lib/reliable-msg.rb
@@ -3,7 +3,17 @@
module ReliableMsg
PACKAGE = 'reliable-msg'
- VERSION = '1.1.1'
+
+ # Version number.
+ module Version
+ version = Gem::Specification.load(File.expand_path("../reliable-msg.gemspec", File.dirname(__FILE__))).version.to_s.split(".").map { |i| i.to_i }
+ MAJOR = version[0]
+ MINOR = version[1]
+ PATCH = version[2]
+ STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
+ end
+
+ VERSION = Version::STRING
end
require "reliable-msg/queue"
View
1  lib/reliable-msg/queue-manager.rb
@@ -14,6 +14,7 @@
require "thread"
require "yaml"
require "uuid"
+require "logger"
require "reliable-msg/client"
require "reliable-msg/message-store"
View
4 reliable-msg.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'reliable-msg'
- spec.version = '1.1.1'
+ spec.version = '1.2.0'
spec.summary = "Reliable messaging and persistent queues for building asynchronous applications in Ruby"
spec.description = <<-EOF
This package provides reliable messaging and persistent queues for
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'http://github.com/assaf/reliable-msg'
spec.rubyforge_project = 'reliable-msg'
- spec.files = Dir['{bin,test,lib,docs}/**/*', 'README.rdoc', 'MIT-LICENSE', 'Rakefile', 'changelog.txt']
+ spec.files = Dir['{bin,test,lib,docs}/**/*', 'README.rdoc', 'MIT-LICENSE', 'Rakefile', 'CHANGELOG', 'reliable-msg.gemspec']
spec.require_path = 'lib'
spec.bindir = 'bin'
spec.executables = ['queues']
Please sign in to comment.
Something went wrong with that request. Please try again.