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 +4 -4
- data/lib/rggen/core/base/component.rb +2 -0
- data/lib/rggen/core/printers.rb +2 -2
- data/lib/rggen/core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d870cf0f36dd58dd0f6b8916139330c671669bee9bca328f1e980915d0ecd8
|
4
|
+
data.tar.gz: d637d69bf089c9f4092bb9891dc6cb4c81c682620728868878b83d88daf80dbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('@')
|
data/lib/rggen/core/printers.rb
CHANGED
@@ -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
|
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
|
35
|
+
def version_message(builder)
|
36
36
|
[
|
37
37
|
simple_version,
|
38
38
|
*(verbose? && verbose_version(builder) || nil)
|
data/lib/rggen/core/version.rb
CHANGED
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.
|
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-
|
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.
|
190
|
+
summary: rggen-core-0.18.0
|
191
191
|
test_files: []
|