audiences 1.1.0 → 1.1.2

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: fb6cd0b15c4418d691457785fc345dda6a357c1a473ab019ed5107a5a1484bf5
4
- data.tar.gz: 358154f7fb716e7730e81bc90097a70e9858cba8112b4f42699a7e4c20183b00
3
+ metadata.gz: 7daef3af618db14ea1ebcabaeb1c9268f86071f15c7c0373b56dd0d63a097b9a
4
+ data.tar.gz: eed9638cb086173bb514fac0e9764a58ec4a3e202f259243bceff64892acd472
5
5
  SHA512:
6
- metadata.gz: 196fce0f288da61bfdba49ba92f47aeba4838c91807597df74e79672037c6c02f9398152203a9b75aab1916e676e452f634e62f668d2dc189956c316f87424c8
7
- data.tar.gz: 04efb326a46b298c02584b991a3532259a624de5e7428574ebc83d783b0a7144d1c1d885c34073e649bdd53ea35d42bb618968e9ed6f2f3df5cf7346d90cf4a0
6
+ metadata.gz: 9aa05ec4daf0bf89945aa15800e26ba610ff6c149c27cd664961b6883b319f263592ac2b876b5f9f1fc3fb93c7c00c7e5d493988693ed629fc32689af70e2a4d
7
+ data.tar.gz: 15c4e951c645ad76dd5b8f6c684f47b1920555b93bb0fd954daf6ac7bec1394996fa073a7ee91dcff4b56eab99d73c467b736baaa0db3fb2dda196c850c43881
@@ -11,6 +11,7 @@ module Audiences
11
11
 
12
12
  def each(...)
13
13
  @groups.values
14
+ .reject(&:empty?)
14
15
  .map { |groups| groups_users(groups.pluck("id")) }
15
16
  .reduce(&:&)
16
17
  &.each(...)
data/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Unreleased
2
2
 
3
+ # Version 1.1.2 (2024-06-18)
4
+
5
+ - Ignore empty groups in criterion [#354](https://github.com/powerhome/audiences/pull/354)
6
+
7
+ # Version 1.1.1 (2024-06-18)
8
+
9
+ - Fix default resource attributes [#342](https://github.com/powerhome/audiences/pull/342)
10
+
3
11
  # Version 1.1.0 (2024-06-10)
4
12
 
5
13
  - Bump a number of libraries (see release notes)
@@ -11,7 +11,7 @@ module Audiences
11
11
  module_function
12
12
 
13
13
  def resources(type:, client: Scim.client, **options)
14
- options = defaults.fetch(type, {}).merge(options)
14
+ options = (defaults[type] || {}).merge(options)
15
15
 
16
16
  ResourcesQuery.new(client, resource_type: type, **options)
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Audiences
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audiences
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-10 00:00:00.000000000 Z
11
+ date: 2024-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.5.9
91
+ rubygems_version: 3.5.11
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Audiences system