eco-helpers 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eco/api/organization/policy_groups.rb +2 -2
- data/lib/eco/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e58350f64df3d047b936f8402176ffdb1d46f03
|
4
|
+
data.tar.gz: 1cc1332c7b32fabb925aceb5c9e9faa2a8d4437a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd72edae894d015e9dcb0f728695a9d85e78f6d8d6d4bfc439c750249f620adcfd497b8705a1942faf006cc0df977b82bc06409a9169183417f67b90254568e
|
7
|
+
data.tar.gz: 333eda620a91b533ba18be046bc9f72ec9a0bdde3ff5b5c94f06a6bfbadaadbe1f191c08d2852ee4024ba540139fbda4747d4690b88dc479dc88b31878f2f6a9
|
@@ -33,7 +33,7 @@ module Eco
|
|
33
33
|
@by_id.fetch(policy_group_id(id_name), nil)
|
34
34
|
end
|
35
35
|
|
36
|
-
def user_pg_ids(initial: [], final: [], non_custom: (
|
36
|
+
def user_pg_ids(initial: [], final: [], non_custom: (non_custom_not_used = true; []), preserve_custom: true)
|
37
37
|
non_custom = to_id([non_custom].flatten.compact)
|
38
38
|
initial = to_id([initial].flatten.compact)
|
39
39
|
final = to_id([final].flatten.compact)
|
@@ -41,7 +41,7 @@ module Eco
|
|
41
41
|
raise "Expected Array for :initial, :final and :custom"
|
42
42
|
end
|
43
43
|
|
44
|
-
if
|
44
|
+
if !non_custom_not_used && preserve_custom
|
45
45
|
initial_custom = initial - non_custom
|
46
46
|
final = final + initial_custom
|
47
47
|
end
|
data/lib/eco/version.rb
CHANGED