minecraft_versions 1.1.1 → 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 +4 -4
- data/Gemfile.lock +88 -21
- data/README.md +6 -6
- data/bin/byebug +0 -11
- data/bin/coderay +0 -11
- data/bin/htmldiff +0 -11
- data/bin/ldiff +0 -11
- data/bin/pry +0 -11
- data/bin/racc +0 -11
- data/bin/rake +0 -11
- data/bin/rspec +0 -11
- data/bin/rubocop +0 -11
- data/bin/ruby-parse +0 -11
- data/bin/ruby-rewrite +0 -11
- data/lib/minecraft_versions/api/default_api.rb +2 -2
- 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 +8 -8
- 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: ed9327f36ddd22f3e227205433555ff0fd1a36b257296eb14a0c7b4ae9eb163f
|
|
4
|
+
data.tar.gz: da7d180775fc61c5a5ac978baed75467e9e6bc3e82ea5265c52f5ddcb2259ceb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76f4e37c75ce92e7587f8d455ce306e197a51d8a6fec603f3b71d9bed2bbb7311d8b5c104d1587c7f9c99a6e7203766ba0382ef3f309b6c8ac5883478c19fa36
|
|
7
|
+
data.tar.gz: 99e38be882405a1f93e389b7c964fb2d95c73ca7518d65233712cb5de017e3f0f3f0280d1d8e454431caad1e2d475154fa874ad2a343b90331946e4b130d7b94
|
data/Gemfile.lock
CHANGED
|
@@ -1,51 +1,66 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
minecraft_versions (1.
|
|
4
|
+
minecraft_versions (1.2.0)
|
|
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.15.0)
|
|
16
17
|
ffi (>= 1.15.0)
|
|
17
|
-
ffi (1.17.
|
|
18
|
+
ffi (1.17.3)
|
|
19
|
+
ffi (1.17.3-aarch64-linux-gnu)
|
|
20
|
+
ffi (1.17.3-aarch64-linux-musl)
|
|
21
|
+
ffi (1.17.3-arm-linux-gnu)
|
|
22
|
+
ffi (1.17.3-arm-linux-musl)
|
|
23
|
+
ffi (1.17.3-arm64-darwin)
|
|
24
|
+
ffi (1.17.3-x86-linux-gnu)
|
|
25
|
+
ffi (1.17.3-x86-linux-musl)
|
|
26
|
+
ffi (1.17.3-x86_64-darwin)
|
|
27
|
+
ffi (1.17.3-x86_64-linux-gnu)
|
|
28
|
+
ffi (1.17.3-x86_64-linux-musl)
|
|
29
|
+
io-console (0.8.2)
|
|
18
30
|
jaro_winkler (1.5.6)
|
|
19
31
|
method_source (1.1.0)
|
|
20
32
|
parallel (1.27.0)
|
|
21
|
-
parser (3.3.
|
|
33
|
+
parser (3.3.10.1)
|
|
22
34
|
ast (~> 2.4.1)
|
|
23
35
|
racc
|
|
24
|
-
pry (0.
|
|
36
|
+
pry (0.16.0)
|
|
25
37
|
coderay (~> 1.1)
|
|
26
38
|
method_source (~> 1.0)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
reline (>= 0.6.0)
|
|
40
|
+
pry-byebug (3.12.0)
|
|
41
|
+
byebug (~> 13.0)
|
|
42
|
+
pry (>= 0.13, < 0.17)
|
|
43
|
+
psych (5.3.1)
|
|
31
44
|
date
|
|
32
45
|
stringio
|
|
33
46
|
racc (1.8.1)
|
|
34
47
|
rainbow (3.1.1)
|
|
35
48
|
rake (13.0.6)
|
|
36
|
-
|
|
49
|
+
reline (0.6.3)
|
|
50
|
+
io-console (~> 0.5)
|
|
51
|
+
rspec (3.13.2)
|
|
37
52
|
rspec-core (~> 3.13.0)
|
|
38
53
|
rspec-expectations (~> 3.13.0)
|
|
39
54
|
rspec-mocks (~> 3.13.0)
|
|
40
|
-
rspec-core (3.13.
|
|
55
|
+
rspec-core (3.13.6)
|
|
41
56
|
rspec-support (~> 3.13.0)
|
|
42
|
-
rspec-expectations (3.13.
|
|
57
|
+
rspec-expectations (3.13.5)
|
|
43
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
59
|
rspec-support (~> 3.13.0)
|
|
45
|
-
rspec-mocks (3.13.
|
|
60
|
+
rspec-mocks (3.13.7)
|
|
46
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
62
|
rspec-support (~> 3.13.0)
|
|
48
|
-
rspec-support (3.13.
|
|
63
|
+
rspec-support (3.13.6)
|
|
49
64
|
rubocop (0.66.0)
|
|
50
65
|
jaro_winkler (~> 1.5.1)
|
|
51
66
|
parallel (~> 1.10)
|
|
@@ -55,13 +70,23 @@ GEM
|
|
|
55
70
|
ruby-progressbar (~> 1.7)
|
|
56
71
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
57
72
|
ruby-progressbar (1.13.0)
|
|
58
|
-
stringio (3.
|
|
59
|
-
typhoeus (1.
|
|
60
|
-
ethon (>= 0.9.0)
|
|
73
|
+
stringio (3.2.0)
|
|
74
|
+
typhoeus (1.5.0)
|
|
75
|
+
ethon (>= 0.9.0, < 0.16.0)
|
|
61
76
|
unicode-display_width (1.5.0)
|
|
62
77
|
|
|
63
78
|
PLATFORMS
|
|
79
|
+
aarch64-linux-gnu
|
|
80
|
+
aarch64-linux-musl
|
|
81
|
+
arm-linux-gnu
|
|
82
|
+
arm-linux-musl
|
|
83
|
+
arm64-darwin
|
|
84
|
+
ruby
|
|
85
|
+
x86-linux-gnu
|
|
86
|
+
x86-linux-musl
|
|
87
|
+
x86_64-darwin
|
|
64
88
|
x86_64-linux-gnu
|
|
89
|
+
x86_64-linux-musl
|
|
65
90
|
|
|
66
91
|
DEPENDENCIES
|
|
67
92
|
minecraft_versions!
|
|
@@ -70,5 +95,47 @@ DEPENDENCIES
|
|
|
70
95
|
rspec (~> 3.6, >= 3.6.0)
|
|
71
96
|
rubocop (~> 0.66.0)
|
|
72
97
|
|
|
98
|
+
CHECKSUMS
|
|
99
|
+
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
100
|
+
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
101
|
+
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
102
|
+
date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
|
|
103
|
+
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
104
|
+
ethon (0.15.0) sha256=0809805a035bc10f54162ca99f15ded49e428e0488bcfe1c08c821e18261a74d
|
|
105
|
+
ffi (1.17.3) sha256=0e9f39f7bb3934f77ad6feab49662be77e87eedcdeb2a3f5c0234c2938563d4c
|
|
106
|
+
ffi (1.17.3-aarch64-linux-gnu) sha256=28ad573df26560f0aedd8a90c3371279a0b2bd0b4e834b16a2baa10bd7a97068
|
|
107
|
+
ffi (1.17.3-aarch64-linux-musl) sha256=020b33b76775b1abacc3b7d86b287cef3251f66d747092deec592c7f5df764b2
|
|
108
|
+
ffi (1.17.3-arm-linux-gnu) sha256=5bd4cea83b68b5ec0037f99c57d5ce2dd5aa438f35decc5ef68a7d085c785668
|
|
109
|
+
ffi (1.17.3-arm-linux-musl) sha256=0d7626bb96265f9af78afa33e267d71cfef9d9a8eb8f5525344f8da6c7d76053
|
|
110
|
+
ffi (1.17.3-arm64-darwin) sha256=0c690555d4cee17a7f07c04d59df39b2fba74ec440b19da1f685c6579bb0717f
|
|
111
|
+
ffi (1.17.3-x86-linux-gnu) sha256=868a88fcaf5186c3a46b7c7c2b2c34550e1e61a405670ab23f5b6c9971529089
|
|
112
|
+
ffi (1.17.3-x86-linux-musl) sha256=f0286aa6ef40605cf586e61406c446de34397b85dbb08cc99fdaddaef8343945
|
|
113
|
+
ffi (1.17.3-x86_64-darwin) sha256=1f211811eb5cfaa25998322cdd92ab104bfbd26d1c4c08471599c511f2c00bb5
|
|
114
|
+
ffi (1.17.3-x86_64-linux-gnu) sha256=3746b01f677aae7b16dc1acb7cb3cc17b3e35bdae7676a3f568153fb0e2c887f
|
|
115
|
+
ffi (1.17.3-x86_64-linux-musl) sha256=086b221c3a68320b7564066f46fed23449a44f7a1935f1fe5a245bd89d9aea56
|
|
116
|
+
io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
|
|
117
|
+
jaro_winkler (1.5.6) sha256=007db7805527ada1cc12f2547676181d63b0a504ec4dd7a9a2eb2424521ccd81
|
|
118
|
+
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
119
|
+
minecraft_versions (1.2.0)
|
|
120
|
+
parallel (1.27.0) sha256=4ac151e1806b755fb4e2dc2332cbf0e54f2e24ba821ff2d3dcf86bf6dc4ae130
|
|
121
|
+
parser (3.3.10.1) sha256=06f6a725d2cd91e5e7f2b7c32ba143631e1f7c8ae2fb918fc4cebec187e6a688
|
|
122
|
+
pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
|
|
123
|
+
pry-byebug (3.12.0) sha256=594e094ae8a8390a7ad4c7b36ae36e13304ed02664c67417d108dc5f7213d1b7
|
|
124
|
+
psych (5.3.1) sha256=eb7a57cef10c9d70173ff74e739d843ac3b2c019a003de48447b2963d81b1974
|
|
125
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
126
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
127
|
+
rake (13.0.6) sha256=5ce4bf5037b4196c24ac62834d8db1ce175470391026bd9e557d669beeb19097
|
|
128
|
+
reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
|
|
129
|
+
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
130
|
+
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
131
|
+
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
132
|
+
rspec-mocks (3.13.7) sha256=0979034e64b1d7a838aaaddf12bf065ea4dc40ef3d4c39f01f93ae2c66c62b1c
|
|
133
|
+
rspec-support (3.13.6) sha256=2e8de3702427eab064c9352fe74488cc12a1bfae887ad8b91cba480ec9f8afb2
|
|
134
|
+
rubocop (0.66.0) sha256=f05a6896f367765b3f0fba663d0add120444f8de604dada405662b10a0860f5a
|
|
135
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
136
|
+
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
137
|
+
typhoeus (1.5.0) sha256=120b67ed1ef515e6c0e938176db880f15b0916f038e78ce2a66290f3f1de3e3b
|
|
138
|
+
unicode-display_width (1.5.0) sha256=9890eebd24feb4cb0e0542c9b8c6beecb40cda27be8c7afe49312625b36156eb
|
|
139
|
+
|
|
73
140
|
BUNDLED WITH
|
|
74
|
-
|
|
141
|
+
4.0.4
|
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.2.0
|
|
10
|
+
- Package version: 1.2.0
|
|
11
|
+
- Generator version: 7.18.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.2.0.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.2.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', '~> 1.
|
|
37
|
+
gem 'minecraft_versions', '~> 1.2.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/bin/byebug
CHANGED
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
|
|
@@ -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.2.0
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.18.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: 1.
|
|
4
|
+
The version of the OpenAPI document: 1.2.0
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.18.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.2.0
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.18.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.2.0
|
|
5
|
+
Contact: blah+oapicf@cliffano.com
|
|
6
|
+
Generated by: https://openapi-generator.tech
|
|
7
|
+
Generator version: 7.18.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.2.0
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.18.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: 1.
|
|
4
|
+
The version of the OpenAPI document: 1.2.0
|
|
5
5
|
Contact: blah+oapicf@cliffano.com
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
Generator version: 7.
|
|
7
|
+
Generator version: 7.18.0
|
|
8
8
|
|
|
9
9
|
=end
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ require 'date'
|
|
|
12
12
|
require 'time'
|
|
13
13
|
|
|
14
14
|
module MinecraftVersionsClient
|
|
15
|
-
class Download
|
|
15
|
+
class Download < ApiModelBase
|
|
16
16
|
attr_accessor :sha1
|
|
17
17
|
|
|
18
18
|
attr_accessor :size
|
|
@@ -142,61 +142,6 @@ module MinecraftVersionsClient
|
|
|
142
142
|
new(transformed_hash)
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
# Deserializes the data based on type
|
|
146
|
-
# @param string type Data type
|
|
147
|
-
# @param string value Value to be deserialized
|
|
148
|
-
# @return [Object] Deserialized data
|
|
149
|
-
def self._deserialize(type, value)
|
|
150
|
-
case type.to_sym
|
|
151
|
-
when :Time
|
|
152
|
-
Time.parse(value)
|
|
153
|
-
when :Date
|
|
154
|
-
Date.parse(value)
|
|
155
|
-
when :String
|
|
156
|
-
value.to_s
|
|
157
|
-
when :Integer
|
|
158
|
-
value.to_i
|
|
159
|
-
when :Float
|
|
160
|
-
value.to_f
|
|
161
|
-
when :Boolean
|
|
162
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
163
|
-
true
|
|
164
|
-
else
|
|
165
|
-
false
|
|
166
|
-
end
|
|
167
|
-
when :Object
|
|
168
|
-
# generic object (usually a Hash), return directly
|
|
169
|
-
value
|
|
170
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
171
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
172
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
173
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
174
|
-
k_type = Regexp.last_match[:k_type]
|
|
175
|
-
v_type = Regexp.last_match[:v_type]
|
|
176
|
-
{}.tap do |hash|
|
|
177
|
-
value.each do |k, v|
|
|
178
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
else # model
|
|
182
|
-
# models (e.g. Pet) or oneOf
|
|
183
|
-
klass = MinecraftVersionsClient.const_get(type)
|
|
184
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
# Returns the string representation of the object
|
|
189
|
-
# @return [String] String presentation of the object
|
|
190
|
-
def to_s
|
|
191
|
-
to_hash.to_s
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
195
|
-
# @return [Hash] Returns the object in the form of hash
|
|
196
|
-
def to_body
|
|
197
|
-
to_hash
|
|
198
|
-
end
|
|
199
|
-
|
|
200
145
|
# Returns the object in the form of hash
|
|
201
146
|
# @return [Hash] Returns the object in the form of hash
|
|
202
147
|
def to_hash
|
|
@@ -213,24 +158,6 @@ module MinecraftVersionsClient
|
|
|
213
158
|
hash
|
|
214
159
|
end
|
|
215
160
|
|
|
216
|
-
# Outputs non-array value in the form of hash
|
|
217
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
218
|
-
# @param [Object] value Any valid value
|
|
219
|
-
# @return [Hash] Returns the value in the form of hash
|
|
220
|
-
def _to_hash(value)
|
|
221
|
-
if value.is_a?(Array)
|
|
222
|
-
value.compact.map { |v| _to_hash(v) }
|
|
223
|
-
elsif value.is_a?(Hash)
|
|
224
|
-
{}.tap do |hash|
|
|
225
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
226
|
-
end
|
|
227
|
-
elsif value.respond_to? :to_hash
|
|
228
|
-
value.to_hash
|
|
229
|
-
else
|
|
230
|
-
value
|
|
231
|
-
end
|
|
232
|
-
end
|
|
233
|
-
|
|
234
161
|
end
|
|
235
162
|
|
|
236
163
|
end
|