gotenberg-client 0.1.1.3 → 0.1.1.4
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/Gemfile +0 -2
- data/Gemfile.lock +4 -4
- data/README.md +6 -4
- data/gotenberg-0.1.1.2.gem +0 -0
- data/gotenberg-0.1.1.3.gem +0 -0
- data/gotenberg-client-0.1.1.3.gem +0 -0
- data/gotenberg.gemspec +2 -1
- data/lib/gotenberg/version.rb +1 -1
- metadata +33 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b82d1f0309591211f196b9025b0146db6845a92eb5227fc6fd881dcc06a0e55
|
|
4
|
+
data.tar.gz: e1ae5587dc88fc61956321290414894ec607b8a9070ea2d72ac26891f92417fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f745422f8766ab7ccf76af97c4ae93322edd4d50b48640b5769416b8e9043d6d7ba4f4ac6db9ed8151d35cf5d5a96c5f98fc45b06ce8efe7e6d68560fb0f52a1
|
|
7
|
+
data.tar.gz: 8c27dce53a19772e4a943644e970d0258e313b155ea5128a54cca2c8bc135922f77e5ca7b51cecef2c96d7043a0f2a2022660ef81bca9ca72ebbe21a26c3fa3d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gotenberg (0.1.
|
|
4
|
+
gotenberg-client (0.1.1.4)
|
|
5
|
+
faraday (~> 2.5.2)
|
|
6
|
+
faraday-multipart (~> 1.0.4)
|
|
5
7
|
|
|
6
8
|
GEM
|
|
7
9
|
remote: https://rubygems.org/
|
|
@@ -34,9 +36,7 @@ PLATFORMS
|
|
|
34
36
|
x86_64-linux
|
|
35
37
|
|
|
36
38
|
DEPENDENCIES
|
|
37
|
-
|
|
38
|
-
faraday-multipart
|
|
39
|
-
gotenberg!
|
|
39
|
+
gotenberg-client!
|
|
40
40
|
rake (~> 13.0)
|
|
41
41
|
rspec (~> 3.0)
|
|
42
42
|
|
data/README.md
CHANGED
|
@@ -8,10 +8,12 @@ this gem is young and needs a lot of updates and improvements. (work in progress
|
|
|
8
8
|
## install
|
|
9
9
|
First download and run gotenberg
|
|
10
10
|
|
|
11
|
-
$ docker run --rm -p 3000:3000 gotenberg/gotenberg:7
|
|
11
|
+
$ docker run --rm -p 3000:3000 gotenberg/gotenberg:7
|
|
12
|
+
|
|
12
13
|
|
|
13
14
|
install gotenberg-client gem
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
$ gem install gotenberg-client
|
|
15
17
|
|
|
16
18
|
or add gotenberg-client to your gemfile
|
|
17
19
|
|
|
@@ -19,7 +21,7 @@ or add gotenberg-client to your gemfile
|
|
|
19
21
|
you will probably use this gem in order to generate pdf in a ruby on rails background task / ruby file. Therefore, this gem do not (yet) integrate any Ruby on Rails tools.
|
|
20
22
|
|
|
21
23
|
```ruby
|
|
22
|
-
require "gotenberg
|
|
24
|
+
require "gotenberg"
|
|
23
25
|
|
|
24
26
|
api_endpoint = "http://localhost:3000" # change it with your specific port and address.
|
|
25
27
|
gb = Gotenberg::Client.new(api_endpoint)
|
|
@@ -38,7 +40,7 @@ output_pdf.unlink
|
|
|
38
40
|
```
|
|
39
41
|
|
|
40
42
|
if you want to use rails views, the easiest way is to user "render_to_string" from `ActionController::Base`.
|
|
41
|
-
Let's
|
|
43
|
+
Let's imagine that you have a /app/views/test.html.erb in your project that use @customer variable.
|
|
42
44
|
|
|
43
45
|
```ruby
|
|
44
46
|
gb = Gotenberg::Client.new(api_endpoint)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/gotenberg.gemspec
CHANGED
|
@@ -30,7 +30,8 @@ Gem::Specification.new do |spec|
|
|
|
30
30
|
spec.require_paths = ["lib"]
|
|
31
31
|
|
|
32
32
|
# Uncomment to register a new dependency of your gem
|
|
33
|
-
|
|
33
|
+
spec.add_dependency "faraday","~> 2.5.2"
|
|
34
|
+
spec.add_dependency "faraday-multipart","~> 1.0.4"
|
|
34
35
|
|
|
35
36
|
# For more information and examples about making a new gem, checkout our
|
|
36
37
|
# guide at: https://bundler.io/guides/creating_gem.html
|
data/lib/gotenberg/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gotenberg-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.1.
|
|
4
|
+
version: 0.1.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jean-christophe bauduin
|
|
@@ -9,7 +9,35 @@ autorequire:
|
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2022-08-26 00:00:00.000000000 Z
|
|
12
|
-
dependencies:
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: faraday
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 2.5.2
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 2.5.2
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: faraday-multipart
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.0.4
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 1.0.4
|
|
13
41
|
description: make the creation of pdf easy in ruby
|
|
14
42
|
email:
|
|
15
43
|
- maildejc@hotmail.be
|
|
@@ -29,7 +57,10 @@ files:
|
|
|
29
57
|
- bin/setup
|
|
30
58
|
- gotenberg-0.1.0.gem
|
|
31
59
|
- gotenberg-0.1.1.1.gem
|
|
60
|
+
- gotenberg-0.1.1.2.gem
|
|
61
|
+
- gotenberg-0.1.1.3.gem
|
|
32
62
|
- gotenberg-0.1.1.gem
|
|
63
|
+
- gotenberg-client-0.1.1.3.gem
|
|
33
64
|
- gotenberg.gemspec
|
|
34
65
|
- lib/gotenberg.rb
|
|
35
66
|
- lib/gotenberg/version.rb
|