eac_templates 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_templates/abstract/with_directory_file_methods.rb +8 -0
- data/lib/eac_templates/modules/ancestor/fs_object.rb +5 -0
- data/lib/eac_templates/sources/fs_object.rb +7 -2
- data/lib/eac_templates/sources/internal_set.rb +5 -0
- data/lib/eac_templates/sources/set.rb +5 -0
- data/lib/eac_templates/sources/single.rb +5 -0
- data/lib/eac_templates/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 522c055175cdd8071434bde5d46f183e3e5b85860245a252652e32f1a1290d1d
|
4
|
+
data.tar.gz: fa967917ba840088f4d9c100d6562c2292868ab364aef53908f694e06ad45e13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cdff6347533d27db344662b811b9c73204a9714fad7c30f43b74700f5ea3d602c8229a012f680c3e9f9cc0b3f5bfd77770392120377957b1d9913fcc770f705
|
7
|
+
data.tar.gz: a3ae082c6e003663774cb8db1ad1f37b0cdfd931dceda4fdf8d46c0a56f958992da42450a7108e14fc0f1c217fd2155c9587a6bcca6dafdab76db05c12f35874
|
@@ -53,6 +53,14 @@ module EacTemplates
|
|
53
53
|
raise ::EacTemplates::Errors::NotFound, "No template found: #{self}"
|
54
54
|
end
|
55
55
|
|
56
|
+
# @return [String]
|
57
|
+
def to_s
|
58
|
+
v = 'NOT_FOUND'
|
59
|
+
v = directory.to_s if directory?
|
60
|
+
v = file.to_s if file?
|
61
|
+
"#{self.class.name}[#{v}]"
|
62
|
+
end
|
63
|
+
|
56
64
|
private
|
57
65
|
|
58
66
|
# @return [EacTemplates::Abstract::Directory]
|
@@ -28,18 +28,23 @@ module EacTemplates
|
|
28
28
|
PATH_FOR_SEARCH_PREFIX
|
29
29
|
end
|
30
30
|
|
31
|
+
# @return [String]
|
32
|
+
def to_s
|
33
|
+
"#{self.class.name}[#{path_for_search}]"
|
34
|
+
end
|
35
|
+
|
31
36
|
protected
|
32
37
|
|
33
38
|
# @return [Array<Pathname>]
|
34
39
|
def real_paths_uncached
|
35
40
|
source_set.included_paths.lazy.map { |source_single| source_single_search(source_single) }
|
36
|
-
.
|
41
|
+
.reject(&:nil?) # rubocop:disable Style/CollectionCompact
|
37
42
|
end
|
38
43
|
|
39
44
|
# @param path [Pathname]
|
40
45
|
# @return [Boolean]
|
41
46
|
def select_path?(path)
|
42
|
-
path.
|
47
|
+
!path.nil? && path.send("#{type}?")
|
43
48
|
end
|
44
49
|
|
45
50
|
# @param source_single [EacTemplates::Sources::Single]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_config
|