openapi_ipify 5.2.0 → 6.0.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 +4 -4
- data/Gemfile.lock +94 -25
- data/README.md +8 -8
- data/bin/byebug +1 -12
- data/bin/coderay +1 -12
- data/bin/htmldiff +1 -12
- data/bin/ldiff +1 -12
- data/bin/pry +1 -12
- data/bin/racc +1 -12
- data/bin/rake +1 -12
- data/bin/rspec +1 -12
- data/bin/rubocop +1 -12
- data/bin/ruby-parse +1 -12
- data/bin/ruby-rewrite +1 -12
- data/docs/DefaultApi.md +6 -6
- data/docs/{Ip.md → GetIp200Response.md} +3 -3
- data/lib/openapi_ipify/api/default_api.rb +6 -6
- data/lib/openapi_ipify/api_client.rb +17 -14
- data/lib/openapi_ipify/api_error.rb +2 -2
- data/lib/openapi_ipify/api_model_base.rb +88 -0
- data/lib/openapi_ipify/configuration.rb +14 -4
- data/lib/openapi_ipify/models/{ip.rb → get_ip200_response.rb} +13 -87
- data/lib/openapi_ipify/version.rb +3 -3
- data/lib/openapi_ipify.rb +4 -3
- data/openapi_ipify.gemspec +2 -2
- data/spec/api/default_api_spec.rb +3 -3
- data/spec/models/{ip_spec.rb → get_ip200_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +11 -11
- data/bin/bundle +0 -109
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -49,7 +49,8 @@ module OpenApiIpifyClient
|
|
|
49
49
|
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
|
50
50
|
def call_api(http_method, path, opts = {})
|
|
51
51
|
request = build_request(http_method, path, opts)
|
|
52
|
-
tempfile =
|
|
52
|
+
tempfile = nil
|
|
53
|
+
(download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
|
|
53
54
|
response = request.run
|
|
54
55
|
|
|
55
56
|
if @config.debugging
|
|
@@ -187,19 +188,17 @@ module OpenApiIpifyClient
|
|
|
187
188
|
chunk.force_encoding(encoding)
|
|
188
189
|
tempfile.write(chunk)
|
|
189
190
|
end
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
request.on_complete do
|
|
192
|
+
if !tempfile
|
|
193
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
|
194
|
+
end
|
|
193
195
|
tempfile.close
|
|
194
196
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
|
195
197
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
|
196
198
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
|
197
199
|
"explicitly with `tempfile.delete`"
|
|
198
|
-
|
|
199
|
-
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
|
200
|
+
yield tempfile if block_given?
|
|
200
201
|
end
|
|
201
|
-
|
|
202
|
-
tempfile
|
|
203
202
|
end
|
|
204
203
|
|
|
205
204
|
# Check if the given MIME is a JSON MIME.
|
|
@@ -211,7 +210,7 @@ module OpenApiIpifyClient
|
|
|
211
210
|
# @param [String] mime MIME
|
|
212
211
|
# @return [Boolean] True if the MIME is application/json
|
|
213
212
|
def json_mime?(mime)
|
|
214
|
-
(mime == '*/*') || !(mime =~
|
|
213
|
+
(mime == '*/*') || !(mime =~ /^Application\/.*json(?!p)(;.*)?/i).nil?
|
|
215
214
|
end
|
|
216
215
|
|
|
217
216
|
# Deserialize the response to the given return type.
|
|
@@ -278,9 +277,13 @@ module OpenApiIpifyClient
|
|
|
278
277
|
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
|
279
278
|
end
|
|
280
279
|
else
|
|
281
|
-
# models (e.g. Pet) or oneOf
|
|
280
|
+
# models (e.g. Pet) or oneOf/anyOf
|
|
282
281
|
klass = OpenApiIpifyClient.const_get(return_type)
|
|
283
|
-
klass.respond_to?(:openapi_one_of)
|
|
282
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of)
|
|
283
|
+
klass.build(data)
|
|
284
|
+
else
|
|
285
|
+
klass.build_from_hash(data)
|
|
286
|
+
end
|
|
284
287
|
end
|
|
285
288
|
end
|
|
286
289
|
|
|
@@ -290,7 +293,7 @@ module OpenApiIpifyClient
|
|
|
290
293
|
# @param [String] filename the filename to be sanitized
|
|
291
294
|
# @return [String] the sanitized filename
|
|
292
295
|
def sanitize_filename(filename)
|
|
293
|
-
filename.
|
|
296
|
+
filename.split(/[\/\\]/).last
|
|
294
297
|
end
|
|
295
298
|
|
|
296
299
|
def build_request_url(path, opts = {})
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#openapi-ipify
|
|
3
|
+
|
|
4
|
+
#OpenAPI client for ipify, a simple public IP address API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
|
+
Contact: blah+oapicf@cliffano.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module OpenApiIpifyClient
|
|
14
|
+
class ApiModelBase
|
|
15
|
+
# Deserializes the data based on type
|
|
16
|
+
# @param string type Data type
|
|
17
|
+
# @param string value Value to be deserialized
|
|
18
|
+
# @return [Object] Deserialized data
|
|
19
|
+
def self._deserialize(type, value)
|
|
20
|
+
case type.to_sym
|
|
21
|
+
when :Time
|
|
22
|
+
Time.parse(value)
|
|
23
|
+
when :Date
|
|
24
|
+
Date.parse(value)
|
|
25
|
+
when :String
|
|
26
|
+
value.to_s
|
|
27
|
+
when :Integer
|
|
28
|
+
value.to_i
|
|
29
|
+
when :Float
|
|
30
|
+
value.to_f
|
|
31
|
+
when :Boolean
|
|
32
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
33
|
+
true
|
|
34
|
+
else
|
|
35
|
+
false
|
|
36
|
+
end
|
|
37
|
+
when :Object
|
|
38
|
+
# generic object (usually a Hash), return directly
|
|
39
|
+
value
|
|
40
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
41
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
42
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
43
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
44
|
+
k_type = Regexp.last_match[:k_type]
|
|
45
|
+
v_type = Regexp.last_match[:v_type]
|
|
46
|
+
{}.tap do |hash|
|
|
47
|
+
value.each do |k, v|
|
|
48
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
else # model
|
|
52
|
+
# models (e.g. Pet) or oneOf
|
|
53
|
+
klass = OpenApiIpifyClient.const_get(type)
|
|
54
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns the string representation of the object
|
|
59
|
+
# @return [String] String presentation of the object
|
|
60
|
+
def to_s
|
|
61
|
+
to_hash.to_s
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
65
|
+
# @return [Hash] Returns the object in the form of hash
|
|
66
|
+
def to_body
|
|
67
|
+
to_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Outputs non-array value in the form of hash
|
|
71
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
72
|
+
# @param [Object] value Any valid value
|
|
73
|
+
# @return [Hash] Returns the value in the form of hash
|
|
74
|
+
def _to_hash(value)
|
|
75
|
+
if value.is_a?(Array)
|
|
76
|
+
value.compact.map { |v| _to_hash(v) }
|
|
77
|
+
elsif value.is_a?(Hash)
|
|
78
|
+
{}.tap do |hash|
|
|
79
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
80
|
+
end
|
|
81
|
+
elsif value.respond_to? :to_hash
|
|
82
|
+
value.to_hash
|
|
83
|
+
else
|
|
84
|
+
value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -79,6 +79,14 @@ module OpenApiIpifyClient
|
|
|
79
79
|
# @return [true, false]
|
|
80
80
|
attr_accessor :debugging
|
|
81
81
|
|
|
82
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
|
83
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
|
84
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
|
85
|
+
# `scheme`, `host`, `base_path` directly.
|
|
86
|
+
# Default to false.
|
|
87
|
+
# @return [true, false]
|
|
88
|
+
attr_accessor :ignore_operation_servers
|
|
89
|
+
|
|
82
90
|
# Defines the logger used for debugging.
|
|
83
91
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
|
84
92
|
#
|
|
@@ -150,7 +158,7 @@ module OpenApiIpifyClient
|
|
|
150
158
|
|
|
151
159
|
def initialize
|
|
152
160
|
@scheme = 'https'
|
|
153
|
-
@host = '
|
|
161
|
+
@host = 'api64.ipify.org'
|
|
154
162
|
@base_path = ''
|
|
155
163
|
@server_index = nil
|
|
156
164
|
@server_operation_index = {}
|
|
@@ -166,6 +174,7 @@ module OpenApiIpifyClient
|
|
|
166
174
|
@timeout = 0
|
|
167
175
|
@params_encoding = nil
|
|
168
176
|
@debugging = false
|
|
177
|
+
@ignore_operation_servers = false
|
|
169
178
|
@inject_format = false
|
|
170
179
|
@force_ending_format = false
|
|
171
180
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
|
@@ -200,6 +209,7 @@ module OpenApiIpifyClient
|
|
|
200
209
|
|
|
201
210
|
# Returns base URL for specified operation based on server settings
|
|
202
211
|
def base_url(operation = nil)
|
|
212
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
|
203
213
|
if operation_server_settings.key?(operation) then
|
|
204
214
|
index = server_operation_index.fetch(operation, server_index)
|
|
205
215
|
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
|
@@ -241,7 +251,7 @@ module OpenApiIpifyClient
|
|
|
241
251
|
def server_settings
|
|
242
252
|
[
|
|
243
253
|
{
|
|
244
|
-
url: "https://
|
|
254
|
+
url: "https://api64.ipify.org",
|
|
245
255
|
description: "No description provided",
|
|
246
256
|
}
|
|
247
257
|
]
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OpenApiIpifyClient
|
|
17
|
-
class
|
|
17
|
+
class GetIp200Response < ApiModelBase
|
|
18
18
|
attr_accessor :ip
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -24,9 +24,14 @@ module OpenApiIpifyClient
|
|
|
24
24
|
}
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
27
32
|
# Returns all the JSON keys this model knows about
|
|
28
33
|
def self.acceptable_attributes
|
|
29
|
-
|
|
34
|
+
acceptable_attribute_map.values
|
|
30
35
|
end
|
|
31
36
|
|
|
32
37
|
# Attribute type mapping.
|
|
@@ -46,21 +51,20 @@ module OpenApiIpifyClient
|
|
|
46
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
47
52
|
def initialize(attributes = {})
|
|
48
53
|
if (!attributes.is_a?(Hash))
|
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenApiIpifyClient::
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenApiIpifyClient::GetIp200Response` initialize method"
|
|
50
55
|
end
|
|
51
56
|
|
|
52
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
53
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
|
-
if (!
|
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiIpifyClient::
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiIpifyClient::GetIp200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
56
62
|
end
|
|
57
63
|
h[k.to_sym] = v
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
if attributes.key?(:'ip')
|
|
61
67
|
self.ip = attributes[:'ip']
|
|
62
|
-
else
|
|
63
|
-
self.ip = nil
|
|
64
68
|
end
|
|
65
69
|
end
|
|
66
70
|
|
|
@@ -69,10 +73,6 @@ module OpenApiIpifyClient
|
|
|
69
73
|
def list_invalid_properties
|
|
70
74
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
71
75
|
invalid_properties = Array.new
|
|
72
|
-
if @ip.nil?
|
|
73
|
-
invalid_properties.push('invalid value for "ip", ip cannot be nil.')
|
|
74
|
-
end
|
|
75
|
-
|
|
76
76
|
invalid_properties
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -80,7 +80,6 @@ module OpenApiIpifyClient
|
|
|
80
80
|
# @return true if the model is valid
|
|
81
81
|
def valid?
|
|
82
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
83
|
-
return false if @ip.nil?
|
|
84
83
|
true
|
|
85
84
|
end
|
|
86
85
|
|
|
@@ -127,61 +126,6 @@ module OpenApiIpifyClient
|
|
|
127
126
|
new(transformed_hash)
|
|
128
127
|
end
|
|
129
128
|
|
|
130
|
-
# Deserializes the data based on type
|
|
131
|
-
# @param string type Data type
|
|
132
|
-
# @param string value Value to be deserialized
|
|
133
|
-
# @return [Object] Deserialized data
|
|
134
|
-
def self._deserialize(type, value)
|
|
135
|
-
case type.to_sym
|
|
136
|
-
when :Time
|
|
137
|
-
Time.parse(value)
|
|
138
|
-
when :Date
|
|
139
|
-
Date.parse(value)
|
|
140
|
-
when :String
|
|
141
|
-
value.to_s
|
|
142
|
-
when :Integer
|
|
143
|
-
value.to_i
|
|
144
|
-
when :Float
|
|
145
|
-
value.to_f
|
|
146
|
-
when :Boolean
|
|
147
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
148
|
-
true
|
|
149
|
-
else
|
|
150
|
-
false
|
|
151
|
-
end
|
|
152
|
-
when :Object
|
|
153
|
-
# generic object (usually a Hash), return directly
|
|
154
|
-
value
|
|
155
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
156
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
157
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
158
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
159
|
-
k_type = Regexp.last_match[:k_type]
|
|
160
|
-
v_type = Regexp.last_match[:v_type]
|
|
161
|
-
{}.tap do |hash|
|
|
162
|
-
value.each do |k, v|
|
|
163
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
else # model
|
|
167
|
-
# models (e.g. Pet) or oneOf
|
|
168
|
-
klass = OpenApiIpifyClient.const_get(type)
|
|
169
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
170
|
-
end
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
# Returns the string representation of the object
|
|
174
|
-
# @return [String] String presentation of the object
|
|
175
|
-
def to_s
|
|
176
|
-
to_hash.to_s
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
180
|
-
# @return [Hash] Returns the object in the form of hash
|
|
181
|
-
def to_body
|
|
182
|
-
to_hash
|
|
183
|
-
end
|
|
184
|
-
|
|
185
129
|
# Returns the object in the form of hash
|
|
186
130
|
# @return [Hash] Returns the object in the form of hash
|
|
187
131
|
def to_hash
|
|
@@ -198,24 +142,6 @@ module OpenApiIpifyClient
|
|
|
198
142
|
hash
|
|
199
143
|
end
|
|
200
144
|
|
|
201
|
-
# Outputs non-array value in the form of hash
|
|
202
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
203
|
-
# @param [Object] value Any valid value
|
|
204
|
-
# @return [Hash] Returns the value in the form of hash
|
|
205
|
-
def _to_hash(value)
|
|
206
|
-
if value.is_a?(Array)
|
|
207
|
-
value.compact.map { |v| _to_hash(v) }
|
|
208
|
-
elsif value.is_a?(Hash)
|
|
209
|
-
{}.tap do |hash|
|
|
210
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
211
|
-
end
|
|
212
|
-
elsif value.respond_to? :to_hash
|
|
213
|
-
value.to_hash
|
|
214
|
-
else
|
|
215
|
-
value
|
|
216
|
-
end
|
|
217
|
-
end
|
|
218
|
-
|
|
219
145
|
end
|
|
220
146
|
|
|
221
147
|
end
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module OpenApiIpifyClient
|
|
14
|
-
VERSION = '
|
|
14
|
+
VERSION = '6.0.0'
|
|
15
15
|
end
|
data/lib/openapi_ipify.rb
CHANGED
|
@@ -3,21 +3,22 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
# Common files
|
|
14
14
|
require 'openapi_ipify/api_client'
|
|
15
15
|
require 'openapi_ipify/api_error'
|
|
16
|
+
require 'openapi_ipify/api_model_base'
|
|
16
17
|
require 'openapi_ipify/version'
|
|
17
18
|
require 'openapi_ipify/configuration'
|
|
18
19
|
|
|
19
20
|
# Models
|
|
20
|
-
require 'openapi_ipify/models/
|
|
21
|
+
require 'openapi_ipify/models/get_ip200_response'
|
|
21
22
|
|
|
22
23
|
# APIs
|
|
23
24
|
require 'openapi_ipify/api/default_api'
|
data/openapi_ipify.gemspec
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
#OpenAPI client for ipify, a simple public IP address API
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 6.0.0
|
|
9
9
|
Contact: blah+oapicf@cliffano.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
|
-
Generator version: 7.
|
|
11
|
+
Generator version: 7.18.0
|
|
12
12
|
|
|
13
13
|
=end
|
|
14
14
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -37,7 +37,7 @@ describe 'DefaultApi' do
|
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @option opts [String] :format Response format
|
|
39
39
|
# @option opts [String] :callback JSONP callback function name
|
|
40
|
-
# @return [
|
|
40
|
+
# @return [String]
|
|
41
41
|
describe 'get_ip test' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for OpenApiIpifyClient::
|
|
17
|
+
# Unit tests for OpenApiIpifyClient::GetIp200Response
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe OpenApiIpifyClient::
|
|
21
|
-
let(:instance) { OpenApiIpifyClient::
|
|
20
|
+
describe OpenApiIpifyClient::GetIp200Response do
|
|
21
|
+
#let(:instance) { OpenApiIpifyClient::GetIp200Response.new }
|
|
22
22
|
|
|
23
|
-
describe 'test an instance of
|
|
24
|
-
it 'should create an instance of
|
|
23
|
+
describe 'test an instance of GetIp200Response' do
|
|
24
|
+
it 'should create an instance of GetIp200Response' do
|
|
25
25
|
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(OpenApiIpifyClient::
|
|
26
|
+
#expect(instance).to be_instance_of(OpenApiIpifyClient::GetIp200Response)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#OpenAPI client for ipify, a simple public IP address API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 6.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openapi_ipify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI Clients Factory
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -61,7 +61,6 @@ files:
|
|
|
61
61
|
- Gemfile.lock
|
|
62
62
|
- README.md
|
|
63
63
|
- Rakefile
|
|
64
|
-
- bin/bundle
|
|
65
64
|
- bin/byebug
|
|
66
65
|
- bin/coderay
|
|
67
66
|
- bin/htmldiff
|
|
@@ -74,24 +73,25 @@ files:
|
|
|
74
73
|
- bin/ruby-parse
|
|
75
74
|
- bin/ruby-rewrite
|
|
76
75
|
- docs/DefaultApi.md
|
|
77
|
-
- docs/
|
|
76
|
+
- docs/GetIp200Response.md
|
|
78
77
|
- git_push.sh
|
|
79
78
|
- lib/openapi_ipify.rb
|
|
80
79
|
- lib/openapi_ipify/api/default_api.rb
|
|
81
80
|
- lib/openapi_ipify/api_client.rb
|
|
82
81
|
- lib/openapi_ipify/api_error.rb
|
|
82
|
+
- lib/openapi_ipify/api_model_base.rb
|
|
83
83
|
- lib/openapi_ipify/configuration.rb
|
|
84
|
-
- lib/openapi_ipify/models/
|
|
84
|
+
- lib/openapi_ipify/models/get_ip200_response.rb
|
|
85
85
|
- lib/openapi_ipify/version.rb
|
|
86
86
|
- openapi_ipify.gemspec
|
|
87
87
|
- spec/api/default_api_spec.rb
|
|
88
|
-
- spec/models/
|
|
88
|
+
- spec/models/get_ip200_response_spec.rb
|
|
89
89
|
- spec/spec_helper.rb
|
|
90
90
|
homepage: https://github.com/oapicf/openapi-ipify
|
|
91
91
|
licenses:
|
|
92
92
|
- MIT
|
|
93
93
|
metadata: {}
|
|
94
|
-
post_install_message:
|
|
94
|
+
post_install_message:
|
|
95
95
|
rdoc_options: []
|
|
96
96
|
require_paths:
|
|
97
97
|
- lib
|
|
@@ -106,11 +106,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
- !ruby/object:Gem::Version
|
|
107
107
|
version: '0'
|
|
108
108
|
requirements: []
|
|
109
|
-
rubygems_version: 3.
|
|
110
|
-
signing_key:
|
|
109
|
+
rubygems_version: 3.4.20
|
|
110
|
+
signing_key:
|
|
111
111
|
specification_version: 4
|
|
112
112
|
summary: openapi-ipify Ruby Gem
|
|
113
113
|
test_files:
|
|
114
114
|
- spec/api/default_api_spec.rb
|
|
115
|
-
- spec/models/
|
|
115
|
+
- spec/models/get_ip200_response_spec.rb
|
|
116
116
|
- spec/spec_helper.rb
|