Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

real-world use was dependant on each's old behavior, so I am revertin…

…g that change. If you need the new, merge-ish behavior, let me know and I will make a new stage for you.
  • Loading branch information...
commit 29d20dbbb55e11154a25dd883c1efd711e0c24c1 1 parent 9867bf3
@mediocretes mediocretes authored
View
2  VERSION
@@ -1 +1 @@
-1.1.1
+1.1.2
View
3  lib/stages/each.rb
@@ -9,8 +9,9 @@ def initialize(things = nil, &block)
def process
if @things
process_things
+ else
+ process_inputs
end
- process_inputs
end
def process_inputs
View
4 stages.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = "stages"
- s.version = "1.1.1"
+ s.version = "1.1.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nathan D Acuff"]
- s.date = "2013-08-21"
+ s.date = "2013-08-22"
s.description = "pipeline builder"
s.email = "support@igodigital.com"
s.extra_rdoc_files = [
View
4 test/test_stages.rb
@@ -164,9 +164,9 @@ class TestStages < MiniTest::Unit::TestCase
assert pipeline.done?
end
- test 'each with input and incoming data prepends given data' do
+ test 'each with input and incoming data only uses given data' do
pipeline = Emit.new([1,2,3]) | Each.new([4,5,6]) | Exhaust.new
- assert_equal([4,5,6,1,2,3], pipeline.run)
+ assert_equal([4,5,6], pipeline.run)
end
test 'limit stage only ticks X times' do
Please sign in to comment.
Something went wrong with that request. Please try again.