mothership 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,6 +73,7 @@ class Mothership
73
73
  def get(name, context, *args)
74
74
  return @inputs[name] if @inputs.key?(name)
75
75
 
76
+ before_input = @current_input
76
77
  @current_input = [name, args]
77
78
 
78
79
  if @command && meta = @command.inputs[name]
@@ -93,7 +94,7 @@ class Mothership
93
94
  @inputs[name] = convert_given(meta, context, val, *args)
94
95
  end
95
96
  ensure
96
- @current_input = nil
97
+ @current_input = before_input
97
98
  end
98
99
 
99
100
  def forget(name)
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mothership
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci