dotloop-ruby 0.1.1 → 0.1.2
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/README.md +1 -1
- data/lib/dotloop/document.rb +2 -1
- data/lib/dotloop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24125b226c844858effc5925a8a184f2be304e60
|
|
4
|
+
data.tar.gz: a50528430360037518018c3dfe8279d65ba3fcf8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d9cc1b05b2fdc8ad80c8de2e3b585cc50202fe094098793b590844a3e9c9aa4bfae198599a123be6dc875c59a82545ce0e035ddeaf6af194e0887815a6b9396
|
|
7
|
+
data.tar.gz: c06b43448358f215f831d17b9aa3905b4a749f0f2c2497f86d89749a0c2639c0fc590d0de0655a2752084eed67c7cf54377f8d93e21be6e2f14743a74010884e
|
data/README.md
CHANGED
|
@@ -243,7 +243,7 @@ Dotloop uses OAuth2 for authentication (https://dotloop.github.io/public-api/#au
|
|
|
243
243
|
profile_id: '1234',
|
|
244
244
|
loop_id: '34308',
|
|
245
245
|
folder_id: '423424',
|
|
246
|
-
params: { "
|
|
246
|
+
params: { "file_name" => file_name, "file_content" => file_content }
|
|
247
247
|
)
|
|
248
248
|
|
|
249
249
|
#=> dowload a document - Retrieve an individual document (binary)
|
data/lib/dotloop/document.rb
CHANGED
|
@@ -47,7 +47,8 @@ module Dotloop
|
|
|
47
47
|
def upload(profile_id:, loop_id:, folder_id:, params: {})
|
|
48
48
|
file_name = params["file_name"]
|
|
49
49
|
file_content = params["file_content"]
|
|
50
|
-
|
|
50
|
+
raise 'Please pass file name' if (file_name.nil? || file_name.empty?)
|
|
51
|
+
raise 'Please pass file content' if (file_content.nil? || file_content.empty?)
|
|
51
52
|
post_body = []
|
|
52
53
|
|
|
53
54
|
post_body << "--#{DOTLOOP_FILE_UPLOAD_BOUNDARY}\r\n"
|
data/lib/dotloop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dotloop-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sampatbadhe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: simplecov
|