contrails 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/contrails/serial.rb +1 -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.4"
41
+ s.version = "0.2.5"
42
42
  s.summary = "Declarative concurrency for EventMachine"
43
43
  s.author = "Tim Cowlishaw"
44
44
  s.email = "tim@timcowlishaw.co.uk"
@@ -4,7 +4,7 @@ module Contrails
4
4
  include Chainable
5
5
  def initialize(*procs)
6
6
  @procs = procs
7
- @procs_with_callbacks = @procs.map(&:dup)
7
+ @procs_with_callbacks = @procs.map {|p| p && p.dup}
8
8
  @procs_with_callbacks.zip(@procs_with_callbacks[1..-1]).each do |proc1, proc2|
9
9
  if proc2
10
10
  proc1.callback {|*args| proc2.call(*args) }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: contrails
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
  - Tim Cowlishaw
@@ -72,7 +72,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- hash: 576283954292325633
75
+ hash: -2934458438683895085
76
76
  segments:
77
77
  - 0
78
78
  version: "0"