apiverve_markdowntoimage 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: 4e2a771e3c9cc44389c3eef2499904ce1106f0a518de57996e4122fd90770581
4
+ data.tar.gz: 1dca1e6f7595c03c1d9cfae2bd92899e8caea342f346ad5bedb773c554147820
5
+ SHA512:
6
+ metadata.gz: a06150df5f2afeccc83f9e0639aceac6f1af0b1c9e83f218b41b3058976d8a5834a4426dfe03fda4c6ac1538d0bd15c76a730317497769c38e0dade607e66c8d
7
+ data.tar.gz: ffb1c48685b76cb2469eb8a35f8eab8dc3163172cb74a36d3ee2a55ce42da4952c231cda924c6ef5ffb71f4d6f997b3847479f34733b8671ed22445edf1b4ec0
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,130 @@
1
+ # Markdown to Image API - Ruby Gem
2
+
3
+ Markdown to Image converts markdown text into visual image representations, rendering content as PNG, JPEG, or WebP images.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'apiverve_markdowntoimage'
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_markdowntoimage
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_markdowntoimage'
33
+
34
+ # Initialize the client
35
+ client = APIVerve::Markdowntoimage::Client.new(api_key: "YOUR_API_KEY")
36
+
37
+ # Make a request
38
+ response = client.execute({
39
+ markdown: "# Sample Markdown Document
40
+
41
+ This is a **sample** markdown document that will be converted to an image.
42
+
43
+ ## Features
44
+
45
+ - Supports headers
46
+ - Supports **bold** and *italic* text
47
+ - Supports lists
48
+
49
+ ## Example
50
+
51
+ This markdown will be rendered as a visual image with customizable dimensions.",
52
+ width: 1280,
53
+ height: 800,
54
+ format: "png"
55
+ })
56
+
57
+ # Print the response
58
+ puts response
59
+ ```
60
+
61
+
62
+ ### Error Handling
63
+
64
+ ```ruby
65
+ begin
66
+ response = client.execute({ markdown: "# Sample Markdown Document
67
+
68
+ This is a **sample** markdown document that will be converted to an image.
69
+
70
+ ## Features
71
+
72
+ - Supports headers
73
+ - Supports **bold** and *italic* text
74
+ - Supports lists
75
+
76
+ ## Example
77
+
78
+ This markdown will be rendered as a visual image with customizable dimensions.", width: 1280, height: 800, format: "png" })
79
+ puts response["data"]
80
+ rescue APIVerve::Markdowntoimage::ValidationError => e
81
+ puts "Validation error: #{e.errors.join(', ')}"
82
+ rescue APIVerve::Markdowntoimage::APIError => e
83
+ puts "API error: #{e.message}"
84
+ puts "Status code: #{e.status_code}"
85
+ end
86
+ ```
87
+
88
+ ### Debug Mode
89
+
90
+ ```ruby
91
+ # Enable debug logging
92
+ client = APIVerve::Markdowntoimage::Client.new(
93
+ api_key: "YOUR_API_KEY",
94
+ debug: true
95
+ )
96
+ ```
97
+
98
+ ## Example Response
99
+
100
+ ```json
101
+ {
102
+ "status": "ok",
103
+ "error": null,
104
+ "data": {
105
+ "imageName": "31e86a48-125a-464a-8ea5-8b342226944f.png",
106
+ "format": ".png",
107
+ "downloadURL": "https://storage.googleapis.com/apiverve/APIData/markdowntoimage/31e86a48-125a-464a-8ea5-8b342226944f.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010365&Signature=PXD9Zct7HearzSJvxZcNlnlnPdga8qH1Mln4I7tTDmrzSolUdwDxZx3Xdsy6LVu8B%2F1es7keTFKcnNnBm2Er9Kqbmg5j9BeTX3lQnJsIVh5gAlsEheT%2B%2FpWjWnjRWc%2FdtqurbUR%2BcSYMELqufs%2FPcrK62OAl0lmf6zARA2KtUP8qop%2FORbG81h%2BkFIoy3VaaRVXiceewF6HQzBz%2FFBhmc1oOAiEPiQZl7PQRu%2Fz4oX%2BtMbnWPUoUmIXVVfDmMw4XsyWlckQo%2BfZ34B79aOaBznpuJ0Z%2BlN1upsHPvBO33WRdQHECEUMJmGB7KgRZU%2Bjqco4LSEOO9kfkLlMxYyl3pQ%3D%3D",
108
+ "expires": 1766010365188,
109
+ "markdownLength": 282,
110
+ "htmlLength": 376,
111
+ "dimensions": {
112
+ "width": 1280,
113
+ "height": 800
114
+ }
115
+ }
116
+ }
117
+ ```
118
+
119
+ ## Documentation
120
+
121
+ For more information, visit the [API Documentation](https://docs.apiverve.com/ref/markdowntoimage?utm_source=rubygems&utm_medium=readme).
122
+
123
+ ## Support
124
+
125
+ - Website: [https://markdowntoimage.apiverve.com?utm_source=ruby&utm_medium=readme](https://markdowntoimage.apiverve.com?utm_source=ruby&utm_medium=readme)
126
+ - Email: hello@apiverve.com
127
+
128
+ ## License
129
+
130
+ This gem is available under the [MIT License](LICENSE).
@@ -0,0 +1,196 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "faraday/multipart"
5
+ require "json"
6
+
7
+ module APIVerve
8
+ module Markdowntoimage
9
+ # Client for the Markdown to Image API
10
+ #
11
+ # @example Basic usage
12
+ # client = APIVerve::Markdowntoimage::Client.new(api_key: "your_api_key")
13
+ # response = client.execute({ markdown: "# Sample Markdown Document
14
+
15
+ This is a **sample** markdown document that will be converted to an image.
16
+
17
+ ## Features
18
+
19
+ - Supports headers
20
+ - Supports **bold** and *italic* text
21
+ - Supports lists
22
+
23
+ ## Example
24
+
25
+ This markdown will be rendered as a visual image with customizable dimensions.", width: 1280, height: 800, format: "png" })
26
+ # puts response
27
+ #
28
+ # @see https://markdowntoimage.apiverve.com?utm_source=ruby&utm_medium=readme
29
+ class Client
30
+ BASE_URL = "https://api.apiverve.com/v1/markdowntoimage"
31
+ DEFAULT_TIMEOUT = 30
32
+
33
+ # Validation rules for parameters
34
+ VALIDATION_RULES = { 'markdown' => { type: 'string', required: true, max_length: 500000 }, 'width' => { type: 'integer', required: false, min: 100, max: 3840 }, 'height' => { type: 'integer', required: false, min: 100, max: 2160 }, 'format' => { type: 'string', required: false } }
35
+
36
+ # Format validation patterns
37
+ FORMAT_PATTERNS = {
38
+ 'email' => /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
39
+ 'url' => /^https?:\/\/.+/,
40
+ '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}$/,
41
+ 'date' => /^\d{4}-\d{2}-\d{2}$/,
42
+ 'hexColor' => /^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
43
+ }.freeze
44
+
45
+ # Initialize the client
46
+ #
47
+ # @param api_key [String] Your APIVerve API key
48
+ # @param timeout [Integer] Request timeout in seconds (default: 30)
49
+ # @param debug [Boolean] Enable debug logging (default: false)
50
+ # @raise [ArgumentError] If API key is invalid
51
+ def initialize(api_key:, timeout: DEFAULT_TIMEOUT, debug: false)
52
+ validate_api_key!(api_key)
53
+
54
+ @api_key = api_key
55
+ @timeout = timeout
56
+ @debug = debug
57
+
58
+ @connection = Faraday.new(url: BASE_URL) do |conn|
59
+ conn.request :multipart
60
+ conn.request :url_encoded
61
+ conn.adapter Faraday.default_adapter
62
+ conn.options.timeout = @timeout
63
+ conn.headers["x-api-key"] = @api_key
64
+ conn.headers["auth-mode"] = "rubygems-package"
65
+ conn.headers["Content-Type"] = "application/json"
66
+ end
67
+ end
68
+
69
+ # Execute the API request
70
+ #
71
+ # @param params [Hash] Query parameters or request body
72
+ # @return [Hash] API response
73
+ # @raise [APIError] If the request fails
74
+ # @raise [ValidationError] If parameter validation fails
75
+ def execute(params = {})
76
+ validate_params!(params)
77
+
78
+ log("Making POST request to #{BASE_URL}")
79
+ log("Parameters: #{params.inspect}") if params.any?
80
+
81
+ response = @connection.post do |req|
82
+ req.body = params.to_json
83
+ end
84
+
85
+ handle_response(response)
86
+ end
87
+
88
+ private
89
+
90
+ def validate_api_key!(api_key)
91
+ raise ArgumentError, "API key is required. Get your API key at: https://apiverve.com" if api_key.nil? || api_key.strip.empty?
92
+
93
+ unless api_key.match?(/^[a-zA-Z0-9_-]+$/)
94
+ raise ArgumentError, "Invalid API key format. API key should only contain letters, numbers, hyphens, and underscores."
95
+ end
96
+ end
97
+
98
+ def validate_params!(params)
99
+ return if VALIDATION_RULES.empty?
100
+
101
+ errors = []
102
+
103
+ VALIDATION_RULES.each do |param_name, rules|
104
+ value = params[param_name.to_sym] || params[param_name]
105
+
106
+ # Check required
107
+ if rules[:required] && (value.nil? || value.to_s.empty?)
108
+ errors << "Required parameter [#{param_name}] is missing."
109
+ next
110
+ end
111
+
112
+ next if value.nil?
113
+
114
+ case rules[:type]
115
+ when "integer", "number"
116
+ begin
117
+ num_value = rules[:type] == "number" ? Float(value) : Integer(value)
118
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min]}." if rules[:min] && num_value < rules[:min]
119
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max]}." if rules[:max] && num_value > rules[:max]
120
+ rescue ArgumentError, TypeError
121
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:type]}."
122
+ end
123
+ when "string"
124
+ unless value.is_a?(String)
125
+ errors << "Parameter [#{param_name}] must be a string."
126
+ next
127
+ end
128
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min_length]} characters." if rules[:min_length] && value.length < rules[:min_length]
129
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max_length]} characters." if rules[:max_length] && value.length > rules[:max_length]
130
+
131
+ if rules[:format] && FORMAT_PATTERNS[rules[:format]]
132
+ unless value.match?(FORMAT_PATTERNS[rules[:format]])
133
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:format]}."
134
+ end
135
+ end
136
+ when "boolean"
137
+ unless [true, false, "true", "false"].include?(value)
138
+ errors << "Parameter [#{param_name}] must be a boolean."
139
+ end
140
+ end
141
+
142
+ # Enum validation
143
+ if rules[:enum] && !rules[:enum].include?(value)
144
+ errors << "Parameter [#{param_name}] must be one of: #{rules[:enum].join(', ')}."
145
+ end
146
+ end
147
+
148
+ raise ValidationError, errors unless errors.empty?
149
+ end
150
+
151
+ def handle_response(response)
152
+ log("Response status: #{response.status}")
153
+
154
+ data = JSON.parse(response.body)
155
+
156
+ if data["status"] == "error"
157
+ raise APIError.new(data["error"] || "Unknown API error", response.status, data)
158
+ end
159
+
160
+ unless response.success?
161
+ raise APIError.new(data["error"] || "HTTP #{response.status} error", response.status, data)
162
+ end
163
+
164
+ log("Request successful")
165
+ data
166
+ rescue JSON::ParserError => e
167
+ raise APIError.new("Invalid JSON response: #{e.message}", response.status)
168
+ end
169
+
170
+ def log(message)
171
+ puts "[APIVerve::Markdowntoimage] #{message}" if @debug
172
+ end
173
+ end
174
+
175
+ # Custom error class for API errors
176
+ class APIError < StandardError
177
+ attr_reader :status_code, :response
178
+
179
+ def initialize(message, status_code = nil, response = nil)
180
+ @status_code = status_code
181
+ @response = response
182
+ super(message)
183
+ end
184
+ end
185
+
186
+ # Custom error class for validation errors
187
+ class ValidationError < StandardError
188
+ attr_reader :errors
189
+
190
+ def initialize(errors)
191
+ @errors = errors
192
+ super("Validation failed: #{errors.join(' ')}")
193
+ end
194
+ end
195
+ end
196
+ end
@@ -0,0 +1,201 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "faraday/multipart"
5
+ require "json"
6
+
7
+ module APIVerve
8
+ module Markdowntoimage
9
+ # Client for the Markdown to Image API
10
+ #
11
+ # @example Basic usage
12
+ # client = APIVerve::Markdowntoimage::Client.new(api_key: "your_api_key")
13
+ # response = client.execute({ markdown: "# Sample Markdown Document
14
+
15
+ This is a **sample** markdown document that will be converted to an image.
16
+
17
+ ## Features
18
+
19
+ - Supports headers
20
+ - Supports **bold** and *italic* text
21
+ - Supports lists
22
+
23
+ ## Example
24
+
25
+ This markdown will be rendered as a visual image with customizable dimensions.", width: 1280, height: 800, format: "png" })
26
+ # puts response
27
+ #
28
+ # @see https://markdowntoimage.apiverve.com?utm_source=ruby&utm_medium=readme
29
+ class Client
30
+ BASE_URL = "https://api.apiverve.com/v1/markdowntoimage"
31
+ DEFAULT_TIMEOUT = 30
32
+
33
+ # Validation rules for parameters
34
+ VALIDATION_RULES = {
35
+ 'markdown' => { type: 'string', required: true, max_length: 500000 },
36
+ 'width' => { type: 'integer', required: false, min: 100, max: 3840 },
37
+ 'height' => { type: 'integer', required: false, min: 100, max: 2160 },
38
+ 'format' => { type: 'string', required: false }
39
+ }
40
+
41
+ # Format validation patterns
42
+ FORMAT_PATTERNS = {
43
+ 'email' => /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
44
+ 'url' => /^https?:\/\/.+/,
45
+ '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}$/,
46
+ 'date' => /^\d{4}-\d{2}-\d{2}$/,
47
+ 'hexColor' => /^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
48
+ }.freeze
49
+
50
+ # Initialize the client
51
+ #
52
+ # @param api_key [String] Your APIVerve API key
53
+ # @param timeout [Integer] Request timeout in seconds (default: 30)
54
+ # @param debug [Boolean] Enable debug logging (default: false)
55
+ # @raise [ArgumentError] If API key is invalid
56
+ def initialize(api_key:, timeout: DEFAULT_TIMEOUT, debug: false)
57
+ validate_api_key!(api_key)
58
+
59
+ @api_key = api_key
60
+ @timeout = timeout
61
+ @debug = debug
62
+
63
+ @connection = Faraday.new(url: BASE_URL) do |conn|
64
+ conn.request :multipart
65
+ conn.request :url_encoded
66
+ conn.adapter Faraday.default_adapter
67
+ conn.options.timeout = @timeout
68
+ conn.headers["x-api-key"] = @api_key
69
+ conn.headers["auth-mode"] = "rubygems-package"
70
+ conn.headers["Content-Type"] = "application/json"
71
+ end
72
+ end
73
+
74
+ # Execute the API request
75
+ #
76
+ # @param params [Hash] Query parameters or request body
77
+ # @return [Hash] API response
78
+ # @raise [APIError] If the request fails
79
+ # @raise [ValidationError] If parameter validation fails
80
+ def execute(params = {})
81
+ validate_params!(params)
82
+
83
+ log("Making POST request to #{BASE_URL}")
84
+ log("Parameters: #{params.inspect}") if params.any?
85
+
86
+ response = @connection.post do |req|
87
+ req.body = params.to_json
88
+ end
89
+
90
+ handle_response(response)
91
+ end
92
+
93
+ private
94
+
95
+ def validate_api_key!(api_key)
96
+ raise ArgumentError, "API key is required. Get your API key at: https://apiverve.com" if api_key.nil? || api_key.strip.empty?
97
+
98
+ unless api_key.match?(/^[a-zA-Z0-9_-]+$/)
99
+ raise ArgumentError, "Invalid API key format. API key should only contain letters, numbers, hyphens, and underscores."
100
+ end
101
+ end
102
+
103
+ def validate_params!(params)
104
+ return if VALIDATION_RULES.empty?
105
+
106
+ errors = []
107
+
108
+ VALIDATION_RULES.each do |param_name, rules|
109
+ value = params[param_name.to_sym] || params[param_name]
110
+
111
+ # Check required
112
+ if rules[:required] && (value.nil? || value.to_s.empty?)
113
+ errors << "Required parameter [#{param_name}] is missing."
114
+ next
115
+ end
116
+
117
+ next if value.nil?
118
+
119
+ case rules[:type]
120
+ when "integer", "number"
121
+ begin
122
+ num_value = rules[:type] == "number" ? Float(value) : Integer(value)
123
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min]}." if rules[:min] && num_value < rules[:min]
124
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max]}." if rules[:max] && num_value > rules[:max]
125
+ rescue ArgumentError, TypeError
126
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:type]}."
127
+ end
128
+ when "string"
129
+ unless value.is_a?(String)
130
+ errors << "Parameter [#{param_name}] must be a string."
131
+ next
132
+ end
133
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min_length]} characters." if rules[:min_length] && value.length < rules[:min_length]
134
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max_length]} characters." if rules[:max_length] && value.length > rules[:max_length]
135
+
136
+ if rules[:format] && FORMAT_PATTERNS[rules[:format]]
137
+ unless value.match?(FORMAT_PATTERNS[rules[:format]])
138
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:format]}."
139
+ end
140
+ end
141
+ when "boolean"
142
+ unless [true, false, "true", "false"].include?(value)
143
+ errors << "Parameter [#{param_name}] must be a boolean."
144
+ end
145
+ end
146
+
147
+ # Enum validation
148
+ if rules[:enum] && !rules[:enum].include?(value)
149
+ errors << "Parameter [#{param_name}] must be one of: #{rules[:enum].join(', ')}."
150
+ end
151
+ end
152
+
153
+ raise ValidationError, errors unless errors.empty?
154
+ end
155
+
156
+ def handle_response(response)
157
+ log("Response status: #{response.status}")
158
+
159
+ data = JSON.parse(response.body)
160
+
161
+ if data["status"] == "error"
162
+ raise APIError.new(data["error"] || "Unknown API error", response.status, data)
163
+ end
164
+
165
+ unless response.success?
166
+ raise APIError.new(data["error"] || "HTTP #{response.status} error", response.status, data)
167
+ end
168
+
169
+ log("Request successful")
170
+ data
171
+ rescue JSON::ParserError => e
172
+ raise APIError.new("Invalid JSON response: #{e.message}", response.status)
173
+ end
174
+
175
+ def log(message)
176
+ puts "[APIVerve::Markdowntoimage] #{message}" if @debug
177
+ end
178
+ end
179
+
180
+ # Custom error class for API errors
181
+ class APIError < StandardError
182
+ attr_reader :status_code, :response
183
+
184
+ def initialize(message, status_code = nil, response = nil)
185
+ @status_code = status_code
186
+ @response = response
187
+ super(message)
188
+ end
189
+ end
190
+
191
+ # Custom error class for validation errors
192
+ class ValidationError < StandardError
193
+ attr_reader :errors
194
+
195
+ def initialize(errors)
196
+ @errors = errors
197
+ super("Validation failed: #{errors.join(' ')}")
198
+ end
199
+ end
200
+ end
201
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "apiverve_markdowntoimage/client"
4
+
5
+ module APIVerve
6
+ module Markdowntoimage
7
+ VERSION = "1.2.0"
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: apiverve_markdowntoimage
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 Image converts markdown text into visual image representations,
61
+ rendering content as PNG, JPEG, or WebP images.
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_markdowntoimage.rb
72
+ - lib/apiverve_markdowntoimage/client.rb
73
+ homepage: https://markdowntoimage.apiverve.com?utm_source=ruby&utm_medium=homepage
74
+ licenses:
75
+ - MIT
76
+ metadata:
77
+ homepage_uri: https://markdowntoimage.apiverve.com?utm_source=ruby&utm_medium=homepage
78
+ source_code_uri: https://github.com/apiverve/markdowntoimage-API/tree/main/ruby
79
+ changelog_uri: https://apiverve.com/changelog
80
+ documentation_uri: https://docs.apiverve.com/ref/markdowntoimage
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 Image API - Ruby Client
98
+ test_files: []