rs4 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rs4/document.rb +4 -4
- data/lib/rs4/reusable_template.rb +4 -4
- data/lib/rs4/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c0458d33cdeff50946463cabf059af6303f5e109e6b3d1b3a320ef3d31dd72
|
4
|
+
data.tar.gz: 5148a81842c3de6a3b54d2d5b8d8df44faada800eb1ab7a0709f9be03a297479
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 224653c586d33495acc5e5e1bfbec5356409a8a4457740f92f796d8c3c373b5933c99128ebaab07450b653ae7efa5c932da74aa23b45948bb733165a8f8fd11b
|
7
|
+
data.tar.gz: 79b467f38c8a43c3ca3fa32932aea5f8015e8ae734e8b4e53be9dbcaf7da59912f9968aaee6af5b396238fa217695c877ff4d9b5d3e9cda1ea4c1db1a43f5040
|
data/lib/rs4/document.rb
CHANGED
@@ -87,7 +87,7 @@ module RS4
|
|
87
87
|
|
88
88
|
path = "documents/#{document_guid}"
|
89
89
|
|
90
|
-
response =
|
90
|
+
response = RS4::Request.execute(path, :get)
|
91
91
|
|
92
92
|
if response.class == Net::HTTPOK
|
93
93
|
raw_document = JSON.parse(response.body, symbolize_names: true)
|
@@ -95,7 +95,7 @@ module RS4
|
|
95
95
|
Document.new(raw_document[:document])
|
96
96
|
else
|
97
97
|
Rails.logger.error("Unable to get document #{document_guid}")
|
98
|
-
|
98
|
+
RS4::RequestError.new(
|
99
99
|
response.code,
|
100
100
|
response.class,
|
101
101
|
JSON.parse(response.read_body)
|
@@ -105,7 +105,7 @@ module RS4
|
|
105
105
|
|
106
106
|
def get_documents
|
107
107
|
path = 'documents'
|
108
|
-
response =
|
108
|
+
response = RS4::Request.execute(path, :get)
|
109
109
|
|
110
110
|
if response.class == Net::HTTPOK
|
111
111
|
documents = []
|
@@ -117,7 +117,7 @@ module RS4
|
|
117
117
|
end
|
118
118
|
else
|
119
119
|
Rails.logger.error('Unable to get documents')
|
120
|
-
|
120
|
+
RS4::RequestError.new(
|
121
121
|
response.code,
|
122
122
|
response.class,
|
123
123
|
JSON.parse(response.read_body)
|
@@ -54,9 +54,9 @@ module RS4
|
|
54
54
|
|
55
55
|
template_hash = parsed_response[:reusable_template]
|
56
56
|
|
57
|
-
|
57
|
+
RS4::ReusableTemplate.new(template_hash)
|
58
58
|
else
|
59
|
-
|
59
|
+
RS4::RequestError.new(
|
60
60
|
response.code,
|
61
61
|
response.class,
|
62
62
|
JSON.parse(response.read_body)
|
@@ -90,10 +90,10 @@ module RS4
|
|
90
90
|
|
91
91
|
document_hash = parsed_response[:document]
|
92
92
|
|
93
|
-
return
|
93
|
+
return RS4::Document.new(document_hash)
|
94
94
|
|
95
95
|
else
|
96
|
-
return
|
96
|
+
return RS4::RequestError.new(
|
97
97
|
response.code,
|
98
98
|
response.class,
|
99
99
|
JSON.parse(response.read_body)
|
data/lib/rs4/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rs4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- donny
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides ruby access to CRUD operations for RightSignature documents
|
14
14
|
and reusable templates
|