prospectus 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prospectus/item.rb +5 -3
- data/lib/prospectus/list.rb +4 -1
- data/lib/prospectus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f1bb78a5ab3c1031f9a69e7089b858e1bec9a5
|
4
|
+
data.tar.gz: ab0d4015eca705a6b6a47bbb774dd84519e47d69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27edc960edbdfbae7683b0dadc3597a0585ab8d2c595f8ec3832629d49e990c326d728a21be2b84aa430fa19f75eb98793cb1e0e7ba94c84a59979fcefa9c88c
|
7
|
+
data.tar.gz: b6fa22f4f0556981b7e0acc576f1209f5bcb361be0c538970a0b0d744585968820cbd29662698d5b98a5af9d608cfbad7b8aed60a894088ffaf40f4c03884d9b
|
data/lib/prospectus/item.rb
CHANGED
@@ -18,6 +18,11 @@ module Prospectus
|
|
18
18
|
@name
|
19
19
|
end
|
20
20
|
|
21
|
+
def prefix(value)
|
22
|
+
raise('Name not set for sub-item') unless @name
|
23
|
+
@name = value + '::' + @name
|
24
|
+
end
|
25
|
+
|
21
26
|
def noop
|
22
27
|
@expected = 'noop'
|
23
28
|
@actual = 'noop'
|
@@ -63,9 +68,6 @@ module Prospectus
|
|
63
68
|
def deps(&block)
|
64
69
|
dsl = ListDSL.new(@item.list, @options)
|
65
70
|
dsl.instance_eval(&block)
|
66
|
-
@item.list.items.each do |dep|
|
67
|
-
dep.instance_variable_set(:@name, "#{@item.name}::#{dep.name}")
|
68
|
-
end
|
69
71
|
end
|
70
72
|
|
71
73
|
private
|
data/lib/prospectus/list.rb
CHANGED
@@ -32,7 +32,10 @@ module Prospectus
|
|
32
32
|
dsl = ItemDSL.new(item, @options)
|
33
33
|
dsl.instance_eval(&block)
|
34
34
|
@list.items << item
|
35
|
-
item.list.items.each
|
35
|
+
item.list.items.each do |x|
|
36
|
+
x.prefix item.name
|
37
|
+
@list.items << x
|
38
|
+
end
|
36
39
|
end
|
37
40
|
end
|
38
41
|
end
|
data/lib/prospectus/version.rb
CHANGED