use_paragon 0.2.0 → 0.2.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: ff30dcf20714965b441a2ff110f76b27a522a431ae60596e8681461eec8ca4ff
4
- data.tar.gz: 0a1461e9fb7cbb95928fac27bbdfc6f050b5dc407c9db6dcb8fc5711e40659fa
3
+ metadata.gz: 4eea99462114a73de8cdbaab838804f101429b1501c47e6f5f539f58ef0c6e4d
4
+ data.tar.gz: 6985b1ed30f785a7636e90df9cfa97cdb2a100742052b3f302b6ff4b3141bc7e
5
5
  SHA512:
6
- metadata.gz: b65e72fb8ff956ae65c05d8e194a0bd3b32896dabaf0c61be4a961de10cd186d9e5afed131742d2ad47acf70043ceda24f69e1b003727d089b3514fb48a00315
7
- data.tar.gz: dbe58987afc08fce64792bfb503e0962501ccb40a31437e9ece7a2d382df46bfbcd7e1e0e61aa55d8714efe3d1a88f155fe67986c4a1531816c2f978423baf32
6
+ metadata.gz: 19441c40b4bed8fbd22d8dc001f623ff42009720dca8105066e434ebe14ee5ed23424616d440cc3ce65a1ff9fe062362297c79d5cdbce43b289b9964a0724ac8
7
+ data.tar.gz: 1a6ac16ae3785ea272efbeebd4b29448a2d7df4fcc5b8a2dcf4a57d316cd4fe5329293e9571e93dded724188a1d08416b2597e426a3a26d25be65545aa30bd86
data/README.md CHANGED
@@ -95,6 +95,10 @@ App Events can be sent from your application using the Paragon REST API.
95
95
 
96
96
  UseParagon::Workflow.new(user_id).event(event_name, payload = {})
97
97
 
98
+ You can also pass custom headers:
99
+
100
+ UseParagon::Workflow.new(user_id).event(event_name, payload = {}, headers: { "X-Custom-Header" => "value" })
101
+
98
102
  ### Proxy Request
99
103
  [Paragon Documentation](https://docs.useparagon.com/api/api-reference#request-integrationtype-string-path-string-requestoptions-requestinit-promise-less-than-unknown-gre)
100
104
 
@@ -126,6 +130,10 @@ Trigger a Paragon workflow that sends a custom response back to your app. Note:
126
130
 
127
131
  UseParagon::Workflow.new(user_id).request(workflow_id, payload = {})
128
132
 
133
+ You can also pass custom headers:
134
+
135
+ UseParagon::Workflow.new(user_id).request(workflow_id, payload = {}, headers: { "X-Custom-Header" => "value" })
136
+
129
137
  ### Get Project's Integrations
130
138
  [Paragon Documentation](https://docs.useparagon.com/api/api-reference#get-projects-integrations)
131
139
 
data/changelog.md CHANGED
@@ -5,11 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [0.2.0] - 2024-10-21
8
+ ## [0.2.0] - 2025-07-15
9
9
 
10
10
  ### Added
11
11
 
12
- - Added an optional `header` kwarg to Workflow#request method
12
+ - Added an optional `headers` kwarg to `Workflow#request` and `Workflow#event` methods
13
13
 
14
14
  ### Changed
15
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UseParagon
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: use_paragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Candanedo