audiences 1.5.2 → 1.5.3

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: e3e108ec8748bbea76aff846fb5232ab13593d490088aae9b17a24ce560f39e4
4
- data.tar.gz: 921b1c6811c056876b8947f8a3b10147dc065f60e3ef4645c1c8da76b6b51971
3
+ metadata.gz: b2128c153d299dd4a2fa4f94d5830dcf883cbf0b1b9300ca0905d0b5816fcc53
4
+ data.tar.gz: feb6f90c5e3cf41e4331fce62cca0b8fb42cb94f1570283f4b760beec23a1a36
5
5
  SHA512:
6
- metadata.gz: b6884ec82566eef0ebb1d9d24d3f7015b704da6a053a0f58690ab1c6b05c85aa73916fbf2a8c17cd2715cb73b3e82c855c27f630018561f17c916e33acf0cb3e
7
- data.tar.gz: 4624020381b721223e7255da62502505bcc6816305ba3c4b8e8c92af611967004649f8aa424701870ae53e3463732f7ff215f24685c70ab6e5d7247bc4f3c385
6
+ metadata.gz: 7831f938d1841653b4829f8726bcdd491888a048e633fc98fe45a7978e9fb5cb789f5d420ace6b18d66d75782c6a87da4437b046c5a54a0c772b153f2f718eaf
7
+ data.tar.gz: 258c57d51a40fa73560ac5c2a01dedbc567923956fa5f237de8bd714c97f8cdeac95b9aab13fdf7bfb4c60a5b21d23e2fa681072318565c127ab93a9ee36a409
@@ -5,12 +5,22 @@ module Audiences
5
5
  def get
6
6
  resources = Audiences::Scim.resource(params[:scim_path].to_sym)
7
7
  .query(
8
- filter: "displayName co \"#{params[:filter]}\"",
8
+ filter: filter_param,
9
9
  startIndex: params[:startIndex], count: params[:count],
10
10
  attributes: Audiences.exposed_user_attributes.join(",")
11
11
  )
12
12
 
13
13
  render json: resources, except: %w[schemas meta]
14
14
  end
15
+
16
+ private
17
+
18
+ def filter_param
19
+ if params[:query]
20
+ "displayName co \"#{params[:query]}\""
21
+ else
22
+ params[:filter]
23
+ end
24
+ end
15
25
  end
16
26
  end
data/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # Version 1.5.3 (2024-12-19)
4
+
5
+ - Rollback breaking change introduced by 1.5.1 [#479](https://github.com/powerhome/audiences/pull/479)
6
+
3
7
  # Version 1.5.2 (2024-12-19)
4
8
 
5
9
  - Filter sensitive user data out of user list response [#473](https://github.com/powerhome/audiences/pull/473)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Audiences
4
- VERSION = "1.5.2"
4
+ VERSION = "1.5.3"
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.5.2
4
+ version: 1.5.3
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-12-20 00:00:00.000000000 Z
11
+ date: 2024-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.5.22
96
+ rubygems_version: 3.5.23
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Audiences system