stages 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -0,0 +1,11 @@
1
+ module Stages
2
+ class Exhaust < Stage
3
+ def process
4
+ results = []
5
+ while value = input
6
+ results << value
7
+ end
8
+ output results
9
+ end
10
+ end
11
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "stages"
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["The Justice Eight"]
12
- s.date = "2012-01-17"
12
+ s.date = "2012-01-18"
13
13
  s.description = "pipeline builder"
14
14
  s.email = "support@igodigital.com"
15
15
  s.extra_rdoc_files = [
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
30
30
  "lib/stages/count.rb",
31
31
  "lib/stages/each.rb",
32
32
  "lib/stages/emit.rb",
33
+ "lib/stages/exhaust.rb",
33
34
  "lib/stages/map.rb",
34
35
  "lib/stages/restrict.rb",
35
36
  "lib/stages/resume.rb",
@@ -111,6 +111,11 @@ class TestStages < MiniTest::Unit::TestCase
111
111
  assert_equal(%w(a b c d e f g), results)
112
112
  end
113
113
 
114
+ test 'exhaust' do
115
+ pipeline = Each.new(%w(foo bar zut)) | Exhaust.new
116
+ assert_equal(%w(foo bar zut), pipeline.run)
117
+ end
118
+
114
119
  def sing
115
120
  { :do => 'doe a deer a female deer',
116
121
  :re => 'ray a drop of golden sun',
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: stages
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.4
5
+ version: 0.2.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - The Justice Eight
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-01-17 00:00:00 Z
13
+ date: 2012-01-18 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -46,6 +46,7 @@ files:
46
46
  - lib/stages/count.rb
47
47
  - lib/stages/each.rb
48
48
  - lib/stages/emit.rb
49
+ - lib/stages/exhaust.rb
49
50
  - lib/stages/map.rb
50
51
  - lib/stages/restrict.rb
51
52
  - lib/stages/resume.rb
@@ -70,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
71
  requirements:
71
72
  - - ">="
72
73
  - !ruby/object:Gem::Version
73
- hash: 940714069352004572
74
+ hash: 1313525796068718975
74
75
  segments:
75
76
  - 0
76
77
  version: "0"