eco-helpers 1.5.10 → 1.5.11

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: a3074007c647b1ebecc8aac29368f17218d05a57fd918ece4d9531849e6075cd
4
- data.tar.gz: 85fe74039f69e7cd268250f3cac40cf84a7a69ac52b113be70be8ff504c0deba
3
+ metadata.gz: 9b9af4f974524b36ddd0fad5316d37281f0a9a2e7dd2f03d2f5febbaef957313
4
+ data.tar.gz: '003906cbfc9389e184b238001997ad1f444355cfbccd9d609f9197445ad3a369'
5
5
  SHA512:
6
- metadata.gz: 8baf56c80119b6acbabd979e4d421dbe013f056b68d7ff3b0efb9728b2da6788d3be4b464f3a5054c518befa14408a9ba74d89ff6c164d8da3c70dc09e10c08a
7
- data.tar.gz: a93465c18b2c153966066e644f5021d07fbb7df00c928010a3f51865b04212764255e70d89047c643c9a48cf8e3387be9d7806e121dbfee177e8654bbc024b5e
6
+ metadata.gz: 5f3b5aa580a10398ebcbf99203f2e6fd4951a20d45d2edd8fd9fff2c0e894ed18f8a54d0537fef4e281465fd7ef7326454df3647bf80051348e6c56d3215866e
7
+ data.tar.gz: b53b697f1b07ad41bac8550150d3ab7d9cfe6eb842507e5cc77d8bd3a2dc4a8568621f1f2ba849d44440a42c646c7f844336f43de0db058b798c5cdebd643764
@@ -1,7 +1,17 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [1.5.10] - 2021-01-xx
4
+ ## [1.5.11] - 2021-01-xx
5
+
6
+ ### Added
7
+ - `Eco::API::Organization::TagTree#subtag?` to check if the tag is in any subtree.
8
+
9
+ ### Changed
10
+
11
+ ### Fixed
12
+ - `Eco::API::MicroCases#set_supervisor` shouldn't set it if the entry does not have it.
13
+
14
+ ## [1.5.10] - 2021-01-19
5
15
 
6
16
  ### Added
7
17
  ### Changed
@@ -11,9 +11,11 @@ module Eco
11
11
  def set_core_with_supervisor(entry, person, people, supers_job, options)
12
12
  unless options.dig(:exclude, :core) && !person.new?
13
13
  micro.set_core(entry, person, options)
14
- micro.set_supervisor(entry.supervisor_id, person, people, options) do |unkown_id|
15
- # delay setting supervisor if does not exit
16
- supers_job.add(person) {|person| person.supervisor_id = unkown_id}
14
+ if entry.supervisor_id?
15
+ micro.set_supervisor(entry.supervisor_id, person, people, options) do |unkown_id|
16
+ # delay setting supervisor if does not exit
17
+ supers_job.add(person) {|person| person.supervisor_id = unkown_id}
18
+ end
17
19
  end
18
20
  end
19
21
  end
@@ -68,6 +68,13 @@ module Eco
68
68
  tags - tags(depth: depth)
69
69
  end
70
70
 
71
+ # Verifies if a tag exists in the subtree(s).
72
+ # @param key [String] tag to verify.
73
+ # @return [Boolean]
74
+ def subtag?(key)
75
+ subtags.include?(key&.upcase)
76
+ end
77
+
71
78
  # Verifies if a tag exists in the tree.
72
79
  # @param key [String] tag to verify.
73
80
  # @return [Boolean]
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "1.5.10"
2
+ VERSION = "1.5.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.10
4
+ version: 1.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura