zoho_sign 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: 78297001b457d3aedb552bbec22b02b20803dc758da0dda9ac679fb0cae3e6b9
4
- data.tar.gz: 8ba05a240b314305092af54207d523bf4d24fc8a6e4caccd5f8a5d4c0927f274
3
+ metadata.gz: 3c46cf1b2d02de19a4ee38cfef80b99434821cd5b8fb2e522fa9d5451262f69f
4
+ data.tar.gz: 120c0544bc95cac4d0b4c4097f1883c845cad7807d1872b26740528be756a3c2
5
5
  SHA512:
6
- metadata.gz: 1da49e70a33de5208ef3c3ba8562bee22e48720301b917f377685e0fc124adfe272c2511b29c639f21726a81531326407f4cccc236a519e50b41eba4fb6b4eb0
7
- data.tar.gz: 5b80257268709e3c166eb6a758028b7215d7b160b4578ac6647738a07b2d311355a65abdb713226e66bc2efd46265ae0531a6a45598f5e8a8d9c87cb86ff0cf0
6
+ metadata.gz: b986846dda6e3844e6acd6bb00f8ca7a71a24bd9164ab23ae8f9144e36445c8ef6f07948b6ba29b09a5e7ee6f712f4f95c99c79963d211784478f58b5e1c2701
7
+ data.tar.gz: '0297893e33d5effb14c80ed199402798642c56bcf2a56300f31ab3f6e3fa8688086c973bcb0c11261f65067904c2c424ef9a0476f09a19e8921a3d9c11665c1c'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2023-10-03
4
+
5
+ - Adding support for Zoho regional domains (#53)
6
+
3
7
  ## [0.2.0] - 2023-10-02
4
8
 
5
9
  - Upgrade Faraday gem from v1 to v2 (#52)
data/README.md CHANGED
@@ -48,7 +48,15 @@ ZohoSign.config.update(
48
48
  params = ZohoSign::Auth.refresh_token(ENV["ZOHO_SIGN_REFRESH_TOKEN"])
49
49
  ZohoSign.config.connection = params
50
50
  ```
51
-
51
+ ### Configure regional domain (if applicable)
52
+ ```ruby
53
+ ZohoSign.config.update(
54
+ api: {
55
+ auth_domain: "https://accounts.zoho.eu",
56
+ domain: "https://sign.zoho.eu"
57
+ }
58
+ )
59
+ ```
52
60
  ### How to use `ZohoSign::Template`
53
61
 
54
62
  Find all templetes:
@@ -11,8 +11,6 @@ module ZohoSign
11
11
  class Auth
12
12
  extend Forwardable
13
13
 
14
- AUTH_DOMAIN_PATH = "https://accounts.zoho.com"
15
-
16
14
  TOKEN_PATH = "/oauth/v2/token"
17
15
 
18
16
  DEFAULT_SCOPES = %w[
@@ -27,6 +25,7 @@ module ZohoSign
27
25
  @configuration = ZohoSign.config
28
26
  @access_type = access_type
29
27
  @scopes = scopes
28
+ @auth_domain_path = ZohoSign.config.api.auth_domain
30
29
  end
31
30
 
32
31
  def self.refresh_token(refresh_token)
@@ -57,7 +56,7 @@ module ZohoSign
57
56
  end
58
57
 
59
58
  def token_full_uri
60
- Addressable::URI.join(AUTH_DOMAIN_PATH, TOKEN_PATH)
59
+ Addressable::URI.join(@auth_domain_path, TOKEN_PATH)
61
60
  end
62
61
 
63
62
  def self.get_token(grant_token)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZohoSign
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
data/lib/zoho_sign.rb CHANGED
@@ -27,6 +27,7 @@ module ZohoSign
27
27
  end
28
28
 
29
29
  setting :api do
30
+ setting :auth_domain, default: "https://accounts.zoho.com"
30
31
  setting :domain, default: "https://sign.zoho.com"
31
32
  setting :base_path, default: "/api/v1"
32
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoho_sign
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
  - Wecasa Developers Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2023-10-02 00:00:00.000000000 Z
14
+ date: 2023-10-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport