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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e6bfddd2811ee821c10b0f03e640a1d5bd61fce4a1f55e710d94284c4428013
4
- data.tar.gz: 31222714f42fa31b5a8c90c59b1eae1e7f3e10103b3aac99e6ee3899d445c3ed
3
+ metadata.gz: d75781aad919dcd23868fbc1e9e4bd86e9d69c923cdbd0142a29c78e44357e48
4
+ data.tar.gz: dd7e55f14105e2081f6f4b1668231614949e77809e0310cbc525c9fbfd3d79c7
5
5
  SHA512:
6
- metadata.gz: f0da06b096bad4445ba1985194968119a4c320d961fd9d70dce91efa80206677b0cbd718608e9acfc03f15114de2255509d2d8b7f5863095aecff511566193d5
7
- data.tar.gz: 46054e1c662f60ce7fe651dfc41bdbe3dc50f4009d94e2871c91230c8ac493e5600e63cae1b038332444759258a064aa3210336d8777485295a9da49acb17a2f
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
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2025-03-25
4
+
5
+ - RubyGem badge
6
+ - Bug fix on method `forbidden?`
7
+
3
8
  ## [0.1.2] - 2025-03-25
4
9
 
5
10
  - Refactored common REST API methods out into an active_call-api gem.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Active Call - Zoho Sign
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/active_call-zoho_sign.svg?icon=si%3Arubygems)](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
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'zoho_sign'
@@ -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 [4066, 20405].include?(response.body['code'])
96
+ return true if [4_066, 20_405].include?(response.body['code'])
97
97
 
98
98
  false
99
99
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZohoSign
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_call-zoho_sign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kobus Joubert