eco-helpers 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -2
- data/lib/eco/api/organization/tag_tree.rb +10 -0
- data/lib/eco/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37896bf21f1661d488b3af20ac7ed8ee298536d3e96324308f84459ad0e2abb2
|
4
|
+
data.tar.gz: 05e8eac1fcb530509af91b62c17e89380f3b5ac0926a3a445bd29a309a440c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e90bf526e20a8dde18a64445f07d5bcaadd7038cb5e2070d8e777341a9799f604da94f4aae359772959a7d92da01db658311afa2d765c31882bf59b138dabe
|
7
|
+
data.tar.gz: 338389f47335ae1f01f683ba3d54974ecce8eb70e90243534d835aa5cede39ab44458a37aa800206c018e023ff0e45eb228c7a52721a3e95801606743ae2b971
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [1.5.
|
4
|
+
## [1.5.9] - 2021-01-08
|
5
|
+
|
6
|
+
### Added
|
7
|
+
- `Eco::API::Organization::TagTree#subtags` to get all the tags but those of the highest level.
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
|
13
|
+
## [1.5.8] - 2021-01-05
|
5
14
|
|
6
15
|
### Added
|
7
16
|
### Changed
|
@@ -9,7 +18,7 @@ All notable changes to this project will be documented in this file.
|
|
9
18
|
- `Eco::API::Session::Batch::Jobs#job` shouldn't be calling the post-launch callback function on creation.
|
10
19
|
- `Eco::API::Session#new_job` should include a `&block` parameter.
|
11
20
|
- `Eco::API::UseCases::DefaultCases::RefreshCase`: fixed typo
|
12
|
-
|
21
|
+
|
13
22
|
## [1.5.7] - 2020-12-17
|
14
23
|
|
15
24
|
### Added
|
@@ -46,6 +46,10 @@ module Eco
|
|
46
46
|
@has_tags.empty?
|
47
47
|
end
|
48
48
|
|
49
|
+
# Gets all the tags of the current node tree.
|
50
|
+
# @note
|
51
|
+
# - this will include the upper level tag(s) as well
|
52
|
+
# - to get all but the upper level tag(s) use `subtags` method instead
|
49
53
|
# @param depth [Integer] if empty, returns the list of tag nodes of that level. Otherwise the list of tag nodes of the entire subtree.
|
50
54
|
# @return [Array<String>]
|
51
55
|
def tags(depth: nil)
|
@@ -58,6 +62,12 @@ module Eco
|
|
58
62
|
end
|
59
63
|
end
|
60
64
|
|
65
|
+
# Gets all but the upper level tags of the current node tree.
|
66
|
+
# @return [Array<String>]
|
67
|
+
def subtags
|
68
|
+
tags - tags(depth: depth)
|
69
|
+
end
|
70
|
+
|
61
71
|
# Verifies if a tag exists in the tree.
|
62
72
|
# @param key [String] tag to verify.
|
63
73
|
# @return [Boolean]
|
data/lib/eco/version.rb
CHANGED