apiverve_markdowntopdf 1.2.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 543f1b7162a23a9dfedf4807c1f29af860fac7c9451fc424e3fc004f3993905d
4
+ data.tar.gz: bfc41a6da0e9f110e6a60a36746eb39c88ce1b91b7d5ca93db120412ea4fdd44
5
+ SHA512:
6
+ metadata.gz: 9f5e7f2d7306e4d6c4a4688574872d8ca860ae9e14f6a770526e86522ce8f26c3f123275e40ffdc330b46aedc3303d411fe79cbb7bce0c8b256796e7c8728e6b
7
+ data.tar.gz: 8797e4cfcde2f30477c4fad951ac8a68ddd7654b7a392f71bc4026fa85f3a9a25ef402433e705a7a7b5710e76992578b23aea6c4aa5e6290351ad13e797f7b3f
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) {{year}} APIVerve
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,129 @@
1
+ # Markdown to PDF API - Ruby Gem
2
+
3
+ Markdown to PDF converts markdown text into professionally formatted PDF documents with Base64-encoded output for easy downloading.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'apiverve_markdowntopdf'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```bash
16
+ $ bundle install
17
+ ```
18
+
19
+ Or install it yourself as:
20
+
21
+ ```bash
22
+ $ gem install apiverve_markdowntopdf
23
+ ```
24
+
25
+ ## Getting Started
26
+
27
+ Get your API key at [APIVerve](https://apiverve.com)
28
+
29
+ ### Basic Usage
30
+
31
+ ```ruby
32
+ require 'apiverve_markdowntopdf'
33
+
34
+ # Initialize the client
35
+ client = APIVerve::Markdowntopdf::Client.new(api_key: "YOUR_API_KEY")
36
+
37
+ # Make a request
38
+ response = client.execute({ markdown: "# Sample Document
39
+
40
+ ## Introduction
41
+
42
+ This is a sample markdown document that will be converted to PDF.
43
+
44
+ ### Key Points
45
+
46
+ - **First point**: This is important
47
+ - **Second point**: This is also important
48
+ - *Third point*: Don't forget this
49
+
50
+ ## Conclusion
51
+
52
+ Thank you for using our API!" })
53
+
54
+ # Print the response
55
+ puts response
56
+ ```
57
+
58
+
59
+ ### Error Handling
60
+
61
+ ```ruby
62
+ begin
63
+ response = client.execute({ markdown: "# Sample Document
64
+
65
+ ## Introduction
66
+
67
+ This is a sample markdown document that will be converted to PDF.
68
+
69
+ ### Key Points
70
+
71
+ - **First point**: This is important
72
+ - **Second point**: This is also important
73
+ - *Third point*: Don't forget this
74
+
75
+ ## Conclusion
76
+
77
+ Thank you for using our API!" })
78
+ puts response["data"]
79
+ rescue APIVerve::Markdowntopdf::ValidationError => e
80
+ puts "Validation error: #{e.errors.join(', ')}"
81
+ rescue APIVerve::Markdowntopdf::APIError => e
82
+ puts "API error: #{e.message}"
83
+ puts "Status code: #{e.status_code}"
84
+ end
85
+ ```
86
+
87
+ ### Debug Mode
88
+
89
+ ```ruby
90
+ # Enable debug logging
91
+ client = APIVerve::Markdowntopdf::Client.new(
92
+ api_key: "YOUR_API_KEY",
93
+ debug: true
94
+ )
95
+ ```
96
+
97
+ ## Example Response
98
+
99
+ ```json
100
+ {
101
+ "status": "ok",
102
+ "error": null,
103
+ "data": {
104
+ "marginLeft": "0.4in",
105
+ "marginRight": "0.4in",
106
+ "marginTop": "0.4in",
107
+ "marginBottom": "0.4in",
108
+ "landscape": false,
109
+ "pdfName": "b3ce14f5-1c44-4d2d-8a10-77430b679dae.pdf",
110
+ "expires": 1766096769188,
111
+ "downloadURL": "https://storage.googleapis.com/apiverve-helpers.appspot.com/htmltopdf/b3ce14f5-1c44-4d2d-8a10-77430b679dae.pdf?GoogleAccessId=1089020767582-compute%40developer.gserviceaccount.com&Expires=1766096769&Signature=q%2Fe4YUCniLQIRCPSO82LhTJ%2BSfqZSPNq8nSblE0LW6%2B546R9kXIowaQD7k%2BOhFzQi9q3nb8QcUNtZijHpEkIIcy6OOayWInWMzMF8ooXQ7Gch4YJL6iAURSIFZpfEw3XqyYuWXP1dw372kmiYVfTBgaRed0apeRwjeF8bGciLm%2FOsYKcsRrYlJtuyFwqeNw4G2aQKgLkxUw%2FP6L5Av%2BZssRkRqIWvQ6eNmwpUJZ48hJZYY6%2BRFhTYwnN4dEPWYSd9TSiJf6C%2BEWReWQJlgBy7BUK0H%2B9pyn4872PV1N3eI9VHhg89g4dimbieOQUF%2BhG%2Bkhcd5z0inaMml7DBdbF4g%3D%3D",
112
+ "markdownLength": 278,
113
+ "htmlLength": 380
114
+ }
115
+ }
116
+ ```
117
+
118
+ ## Documentation
119
+
120
+ For more information, visit the [API Documentation](https://docs.apiverve.com/ref/markdowntopdf?utm_source=rubygems&utm_medium=readme).
121
+
122
+ ## Support
123
+
124
+ - Website: [https://apiverve.com/marketplace/markdowntopdf?utm_source=ruby&utm_medium=readme](https://apiverve.com/marketplace/markdowntopdf?utm_source=ruby&utm_medium=readme)
125
+ - Email: hello@apiverve.com
126
+
127
+ ## License
128
+
129
+ This gem is available under the [MIT License](LICENSE).
@@ -0,0 +1,198 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "faraday/multipart"
5
+ require "json"
6
+
7
+ module APIVerve
8
+ module Markdowntopdf
9
+ # Client for the Markdown to PDF API
10
+ #
11
+ # @example Basic usage
12
+ # client = APIVerve::Markdowntopdf::Client.new(api_key: "your_api_key")
13
+ # response = client.execute({ markdown: "# Sample Document
14
+
15
+ ## Introduction
16
+
17
+ This is a sample markdown document that will be converted to PDF.
18
+
19
+ ### Key Points
20
+
21
+ - **First point**: This is important
22
+ - **Second point**: This is also important
23
+ - *Third point*: Don't forget this
24
+
25
+ ## Conclusion
26
+
27
+ Thank you for using our API!" })
28
+ # puts response
29
+ #
30
+ # @see https://apiverve.com/marketplace/markdowntopdf?utm_source=ruby&utm_medium=readme
31
+ class Client
32
+ BASE_URL = "https://api.apiverve.com/v1/markdowntopdf"
33
+ DEFAULT_TIMEOUT = 30
34
+
35
+ # Validation rules for parameters
36
+ VALIDATION_RULES = { 'markdown' => { type: 'string', required: true } }
37
+
38
+ # Format validation patterns
39
+ FORMAT_PATTERNS = {
40
+ 'email' => /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
41
+ 'url' => /^https?:\/\/.+/,
42
+ 'ip' => /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/,
43
+ 'date' => /^\d{4}-\d{2}-\d{2}$/,
44
+ 'hexColor' => /^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
45
+ }.freeze
46
+
47
+ # Initialize the client
48
+ #
49
+ # @param api_key [String] Your APIVerve API key
50
+ # @param timeout [Integer] Request timeout in seconds (default: 30)
51
+ # @param debug [Boolean] Enable debug logging (default: false)
52
+ # @raise [ArgumentError] If API key is invalid
53
+ def initialize(api_key:, timeout: DEFAULT_TIMEOUT, debug: false)
54
+ validate_api_key!(api_key)
55
+
56
+ @api_key = api_key
57
+ @timeout = timeout
58
+ @debug = debug
59
+
60
+ @connection = Faraday.new(url: BASE_URL) do |conn|
61
+ conn.request :multipart
62
+ conn.request :url_encoded
63
+ conn.adapter Faraday.default_adapter
64
+ conn.options.timeout = @timeout
65
+ conn.headers["x-api-key"] = @api_key
66
+ conn.headers["auth-mode"] = "rubygems-package"
67
+ conn.headers["Content-Type"] = "application/json"
68
+ end
69
+ end
70
+
71
+ # Execute the API request
72
+ #
73
+ # @param params [Hash] Query parameters or request body
74
+ # @return [Hash] API response
75
+ # @raise [APIError] If the request fails
76
+ # @raise [ValidationError] If parameter validation fails
77
+ def execute(params = {})
78
+ validate_params!(params)
79
+
80
+ log("Making POST request to #{BASE_URL}")
81
+ log("Parameters: #{params.inspect}") if params.any?
82
+
83
+ response = @connection.post do |req|
84
+ req.body = params.to_json
85
+ end
86
+
87
+ handle_response(response)
88
+ end
89
+
90
+ private
91
+
92
+ def validate_api_key!(api_key)
93
+ raise ArgumentError, "API key is required. Get your API key at: https://apiverve.com" if api_key.nil? || api_key.strip.empty?
94
+
95
+ unless api_key.match?(/^[a-zA-Z0-9_-]+$/)
96
+ raise ArgumentError, "Invalid API key format. API key should only contain letters, numbers, hyphens, and underscores."
97
+ end
98
+ end
99
+
100
+ def validate_params!(params)
101
+ return if VALIDATION_RULES.empty?
102
+
103
+ errors = []
104
+
105
+ VALIDATION_RULES.each do |param_name, rules|
106
+ value = params[param_name.to_sym] || params[param_name]
107
+
108
+ # Check required
109
+ if rules[:required] && (value.nil? || value.to_s.empty?)
110
+ errors << "Required parameter [#{param_name}] is missing."
111
+ next
112
+ end
113
+
114
+ next if value.nil?
115
+
116
+ case rules[:type]
117
+ when "integer", "number"
118
+ begin
119
+ num_value = rules[:type] == "number" ? Float(value) : Integer(value)
120
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min]}." if rules[:min] && num_value < rules[:min]
121
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max]}." if rules[:max] && num_value > rules[:max]
122
+ rescue ArgumentError, TypeError
123
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:type]}."
124
+ end
125
+ when "string"
126
+ unless value.is_a?(String)
127
+ errors << "Parameter [#{param_name}] must be a string."
128
+ next
129
+ end
130
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min_length]} characters." if rules[:min_length] && value.length < rules[:min_length]
131
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max_length]} characters." if rules[:max_length] && value.length > rules[:max_length]
132
+
133
+ if rules[:format] && FORMAT_PATTERNS[rules[:format]]
134
+ unless value.match?(FORMAT_PATTERNS[rules[:format]])
135
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:format]}."
136
+ end
137
+ end
138
+ when "boolean"
139
+ unless [true, false, "true", "false"].include?(value)
140
+ errors << "Parameter [#{param_name}] must be a boolean."
141
+ end
142
+ end
143
+
144
+ # Enum validation
145
+ if rules[:enum] && !rules[:enum].include?(value)
146
+ errors << "Parameter [#{param_name}] must be one of: #{rules[:enum].join(', ')}."
147
+ end
148
+ end
149
+
150
+ raise ValidationError, errors unless errors.empty?
151
+ end
152
+
153
+ def handle_response(response)
154
+ log("Response status: #{response.status}")
155
+
156
+ data = JSON.parse(response.body)
157
+
158
+ if data["status"] == "error"
159
+ raise APIError.new(data["error"] || "Unknown API error", response.status, data)
160
+ end
161
+
162
+ unless response.success?
163
+ raise APIError.new(data["error"] || "HTTP #{response.status} error", response.status, data)
164
+ end
165
+
166
+ log("Request successful")
167
+ data
168
+ rescue JSON::ParserError => e
169
+ raise APIError.new("Invalid JSON response: #{e.message}", response.status)
170
+ end
171
+
172
+ def log(message)
173
+ puts "[APIVerve::Markdowntopdf] #{message}" if @debug
174
+ end
175
+ end
176
+
177
+ # Custom error class for API errors
178
+ class APIError < StandardError
179
+ attr_reader :status_code, :response
180
+
181
+ def initialize(message, status_code = nil, response = nil)
182
+ @status_code = status_code
183
+ @response = response
184
+ super(message)
185
+ end
186
+ end
187
+
188
+ # Custom error class for validation errors
189
+ class ValidationError < StandardError
190
+ attr_reader :errors
191
+
192
+ def initialize(errors)
193
+ @errors = errors
194
+ super("Validation failed: #{errors.join(' ')}")
195
+ end
196
+ end
197
+ end
198
+ end
@@ -0,0 +1,200 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "faraday/multipart"
5
+ require "json"
6
+
7
+ module APIVerve
8
+ module Markdowntopdf
9
+ # Client for the Markdown to PDF API
10
+ #
11
+ # @example Basic usage
12
+ # client = APIVerve::Markdowntopdf::Client.new(api_key: "your_api_key")
13
+ # response = client.execute({ markdown: "# Sample Document
14
+
15
+ ## Introduction
16
+
17
+ This is a sample markdown document that will be converted to PDF.
18
+
19
+ ### Key Points
20
+
21
+ - **First point**: This is important
22
+ - **Second point**: This is also important
23
+ - *Third point*: Don't forget this
24
+
25
+ ## Conclusion
26
+
27
+ Thank you for using our API!" })
28
+ # puts response
29
+ #
30
+ # @see https://apiverve.com/marketplace/markdowntopdf?utm_source=ruby&utm_medium=readme
31
+ class Client
32
+ BASE_URL = "https://api.apiverve.com/v1/markdowntopdf"
33
+ DEFAULT_TIMEOUT = 30
34
+
35
+ # Validation rules for parameters
36
+ VALIDATION_RULES = {
37
+ 'markdown' => { type: 'string', required: true }
38
+ }
39
+
40
+ # Format validation patterns
41
+ FORMAT_PATTERNS = {
42
+ 'email' => /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
43
+ 'url' => /^https?:\/\/.+/,
44
+ 'ip' => /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/,
45
+ 'date' => /^\d{4}-\d{2}-\d{2}$/,
46
+ 'hexColor' => /^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
47
+ }.freeze
48
+
49
+ # Initialize the client
50
+ #
51
+ # @param api_key [String] Your APIVerve API key
52
+ # @param timeout [Integer] Request timeout in seconds (default: 30)
53
+ # @param debug [Boolean] Enable debug logging (default: false)
54
+ # @raise [ArgumentError] If API key is invalid
55
+ def initialize(api_key:, timeout: DEFAULT_TIMEOUT, debug: false)
56
+ validate_api_key!(api_key)
57
+
58
+ @api_key = api_key
59
+ @timeout = timeout
60
+ @debug = debug
61
+
62
+ @connection = Faraday.new(url: BASE_URL) do |conn|
63
+ conn.request :multipart
64
+ conn.request :url_encoded
65
+ conn.adapter Faraday.default_adapter
66
+ conn.options.timeout = @timeout
67
+ conn.headers["x-api-key"] = @api_key
68
+ conn.headers["auth-mode"] = "rubygems-package"
69
+ conn.headers["Content-Type"] = "application/json"
70
+ end
71
+ end
72
+
73
+ # Execute the API request
74
+ #
75
+ # @param params [Hash] Query parameters or request body
76
+ # @return [Hash] API response
77
+ # @raise [APIError] If the request fails
78
+ # @raise [ValidationError] If parameter validation fails
79
+ def execute(params = {})
80
+ validate_params!(params)
81
+
82
+ log("Making POST request to #{BASE_URL}")
83
+ log("Parameters: #{params.inspect}") if params.any?
84
+
85
+ response = @connection.post do |req|
86
+ req.body = params.to_json
87
+ end
88
+
89
+ handle_response(response)
90
+ end
91
+
92
+ private
93
+
94
+ def validate_api_key!(api_key)
95
+ raise ArgumentError, "API key is required. Get your API key at: https://apiverve.com" if api_key.nil? || api_key.strip.empty?
96
+
97
+ unless api_key.match?(/^[a-zA-Z0-9_-]+$/)
98
+ raise ArgumentError, "Invalid API key format. API key should only contain letters, numbers, hyphens, and underscores."
99
+ end
100
+ end
101
+
102
+ def validate_params!(params)
103
+ return if VALIDATION_RULES.empty?
104
+
105
+ errors = []
106
+
107
+ VALIDATION_RULES.each do |param_name, rules|
108
+ value = params[param_name.to_sym] || params[param_name]
109
+
110
+ # Check required
111
+ if rules[:required] && (value.nil? || value.to_s.empty?)
112
+ errors << "Required parameter [#{param_name}] is missing."
113
+ next
114
+ end
115
+
116
+ next if value.nil?
117
+
118
+ case rules[:type]
119
+ when "integer", "number"
120
+ begin
121
+ num_value = rules[:type] == "number" ? Float(value) : Integer(value)
122
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min]}." if rules[:min] && num_value < rules[:min]
123
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max]}." if rules[:max] && num_value > rules[:max]
124
+ rescue ArgumentError, TypeError
125
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:type]}."
126
+ end
127
+ when "string"
128
+ unless value.is_a?(String)
129
+ errors << "Parameter [#{param_name}] must be a string."
130
+ next
131
+ end
132
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min_length]} characters." if rules[:min_length] && value.length < rules[:min_length]
133
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max_length]} characters." if rules[:max_length] && value.length > rules[:max_length]
134
+
135
+ if rules[:format] && FORMAT_PATTERNS[rules[:format]]
136
+ unless value.match?(FORMAT_PATTERNS[rules[:format]])
137
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:format]}."
138
+ end
139
+ end
140
+ when "boolean"
141
+ unless [true, false, "true", "false"].include?(value)
142
+ errors << "Parameter [#{param_name}] must be a boolean."
143
+ end
144
+ end
145
+
146
+ # Enum validation
147
+ if rules[:enum] && !rules[:enum].include?(value)
148
+ errors << "Parameter [#{param_name}] must be one of: #{rules[:enum].join(', ')}."
149
+ end
150
+ end
151
+
152
+ raise ValidationError, errors unless errors.empty?
153
+ end
154
+
155
+ def handle_response(response)
156
+ log("Response status: #{response.status}")
157
+
158
+ data = JSON.parse(response.body)
159
+
160
+ if data["status"] == "error"
161
+ raise APIError.new(data["error"] || "Unknown API error", response.status, data)
162
+ end
163
+
164
+ unless response.success?
165
+ raise APIError.new(data["error"] || "HTTP #{response.status} error", response.status, data)
166
+ end
167
+
168
+ log("Request successful")
169
+ data
170
+ rescue JSON::ParserError => e
171
+ raise APIError.new("Invalid JSON response: #{e.message}", response.status)
172
+ end
173
+
174
+ def log(message)
175
+ puts "[APIVerve::Markdowntopdf] #{message}" if @debug
176
+ end
177
+ end
178
+
179
+ # Custom error class for API errors
180
+ class APIError < StandardError
181
+ attr_reader :status_code, :response
182
+
183
+ def initialize(message, status_code = nil, response = nil)
184
+ @status_code = status_code
185
+ @response = response
186
+ super(message)
187
+ end
188
+ end
189
+
190
+ # Custom error class for validation errors
191
+ class ValidationError < StandardError
192
+ attr_reader :errors
193
+
194
+ def initialize(errors)
195
+ @errors = errors
196
+ super("Validation failed: #{errors.join(' ')}")
197
+ end
198
+ end
199
+ end
200
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "apiverve_markdowntopdf/client"
4
+
5
+ module APIVerve
6
+ module Markdowntopdf
7
+ VERSION = "1.2.0"
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: apiverve_markdowntopdf
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.0
5
+ platform: ruby
6
+ authors:
7
+ - APIVerve
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: faraday
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.0'
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '1.0'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '3.0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: faraday-multipart
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '1.0'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: json
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.0'
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '2.0'
60
+ description: Markdown to PDF converts markdown text into professionally formatted
61
+ PDF documents with Base64-encoded output for easy downloading.
62
+ email:
63
+ - hello@apiverve.com
64
+ executables: []
65
+ extensions: []
66
+ extra_rdoc_files: []
67
+ files:
68
+ - LICENSE
69
+ - README.md
70
+ - lib/apiverve/client.rb
71
+ - lib/apiverve_markdowntopdf.rb
72
+ - lib/apiverve_markdowntopdf/client.rb
73
+ homepage: https://apiverve.com/marketplace/markdowntopdf?utm_source=ruby&utm_medium=homepage
74
+ licenses:
75
+ - MIT
76
+ metadata:
77
+ homepage_uri: https://apiverve.com/marketplace/markdowntopdf?utm_source=ruby&utm_medium=homepage
78
+ source_code_uri: https://github.com/apiverve/markdowntopdf-API/tree/main/ruby
79
+ changelog_uri: https://apiverve.com/changelog
80
+ documentation_uri: https://docs.apiverve.com/ref/markdowntopdf
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 2.7.0
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubygems_version: 3.6.9
96
+ specification_version: 4
97
+ summary: Markdown to PDF API - Ruby Client
98
+ test_files: []