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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.en.md +2 -4
- data/README.md +2 -0
- data/lib/assinafy/client.rb +2 -1
- data/lib/assinafy/oauth.rb +1 -0
- data/lib/assinafy/version.rb +1 -1
- data/lib/assinafy.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de868e0ed87ada5a4456c4a811a1aa8057a6c482b344944661a0a4670ab86057
|
|
4
|
+
data.tar.gz: cef6d34ac264a694a194ca46ec35810836d0660001fcea5d351a1bbfff1dc638
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 |
|
data/lib/assinafy/client.rb
CHANGED
|
@@ -253,7 +253,8 @@ module Assinafy
|
|
|
253
253
|
private
|
|
254
254
|
|
|
255
255
|
def build_connection(config)
|
|
256
|
-
|
|
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/
|
data/lib/assinafy/oauth.rb
CHANGED
data/lib/assinafy/version.rb
CHANGED
data/lib/assinafy.rb
CHANGED