assinafy 1.7.0 → 1.8.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: e3c0bc2e23ab5f9a95c43efb0b1e219f264f2ea6300d191e991850a907a046c3
4
- data.tar.gz: c991ca2975741b5ca3a9686d01430f8b45221fe0f1e407ebebc53b237262d4e2
3
+ metadata.gz: de868e0ed87ada5a4456c4a811a1aa8057a6c482b344944661a0a4670ab86057
4
+ data.tar.gz: cef6d34ac264a694a194ca46ec35810836d0660001fcea5d351a1bbfff1dc638
5
5
  SHA512:
6
- metadata.gz: d3956278a581b59bf431a884053be9b0f618fc3b231803b276182e8e3481b26debcd125ff6ba626cdb84959b1f7994f28398110ba5de32fa9c2a6a1105e9b2be
7
- data.tar.gz: f6e43c5cc8abc3b7f9d1f13364181f3948a164709c49a188a623a7b3ca5720c7a75a154d427c4f899bdf6c368536c89259418991d01de301765fc03140131156
6
+ metadata.gz: 24fff2f9be29fbcf69788f6f217f541c9d68ba22c10ec6dbb2f557e2c9c3d827fe57004294d6c8af7cc1c38dd6e8ca2ff12bb826995a97ea7a111eae8589dac4
7
+ data.tar.gz: 6e7ffbaa337b9480c118bd1d5ef2d3423bba3622e333a5b6c11b20ed594df78cc03772e7243ff2ca919f272aab8efdf439db3bb06d3f9180553c8388e7f0753b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to the `assinafy` Ruby gem are documented here.
4
4
 
5
+ ## 1.8.1
6
+
7
+ - The SDK's own HTTPS client now requires TLS 1.2 or newer; TLS 1.0 and 1.1 are refused. Caller-supplied clients are unchanged.
8
+
9
+ ## 1.8.0
10
+
11
+ - The OAuth scope catalog includes `webhooks:write` for configuring and deactivating a workspace webhook subscription.
12
+
5
13
  ## 1.7.0
6
14
 
7
15
  - Require at least one signer on every assignment payload, not just `virtual` ones. The published
data/README.en.md CHANGED
@@ -18,6 +18,7 @@ The SDK exposes every Assinafy API v1 operation — including the OAuth 2.1 flow
18
18
 
19
19
  - Ruby 3.2+ (maintained support: 3.3+; 3.2 is legacy/EOL compatibility)
20
20
  - Bundler
21
+ - TLS 1.2 or newer (the SDK refuses TLS 1.0 and 1.1)
21
22
 
22
23
  ## Installation
23
24
 
@@ -147,6 +148,7 @@ The flow is authorization-code with **mandatory PKCE**; the authorization server
147
148
  | `templates:read` | Read templates, pages, roles, fields, tags |
148
149
  | `templates:write` | Create, update, delete templates |
149
150
  | `account:read` | Read the workspace profile, theme, logo |
151
+ | `webhooks:write` | Configure and deactivate the workspace webhook subscription |
150
152
  | `openid` | Identify the user (`sub` claim) and enable `/oauth/userinfo` |
151
153
  | `profile` | Include the user's name in the claims |
152
154
  | `email` | Include the user's email and verification status in the claims |
@@ -802,10 +804,6 @@ bundle exec rspec spec/integration
802
804
 
803
805
  > These tests create and clean up real resources and, for the assignment flow, send real signature-request emails to the addresses in `ASSINAFY_TEST_EMAIL` / `ASSINAFY_TEST_EMAIL2`.
804
806
 
805
- GitHub Actions provides the manual **Live Sandbox** workflow. Select a protected environment containing
806
- `ASSINAFY_API_KEY`, `ASSINAFY_ACCOUNT_ID`, `ASSINAFY_TEST_EMAIL`, and `ASSINAFY_TEST_EMAIL2`; environment
807
- branch/tag rules and approvals are applied before GitHub exposes those secrets to the job.
808
-
809
807
  ## Contributing
810
808
 
811
809
  Pull requests and issues are welcome at <https://github.com/assinafy/ruby-sdk>.
data/README.md CHANGED
@@ -42,6 +42,7 @@ Este documento acompanha uma integração do início ao fim. Para consulta rápi
42
42
 
43
43
  - Ruby 3.2+ (suporte mantido: 3.3+; 3.2 é compatibilidade legada/EOL)
44
44
  - Bundler
45
+ - TLS 1.2 ou superior (o SDK recusa TLS 1.0 e 1.1)
45
46
 
46
47
  Do RubyGems.org:
47
48
 
@@ -395,6 +396,7 @@ Fluxo *authorization code* com **PKCE obrigatório** (o servidor aceita apenas `
395
396
  | `templates:read` | ler templates, páginas, papéis, campos e tags |
396
397
  | `templates:write` | criar, alterar e excluir templates |
397
398
  | `account:read` | ler perfil, tema e logo da workspace |
399
+ | `webhooks:write` | configurar e desativar a assinatura de webhooks da workspace |
398
400
  | `openid` | identificar o usuário (claim `sub`) e habilitar `/oauth/userinfo` |
399
401
  | `profile` | incluir o nome do usuário nas claims |
400
402
  | `email` | incluir o e-mail e seu status de verificação nas claims |
@@ -253,7 +253,8 @@ module Assinafy
253
253
  private
254
254
 
255
255
  def build_connection(config)
256
- Faraday.new(url: config.base_url) do |f|
256
+ # The API rejects TLS 1.0 and 1.1; never offer them.
257
+ Faraday.new(url: config.base_url, ssl: { min_version: OpenSSL::SSL::TLS1_2_VERSION }) do |f|
257
258
  f.request :multipart
258
259
  f.request :json
259
260
  f.response :json, content_type: /\bjson/
@@ -62,6 +62,7 @@ module Assinafy
62
62
  templates:read
63
63
  templates:write
64
64
  account:read
65
+ webhooks:write
65
66
  openid
66
67
  profile
67
68
  email
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Assinafy
4
- VERSION = '1.7.0'
4
+ VERSION = '1.8.1'
5
5
  USER_AGENT = "Assinafy-Ruby-SDK/v#{VERSION}".freeze
6
6
  end
data/lib/assinafy.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'faraday'
4
4
  require 'faraday/multipart'
5
+ require 'openssl'
5
6
  require 'stringio'
6
7
 
7
8
  require_relative 'assinafy/version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assinafy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Assinafy SDK Contributors