pdfserve_client 2.0.0 → 2.0.1

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: 55f08ddb2b267ba05ac6c1fcb49c2506cab4b762811eb4edd1fea0e421b3459f
4
- data.tar.gz: 998567a407fecc32c6f30c594049c9be7f3dbb3d88fcecc15c5b7096195d0aec
3
+ metadata.gz: d153b8a5ff8112445c47ded72e265cb5cc06ae776a7311dc81efe0c6d27a643f
4
+ data.tar.gz: d76bead370c4ddca6764bc1d2a05ae8b29fb53300d57afda8c2fe176ce5e85d3
5
5
  SHA512:
6
- metadata.gz: 831380373c2db34056b9a2b7021cc871fc3a9779a6fbe76b2bb6c82ecf5c1c3a6a3801611bcfa97433e40dcad6c9760e550493b5ce3b94e00ffc3fd0897d3348
7
- data.tar.gz: 44da7b08a931dd2c721b2fa9b0320f3a44a641117c70435a505966dfa797e94c768f863ed24219ea8bfb1548442d91d1ac8b3dd642e4413eb55e658d110916e8
6
+ metadata.gz: '0789afd569c402b16aed0b1eb7df08fc720a033097e6ab85bfc990db8f2d6ca15455cffa7aecd0b05a3ae1ea41e22421996859be522b52ce0ddfc667ed251f4c'
7
+ data.tar.gz: 74394ec2bb6eb1ff0edbbe149524b14bb4cc68881779bdfd59dc7b2914839259ed626dec863fb29ee5805a3954aa0bef22a974d6006ee84071d27a2ca587f1ec
data/README.md CHANGED
@@ -21,7 +21,7 @@ bundle install
21
21
  ### PDFServe Client
22
22
 
23
23
  ```ruby
24
- require 'pdfserve_client'
24
+ require 'pdfserve/client'
25
25
 
26
26
  file_urls = [
27
27
  'https://s3-public.de/file1.pdf',
@@ -29,7 +29,7 @@ file_urls = [
29
29
  ]
30
30
  output_path = './output.pdf'
31
31
 
32
- client = PdfserveClient::Client.new(api_endpoint: 'https://your.custom.endpoint')
32
+ client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint')
33
33
  client.merge(file_urls:, output_path:)
34
34
  ```
35
35
 
@@ -37,7 +37,7 @@ or with a token
37
37
 
38
38
  ```ruby
39
39
 
40
- require 'pdfserve_client'
40
+ require 'pdfserve/client'
41
41
 
42
42
  file_urls = [
43
43
  'https://s3-public.de/file1.pdf',
@@ -45,7 +45,7 @@ file_urls = [
45
45
  ]
46
46
  output_path = './output.pdf'
47
47
 
48
- client = PdfserveClient::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
48
+ client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
49
49
  client.merge(file_urls:, output_path:)
50
50
  ```
51
51
 
@@ -56,12 +56,12 @@ client.merge(file_urls:, output_path:)
56
56
  ### PDF Stamp
57
57
 
58
58
  ```ruby
59
- require 'pdfserve_client'
59
+ require 'pdfserve/client'
60
60
 
61
61
  file_url = 'https://s3-public.de/file1.pdf'
62
62
  stamp_text = 'A1'
63
63
 
64
- client = PdfserveClient::Client.new(api_endpoint: 'https://your.custom.endpoint')
64
+ client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint')
65
65
  client.stamp(file_url:, stamp_text:)
66
66
  ```
67
67
 
@@ -69,12 +69,12 @@ or with a token
69
69
 
70
70
  ```ruby
71
71
 
72
- require 'pdfserve_client'
72
+ require 'pdfserve/client'
73
73
 
74
74
  file_url = 'https://s3-public.de/file1.pdf'
75
75
  stamp_text = 'A1'
76
76
 
77
- client = PdfserveClient::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
77
+ client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
78
78
  client.stamp(file_url:, stamp_text:)
79
79
  ```
80
80
 
@@ -84,12 +84,12 @@ client.stamp(file_url:, stamp_text:)
84
84
  ### PDF Split
85
85
 
86
86
  ```ruby
87
- require 'pdfserve_client'
87
+ require 'pdfserve/client'
88
88
 
89
89
  file_url = 'https://s3-public.de/file1.pdf'
90
90
  pages = '1-3,4,6-8'
91
91
 
92
- client = PdfserveClient::Client.new(api_endpoint: 'https://your.custom.endpoint')
92
+ client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint')
93
93
  client.split(file_url:, pages:)
94
94
  ```
95
95
 
@@ -97,12 +97,12 @@ or with a token
97
97
 
98
98
  ```ruby
99
99
 
100
- require 'pdfserve_client'
100
+ require 'pdfserve/client'
101
101
 
102
102
  file_url = 'https://s3-public.de/file1.pdf'
103
103
  pages = '1-3,4,6-8'
104
104
 
105
- client = PdfserveClient::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
105
+ client = Pdfserve::Client.new(api_endpoint: 'https://your.custom.endpoint', api_token: 'the-token')
106
106
  client.split(file_url:, pages:)
107
107
  ```
108
108
 
@@ -2,7 +2,7 @@ require_relative "merge"
2
2
  require_relative "stamp"
3
3
  require_relative "split"
4
4
 
5
- module PdfserveClient
5
+ module Pdfserve
6
6
  class Client
7
7
  attr_reader :merge_service, :stamp_service, :split_service
8
8
 
@@ -26,15 +26,15 @@ module PdfserveClient
26
26
  private
27
27
 
28
28
  def merge_service
29
- PdfserveClient::Merge.new(api_endpoint: @api_endpoint, api_token: @api_token)
29
+ Pdfserve::Merge.new(api_endpoint: @api_endpoint, api_token: @api_token)
30
30
  end
31
31
 
32
32
  def stamp_service
33
- PdfserveClient::Stamp.new(api_endpoint: @api_endpoint, api_token: @api_token)
33
+ Pdfserve::Stamp.new(api_endpoint: @api_endpoint, api_token: @api_token)
34
34
  end
35
35
 
36
36
  def split_service
37
- PdfserveClient::Split.new(api_endpoint: @api_endpoint, api_token: @api_token)
37
+ Pdfserve::Split.new(api_endpoint: @api_endpoint, api_token: @api_token)
38
38
  end
39
39
  end
40
40
  end
@@ -5,7 +5,7 @@ require "net/http"
5
5
  require "uri"
6
6
  require "json"
7
7
 
8
- module PdfserveClient
8
+ module Pdfserve
9
9
  class Error < StandardError; end
10
10
 
11
11
  class Merge
@@ -5,7 +5,7 @@ require "net/http"
5
5
  require "uri"
6
6
  require "json"
7
7
 
8
- module PdfserveClient
8
+ module Pdfserve
9
9
  class Error < StandardError; end
10
10
 
11
11
  class Split
@@ -5,7 +5,7 @@ require "net/http"
5
5
  require "uri"
6
6
  require "json"
7
7
 
8
- module PdfserveClient
8
+ module Pdfserve
9
9
  class Error < StandardError; end
10
10
 
11
11
  class Stamp
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Pdfserve
4
+ VERSION = "2.0.1"
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfserve_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isabel Garcia
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-01-28 00:00:00.000000000 Z
13
+ date: 2025-01-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: net-http
@@ -29,7 +29,7 @@ dependencies:
29
29
  description: This gem provides a simple interface to merge, stamp, split PDFs using
30
30
  https://github.com/ant31/pdfserve API.
31
31
  email:
32
- - isabel.garcia@conny.legal
32
+ - isabelgg22@gmail.com
33
33
  - antoine.legrand@conny.legal
34
34
  - lakhan.pasari@conny.legal
35
35
  executables: []
@@ -37,12 +37,11 @@ extensions: []
37
37
  extra_rdoc_files: []
38
38
  files:
39
39
  - README.md
40
- - lib/pdfserve_client.rb
41
- - lib/pdfserve_client/client.rb
42
- - lib/pdfserve_client/merge.rb
43
- - lib/pdfserve_client/split.rb
44
- - lib/pdfserve_client/stamp.rb
45
- - lib/pdfserve_client/version.rb
40
+ - lib/pdfserve/client.rb
41
+ - lib/pdfserve/merge.rb
42
+ - lib/pdfserve/split.rb
43
+ - lib/pdfserve/stamp.rb
44
+ - lib/pdfserve/version.rb
46
45
  homepage: https://github.com/mietright/pdf_merger
47
46
  licenses:
48
47
  - MIT
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module PdfserveClient
4
- VERSION = "2.0.0"
5
- end
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "pdfserve_client/client"