eco-helpers 0.6.7 → 0.6.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85392e849cd1d52b3d418909563426dd5a0e85df
4
- data.tar.gz: dca53525fdd42a7e8e8a3eeb6ebe402247f2f6df
3
+ metadata.gz: 0e58350f64df3d047b936f8402176ffdb1d46f03
4
+ data.tar.gz: 1cc1332c7b32fabb925aceb5c9e9faa2a8d4437a
5
5
  SHA512:
6
- metadata.gz: 78621678bc8ce2684df57639274b4af7d4dc779c24e747514cce305bf566d0525ee54d9b1cae8ca7ab09854d8a6e8ce3ee1b54a3077a6681821fdad5dc09f13f
7
- data.tar.gz: c3c146afdfab2fda1867ed625cdca68d7ce3908d5eb71458ab3dde07c2af11ac2b79289922bc10e3b8a4436eff2085931a355e42e1ed3c51497f9e6166b7209c
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: (non_custom_used = false; []), preserve_custom: true)
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 non_custom_used && preserve_custom
44
+ if !non_custom_not_used && preserve_custom
45
45
  initial_custom = initial - non_custom
46
46
  final = final + initial_custom
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
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: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura