This repository has been archived by the owner on Jul 24, 2018. It is now read-only.
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
5 changed files
with
29 additions
and
8 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
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,6 +1,6 @@ | ||
module FluQ::Input | ||
end | ||
|
||
%w'base socket'.each do |name| | ||
%w'base noop socket'.each do |name| | ||
require "fluq/input/#{name}" | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class FluQ::Input::Noop < FluQ::Input::Base | ||
|
||
# Start the server | ||
def run | ||
super | ||
loop { sleep(1e9) } | ||
end | ||
|
||
end |
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,3 +1,3 @@ | ||
module FluQ | ||
VERSION = "0.8.0" | ||
VERSION = "0.8.1" | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'spec_helper' | ||
|
||
describe FluQ::Input::Noop do | ||
|
||
subject { described_class.new "my-feed", [FluQ::Handler::Test] } | ||
it { should be_a(FluQ::Input::Base) } | ||
its(:wrapped_object) { should be_instance_of(described_class) } | ||
|
||
its(:name) { should == "noop" } | ||
its(:description) { should == "noop" } | ||
|
||
end |