refinery 0.12.1 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -45,6 +45,14 @@ This command executes a single publisher once.
45
45
 
46
46
  Example: bin/pubnow -c config/config.yml sample
47
47
 
48
+ == Tests
49
+
50
+ To run the tests, do one of the following:
51
+
52
+ * Use autotest
53
+ * Use the command `rake`
54
+ * Run by hand with `ruby -Ilib -Itest unit/test_to_run.rb`
55
+
48
56
  === bin/monitor
49
57
 
50
58
  This command is used to run the monitor system. The monitor system tracks the health of the refinery. The monitor should only be run on a single host.
data/README.textile CHANGED
@@ -47,4 +47,12 @@ Example: bin/pubnow -c config/config.yml sample
47
47
 
48
48
  h3. bin/monitor
49
49
 
50
- This command is used to run the monitor system. The monitor system tracks the health of the refinery. The monitor should only be run on a single host.
50
+ This command is used to run the monitor system. The monitor system tracks the health of the refinery. The monitor should only be run on a single host.
51
+
52
+ h2. Tests
53
+
54
+ To run the tests, do one of the following:
55
+
56
+ * Use autotest
57
+ * Use the command `rake`
58
+ * Run by hand with `ruby -Ilib -Itest unit/test_to_run.rb`
data/Rakefile CHANGED
@@ -6,10 +6,10 @@ desc 'Default: run tests.'
6
6
  task :default => [:test]
7
7
 
8
8
  desc 'Run tests.'
9
- task :test do
10
- Dir.glob('test/**/*_test.rb') do |f|
11
- require f
12
- end
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << 'lib' << 'test'
11
+ t.pattern = 'test/**/*_test.rb'
12
+ t.verbose = true
13
13
  end
14
14
 
15
15
  desc 'Generate documentation.'
@@ -39,5 +39,5 @@ begin
39
39
  gemspec.add_dependency "addressable"
40
40
  end
41
41
  rescue LoadError
42
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
42
+ puts "Jeweler not available. Install it with: sudo gem install jeweler"
43
43
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.1
1
+ 0.12.2
data/refinery.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{refinery}
8
- s.version = "0.12.1"
8
+ s.version = "0.12.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anthony Eden"]
12
- s.date = %q{2009-11-21}
12
+ s.date = %q{2010-01-08}
13
13
  s.description = %q{Process data in a distributed fashion.}
14
14
  s.email = %q{anthonyeden@gmail.com}
15
15
  s.executables = ["epub", "monitor", "pubnow", "refinery"]
data/test/test_helper.rb CHANGED
@@ -2,7 +2,7 @@ require 'test/unit'
2
2
  require 'rubygems'
3
3
  require 'shoulda'
4
4
  require 'mocha'
5
- require File.dirname(__FILE__) + '/../lib/refinery'
5
+ require 'refinery'
6
6
 
7
7
  class Test::Unit::TestCase
8
8
  def setup_default_config
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
 
3
3
  class ConfigTest < Test::Unit::TestCase
4
4
  context "the config class" do
@@ -1,7 +1,9 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
+
2
3
  class ConfigureMe
3
4
  include Refinery::Configurable
4
5
  end
6
+
5
7
  class ConfigurableTest < Test::Unit::TestCase
6
8
  context "a class with the configurable module" do
7
9
  should "provide a config" do
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
+
2
3
  class DaemonTest < Test::Unit::TestCase
3
4
  context "a daemon" do
4
5
  setup do
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
+
2
3
  class EventPublisherTest < Test::Unit::TestCase
3
4
  context "an event publisher" do
4
5
  should "raise an error if credentials are not set" do
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
+
2
3
  class HeartbeatTest < Test::Unit::TestCase
3
4
  context "a heartbeat" do
4
5
  setup do
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
+
2
3
  class LogMe
3
4
  include Refinery::Loggable
4
5
  end
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
+
2
3
  class ProcessorTest < Test::Unit::TestCase
3
4
  context "a processor" do
4
5
  setup do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
 
3
3
  class SamplePublisher < Refinery::Publisher
4
4
  end
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
 
3
3
  class QueueMe
4
4
  include Refinery::Configurable
@@ -1,4 +1,5 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
+
2
3
  class ServerTest < Test::Unit::TestCase
3
4
  context "the server class" do
4
5
  should "provide a logger" do
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
 
3
3
  if defined?(Sequel)
4
4
  class StatisticsTest < Test::Unit::TestCase
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
 
3
3
  class UtilitiesIncluded
4
4
  include Refinery::Utilities
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
 
3
3
  class ValidatedWorker < Refinery::Worker
4
4
  include Refinery::Validations
@@ -1,4 +1,4 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
1
+ require 'test_helper'
2
2
 
3
3
  class SampleWorker < Refinery::Worker
4
4
  attr_reader :message
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Eden
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-21 00:00:00 -08:00
12
+ date: 2010-01-08 00:00:00 -10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency