rggen-core 0.17.0 → 0.18.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
  SHA256:
3
- metadata.gz: c28329ae5f21a946ec429e99b44d66225af734d17be2586313947cbdd3064c69
4
- data.tar.gz: 567631ff53a088dddbbf6856c1363307708237873c09e446ce82aa0c149f29a5
3
+ metadata.gz: a3d870cf0f36dd58dd0f6b8916139330c671669bee9bca328f1e980915d0ecd8
4
+ data.tar.gz: d637d69bf089c9f4092bb9891dc6cb4c81c682620728868878b83d88daf80dbe
5
5
  SHA512:
6
- metadata.gz: 80108eb60819c05b73ac83d0e00cd51aeb64102001f7cc38104e50a7e4776b89b8dd717d53caf1c277b8377ef00a8cdfe955e894423288ca35204c167b02c78b
7
- data.tar.gz: 197d28acc67982fe90954d5e4d8e079ee984e0c883bf65fd35d265322643752b1219fc93f354391e3930339723b36a5f77aec0a173a4fc931aea7f46d3860a79
6
+ metadata.gz: b9cab065f30c61edd6a60005019502d60f00ec8c796232a6fdaa50cf000927bdb7aaebbdcf0e558bc1c1d71fde256a2f4ebf451cdb13aab65dde548c70226383
7
+ data.tar.gz: c4134d3eee4fbeb0b23c922a4108cd8878c80ee21164947cf6bd8905c871d109b5f70098822c0838cc02482353eea19ac0a218dcdc5f1b685840a12c04f09616
@@ -11,6 +11,7 @@ module RgGen
11
11
  @need_children = true
12
12
  @level = (parent && parent.level + 1) || 0
13
13
  @features = {}
14
+ @component_index = parent&.children&.size || 0
14
15
  post_initialize(*args)
15
16
  block_given? && yield(self)
16
17
  end
@@ -18,6 +19,7 @@ module RgGen
18
19
  attr_reader :parent
19
20
  attr_reader :children
20
21
  attr_reader :level
22
+ attr_reader :component_index
21
23
 
22
24
  def component_name
23
25
  [hierarchy, @base_name].compact.join('@')
@@ -19,7 +19,7 @@ module RgGen
19
19
 
20
20
  def run(builder, options)
21
21
  verbose? && load_setup_file(builder, options[:setup])
22
- puts help_message(builder)
22
+ puts version_message(builder)
23
23
  end
24
24
 
25
25
  private
@@ -32,7 +32,7 @@ module RgGen
32
32
  file.nil? || file.empty? || builder.load_setup_file(file, false)
33
33
  end
34
34
 
35
- def help_message(builder)
35
+ def version_message(builder)
36
36
  [
37
37
  simple_version,
38
38
  *(verbose? && verbose_version(builder) || nil)
@@ -3,7 +3,7 @@
3
3
  module RgGen
4
4
  module Core
5
5
  MAJOR = 0
6
- MINOR = 17
6
+ MINOR = 18
7
7
  PATCH = 0
8
8
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rggen-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taichi Ishitani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-13 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docile
@@ -187,5 +187,5 @@ requirements: []
187
187
  rubygems_version: 3.0.3
188
188
  signing_key:
189
189
  specification_version: 4
190
- summary: rggen-core-0.17.0
190
+ summary: rggen-core-0.18.0
191
191
  test_files: []