minecraft_versions 0.12.0 → 1.1.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 +22 -20
- data/README.md +6 -6
- data/bin/bundle +1 -1
- data/bin/byebug +1 -1
- data/bin/coderay +1 -1
- data/bin/htmldiff +1 -1
- data/bin/ldiff +1 -1
- data/bin/pry +1 -1
- data/bin/racc +1 -1
- data/bin/rake +1 -1
- data/bin/rspec +1 -1
- data/bin/rubocop +1 -1
- data/bin/ruby-parse +1 -1
- data/bin/ruby-rewrite +1 -1
- data/docs/Version.md +2 -2
- data/docs/VersionPackageInfo.md +2 -2
- data/lib/minecraft_versions/api/default_api.rb +4 -4
- data/lib/minecraft_versions/api_client.rb +9 -10
- data/lib/minecraft_versions/api_error.rb +2 -2
- data/lib/minecraft_versions/configuration.rb +12 -2
- data/lib/minecraft_versions/models/download.rb +11 -5
- data/lib/minecraft_versions/models/version.rb +11 -5
- data/lib/minecraft_versions/models/version_manifest.rb +11 -5
- data/lib/minecraft_versions/models/version_manifest_latest.rb +11 -5
- data/lib/minecraft_versions/models/version_package_info.rb +11 -5
- data/lib/minecraft_versions/models/version_package_info_asset_index.rb +11 -5
- data/lib/minecraft_versions/models/version_package_info_downloads.rb +11 -5
- data/lib/minecraft_versions/models/version_package_info_java_version.rb +11 -5
- data/lib/minecraft_versions/version.rb +3 -3
- data/lib/minecraft_versions.rb +2 -2
- data/minecraft_versions.gemspec +2 -2
- data/spec/api/default_api_spec.rb +2 -2
- data/spec/models/download_spec.rb +2 -2
- data/spec/models/version_manifest_latest_spec.rb +2 -2
- data/spec/models/version_manifest_spec.rb +2 -2
- data/spec/models/version_package_info_asset_index_spec.rb +2 -2
- data/spec/models/version_package_info_downloads_spec.rb +2 -2
- data/spec/models/version_package_info_java_version_spec.rb +2 -2
- data/spec/models/version_package_info_spec.rb +2 -2
- data/spec/models/version_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5012de8eb061fd3af5ffc35b3f840e6d40fd81b888e9af1494e165147ae15051
|
4
|
+
data.tar.gz: e11a9375c171e99311200d2228af412a49c5d9e9e992c06fabdee44020269681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0288f6235547877187bfa6d1427a6ff828a96f8c5799fe2ea8c82a99c664a7a5445994ea2d95b61e7de1158db7baceedb0ce30326c7b81091c58c07b1a86ea8a'
|
7
|
+
data.tar.gz: af5f21ca85f4be39fd45370cf043d6a3f77b702e17fcb2a1bf34970e5303b66a0b53e1b3d71231b3d7aaa8a26f2b72bf75a5129d4feded298547bbfab2925741
|
data/Gemfile.lock
CHANGED
@@ -1,49 +1,51 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
minecraft_versions (
|
4
|
+
minecraft_versions (1.1.0)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ast (2.4.
|
11
|
-
byebug (
|
10
|
+
ast (2.4.3)
|
11
|
+
byebug (12.0.0)
|
12
12
|
coderay (1.1.3)
|
13
|
-
|
13
|
+
date (3.4.1)
|
14
|
+
diff-lcs (1.6.1)
|
14
15
|
ethon (0.16.0)
|
15
16
|
ffi (>= 1.15.0)
|
16
|
-
ffi (1.17.
|
17
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
17
18
|
jaro_winkler (1.5.6)
|
18
19
|
method_source (1.1.0)
|
19
|
-
parallel (1.
|
20
|
-
parser (3.3.
|
20
|
+
parallel (1.27.0)
|
21
|
+
parser (3.3.8.0)
|
21
22
|
ast (~> 2.4.1)
|
22
23
|
racc
|
23
|
-
pry (0.
|
24
|
+
pry (0.15.2)
|
24
25
|
coderay (~> 1.1)
|
25
26
|
method_source (~> 1.0)
|
26
|
-
pry-byebug (3.
|
27
|
-
byebug (~>
|
28
|
-
pry (>= 0.13, < 0.
|
29
|
-
psych (5.
|
27
|
+
pry-byebug (3.11.0)
|
28
|
+
byebug (~> 12.0)
|
29
|
+
pry (>= 0.13, < 0.16)
|
30
|
+
psych (5.2.4)
|
31
|
+
date
|
30
32
|
stringio
|
31
|
-
racc (1.8.
|
33
|
+
racc (1.8.1)
|
32
34
|
rainbow (3.1.1)
|
33
35
|
rake (13.0.6)
|
34
36
|
rspec (3.13.0)
|
35
37
|
rspec-core (~> 3.13.0)
|
36
38
|
rspec-expectations (~> 3.13.0)
|
37
39
|
rspec-mocks (~> 3.13.0)
|
38
|
-
rspec-core (3.13.
|
40
|
+
rspec-core (3.13.3)
|
39
41
|
rspec-support (~> 3.13.0)
|
40
|
-
rspec-expectations (3.13.
|
42
|
+
rspec-expectations (3.13.4)
|
41
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
42
44
|
rspec-support (~> 3.13.0)
|
43
|
-
rspec-mocks (3.13.
|
45
|
+
rspec-mocks (3.13.3)
|
44
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
47
|
rspec-support (~> 3.13.0)
|
46
|
-
rspec-support (3.13.
|
48
|
+
rspec-support (3.13.3)
|
47
49
|
rubocop (0.66.0)
|
48
50
|
jaro_winkler (~> 1.5.1)
|
49
51
|
parallel (~> 1.10)
|
@@ -53,13 +55,13 @@ GEM
|
|
53
55
|
ruby-progressbar (~> 1.7)
|
54
56
|
unicode-display_width (>= 1.4.0, < 1.6)
|
55
57
|
ruby-progressbar (1.13.0)
|
56
|
-
stringio (3.1.
|
58
|
+
stringio (3.1.7)
|
57
59
|
typhoeus (1.4.1)
|
58
60
|
ethon (>= 0.9.0)
|
59
61
|
unicode-display_width (1.5.0)
|
60
62
|
|
61
63
|
PLATFORMS
|
62
|
-
x86_64-linux
|
64
|
+
x86_64-linux-gnu
|
63
65
|
|
64
66
|
DEPENDENCIES
|
65
67
|
minecraft_versions!
|
@@ -69,4 +71,4 @@ DEPENDENCIES
|
|
69
71
|
rubocop (~> 0.66.0)
|
70
72
|
|
71
73
|
BUNDLED WITH
|
72
|
-
2.4.
|
74
|
+
2.4.19
|
data/README.md
CHANGED
@@ -6,9 +6,9 @@ SDK for Minecraft versions info
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version:
|
10
|
-
- Package version:
|
11
|
-
- Generator version: 7.
|
9
|
+
- API version: 1.1.0
|
10
|
+
- Package version: 1.1.0
|
11
|
+
- Generator version: 7.12.0
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://github.com/oapicf/minecraft-versions](https://github.com/oapicf/minecraft-versions)
|
14
14
|
|
@@ -25,16 +25,16 @@ gem build minecraft_versions.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./minecraft_versions-
|
28
|
+
gem install ./minecraft_versions-1.1.0.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./minecraft_versions-
|
31
|
+
(for development, run `gem install --dev ./minecraft_versions-1.1.0.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'minecraft_versions', '~>
|
37
|
+
gem 'minecraft_versions', '~> 1.1.0'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
data/bin/bundle
CHANGED
data/bin/byebug
CHANGED
data/bin/coderay
CHANGED
data/bin/htmldiff
CHANGED
data/bin/ldiff
CHANGED
data/bin/pry
CHANGED
data/bin/racc
CHANGED
data/bin/rake
CHANGED
data/bin/rspec
CHANGED
data/bin/rubocop
CHANGED
data/bin/ruby-parse
CHANGED
data/bin/ruby-rewrite
CHANGED
data/docs/Version.md
CHANGED
@@ -19,8 +19,8 @@ instance = MinecraftVersionsClient::Version.new(
|
|
19
19
|
id: 24w14potato,
|
20
20
|
type: snapshot,
|
21
21
|
url: https://piston-meta.mojang.com/v1/packages/21df7f4ba484a6437ab5e9dca0b4dfb5dcefc802/24w14potato.json,
|
22
|
-
time: 2024-04-01T11:14:
|
23
|
-
release_time: 2024-04-01T11:07:
|
22
|
+
time: 2024-04-01T11:14:41.000Z,
|
23
|
+
release_time: 2024-04-01T11:07:19.000Z
|
24
24
|
)
|
25
25
|
```
|
26
26
|
|
data/docs/VersionPackageInfo.md
CHANGED
@@ -32,8 +32,8 @@ instance = MinecraftVersionsClient::VersionPackageInfo.new(
|
|
32
32
|
java_version: null,
|
33
33
|
main_class: net.minecraft.client.main.Main,
|
34
34
|
minimum_launcher_version: 21,
|
35
|
-
time: 2024-04-01T11:14:
|
36
|
-
release_time: 2024-04-01T11:07:
|
35
|
+
time: 2024-04-01T11:14:41.000Z,
|
36
|
+
release_time: 2024-04-01T11:07:19.000Z,
|
37
37
|
type: snapshot
|
38
38
|
)
|
39
39
|
```
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -41,7 +41,7 @@ module MinecraftVersionsClient
|
|
41
41
|
# header parameters
|
42
42
|
header_params = opts[:header_params] || {}
|
43
43
|
# HTTP header 'Accept' (if needed)
|
44
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
45
45
|
|
46
46
|
# form parameters
|
47
47
|
form_params = opts[:form_params] || {}
|
@@ -108,7 +108,7 @@ module MinecraftVersionsClient
|
|
108
108
|
# header parameters
|
109
109
|
header_params = opts[:header_params] || {}
|
110
110
|
# HTTP header 'Accept' (if needed)
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
112
112
|
|
113
113
|
# form parameters
|
114
114
|
form_params = opts[:form_params] || {}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -47,7 +47,8 @@ module MinecraftVersionsClient
|
|
47
47
|
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
48
48
|
def call_api(http_method, path, opts = {})
|
49
49
|
request = build_request(http_method, path, opts)
|
50
|
-
tempfile =
|
50
|
+
tempfile = nil
|
51
|
+
(download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
|
51
52
|
response = request.run
|
52
53
|
|
53
54
|
if @config.debugging
|
@@ -185,19 +186,17 @@ module MinecraftVersionsClient
|
|
185
186
|
chunk.force_encoding(encoding)
|
186
187
|
tempfile.write(chunk)
|
187
188
|
end
|
188
|
-
|
189
|
-
|
190
|
-
|
189
|
+
request.on_complete do
|
190
|
+
if !tempfile
|
191
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
192
|
+
end
|
191
193
|
tempfile.close
|
192
194
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
193
195
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
194
196
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
195
197
|
"explicitly with `tempfile.delete`"
|
196
|
-
|
197
|
-
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
198
|
+
yield tempfile if block_given?
|
198
199
|
end
|
199
|
-
|
200
|
-
tempfile
|
201
200
|
end
|
202
201
|
|
203
202
|
# Check if the given MIME is a JSON MIME.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -77,6 +77,14 @@ module MinecraftVersionsClient
|
|
77
77
|
# @return [true, false]
|
78
78
|
attr_accessor :debugging
|
79
79
|
|
80
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
81
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
82
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
83
|
+
# `scheme`, `host`, `base_path` directly.
|
84
|
+
# Default to false.
|
85
|
+
# @return [true, false]
|
86
|
+
attr_accessor :ignore_operation_servers
|
87
|
+
|
80
88
|
# Defines the logger used for debugging.
|
81
89
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
82
90
|
#
|
@@ -164,6 +172,7 @@ module MinecraftVersionsClient
|
|
164
172
|
@timeout = 0
|
165
173
|
@params_encoding = nil
|
166
174
|
@debugging = false
|
175
|
+
@ignore_operation_servers = false
|
167
176
|
@inject_format = false
|
168
177
|
@force_ending_format = false
|
169
178
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -198,6 +207,7 @@ module MinecraftVersionsClient
|
|
198
207
|
|
199
208
|
# Returns base URL for specified operation based on server settings
|
200
209
|
def base_url(operation = nil)
|
210
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
201
211
|
if operation_server_settings.key?(operation) then
|
202
212
|
index = server_operation_index.fetch(operation, server_index)
|
203
213
|
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -28,9 +28,14 @@ module MinecraftVersionsClient
|
|
28
28
|
}
|
29
29
|
end
|
30
30
|
|
31
|
+
# Returns attribute mapping this model knows about
|
32
|
+
def self.acceptable_attribute_map
|
33
|
+
attribute_map
|
34
|
+
end
|
35
|
+
|
31
36
|
# Returns all the JSON keys this model knows about
|
32
37
|
def self.acceptable_attributes
|
33
|
-
|
38
|
+
acceptable_attribute_map.values
|
34
39
|
end
|
35
40
|
|
36
41
|
# Attribute type mapping.
|
@@ -56,9 +61,10 @@ module MinecraftVersionsClient
|
|
56
61
|
end
|
57
62
|
|
58
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
59
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
-
if (!
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::Download`. Please check the name to make sure it's valid. List of attributes: " +
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::Download`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
62
68
|
end
|
63
69
|
h[k.to_sym] = v
|
64
70
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -34,9 +34,14 @@ module MinecraftVersionsClient
|
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
37
|
+
# Returns attribute mapping this model knows about
|
38
|
+
def self.acceptable_attribute_map
|
39
|
+
attribute_map
|
40
|
+
end
|
41
|
+
|
37
42
|
# Returns all the JSON keys this model knows about
|
38
43
|
def self.acceptable_attributes
|
39
|
-
|
44
|
+
acceptable_attribute_map.values
|
40
45
|
end
|
41
46
|
|
42
47
|
# Attribute type mapping.
|
@@ -64,9 +69,10 @@ module MinecraftVersionsClient
|
|
64
69
|
end
|
65
70
|
|
66
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
67
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
-
if (!
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::Version`. Please check the name to make sure it's valid. List of attributes: " +
|
74
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::Version`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
70
76
|
end
|
71
77
|
h[k.to_sym] = v
|
72
78
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -25,9 +25,14 @@ module MinecraftVersionsClient
|
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
|
+
# Returns attribute mapping this model knows about
|
29
|
+
def self.acceptable_attribute_map
|
30
|
+
attribute_map
|
31
|
+
end
|
32
|
+
|
28
33
|
# Returns all the JSON keys this model knows about
|
29
34
|
def self.acceptable_attributes
|
30
|
-
|
35
|
+
acceptable_attribute_map.values
|
31
36
|
end
|
32
37
|
|
33
38
|
# Attribute type mapping.
|
@@ -52,9 +57,10 @@ module MinecraftVersionsClient
|
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
-
if (!
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionManifest`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionManifest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
58
64
|
end
|
59
65
|
h[k.to_sym] = v
|
60
66
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -25,9 +25,14 @@ module MinecraftVersionsClient
|
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
|
+
# Returns attribute mapping this model knows about
|
29
|
+
def self.acceptable_attribute_map
|
30
|
+
attribute_map
|
31
|
+
end
|
32
|
+
|
28
33
|
# Returns all the JSON keys this model knows about
|
29
34
|
def self.acceptable_attributes
|
30
|
-
|
35
|
+
acceptable_attribute_map.values
|
31
36
|
end
|
32
37
|
|
33
38
|
# Attribute type mapping.
|
@@ -52,9 +57,10 @@ module MinecraftVersionsClient
|
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
-
if (!
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionManifestLatest`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionManifestLatest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
58
64
|
end
|
59
65
|
h[k.to_sym] = v
|
60
66
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -55,9 +55,14 @@ module MinecraftVersionsClient
|
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
58
|
+
# Returns attribute mapping this model knows about
|
59
|
+
def self.acceptable_attribute_map
|
60
|
+
attribute_map
|
61
|
+
end
|
62
|
+
|
58
63
|
# Returns all the JSON keys this model knows about
|
59
64
|
def self.acceptable_attributes
|
60
|
-
|
65
|
+
acceptable_attribute_map.values
|
61
66
|
end
|
62
67
|
|
63
68
|
# Attribute type mapping.
|
@@ -92,9 +97,10 @@ module MinecraftVersionsClient
|
|
92
97
|
end
|
93
98
|
|
94
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
100
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
95
101
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
96
|
-
if (!
|
97
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfo`. Please check the name to make sure it's valid. List of attributes: " +
|
102
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
103
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
98
104
|
end
|
99
105
|
h[k.to_sym] = v
|
100
106
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -34,9 +34,14 @@ module MinecraftVersionsClient
|
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
37
|
+
# Returns attribute mapping this model knows about
|
38
|
+
def self.acceptable_attribute_map
|
39
|
+
attribute_map
|
40
|
+
end
|
41
|
+
|
37
42
|
# Returns all the JSON keys this model knows about
|
38
43
|
def self.acceptable_attributes
|
39
|
-
|
44
|
+
acceptable_attribute_map.values
|
40
45
|
end
|
41
46
|
|
42
47
|
# Attribute type mapping.
|
@@ -64,9 +69,10 @@ module MinecraftVersionsClient
|
|
64
69
|
end
|
65
70
|
|
66
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
67
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
-
if (!
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfoAssetIndex`. Please check the name to make sure it's valid. List of attributes: " +
|
74
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfoAssetIndex`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
70
76
|
end
|
71
77
|
h[k.to_sym] = v
|
72
78
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -31,9 +31,14 @@ module MinecraftVersionsClient
|
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
|
+
# Returns attribute mapping this model knows about
|
35
|
+
def self.acceptable_attribute_map
|
36
|
+
attribute_map
|
37
|
+
end
|
38
|
+
|
34
39
|
# Returns all the JSON keys this model knows about
|
35
40
|
def self.acceptable_attributes
|
36
|
-
|
41
|
+
acceptable_attribute_map.values
|
37
42
|
end
|
38
43
|
|
39
44
|
# Attribute type mapping.
|
@@ -60,9 +65,10 @@ module MinecraftVersionsClient
|
|
60
65
|
end
|
61
66
|
|
62
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
68
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
63
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
|
-
if (!
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfoDownloads`. Please check the name to make sure it's valid. List of attributes: " +
|
70
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfoDownloads`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
66
72
|
end
|
67
73
|
h[k.to_sym] = v
|
68
74
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -25,9 +25,14 @@ module MinecraftVersionsClient
|
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
|
+
# Returns attribute mapping this model knows about
|
29
|
+
def self.acceptable_attribute_map
|
30
|
+
attribute_map
|
31
|
+
end
|
32
|
+
|
28
33
|
# Returns all the JSON keys this model knows about
|
29
34
|
def self.acceptable_attributes
|
30
|
-
|
35
|
+
acceptable_attribute_map.values
|
31
36
|
end
|
32
37
|
|
33
38
|
# Attribute type mapping.
|
@@ -52,9 +57,10 @@ module MinecraftVersionsClient
|
|
52
57
|
end
|
53
58
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
-
if (!
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfoJavaVersion`. Please check the name to make sure it's valid. List of attributes: " +
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MinecraftVersionsClient::VersionPackageInfoJavaVersion`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
58
64
|
end
|
59
65
|
h[k.to_sym] = v
|
60
66
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
11
11
|
module MinecraftVersionsClient
|
12
|
-
VERSION = '
|
12
|
+
VERSION = '1.1.0'
|
13
13
|
end
|
data/lib/minecraft_versions.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
data/minecraft_versions.gemspec
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
=begin
|
4
4
|
#SDK for Minecraft versions info
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 1.1.0
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.12.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
data/spec/models/version_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#SDK for Minecraft versions info
|
3
3
|
|
4
|
-
The version of the OpenAPI document:
|
4
|
+
The version of the OpenAPI document: 1.1.0
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
6
6
|
Generated by: https://openapi-generator.tech
|
7
|
-
Generator version: 7.
|
7
|
+
Generator version: 7.12.0
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minecraft_versions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.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: 2025-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -112,7 +112,7 @@ homepage: https://github.com/oapicf/minecraft-versions
|
|
112
112
|
licenses:
|
113
113
|
- MIT
|
114
114
|
metadata: {}
|
115
|
-
post_install_message:
|
115
|
+
post_install_message:
|
116
116
|
rdoc_options: []
|
117
117
|
require_paths:
|
118
118
|
- lib
|
@@ -127,18 +127,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
|
-
rubygems_version: 3.
|
131
|
-
signing_key:
|
130
|
+
rubygems_version: 3.4.20
|
131
|
+
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Ruby Gem
|
134
134
|
test_files:
|
135
135
|
- spec/api/default_api_spec.rb
|
136
136
|
- spec/models/version_package_info_downloads_spec.rb
|
137
|
-
- spec/models/download_spec.rb
|
138
|
-
- spec/models/version_package_info_spec.rb
|
139
137
|
- spec/models/version_manifest_latest_spec.rb
|
140
138
|
- spec/models/version_manifest_spec.rb
|
141
|
-
- spec/models/version_spec.rb
|
142
139
|
- spec/models/version_package_info_asset_index_spec.rb
|
140
|
+
- spec/models/version_package_info_spec.rb
|
143
141
|
- spec/models/version_package_info_java_version_spec.rb
|
142
|
+
- spec/models/version_spec.rb
|
143
|
+
- spec/models/download_spec.rb
|
144
144
|
- spec/spec_helper.rb
|