contrails 0.2.2 → 0.2.3

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 +5 -1
  3. metadata +4 -6
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.2"
41
+ s.version = "0.2.3"
42
42
  s.summary = "Declarative concurrency for EventMachine"
43
43
  s.author = "Tim Cowlishaw"
44
44
  s.email = "tim@timcowlishaw.co.uk"
@@ -29,7 +29,11 @@ module Contrails
29
29
 
30
30
  def call(*a)
31
31
  result = run(*a)
32
- self.succeed(*result)
32
+ if result.is_a?(Array) #This is ugly, but we have to do it to get around the fact that
33
+ self.succeed(*result) #splat (*) operator will decompose structs too, which we don't want.
34
+ else
35
+ self.succeed(result)
36
+ end
33
37
  end
34
38
 
35
39
  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.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tim Cowlishaw
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-22 00:00:00 +01:00
14
- default_executable:
13
+ date: 2011-08-25 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: eventmachine
@@ -59,7 +58,6 @@ files:
59
58
  - lib/contrails/semaphore.rb
60
59
  - lib/contrails/helpers.rb
61
60
  - lib/contrails.rb
62
- has_rdoc: true
63
61
  homepage: http://github.com/likely/contrails
64
62
  licenses: []
65
63
 
@@ -74,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
72
  requirements:
75
73
  - - ">="
76
74
  - !ruby/object:Gem::Version
77
- hash: -2865547770720461986
75
+ hash: 3462688915451766253
78
76
  segments:
79
77
  - 0
80
78
  version: "0"
@@ -87,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
85
  requirements: []
88
86
 
89
87
  rubyforge_project:
90
- rubygems_version: 1.5.2
88
+ rubygems_version: 1.8.9
91
89
  signing_key:
92
90
  specification_version: 3
93
91
  summary: Declarative concurrency for EventMachine