minecraft_versions 0.12.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +8 -8
  3. data/README.md +6 -6
  4. data/bin/bundle +17 -12
  5. data/bin/byebug +6 -4
  6. data/bin/coderay +6 -4
  7. data/bin/htmldiff +6 -4
  8. data/bin/ldiff +6 -4
  9. data/bin/pry +6 -4
  10. data/bin/racc +6 -4
  11. data/bin/rake +6 -4
  12. data/bin/rspec +6 -4
  13. data/bin/rubocop +6 -4
  14. data/bin/ruby-parse +6 -4
  15. data/bin/ruby-rewrite +6 -4
  16. data/docs/Version.md +2 -2
  17. data/docs/VersionPackageInfo.md +2 -2
  18. data/lib/minecraft_versions/api/default_api.rb +4 -4
  19. data/lib/minecraft_versions/api_client.rb +2 -2
  20. data/lib/minecraft_versions/api_error.rb +2 -2
  21. data/lib/minecraft_versions/configuration.rb +12 -2
  22. data/lib/minecraft_versions/models/download.rb +2 -2
  23. data/lib/minecraft_versions/models/version.rb +2 -2
  24. data/lib/minecraft_versions/models/version_manifest.rb +2 -2
  25. data/lib/minecraft_versions/models/version_manifest_latest.rb +2 -2
  26. data/lib/minecraft_versions/models/version_package_info.rb +2 -2
  27. data/lib/minecraft_versions/models/version_package_info_asset_index.rb +2 -2
  28. data/lib/minecraft_versions/models/version_package_info_downloads.rb +2 -2
  29. data/lib/minecraft_versions/models/version_package_info_java_version.rb +2 -2
  30. data/lib/minecraft_versions/version.rb +3 -3
  31. data/lib/minecraft_versions.rb +2 -2
  32. data/minecraft_versions.gemspec +2 -2
  33. data/spec/api/default_api_spec.rb +2 -2
  34. data/spec/models/download_spec.rb +2 -2
  35. data/spec/models/version_manifest_latest_spec.rb +2 -2
  36. data/spec/models/version_manifest_spec.rb +2 -2
  37. data/spec/models/version_package_info_asset_index_spec.rb +2 -2
  38. data/spec/models/version_package_info_downloads_spec.rb +2 -2
  39. data/spec/models/version_package_info_java_version_spec.rb +2 -2
  40. data/spec/models/version_package_info_spec.rb +2 -2
  41. data/spec/models/version_spec.rb +2 -2
  42. data/spec/spec_helper.rb +2 -2
  43. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99f9c3b6fe922f73f1d5edef719eca0d98dd1540083deaf9181f1d8f0cf329d9
4
- data.tar.gz: e6e84bbab4aa9c6db4828c21aba65fdffebca92e67d3ff0108565d070c52872a
3
+ metadata.gz: 515e89c417f72f495a659c65e29b5c9cfc801a64eb0af497fe98a2a679eb9137
4
+ data.tar.gz: e19d2aafdcbfe800c5886c3d607338cb320315a34f0fcd402c954453bfa1d256
5
5
  SHA512:
