mothership 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,15 @@ class Mothership
21
21
  self.class.new(@command, @context, @inputs.merge(inputs))
22
22
  end
23
23
 
24
+ def without(*names)
25
+ inputs = @inputs.dup
26
+ names.each do |n|
27
+ inputs.delete(n)
28
+ end
29
+
30
+ self.class.new(@command, @context, inputs)
31
+ end
32
+
24
33
  def [](name, *args)
25
34
  return @inputs[name] if @inputs.key?(name) && @inputs[name] != []
26
35
  return @cache[name] if @cache.key? name
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci