pipelining 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aef8520ac28741937feba0a4913b48455b985156
4
- data.tar.gz: d443cf86028593ecbaa96be1611fbb6d07c00cdf
3
+ metadata.gz: fcd77f35320a1498483b3fd62c36c88abb8535a4
4
+ data.tar.gz: 91b2c2c7eefb099aac03aeabeff90fddd62231fb
5
5
  SHA512:
6
- metadata.gz: 6cda72a7d3921bac67542526e7c165e2a2294786a3ae75ca540e5b029e3d7e93bb1213ca139976fd2d31dad9057ca0a8e118553c395df921342d00633ce3e640
7
- data.tar.gz: 27b8d34df8cfec95f02fd19c9c06151ddc5c0b23b0e527623c355e785a327a256f516b1bda619fd366b6ee52bcdeb702278daf399056c851b62f492ab9c1fba7
6
+ metadata.gz: 7dd199da05f22d22a118df44305b3939cc9e8dc531e4441d2a5b47c083b00eea283f1a6c09a1b4c98dd77b6422b58729812d0f5f766e3ff15e7b9ad07385be6e
7
+ data.tar.gz: 7551f9beee348fa950bcf807e999bb7f4f65695b04a537578e1e80dda291573c66184e497ff7541bd5b054dae050a2937e9562c433ae10ef91f3dd107a41c105
data/lib/pipelining.rb CHANGED
@@ -1,23 +1,21 @@
1
1
  require "pipelining/version"
2
2
 
3
- #module Pipelining
4
- def pipe object, &block
5
- Class.new(BasicObject) do
6
- attr_reader :state
3
+ def pipe object, &block
4
+ Class.new(BasicObject) do
5
+ attr_reader :state
7
6
 
8
- def self.run object, &block
9
- runner = new object
10
- runner.instance_eval(&block)
11
- end
7
+ def self.run object, &block
8
+ runner = new object
9
+ runner.instance_eval(&block)
10
+ end
12
11
 
13
- def initialize starting_object
14
- @state = starting_object
15
- end
12
+ def initialize starting_object
13
+ @state = starting_object
14
+ end
16
15
 
17
- def method_missing(m, *args, &block)
18
- @state = state.send(m, *args, &block)
19
- self
20
- end
21
- end.run(object, &block).state
22
- end
23
- #end
16
+ def method_missing(m, *args, &block)
17
+ @state = state.send(m, *args, &block)
18
+ self
19
+ end
20
+ end.run(object, &block).state
21
+ end
@@ -1,3 +1,3 @@
1
1
  module Pipelining
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipelining
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Eklund