gendocio 1.0.0
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 +7 -0
- data/lib/gendocio.rb +20 -0
- metadata +57 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a851fd518a9ef57e50e08bb8085c3ddc89779496e5d5a184676d2c34ca8e91af
|
4
|
+
data.tar.gz: dac06dbfd210b33d001ea0a2d55851778c296ae2edcfffbeb806ada69cd9cac3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c0b10a4f2e2f7d961b761f00f958f9cd07bdc1ef59727f4b1c7bb4c30c5c7a93eb06afe6088812865ea44161f4bea7b3041487523d981df3b661163a5083538c
|
7
|
+
data.tar.gz: 3b0f8e17b4284c69ab4426b3ea6cb32ddbc2bbbc9e25b0ad7e450c9f99b6b4cb66839d2d8fb795bfed88b21998bc185d65dba5e241b3dfbbd18daad1731e58ea
|
data/lib/gendocio.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
class Gendocio
|
2
|
+
class << self
|
3
|
+
require 'httparty'
|
4
|
+
|
5
|
+
def generate(template, data, token='')
|
6
|
+
options = {
|
7
|
+
headers: {
|
8
|
+
"Content-Type": "application/json",
|
9
|
+
"Authorization": "Bearer #{token}"
|
10
|
+
},
|
11
|
+
body: {
|
12
|
+
template: template,
|
13
|
+
data: data
|
14
|
+
}.to_json
|
15
|
+
}
|
16
|
+
HTTParty.post('https://api.gendoc.io/gendoc', options).to_s
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
metadata
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gendocio
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexis Clarembeau
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Ruby SDK for Gendoc.io
|
28
|
+
email: alexis.clarembeau@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- lib/gendocio.rb
|
34
|
+
homepage: https://rubygems.org/gems/gendocio
|
35
|
+
licenses:
|
36
|
+
- MIT
|
37
|
+
metadata: {}
|
38
|
+
post_install_message:
|
39
|
+
rdoc_options: []
|
40
|
+
require_paths:
|
41
|
+
- lib
|
42
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
requirements: []
|
53
|
+
rubygems_version: 3.0.3
|
54
|
+
signing_key:
|
55
|
+
specification_version: 4
|
56
|
+
summary: Make beautiful PDF documents
|
57
|
+
test_files: []
|