contrails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/contrails/chainable.rb +3 -1
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -38,7 +38,7 @@ spec = Gem::Specification.new do |s|
38
38
 
39
39
  # Change these as appropriate
40
40
  s.name = "contrails"
41
- s.version = "0.2.0"
41
+ s.version = "0.2.1"
42
42
  s.summary = "Declarative concurrency for EventMachine"
43
43
  s.author = "Tim Cowlishaw"
44
44
  s.email = "tim@timcowlishaw.co.uk"
@@ -26,7 +26,9 @@ module Contrails
26
26
  end
27
27
 
28
28
  def call(*a)
29
- self.succeed(*run(*a))
29
+ result = run(*a)
30
+ result = result.is_a?(Array) ? result : [result]
31
+ self.succeed(*result)
30
32
  end
31
33
 
32
34
  def to_proc
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: contrails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tim Cowlishaw
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
- hash: -1600641507598680959
76
+ hash: 533098101810096538
77
77
  segments:
78
78
  - 0
79
79
  version: "0"