6
- metadata.gz: 93e640033c9ff3dc3a2e7218985160192df20524b8fd96cfb921eedaa21af1976fcca97f7f0511117a9aa97599332d4b74b40750f5c801794fe3076c532649b6
7
- data.tar.gz: 46131b08e6f1f4c62f1d26e25c7df06043249237b62d7bbcfe120b0a2dc325e704f931a55b02976d2e62817888d7f80049252c8681ab721518dbdb6908d2bdca
6
+ metadata.gz: 348646b4ad2a040fa59838ce85f5466abf6f7e47f240a40bd1479191bf3b1f4a783f294f8b1eb5aca53f7edc19ba3d152e2558de4b7d626dd1671225eeb11469
7
+ data.tar.gz: d2c1e736bbd7e67a5c110fb12cbc0b59c212b23059e05c9c162b571046bd8e51af4172b55f1ccdb36c90f711cd2175a499021a47b7a1fff0f9993d3ee590ca98
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minecraft_versions (0.12.0)
4
+ minecraft_versions (1.0.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -16,8 +16,8 @@ GEM
16
16
  ffi (1.17.0)
17
17
  jaro_winkler (1.5.6)
18
18
  method_source (1.1.0)
19
- parallel (1.25.1)
20
- parser (3.3.3.0)
19
+ parallel (1.26.3)
20
+ parser (3.3.5.1)
21
21
  ast (~> 2.4.1)
22
22
  racc
23
23
  pry (0.14.2)
@@ -28,19 +28,19 @@ GEM
28
28
  pry (>= 0.13, < 0.15)
29
29
  psych (5.1.2)
30
30
  stringio
31
- racc (1.8.0)
31
+ racc (1.8.1)
32
32
  rainbow (3.1.1)
33
33
  rake (13.0.6)
34
34
  rspec (3.13.0)
35
35
  rspec-core (~> 3.13.0)
36
36
  rspec-expectations (~> 3.13.0)
37
37
  rspec-mocks (~> 3.13.0)
38
- rspec-core (3.13.0)
38
+ rspec-core (3.13.2)
39
39
  rspec-support (~> 3.13.0)
40
- rspec-expectations (3.13.1)
40
+ rspec-expectations (3.13.3)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
42
  rspec-support (~> 3.13.0)
43
- rspec-mocks (3.13.1)
43
+ rspec-mocks (3.13.2)
44
44
  diff-lcs (>= 1.2.0, < 2.0)
45
45
  rspec-support (~> 3.13.0)
46
46
  rspec-support (3.13.1)
@@ -69,4 +69,4 @@ DEPENDENCIES
69
69
  rubocop (~> 0.66.0)
70
70
 
71
71
  BUNDLED WITH
72
- 2.4.22
72
+ 2.2.22
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: 0.12.0
10
- - Package version: 0.12.0
11
- - Generator version: 7.6.0
9
+ - API version: 1.0.0
10
+ - Package version: 1.0.0
11
+ - Generator version: 7.9.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-0.12.0.gem
28
+ gem install ./minecraft_versions-1.0.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./minecraft_versions-0.12.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./minecraft_versions-1.0.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', '~> 0.12.0'
37
+ gem 'minecraft_versions', '~> 1.0.0'
38
38
 
39
39
  ### Install from Git
40
40
 
data/bin/bundle CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -41,13 +41,13 @@ m = Module.new do
41
41
  gemfile = ENV["BUNDLE_GEMFILE"]
42
42
  return gemfile if gemfile && !gemfile.empty?
43
43
 
44
- File.expand_path("../Gemfile", __dir__)
44
+ File.expand_path("../../Gemfile", __FILE__)
45
45
  end
46
46
 
47
47
  def lockfile
48
48
  lockfile =
49
49
  case File.basename(gemfile)
50
- when "gems.rb" then gemfile.sub(/\.rb$/, ".locked")
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
51
  else "#{gemfile}.lock"
52
52
  end
53
53
  File.expand_path(lockfile)
@@ -60,19 +60,24 @@ m = Module.new do
60
60
  Regexp.last_match(1)
61
61
  end
62
62
 
63
- def bundler_requirement
64
- @bundler_requirement ||=
65
- env_var_version ||
66
- cli_arg_version ||
67
- bundler_requirement_for(lockfile_version)
63
+ def bundler_version
64
+ @bundler_version ||=
65
+ env_var_version || cli_arg_version ||
66
+ lockfile_version
68
67
  end
69
68
 
70
- def bundler_requirement_for(version)
71
- return "#{Gem::Requirement.default}.a" unless version
69
+ def bundler_requirement
70
+ return "#{Gem::Requirement.default}.a" unless bundler_version
71
+
72
+ bundler_gem_version = Gem::Version.new(bundler_version)
73
+
74
+ requirement = bundler_gem_version.approximate_recommendation
75
+
76
+ return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
72
77
 
73
- bundler_gem_version = Gem::Version.new(version)
78
+ requirement += ".a" if bundler_gem_version.prerelease?
74
79
 
75
- bundler_gem_version.approximate_recommendation
80
+ requirement
76
81
  end
77
82
 
78
83
  def load_bundler!
data/bin/byebug CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/coderay CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/htmldiff CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/ldiff CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/pry CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/racc CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rake CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rspec CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rubocop CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/ruby-parse CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/ruby-rewrite CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby2.7
1
+ #!/usr/bin/env ruby3.0
2
2
  # frozen_string_literal: true
3
3
 
4
4
  #
@@ -8,12 +8,14 @@
8
8
  # this file is here to facilitate running it.
9
9
  #
10
10
 
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
12
14
 
13
- bundle_binstub = File.expand_path("bundle", __dir__)
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
14
16
 
15
17
  if File.file?(bundle_binstub)
16
- if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
19
  load(bundle_binstub)
18
20
  else
19
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
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:41Z,
23
- release_time: 2024-04-01T11:07:19Z
22
+ time: 2024-04-01T11:14:41.000Z,
23
+ release_time: 2024-04-01T11:07:19.000Z
24
24
  )
25
25
  ```
26
26
 
@@ -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:41Z,
36
- release_time: 2024-04-01T11:07:19Z,
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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.0
8
8
 
9
9
  =end
10
10
 
@@ -1,13 +1,13 @@
1
1
  =begin
2
2
  #SDK for Minecraft versions info
3
3
 
4
- The version of the OpenAPI document: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.0
8
8
 
9
9
  =end
10
10
 
11
11
  module MinecraftVersionsClient
12
- VERSION = '0.12.0'
12
+ VERSION = '1.0.0'
13
13
  end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #SDK for Minecraft versions info
3
3
 
4
- The version of the OpenAPI document: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.0
8
8
 
9
9
  =end
10
10
 
@@ -3,10 +3,10 @@
3
3
  =begin
4
4
  #SDK for Minecraft versions info
5
5
 
6
- The version of the OpenAPI document: 0.12.0
6
+ The version of the OpenAPI document: 1.0.0
7
7
  Contact: blah+oapicf@cliffano.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.6.0
9
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ The version of the OpenAPI document: 1.0.0
5
5
  Contact: blah+oapicf@cliffano.com
6
6
  Generated by: https://openapi-generator.tech
7
- Generator version: 7.6.0
7
+ Generator version: 7.9.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: 0.12.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI Clients Factory
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-07 00:00:00.000000000 Z
11
+ date: 2024-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -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.1.2
130
+ rubygems_version: 3.3.5
131
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
- - spec/models/version_package_info_downloads_spec.rb
137
- - spec/models/download_spec.rb
138
- - spec/models/version_package_info_spec.rb
139
- - spec/models/version_manifest_latest_spec.rb
140
136
  - spec/models/version_manifest_spec.rb
141
- - spec/models/version_spec.rb
137
+ - spec/models/version_package_info_spec.rb
142
138
  - spec/models/version_package_info_asset_index_spec.rb
139
+ - spec/models/version_manifest_latest_spec.rb
140
+ - spec/models/version_package_info_downloads_spec.rb
141
+ - spec/models/download_spec.rb
143
142
  - spec/models/version_package_info_java_version_spec.rb
143
+ - spec/models/version_spec.rb
144
144
  - spec/spec_helper.rb