userplex 0.15.0 → 0.16.1

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
  SHA256:
3
- metadata.gz: 9278b955d15f31b3a6584f80a78b5d75fba4d6202e72d777a763beeea2f16472
4
- data.tar.gz: 57c4ca2e8a0a1493d9b28e29669f4f756c70a8cdf74c93867fcf45015bcf55d9
3
+ metadata.gz: 409781f6217b2793f17800200901f573048f39ad4fc9f4a647053b375592b7a9
4
+ data.tar.gz: a9700ab860cc4f1334b06dfc163051785ad005656bd86469d0a415359ff61ffd
5
5
  SHA512:
6
- metadata.gz: '002386a33fc5fd3a1b48af9f754974056cce27e4860604afb9f4edca9d85fc3189923694c1d6262ef56bd07b430c3f67329841a25a2d2e22794df77e849bec21'
7
- data.tar.gz: 390655b679cbe659c7626a501054ca25c836bee3e6d96d65e14f8222bf41f2fe70322f9ebcbe79531d65120a65694176d71081795fa24c3295dcb77344a8ad4c
6
+ metadata.gz: 4557cdcd095067429b4fb1c4bf66d0f0c5b5376fea4b158b449c2df66e5c0ecef067dc4f2a00957595784f365c59ac1f225f6fe18ac92f2315119831951661eb
7
+ data.tar.gz: 56cba0d7b12c77bdd1d82e5cd94ef92df5b51131217eb297ea76a3e5293fda52e1e121b7f3c2bbe01b90c56385c81d1de48a89b0e000d47e98b9f95829f4b9af
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.1 (2026-02-03)
4
+
5
+ Full Changelog: [v0.16.0...v0.16.1](https://github.com/dqnamo/userplex-ruby/compare/v0.16.0...v0.16.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client:** always add content-length to post body, even when empty ([2212153](https://github.com/dqnamo/userplex-ruby/commit/22121532c58515209963b4f2df7ae8e421508340))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** update `actions/checkout` version ([047f16e](https://github.com/dqnamo/userplex-ruby/commit/047f16e85b4ff2fa6e458c5bc003fb8f27721704))
15
+ * move `cgi` into dependencies for ruby 4 ([f3bbed2](https://github.com/dqnamo/userplex-ruby/commit/f3bbed2026e0a4ef4c32e28f93bee10530aa66fc))
16
+
17
+ ## 0.16.0 (2026-01-06)
18
+
19
+ Full Changelog: [v0.15.0...v0.16.0](https://github.com/dqnamo/userplex-ruby/compare/v0.15.0...v0.16.0)
20
+
21
+ ### Features
22
+
23
+ * **api:** manual updates ([eec546a](https://github.com/dqnamo/userplex-ruby/commit/eec546a90792b035aa09ea4c194b4e91a8eee8c4))
24
+
3
25
  ## 0.15.0 (2026-01-06)
4
26
 
5
27
  Full Changelog: [v0.14.0...v0.15.0](https://github.com/dqnamo/userplex-ruby/compare/v0.14.0...v0.15.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "userplex", "~> 0.15.0"
18
+ gem "userplex", "~> 0.16.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -30,7 +30,7 @@ userplex = Userplex::Client.new(
30
30
  api_key: ENV["USERPLEX_API_KEY"] # This is the default and can be omitted
31
31
  )
32
32
 
33
- response = userplex.events.capture
33
+ response = userplex.users.identify(user_id: "user_id", email: "REPLACE_ME", name: "REPLACE_ME")
34
34
 
35
35
  puts(response.success)
36
36
  ```
@@ -41,7 +41,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
41
41
 
42
42
  ```ruby
43
43
  begin
44
- event = userplex.events.capture
44
+ event = userplex.events.capture(name: "REPLACE_ME")
45
45
  rescue Userplex::Errors::APIConnectionError => e
46
46
  puts("The server could not be reached")
47
47
  puts(e.cause) # an underlying Exception, likely raised within `net/http`
@@ -84,7 +84,7 @@ userplex = Userplex::Client.new(
84
84
  )
85
85
 
86
86
  # Or, configure per-request:
87
- userplex.events.capture(request_options: {max_retries: 5})
87
+ userplex.events.capture(name: "REPLACE_ME", request_options: {max_retries: 5})
88
88
  ```
89
89
 
90
90
  ### Timeouts
@@ -98,7 +98,7 @@ userplex = Userplex::Client.new(
98
98
  )
99
99
 
100
100
  # Or, configure per-request:
101
- userplex.events.capture(request_options: {timeout: 5})
101
+ userplex.events.capture(name: "REPLACE_ME", request_options: {timeout: 5})
102
102
  ```
103
103
 
104
104
  On timeout, `Userplex::Errors::APITimeoutError` is raised.
@@ -130,6 +130,7 @@ Note: the `extra_` parameters of the same name overrides the documented paramete
130
130
  ```ruby
131
131
  response =
132
132
  userplex.events.capture(
133
+ name: "REPLACE_ME",
133
134
  request_options: {
134
135
  extra_query: {my_query_parameter: value},
135
136
  extra_body: {my_body_parameter: value},
@@ -175,18 +176,18 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
175
176
  You can provide typesafe request parameters like so:
176
177
 
177
178
  ```ruby
178
- userplex.events.capture
179
+ userplex.users.identify(user_id: "user_id", email: "REPLACE_ME", name: "REPLACE_ME")
179
180
  ```
180
181
 
181
182
  Or, equivalently:
182
183
 
183
184
  ```ruby
184
185
  # Hashes work, but are not typesafe:
185
- userplex.events.capture
186
+ userplex.users.identify(user_id: "user_id", email: "REPLACE_ME", name: "REPLACE_ME")
186
187
 
187
188
  # You can also splat a full Params class:
188
- params = Userplex::EventCaptureParams.new
189
- userplex.events.capture(**params)
189
+ params = Userplex::UserIdentifyParams.new(user_id: "user_id", email: "REPLACE_ME", name: "REPLACE_ME")
190
+ userplex.users.identify(**params)
190
191
  ```
191
192
 
192
193
  ## Versioning
@@ -75,7 +75,7 @@ module Userplex
75
75
 
76
76
  case body
77
77
  in nil
78
- nil
78
+ req["content-length"] ||= 0 unless req["transfer-encoding"]
79
79
  in String
80
80
  req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"]
81
81
  req.body_stream = Userplex::Internal::Util::ReadIOAdapter.new(body, &blk)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Userplex
4
- VERSION = "0.15.0"
4
+ VERSION = "0.16.1"
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userplex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Userplex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-06 00:00:00.000000000 Z
11
+ date: 2026-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cgi
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: connection_pool
15
29
  requirement: !ruby/object:Gem::Requirement