rs4 0.1.4 → 0.1.5

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: dbf0795919c6835f30a843f728b8bfc7cbd3efdd1027d199bbe39c6450963380
4
- data.tar.gz: 18578752a41d6727cf72b560aae3270194dedf3b033395410c0f41b32de3aa73
3
+ metadata.gz: 23c0458d33cdeff50946463cabf059af6303f5e109e6b3d1b3a320ef3d31dd72
4
+ data.tar.gz: 5148a81842c3de6a3b54d2d5b8d8df44faada800eb1ab7a0709f9be03a297479
5
5
  SHA512:
6
- metadata.gz: bfa79ca3aabe08ae7432c7224ad806d169bad8305b89f3ce8300fdfa7bce9871da58749becfa3cfc74c72f0248d7a8b00d68a9da8e5123cf93eeb1677511be23
7
- data.tar.gz: 2731bf2ba14e69d77541441e1e064cbc90b8c1589047f6d30ac736e38a405e2e7a3aec89360e31d4e622e0cf6fec00207655720c5b1460472ca0c434e785dbb2
6
+ metadata.gz: 224653c586d33495acc5e5e1bfbec5356409a8a4457740f92f796d8c3c373b5933c99128ebaab07450b653ae7efa5c932da74aa23b45948bb733165a8f8fd11b
7
+ data.tar.gz: 79b467f38c8a43c3ca3fa32932aea5f8015e8ae734e8b4e53be9dbcaf7da59912f9968aaee6af5b396238fa217695c877ff4d9b5d3e9cda1ea4c1db1a43f5040
@@ -87,7 +87,7 @@ module RS4
87
87
 
88
88
  path = "documents/#{document_guid}"
89
89
 
90
- response = RS4Api::Request.execute(path, :get)
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
- RS4Api::RequestError.new(
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 = RS4Api::Request.execute(path, :get)
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
- RS4Api::RequestError.new(
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
- RS4Api::ReusableTemplate.new(template_hash)
57
+ RS4::ReusableTemplate.new(template_hash)
58
58
  else
59
- RS4Api::RequestError.new(
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 RS4Api::Document.new(document_hash)
93
+ return RS4::Document.new(document_hash)
94
94
 
95
95
  else
96
- return RS4Api::RequestError.new(
96
+ return RS4::RequestError.new(
97
97
  response.code,
98
98
  response.class,
99
99
  JSON.parse(response.read_body)
@@ -1,3 +1,3 @@
1
1
  module RS4
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-20 00:00:00.000000000 Z
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