minecraft_versions 1.1.1 → 1.3.3
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 +93 -22
- data/README.md +6 -6
- 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/Version.md +2 -2
- data/docs/VersionPackageInfo.md +2 -2
- data/lib/minecraft_versions/api/default_api.rb +3 -3
- data/lib/minecraft_versions/api_client.rb +8 -4
- data/lib/minecraft_versions/api_error.rb +2 -2
- data/lib/minecraft_versions/api_model_base.rb +86 -0
- data/lib/minecraft_versions/configuration.rb +2 -2
- data/lib/minecraft_versions/models/download.rb +3 -76
- data/lib/minecraft_versions/models/version.rb +3 -76
- data/lib/minecraft_versions/models/version_manifest.rb +3 -76
- data/lib/minecraft_versions/models/version_manifest_latest.rb +3 -76
- data/lib/minecraft_versions/models/version_package_info.rb +3 -76
- data/lib/minecraft_versions/models/version_package_info_asset_index.rb +3 -76
- data/lib/minecraft_versions/models/version_package_info_downloads.rb +3 -76
- data/lib/minecraft_versions/models/version_package_info_java_version.rb +3 -76
- data/lib/minecraft_versions/version.rb +3 -3
- data/lib/minecraft_versions.rb +3 -2
- data/minecraft_versions.gemspec +2 -2
- data/spec/api/default_api_spec.rb +2 -2
- data/spec/models/download_spec.rb +3 -3
- data/spec/models/version_manifest_latest_spec.rb +3 -3
- data/spec/models/version_manifest_spec.rb +3 -3
- data/spec/models/version_package_info_asset_index_spec.rb +3 -3
- data/spec/models/version_package_info_downloads_spec.rb +3 -3
- data/spec/models/version_package_info_java_version_spec.rb +3 -3
- data/spec/models/version_package_info_spec.rb +3 -3
- data/spec/models/version_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +7 -10
- data/bin/bundle +0 -109
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9fa7f69f0532cc765cbbd95f1e5824cdf0221c8a595f406e3989729fe5d52f1a
|
|
4
|
+
data.tar.gz: 4fd63cef6d51f388cb69a6792c5bd82a6daaecf4ee6e912e4c58d94af187fc2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6bca352f4d0aef2afba47be96f12428da7083b2fd547e6349c65525f1d0c4d35f62795866076c9c331ac77b3f055967b18d81adf2e63e2114afdb81114d430c
|
|
7
|
+
data.tar.gz: fd81bb2c5f3ac7db9c0a884098923e9970c61254ba358bb0e4574a34a204929f2ca123c12a44d96fd71485bb2fef3d8734ae7043f20704d6ff2f7989ddf5b588
|
data/Gemfile.lock
CHANGED
|
@@ -1,51 +1,68 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
minecraft_versions (1.
|
|
4
|
+
minecraft_versions (1.3.3)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
10
|
ast (2.4.3)
|
|
11
|
-
byebug (
|
|
11
|
+
byebug (13.0.0)
|
|
12
|
+
reline (>= 0.6.0)
|
|
12
13
|
coderay (1.1.3)
|
|
13
|
-
date (3.
|
|
14
|
-
diff-lcs (1.6.
|
|
15
|
-
ethon (0.
|
|
14
|
+
date (3.5.1)
|
|
15
|
+
diff-lcs (1.6.2)
|
|
16
|
+
ethon (0.18.0)
|
|
16
17
|
ffi (>= 1.15.0)
|
|
17
|
-
|
|
18
|
+
logger
|
|
19
|
+
ffi (1.17.4)
|
|
20
|
+
ffi (1.17.4-aarch64-linux-gnu)
|
|
21
|
+
ffi (1.17.4-aarch64-linux-musl)
|
|
22
|
+
ffi (1.17.4-arm-linux-gnu)
|
|
23
|
+
ffi (1.17.4-arm-linux-musl)
|
|
24
|
+
ffi (1.17.4-arm64-darwin)
|
|
25
|
+
ffi (1.17.4-x86-linux-gnu)
|
|
26
|
+
ffi (1.17.4-x86-linux-musl)
|
|
27
|
+
ffi (1.17.4-x86_64-darwin)
|
|
28
|
+
ffi (1.17.4-x86_64-linux-gnu)
|
|
29
|
+
ffi (1.17.4-x86_64-linux-musl)
|
|
30
|
+
io-console (0.9.2)
|
|
18
31
|
jaro_winkler (1.5.6)
|
|
32
|
+
logger (1.7.0)
|
|
19
33
|
method_source (1.1.0)
|
|
20
|
-
parallel (1.
|
|
21
|
-
parser (3.3.
|
|
34
|
+
parallel (1.28.0)
|
|
35
|
+
parser (3.3.12.0)
|
|
22
36
|
ast (~> 2.4.1)
|
|
23
37
|
racc
|
|
24
|
-
pry (0.
|
|
38
|
+
pry (0.16.0)
|
|
25
39
|
coderay (~> 1.1)
|
|
26
40
|
method_source (~> 1.0)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
reline (>= 0.6.0)
|
|
42
|
+
pry-byebug (3.12.0)
|
|
43
|
+
byebug (~> 13.0)
|
|
44
|
+
pry (>= 0.13, < 0.17)
|
|
45
|
+
psych (5.4.0)
|
|
31
46
|
date
|
|
32
47
|
stringio
|
|
33
48
|
racc (1.8.1)
|
|
34
49
|
rainbow (3.1.1)
|
|
35
50
|
rake (13.0.6)
|
|
36
|
-
|
|
51
|
+
reline (0.7.0)
|
|
52
|
+
io-console (~> 0.5)
|
|
53
|
+
rspec (3.13.2)
|
|
37
54
|
rspec-core (~> 3.13.0)
|
|
38
55
|
rspec-expectations (~> 3.13.0)
|
|
39
56
|
rspec-mocks (~> 3.13.0)
|
|
40
|
-
rspec-core (3.13.
|
|
57
|
+
rspec-core (3.13.6)
|
|
41
58
|
rspec-support (~> 3.13.0)
|
|
42
|
-
rspec-expectations (3.13.
|
|
59
|
+
rspec-expectations (3.13.5)
|
|
43
60
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
61
|
rspec-support (~> 3.13.0)
|
|
45
|
-
rspec-mocks (3.13.
|
|
62
|
+
rspec-mocks (3.13.8)
|
|
46
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
64
|
rspec-support (~> 3.13.0)
|
|
48
|
-
rspec-support (3.13.
|
|
65
|
+
rspec-support (3.13.7)
|
|
49
66
|
rubocop (0.66.0)
|
|
50
67
|
jaro_winkler (~> 1.5.1)
|
|
51
68
|
parallel (~> 1.10)
|
|
@@ -55,13 +72,23 @@ GEM
|
|
|
55
72
|
ruby-progressbar (~> 1.7)
|
|
56
73
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
57
74
|
ruby-progressbar (1.13.0)
|
|
58
|
-
stringio (3.
|
|
59
|
-
typhoeus (1.
|
|
60
|
-
ethon (>= 0.
|
|
75
|
+
stringio (3.2.0)
|
|
76
|
+
typhoeus (1.6.0)
|
|
77
|
+
ethon (>= 0.18.0)
|
|
61
78
|
unicode-display_width (1.5.0)
|
|
62
79
|
|
|
63
80
|
PLATFORMS
|
|
81
|
+
aarch64-linux-gnu
|
|
82
|
+
aarch64-linux-musl
|
|
83
|
+
arm-linux-gnu
|
|
84
|
+
arm-linux-musl
|
|
85
|
+
arm64-darwin
|
|
86
|
+
ruby
|
|
87
|
+
x86-linux-gnu
|
|
88
|
+
x86-linux-musl
|
|
89
|
+
x86_64-darwin
|
|
64
90
|
x86_64-linux-gnu
|
|
91
|
+
x86_64-linux-musl
|
|
65
92
|
|
|
66
93
|
DEPENDENCIES
|
|
67
94
|
minecraft_versions!
|
|
@@ -70,5 +97,49 @@ DEPENDENCIES
|
|
|
70
97
|
rspec (~> 3.6, >= 3.6.0)
|
|
71
98
|
rubocop (~> 0.66.0)
|
|
72
99
|
|
|
100
|
+
CHECKSUMS
|
|
101
|
+
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
102
|
+
bundler (4.0.18) sha256=02d9a17429de1847b4e0c9f27a9ee4b20c0a74c0a641b4e77195d6019e3618ac
|
|
103
|
+
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
104
|
+
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
105
|
+
date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
|
|
106
|
+
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
107
|
+
ethon (0.18.0) sha256=b598afc9f30448cb068b850714b7d6948e941476095d04f90a4ac65b8d6efcb2
|
|
108
|
+
ffi (1.17.4) sha256=bcd1642e06f0d16fc9e09ac6d49c3a7298b9789bcb58127302f934e437d60acf
|
|
109
|
+
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
|
|
110
|
+
ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
|
|
111
|
+
ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564
|
|
112
|
+
ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95
|
|
113
|
+
ffi (1.17.4-arm64-darwin) sha256=19071aaf1419251b0a46852abf960e77330a3b334d13a4ab51d58b31a937001b
|
|
114
|
+
ffi (1.17.4-x86-linux-gnu) sha256=38e150df5f4ca555e25beca4090823ae09657bceded154e3c52f8631c1ed72cf
|
|
115
|
+
ffi (1.17.4-x86-linux-musl) sha256=fbeec0fc7c795bcf86f623bb18d31ea1820f7bd580e1703a3d3740d527437809
|
|
116
|
+
ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496
|
|
117
|
+
ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
|
|
118
|
+
ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
|
|
119
|
+
io-console (0.9.2) sha256=efa74f891dd03c0939a931dfc6e74c2813d904763d456ea9762b0525e748db08
|
|
120
|
+
jaro_winkler (1.5.6) sha256=007db7805527ada1cc12f2547676181d63b0a504ec4dd7a9a2eb2424521ccd81
|
|
121
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
122
|
+
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
123
|
+
minecraft_versions (1.3.3)
|
|
124
|
+
parallel (1.28.0) sha256=33e6de1484baf2524792d178b0913fc8eb94c628d6cfe45599ad4458c638c970
|
|
125
|
+
parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
|
|
126
|
+
pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
|
|
127
|
+
pry-byebug (3.12.0) sha256=594e094ae8a8390a7ad4c7b36ae36e13304ed02664c67417d108dc5f7213d1b7
|
|
128
|
+
psych (5.4.0) sha256=14f72d69a611af663d7d70e4a7b67d9eb1f3ae9f8d916b478961d5a0075ba5b7
|
|
129
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
130
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
131
|
+
rake (13.0.6) sha256=5ce4bf5037b4196c24ac62834d8db1ce175470391026bd9e557d669beeb19097
|
|
132
|
+
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
133
|
+
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
134
|
+
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
135
|
+
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
136
|
+
rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
|
|
137
|
+
rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
|
|
138
|
+
rubocop (0.66.0) sha256=f05a6896f367765b3f0fba663d0add120444f8de604dada405662b10a0860f5a
|
|
139
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
140
|
+
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
141
|
+
typhoeus (1.6.0) sha256=bacc41c23e379547e29801dc235cd1699b70b955a1ba3d32b2b877aa844c331d
|
|
142
|
+
unicode-display_width (1.5.0) sha256=9890eebd24feb4cb0e0542c9b8c6beecb40cda27be8c7afe49312625b36156eb
|
|
143
|
+
|
|
73
144
|
BUNDLED WITH
|
|
74
|
-
|
|
145
|
+
4.0.18
|
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: 1.
|
|
10
|
-
- Package version: 1.
|
|
11
|
-
- Generator version: 7.
|
|
9
|
+
- API version: 1.3.3
|
|
10
|
+
- Package version: 1.3.3
|
|
11
|
+
- Generator version: 7.24.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-1.
|
|
28
|
+
gem install ./minecraft_versions-1.3.3.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./minecraft_versions-1.
|
|
31
|
+
(for development, run `gem install --dev ./minecraft_versions-1.3.3.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', '~> 1.
|
|
37
|
+
gem 'minecraft_versions', '~> 1.3.3'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/bin/byebug
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/coderay
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/htmldiff
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/ldiff
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/pry
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/racc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/rake
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/rspec
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/rubocop
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/ruby-parse
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
data/bin/ruby-rewrite
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env ruby3.
|
|
1
|
+
#!/usr/bin/env ruby3.3
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
#
|
|
@@ -10,17 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
12
|
|
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
-
|
|
15
|
-
if File.file?(bundle_binstub)
|
|
16
|
-
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
-
load(bundle_binstub)
|
|
18
|
-
else
|
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
13
|
require "rubygems"
|
|
25
14
|
require "bundler/setup"
|
|
26
15
|
|
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:41.
|
|
23
|
-
release_time: 2024-04-01T11:07:19.
|
|
22
|
+
time: 2024-04-01T11:14:41.000+00:00,
|
|
23
|
+
release_time: 2024-04-01T11:07:19.000+00:00
|
|
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:41.
|
|
36
|
-
release_time: 2024-04-01T11:07:19.
|
|
35
|
+
time: 2024-04-01T11:14:41.000+00:00,
|
|
36
|
+
release_time: 2024-04-01T11:07:19.000+00:00,
|
|
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: 1.
|
|
4
|
+
The version of the OpenAPI document: 1.3.3
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.24.0
|
|
8
8
|
|
|
9
9
|
=end
|
|
10
10
|
|
|
@@ -100,7 +100,7 @@ module MinecraftVersionsClient
|
|
|
100
100
|
fail ArgumentError, "Missing the required parameter 'version_id' when calling DefaultApi.get_minecraft_version_package_info"
|
|
101
101
|
end
|
|
102
102
|
# resource path
|
|
103
|
-
local_var_path = '/v1/packages/{packageId}/{versionId}.json'.sub('{
|
|
103
|
+
local_var_path = '/v1/packages/{packageId}/{versionId}.json'.sub('{packageId}', CGI.escape(package_id.to_s)).sub('{versionId}', CGI.escape(version_id.to_s))
|
|
104
104
|
|
|
105
105
|
# query parameters
|
|
106
106
|
query_params = opts[:query_params] || {}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SDK for Minecraft versions info
|
|
3
3
|
|
|
4
|
-
The version of the OpenAPI document: 1.
|
|
4
|
+
The version of the OpenAPI document: 1.3.3
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.24.0
|
|
8
8
|
|
|
9
9
|
=end
|
|
10
10
|
|
|
@@ -275,9 +275,13 @@ module MinecraftVersionsClient
|
|
|
275
275
|
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
|
276
276
|
end
|
|
277
277
|
else
|
|
278
|
-
# models (e.g. Pet) or oneOf
|
|
278
|
+
# models (e.g. Pet) or oneOf/anyOf
|
|
279
279
|
klass = MinecraftVersionsClient.const_get(return_type)
|
|
280
|
-
klass.respond_to?(:openapi_one_of)
|
|
280
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of)
|
|
281
|
+
klass.build(data)
|
|
282
|
+
else
|
|
283
|
+
klass.build_from_hash(data)
|
|
284
|
+
end
|
|
281
285
|
end
|
|
282
286
|
end
|
|
283
287
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SDK for Minecraft versions info
|
|
3
3
|
|
|
4
|
-
The version of the OpenAPI document: 1.
|
|
4
|
+
The version of the OpenAPI document: 1.3.3
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.24.0
|
|
8
8
|
|
|
9
9
|
=end
|
|
10
10
|
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SDK for Minecraft versions info
|
|
3
|
+
|
|
4
|
+
The version of the OpenAPI document: 1.3.3
|
|
5
|
+
Contact: blah+oapicf@cliffano.com
|
|
6
|
+
Generated by: https://openapi-generator.tech
|
|
7
|
+
Generator version: 7.24.0
|
|
8
|
+
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
module MinecraftVersionsClient
|
|
12
|
+
class ApiModelBase
|
|
13
|
+
# Deserializes the data based on type
|
|
14
|
+
# @param string type Data type
|
|
15
|
+
# @param string value Value to be deserialized
|
|
16
|
+
# @return [Object] Deserialized data
|
|
17
|
+
def self._deserialize(type, value)
|
|
18
|
+
case type.to_sym
|
|
19
|
+
when :Time
|
|
20
|
+
Time.parse(value)
|
|
21
|
+
when :Date
|
|
22
|
+
Date.parse(value)
|
|
23
|
+
when :String
|
|
24
|
+
value.to_s
|
|
25
|
+
when :Integer
|
|
26
|
+
value.to_i
|
|
27
|
+
when :Float
|
|
28
|
+
value.to_f
|
|
29
|
+
when :Boolean
|
|
30
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
31
|
+
true
|
|
32
|
+
else
|
|
33
|
+
false
|
|
34
|
+
end
|
|
35
|
+
when :Object
|
|
36
|
+
# generic object (usually a Hash), return directly
|
|
37
|
+
value
|
|
38
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
39
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
40
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
41
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
42
|
+
k_type = Regexp.last_match[:k_type]
|
|
43
|
+
v_type = Regexp.last_match[:v_type]
|
|
44
|
+
{}.tap do |hash|
|
|
45
|
+
value.each do |k, v|
|
|
46
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
else # model
|
|
50
|
+
# models (e.g. Pet) or oneOf
|
|
51
|
+
klass = MinecraftVersionsClient.const_get(type)
|
|
52
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns the string representation of the object
|
|
57
|
+
# @return [String] String presentation of the object
|
|
58
|
+
def to_s
|
|
59
|
+
to_hash.to_s
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
63
|
+
# @return [Hash] Returns the object in the form of hash
|
|
64
|
+
def to_body
|
|
65
|
+
to_hash
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Outputs non-array value in the form of hash
|
|
69
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
70
|
+
# @param [Object] value Any valid value
|
|
71
|
+
# @return [Hash] Returns the value in the form of hash
|
|
72
|
+
def _to_hash(value)
|
|
73
|
+
if value.is_a?(Array)
|
|
74
|
+
value.compact.map { |v| _to_hash(v) }
|
|
75
|
+
elsif value.is_a?(Hash)
|
|
76
|
+
{}.tap do |hash|
|
|
77
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
78
|
+
end
|
|
79
|
+
elsif value.respond_to? :to_hash
|
|
80
|
+
value.to_hash
|
|
81
|
+
else
|
|
82
|
+
value
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SDK for Minecraft versions info
|
|
3
3
|
|
|
4
|
-
The version of the OpenAPI document: 1.
|
|
4
|
+
The version of the OpenAPI document: 1.3.3
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.24.0
|
|
8
8
|
|
|
9
9
|
=end
|
|
10
10
|
|