active_call-zoho_sign 0.1.2 → 0.1.3
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/.rubocop.yml +8 -0
- data/CHANGELOG.md +5 -0
- data/README.md +2 -0
- data/lib/active_call-zoho_sign.rb +2 -0
- data/lib/zoho_sign/base_service.rb +2 -2
- data/lib/zoho_sign/version.rb +1 -1
- 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: d75781aad919dcd23868fbc1e9e4bd86e9d69c923cdbd0142a29c78e44357e48
|
4
|
+
data.tar.gz: dd7e55f14105e2081f6f4b1668231614949e77809e0310cbc525c9fbfd3d79c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7831f4b4ff12eccab031060e6f5184457181ef1412b7cbd046f18b2bef7bb8cbd772108e97898c3d2b7e9968d8b1985d394d04a1c60ff0f0ee08f4c00986e25
|
7
|
+
data.tar.gz: df1e6eb122cacf3d23be1d9b5cee762ba439eaeae116a9b98a3d2136e05fbd0fafaa5eadbcb9a70ac45ac7e1a9acdfa7335e6dff70454ca75492b0ba5457d9a0
|
data/.rubocop.yml
CHANGED
@@ -19,6 +19,9 @@ Layout/HashAlignment:
|
|
19
19
|
EnforcedHashRocketStyle: table
|
20
20
|
EnforcedColonStyle: table
|
21
21
|
|
22
|
+
Layout/LineLength:
|
23
|
+
AllowedPatterns: ['initialize']
|
24
|
+
|
22
25
|
Lint/MissingSuper:
|
23
26
|
Enabled: false
|
24
27
|
|
@@ -35,6 +38,7 @@ Metrics/ClassLength:
|
|
35
38
|
Metrics/CyclomaticComplexity:
|
36
39
|
Exclude:
|
37
40
|
- lib/zoho_sign/document/list_service.rb
|
41
|
+
- lib/zoho_sign/template/list_service.rb
|
38
42
|
|
39
43
|
Metrics/MethodLength:
|
40
44
|
Enabled: false
|
@@ -43,6 +47,10 @@ Metrics/PerceivedComplexity:
|
|
43
47
|
Exclude:
|
44
48
|
- lib/zoho_sign/document/list_service.rb
|
45
49
|
|
50
|
+
Naming/FileName:
|
51
|
+
Exclude:
|
52
|
+
- lib/active_call-zoho_sign.rb
|
53
|
+
|
46
54
|
Naming/MemoizedInstanceVariableName:
|
47
55
|
EnforcedStyleForLeadingUnderscores: required
|
48
56
|
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Active Call - Zoho Sign
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/active_call-zoho_sign)
|
4
|
+
|
3
5
|
Zoho Sign exposes the [Zoho Sign API](https://www.zoho.com/sign/api) endpoints through service objects.
|
4
6
|
|
5
7
|
## Installation
|
@@ -78,7 +78,7 @@ class ZohoSign::BaseService < ActiveCall::Base
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def forbidden?
|
81
|
-
response.status == 403
|
81
|
+
return true if response.status == 403
|
82
82
|
return false unless response.status == 400 && response.body.key?('code')
|
83
83
|
|
84
84
|
# 4003: Access to view the document is denied.
|
@@ -93,7 +93,7 @@ class ZohoSign::BaseService < ActiveCall::Base
|
|
93
93
|
|
94
94
|
# 4066: Invalid Request ID.
|
95
95
|
# 20405: Invalid Template ID.
|
96
|
-
return true if [
|
96
|
+
return true if [4_066, 20_405].include?(response.body['code'])
|
97
97
|
|
98
98
|
false
|
99
99
|
end
|
data/lib/zoho_sign/version.rb
CHANGED