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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a11380ce36e3b7690ce7d75df558b897f513722c
4
- data.tar.gz: b1f5356986f7e8a2ee05ab6d224b972a73e070b7
3
+ metadata.gz: c4f1bb78a5ab3c1031f9a69e7089b858e1bec9a5
4
+ data.tar.gz: ab0d4015eca705a6b6a47bbb774dd84519e47d69
5
5
  SHA512:
6
- metadata.gz: cd644d39b2e91aa77850657c593956ad5d0194839ca713cb6c1bdb9b30d4d169dc59f8813c81681e8d2b1b2f863513caaba23fbf6c397226590ad317ddf6b47b
7
- data.tar.gz: 6ab4e587ab104b59fea22555fa87aa996fa01e5fff44a12d7d3633cae583ff7b175ed3b6c885f71b001ef84eca17fe436d25566be43e063613275f227cca71e9
6
+ metadata.gz: 27edc960edbdfbae7683b0dadc3597a0585ab8d2c595f8ec3832629d49e990c326d728a21be2b84aa430fa19f75eb98793cb1e0e7ba94c84a59979fcefa9c88c
7
+ data.tar.gz: b6fa22f4f0556981b7e0acc576f1209f5bcb361be0c538970a0b0d744585968820cbd29662698d5b98a5af9d608cfbad7b8aed60a894088ffaf40f4c03884d9b
@@ -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
@@ -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 { |x| @list.items << x }
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
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Declare package version
5
5
  module Prospectus
6
- VERSION = '0.2.2'.freeze
6
+ VERSION = '0.3.0'.freeze
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker