Skip to content

Commit

Permalink
Cleaned up Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
blaet committed Oct 6, 2014
1 parent 1366486 commit 05b108e
Showing 1 changed file with 7 additions and 34 deletions.
41 changes: 7 additions & 34 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,48 +1,19 @@
# encoding: utf-8
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))

require 'rubygems'
# Bundler
require 'bundler'
require "bundler/gem_tasks"
begin
Bundler.setup
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))

# Rake
require 'rake'
require 'jeweler'
require 'batsir/version'

version = Batsir::VERSION

Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "batsir"
gem.version = version
gem.homepage = "http://github.com/jwkoelewijn/batsir"
gem.license = "MIT"
gem.summary = %Q{Batsir is an execution platform for stage based operation queue execution}
gem.description = %Q{Batsir uses so called stages to define operation queues. These operation queues
consist of several operations that will be executed one after the other. Each stage
is defined by its name and the queue on which it will listen. Once a message is received
on the queue, it is dispatched to a worker in a seperate thread that will pass the message
to each operation in the operation queue.
Operation queues can have 4 different operations, 1 common operation type, and 3 special
purpose operations: retrieval operations (which are always executed before all other operations),
persistence operations (which are always executed after the common operations, but before the
notification operations) and notification operations (which will always be executed last)
This makes it possible to create chains of stages to perform tasks that depend on each
other, but otherwise have a low coupling}
gem.email = "[email protected]"
gem.authors = ["J.W. Koelewijn", "Bram de Vries"]
gem.extra_rdoc_files << "CHANGES.md"
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

require 'rspec/core/rake_task'

desc "Run specs"
Expand All @@ -53,6 +24,8 @@ end
task :default => :spec

require 'rdoc/task'
require 'batsir/version'
version = Batsir::VERSION
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "batsir #{version}"
Expand Down

0 comments on commit 05b108e

Please sign in to comment.