-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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}" | ||
|