mothership 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mothership/inputs.rb +9 -0
- data/lib/mothership/version.rb +1 -1
- metadata +3 -3
data/lib/mothership/inputs.rb
CHANGED
@@ -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
|
data/lib/mothership/version.rb
CHANGED
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|