tubes 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tubes.rb +9 -9
  2. metadata +1 -1
data/lib/tubes.rb CHANGED
@@ -181,23 +181,23 @@ class Tube
181
181
  def run_with_args(segment, args, options)
182
182
  if args.empty?
183
183
  if @invocations > 1
184
- if options.present?
185
- segment.send :run, @input, options
186
- else
184
+ if options.empty?
187
185
  segment.send :run, @input
186
+ else
187
+ segment.send :run, @input, options
188
188
  end
189
189
  else
190
- if options.present?
191
- segment.send :run, options
192
- else
190
+ if options.empty?
193
191
  segment.send :run
192
+ else
193
+ segment.send :run, options
194
194
  end
195
195
  end
196
196
  else
197
- if options.present?
198
- segment.send :run, *args, options
199
- else
197
+ if options.empty?
200
198
  segment.send :run, *args
199
+ else
200
+ segment.send :run, *args, options
201
201
  end
202
202
  end
203
203
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: