apiverve_wordladder 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: e0364a97ef58f60e673e72e4d1665399f9dbb755ad684f48d4e272bc7eef35af
4
+ data.tar.gz: 03b02abacfb5f77e096c63e41ddfcc4d05c17cdfc47fd71640ae65d71077faf1
5
+ SHA512:
6
+ metadata.gz: 063a747fb685e56593f89d32238919350371a0495d9178e2a126dbdc24b3e53a0510363b9f5b67fa02d6db1c51ef6f01b8bade86e7368593e39e14415d779df1
7
+ data.tar.gz: d40e1d710aeb36bd9e94c3876169ba472a42f5d2b34fe7c4e053fb5b0acd73cb84b359d38b528c843aea330e533b5281ea0f5f8b5889f69cc1f280222dcd87de
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,124 @@
1
+ # Word Ladder Generator API - Ruby Gem
2
+
3
+ Word Ladder Generator creates puzzles where players transform one word into another by changing one letter at a time, with each step forming a valid word.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'apiverve_wordladder'
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_wordladder
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_wordladder'
33
+
34
+ # Initialize the client
35
+ client = APIVerve::Wordladder::Client.new(api_key: "YOUR_API_KEY")
36
+
37
+ # Make a request
38
+ response = client.execute({
39
+ start: "cold",
40
+ end: "warm",
41
+ difficulty: "medium",
42
+ count: 1,
43
+ image: true
44
+ })
45
+
46
+ # Print the response
47
+ puts response
48
+ ```
49
+
50
+
51
+ ### Error Handling
52
+
53
+ ```ruby
54
+ begin
55
+ response = client.execute({ start: "cold", end: "warm", difficulty: "medium", count: 1, image: true })
56
+ puts response["data"]
57
+ rescue APIVerve::Wordladder::ValidationError => e
58
+ puts "Validation error: #{e.errors.join(', ')}"
59
+ rescue APIVerve::Wordladder::APIError => e
60
+ puts "API error: #{e.message}"
61
+ puts "Status code: #{e.status_code}"
62
+ end
63
+ ```
64
+
65
+ ### Debug Mode
66
+
67
+ ```ruby
68
+ # Enable debug logging
69
+ client = APIVerve::Wordladder::Client.new(
70
+ api_key: "YOUR_API_KEY",
71
+ debug: true
72
+ )
73
+ ```
74
+
75
+ ## Example Response
76
+
77
+ ```json
78
+ {
79
+ "status": "ok",
80
+ "error": null,
81
+ "data": {
82
+ "puzzles": [
83
+ {
84
+ "startWord": "ANIL",
85
+ "endWord": "CUED",
86
+ "steps": 5,
87
+ "solution": [
88
+ "ANIL",
89
+ "ARIL",
90
+ "ARID",
91
+ "IRID",
92
+ "IRED",
93
+ "CRED",
94
+ "CUED"
95
+ ],
96
+ "solvable": true,
97
+ "difficulty": "medium"
98
+ }
99
+ ],
100
+ "count": 1,
101
+ "difficulty": "medium",
102
+ "html": "<html><head><title>Word Ladder</title><style>body {font-family: Arial, sans-serif; padding: 20px; max-width: 600px; margin: 0 auto;}h1 {text-align: center; color: #4CAF50;}.puzzle {background: #f5f5f5; padding: 25px; margin: 20px 0; border-radius: 10px;}.words {display: flex; justify-content: space-between; align-items: center; margin: 20px 0;}.word {font-size: 28px; font-weight: bold; letter-spacing: 3px; padding: 15px 25px; border-radius: 10px;}.start {background: #4CAF50; color: white;}.end {background: #2196F3; color: white;}.arrow {font-size: 30px; color: #999;}.steps {text-align: center; font-size: 14px; color: #666; margin-bottom: 15px;}.ladder {display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px 0;}.rung {width: 150px; height: 40px; border: 2px dashed #ccc; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 18px; letter-spacing: 5px;}.hint {font-size: 13px; color: #888; font-style: italic; margin-top: 10px;}</style></head><body><h1>Word Ladder</h1><p style='text-align:center;'>Change one letter at a time to get from the first word to the last</p><div class='puzzle'><div class='steps'>Puzzle #1 - 5 steps</div><div class='words'><span class='word start'>ANIL</span><span class='arrow'>→</span><span class='word end'>CUED</span></div><div class='ladder'><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div><div class='rung'>_ _ _ _</div></div></div></body></html>",
103
+ "image": {
104
+ "imageName": "6f0f9e5e-ce0d-4570-a706-8fc5ccbfc948_wordladder.png",
105
+ "format": ".png",
106
+ "downloadURL": "https://storage.googleapis.com/apiverve/APIData/wordladder/6f0f9e5e-ce0d-4570-a706-8fc5ccbfc948_wordladder.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1766010731&Signature=FQwH%2FqXC0eYHgHqGKfBoEETrcXALoIpkf2z7HCkmYcFu2IgL2uMbCBi22tEsrlY3yOkksRuZ56C2685lLi98CWvgCF1J9UrYaAWjFtLesnHZ0i%2B0SWYIy5wZLWnVq4UrJDLZVrvSe8lh21mQJrduVY8QqV%2FI0sViUlnlndLMFUfhEQedKYAGRtmXjJlpl1YA9A9%2BtJoqRvMm4YStfJyLJmExPQKnPiRoP6EB6%2B8%2F1WUq5vH3%2BWglijVroxaJ%2BJy6kgQ8qTuVX9%2FzFi8R0DDHZtd0IpcTL8EBvNvHnjRPS4lZB%2Bm3k9GCxqGCnsj8pssu6ymtzGNEqA%2BBqAthODekWw%3D%3D",
107
+ "expires": 1766010731681
108
+ }
109
+ }
110
+ }
111
+ ```
112
+
113
+ ## Documentation
114
+
115
+ For more information, visit the [API Documentation](https://docs.apiverve.com/ref/wordladder?utm_source=rubygems&utm_medium=readme).
116
+
117
+ ## Support
118
+
119
+ - Website: [https://apiverve.com/marketplace/wordladder?utm_source=ruby&utm_medium=readme](https://apiverve.com/marketplace/wordladder?utm_source=ruby&utm_medium=readme)
120
+ - Email: hello@apiverve.com
121
+
122
+ ## License
123
+
124
+ This gem is available under the [MIT License](LICENSE).
@@ -0,0 +1,184 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "faraday/multipart"
5
+ require "json"
6
+
7
+ module APIVerve
8
+ module Wordladder
9
+ # Client for the Word Ladder Generator API
10
+ #
11
+ # @example Basic usage
12
+ # client = APIVerve::Wordladder::Client.new(api_key: "your_api_key")
13
+ # response = client.execute({ start: "cold", end: "warm", difficulty: "medium", count: 1, image: true })
14
+ # puts response
15
+ #
16
+ # @see https://apiverve.com/marketplace/wordladder?utm_source=ruby&utm_medium=readme
17
+ class Client
18
+ BASE_URL = "https://api.apiverve.com/v1/wordladder"
19
+ DEFAULT_TIMEOUT = 30
20
+
21
+ # Validation rules for parameters
22
+ VALIDATION_RULES = { 'start' => { type: 'string', required: false, min_length: 3, max_length: 6 }, 'end' => { type: 'string', required: false, min_length: 3, max_length: 6 }, 'difficulty' => { type: 'string', required: false }, 'count' => { type: 'integer', required: false, min: 1, max: 5 }, 'image' => { type: 'boolean', required: false } }
23
+
24
+ # Format validation patterns
25
+ FORMAT_PATTERNS = {
26
+ 'email' => /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
27
+ 'url' => /^https?:\/\/.+/,
28
+ '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}$/,
29
+ 'date' => /^\d{4}-\d{2}-\d{2}$/,
30
+ 'hexColor' => /^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
31
+ }.freeze
32
+
33
+ # Initialize the client
34
+ #
35
+ # @param api_key [String] Your APIVerve API key
36
+ # @param timeout [Integer] Request timeout in seconds (default: 30)
37
+ # @param debug [Boolean] Enable debug logging (default: false)
38
+ # @raise [ArgumentError] If API key is invalid
39
+ def initialize(api_key:, timeout: DEFAULT_TIMEOUT, debug: false)
40
+ validate_api_key!(api_key)
41
+
42
+ @api_key = api_key
43
+ @timeout = timeout
44
+ @debug = debug
45
+
46
+ @connection = Faraday.new(url: BASE_URL) do |conn|
47
+ conn.request :multipart
48
+ conn.request :url_encoded
49
+ conn.adapter Faraday.default_adapter
50
+ conn.options.timeout = @timeout
51
+ conn.headers["x-api-key"] = @api_key
52
+ conn.headers["auth-mode"] = "rubygems-package"
53
+ conn.headers["Content-Type"] = "application/json"
54
+ end
55
+ end
56
+
57
+ # Execute the API request
58
+ #
59
+ # @param params [Hash] Query parameters or request body
60
+ # @return [Hash] API response
61
+ # @raise [APIError] If the request fails
62
+ # @raise [ValidationError] If parameter validation fails
63
+ def execute(params = {})
64
+ validate_params!(params)
65
+
66
+ log("Making GET request to #{BASE_URL}")
67
+ log("Parameters: #{params.inspect}") if params.any?
68
+
69
+ response = @connection.get do |req|
70
+ params.each { |k, v| req.params[k.to_s] = v }
71
+ end
72
+
73
+ handle_response(response)
74
+ end
75
+
76
+ private
77
+
78
+ def validate_api_key!(api_key)
79
+ raise ArgumentError, "API key is required. Get your API key at: https://apiverve.com" if api_key.nil? || api_key.strip.empty?
80
+
81
+ unless api_key.match?(/^[a-zA-Z0-9_-]+$/)
82
+ raise ArgumentError, "Invalid API key format. API key should only contain letters, numbers, hyphens, and underscores."
83
+ end
84
+ end
85
+
86
+ def validate_params!(params)
87
+ return if VALIDATION_RULES.empty?
88
+
89
+ errors = []
90
+
91
+ VALIDATION_RULES.each do |param_name, rules|
92
+ value = params[param_name.to_sym] || params[param_name]
93
+
94
+ # Check required
95
+ if rules[:required] && (value.nil? || value.to_s.empty?)
96
+ errors << "Required parameter [#{param_name}] is missing."
97
+ next
98
+ end
99
+
100
+ next if value.nil?
101
+
102
+ case rules[:type]
103
+ when "integer", "number"
104
+ begin
105
+ num_value = rules[:type] == "number" ? Float(value) : Integer(value)
106
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min]}." if rules[:min] && num_value < rules[:min]
107
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max]}." if rules[:max] && num_value > rules[:max]
108
+ rescue ArgumentError, TypeError
109
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:type]}."
110
+ end
111
+ when "string"
112
+ unless value.is_a?(String)
113
+ errors << "Parameter [#{param_name}] must be a string."
114
+ next
115
+ end
116
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min_length]} characters." if rules[:min_length] && value.length < rules[:min_length]
117
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max_length]} characters." if rules[:max_length] && value.length > rules[:max_length]
118
+
119
+ if rules[:format] && FORMAT_PATTERNS[rules[:format]]
120
+ unless value.match?(FORMAT_PATTERNS[rules[:format]])
121
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:format]}."
122
+ end
123
+ end
124
+ when "boolean"
125
+ unless [true, false, "true", "false"].include?(value)
126
+ errors << "Parameter [#{param_name}] must be a boolean."
127
+ end
128
+ end
129
+
130
+ # Enum validation
131
+ if rules[:enum] && !rules[:enum].include?(value)
132
+ errors << "Parameter [#{param_name}] must be one of: #{rules[:enum].join(', ')}."
133
+ end
134
+ end
135
+
136
+ raise ValidationError, errors unless errors.empty?
137
+ end
138
+
139
+ def handle_response(response)
140
+ log("Response status: #{response.status}")
141
+
142
+ data = JSON.parse(response.body)
143
+
144
+ if data["status"] == "error"
145
+ raise APIError.new(data["error"] || "Unknown API error", response.status, data)
146
+ end
147
+
148
+ unless response.success?
149
+ raise APIError.new(data["error"] || "HTTP #{response.status} error", response.status, data)
150
+ end
151
+
152
+ log("Request successful")
153
+ data
154
+ rescue JSON::ParserError => e
155
+ raise APIError.new("Invalid JSON response: #{e.message}", response.status)
156
+ end
157
+
158
+ def log(message)
159
+ puts "[APIVerve::Wordladder] #{message}" if @debug
160
+ end
161
+ end
162
+
163
+ # Custom error class for API errors
164
+ class APIError < StandardError
165
+ attr_reader :status_code, :response
166
+
167
+ def initialize(message, status_code = nil, response = nil)
168
+ @status_code = status_code
169
+ @response = response
170
+ super(message)
171
+ end
172
+ end
173
+
174
+ # Custom error class for validation errors
175
+ class ValidationError < StandardError
176
+ attr_reader :errors
177
+
178
+ def initialize(errors)
179
+ @errors = errors
180
+ super("Validation failed: #{errors.join(' ')}")
181
+ end
182
+ end
183
+ end
184
+ end
@@ -0,0 +1,189 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "faraday/multipart"
5
+ require "json"
6
+
7
+ module APIVerve
8
+ module Wordladder
9
+ # Client for the Word Ladder Generator API
10
+ #
11
+ # @example Basic usage
12
+ # client = APIVerve::Wordladder::Client.new(api_key: "your_api_key")
13
+ # response = client.execute({ start: "cold", end: "warm", difficulty: "medium", count: 1 })
14
+ # puts response
15
+ #
16
+ # @see https://apiverve.com/marketplace/wordladder?utm_source=ruby&utm_medium=readme
17
+ class Client
18
+ BASE_URL = "https://api.apiverve.com/v1/wordladder"
19
+ DEFAULT_TIMEOUT = 30
20
+
21
+ # Validation rules for parameters
22
+ VALIDATION_RULES = {
23
+ 'start' => { type: 'string', required: false, min_length: 3, max_length: 6 },
24
+ 'end' => { type: 'string', required: false, min_length: 3, max_length: 6 },
25
+ 'difficulty' => { type: 'string', required: false },
26
+ 'count' => { type: 'integer', required: false, min: 1, max: 5 }
27
+ }
28
+
29
+ # Format validation patterns
30
+ FORMAT_PATTERNS = {
31
+ 'email' => /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
32
+ 'url' => /^https?:\/\/.+/,
33
+ '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}$/,
34
+ 'date' => /^\d{4}-\d{2}-\d{2}$/,
35
+ 'hexColor' => /^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
36
+ }.freeze
37
+
38
+ # Initialize the client
39
+ #
40
+ # @param api_key [String] Your APIVerve API key
41
+ # @param timeout [Integer] Request timeout in seconds (default: 30)
42
+ # @param debug [Boolean] Enable debug logging (default: false)
43
+ # @raise [ArgumentError] If API key is invalid
44
+ def initialize(api_key:, timeout: DEFAULT_TIMEOUT, debug: false)
45
+ validate_api_key!(api_key)
46
+
47
+ @api_key = api_key
48
+ @timeout = timeout
49
+ @debug = debug
50
+
51
+ @connection = Faraday.new(url: BASE_URL) do |conn|
52
+ conn.request :multipart
53
+ conn.request :url_encoded
54
+ conn.adapter Faraday.default_adapter
55
+ conn.options.timeout = @timeout
56
+ conn.headers["x-api-key"] = @api_key
57
+ conn.headers["auth-mode"] = "rubygems-package"
58
+ conn.headers["Content-Type"] = "application/json"
59
+ end
60
+ end
61
+
62
+ # Execute the API request
63
+ #
64
+ # @param params [Hash] Query parameters or request body
65
+ # @return [Hash] API response
66
+ # @raise [APIError] If the request fails
67
+ # @raise [ValidationError] If parameter validation fails
68
+ def execute(params = {})
69
+ validate_params!(params)
70
+
71
+ log("Making GET request to #{BASE_URL}")
72
+ log("Parameters: #{params.inspect}") if params.any?
73
+
74
+ response = @connection.get do |req|
75
+ params.each { |k, v| req.params[k.to_s] = v }
76
+ end
77
+
78
+ handle_response(response)
79
+ end
80
+
81
+ private
82
+
83
+ def validate_api_key!(api_key)
84
+ raise ArgumentError, "API key is required. Get your API key at: https://apiverve.com" if api_key.nil? || api_key.strip.empty?
85
+
86
+ unless api_key.match?(/^[a-zA-Z0-9_-]+$/)
87
+ raise ArgumentError, "Invalid API key format. API key should only contain letters, numbers, hyphens, and underscores."
88
+ end
89
+ end
90
+
91
+ def validate_params!(params)
92
+ return if VALIDATION_RULES.empty?
93
+
94
+ errors = []
95
+
96
+ VALIDATION_RULES.each do |param_name, rules|
97
+ value = params[param_name.to_sym] || params[param_name]
98
+
99
+ # Check required
100
+ if rules[:required] && (value.nil? || value.to_s.empty?)
101
+ errors << "Required parameter [#{param_name}] is missing."
102
+ next
103
+ end
104
+
105
+ next if value.nil?
106
+
107
+ case rules[:type]
108
+ when "integer", "number"
109
+ begin
110
+ num_value = rules[:type] == "number" ? Float(value) : Integer(value)
111
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min]}." if rules[:min] && num_value < rules[:min]
112
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max]}." if rules[:max] && num_value > rules[:max]
113
+ rescue ArgumentError, TypeError
114
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:type]}."
115
+ end
116
+ when "string"
117
+ unless value.is_a?(String)
118
+ errors << "Parameter [#{param_name}] must be a string."
119
+ next
120
+ end
121
+ errors << "Parameter [#{param_name}] must be at least #{rules[:min_length]} characters." if rules[:min_length] && value.length < rules[:min_length]
122
+ errors << "Parameter [#{param_name}] must be at most #{rules[:max_length]} characters." if rules[:max_length] && value.length > rules[:max_length]
123
+
124
+ if rules[:format] && FORMAT_PATTERNS[rules[:format]]
125
+ unless value.match?(FORMAT_PATTERNS[rules[:format]])
126
+ errors << "Parameter [#{param_name}] must be a valid #{rules[:format]}."
127
+ end
128
+ end
129
+ when "boolean"
130
+ unless [true, false, "true", "false"].include?(value)
131
+ errors << "Parameter [#{param_name}] must be a boolean."
132
+ end
133
+ end
134
+
135
+ # Enum validation
136
+ if rules[:enum] && !rules[:enum].include?(value)
137
+ errors << "Parameter [#{param_name}] must be one of: #{rules[:enum].join(', ')}."
138
+ end
139
+ end
140
+
141
+ raise ValidationError, errors unless errors.empty?
142
+ end
143
+
144
+ def handle_response(response)
145
+ log("Response status: #{response.status}")
146
+
147
+ data = JSON.parse(response.body)
148
+
149
+ if data["status"] == "error"
150
+ raise APIError.new(data["error"] || "Unknown API error", response.status, data)
151
+ end
152
+
153
+ unless response.success?
154
+ raise APIError.new(data["error"] || "HTTP #{response.status} error", response.status, data)
155
+ end
156
+
157
+ log("Request successful")
158
+ data
159
+ rescue JSON::ParserError => e
160
+ raise APIError.new("Invalid JSON response: #{e.message}", response.status)
161
+ end
162
+
163
+ def log(message)
164
+ puts "[APIVerve::Wordladder] #{message}" if @debug
165
+ end
166
+ end
167
+
168
+ # Custom error class for API errors
169
+ class APIError < StandardError
170
+ attr_reader :status_code, :response
171
+
172
+ def initialize(message, status_code = nil, response = nil)
173
+ @status_code = status_code
174
+ @response = response
175
+ super(message)
176
+ end
177
+ end
178
+
179
+ # Custom error class for validation errors
180
+ class ValidationError < StandardError
181
+ attr_reader :errors
182
+
183
+ def initialize(errors)
184
+ @errors = errors
185
+ super("Validation failed: #{errors.join(' ')}")
186
+ end
187
+ end
188
+ end
189
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "apiverve_wordladder/client"
4
+
5
+ module APIVerve
6
+ module Wordladder
7
+ VERSION = "1.2.0"
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: apiverve_wordladder
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: Word Ladder Generator creates puzzles where players transform one word
61
+ into another by changing one letter at a time, with each step forming a valid word.
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_wordladder.rb
72
+ - lib/apiverve_wordladder/client.rb
73
+ homepage: https://apiverve.com/marketplace/wordladder?utm_source=ruby&utm_medium=homepage
74
+ licenses:
75
+ - MIT
76
+ metadata:
77
+ homepage_uri: https://apiverve.com/marketplace/wordladder?utm_source=ruby&utm_medium=homepage
78
+ source_code_uri: https://github.com/apiverve/wordladder-API/tree/main/ruby
79
+ changelog_uri: https://apiverve.com/changelog
80
+ documentation_uri: https://docs.apiverve.com/ref/wordladder
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: Word Ladder Generator API - Ruby Client
98
+ test_files: []