Skip to content

Commit f97649a

Browse files
authored
Set minimum required Ruby version to 2.7 (#24992)
* set min. required ruby version to 2.7 * update default * update
1 parent 655824a commit f97649a

13 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎docs/generators/ruby.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
2929
|gemLicense|gem license. | |unlicense|
3030
|gemMetadata|gem metadata.| |{}|
3131
|gemName|gem name (convention: underscore_case).| |openapi_client|
32-
|gemRequiredRubyVersion|gem required Ruby version. | |>= 2.4|
32+
|gemRequiredRubyVersion|gem required Ruby version. | |>= 2.7|
3333
|gemSummary|gem summary. | |A ruby wrapper for the REST APIs|
3434
|gemVersion|gem version.| |1.0.0|
3535
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true|

‎modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class RubyClientCodegen extends AbstractRubyCodegen {
6969
protected String specFolder = "spec";
7070
protected String libFolder = "lib";
7171
@Setter protected String gemLicense = "unlicense";
72-
@Setter protected String gemRequiredRubyVersion = ">= 1.9";
72+
@Setter protected String gemRequiredRubyVersion = ">= 2.7";
7373
@Setter protected String gemHomepage = "https://openapitools.org";
7474
@Setter protected String gemSummary = "A Ruby SDK for the REST API";
7575
@Setter protected String gemDescription = "This gem maps to a REST API";
@@ -164,7 +164,7 @@ public RubyClientCodegen() {
164164
defaultValue("unlicense"));
165165

166166
cliOptions.add(new CliOption(GEM_REQUIRED_RUBY_VERSION, "gem required Ruby version. ").
167-
defaultValue(">= 2.4"));
167+
defaultValue(">= 2.7"));
168168

169169
cliOptions.add(new CliOption(GEM_HOMEPAGE, "gem homepage. ").
170170
defaultValue("https://openapi-generator.tech"));

‎modules/openapi-generator/src/main/resources/ruby-client/rubocop.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

‎samples/client/echo_api/ruby-faraday/.rubocop.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

‎samples/client/echo_api/ruby-httpx/.rubocop.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

‎samples/client/echo_api/ruby-typhoeus/.rubocop.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

‎samples/client/petstore/ruby-autoload/.rubocop.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

‎samples/client/petstore/ruby-faraday/.rubocop.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

‎samples/client/petstore/ruby-httpx/.rubocop.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

‎samples/client/petstore/ruby/.rubocop.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
22
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
33
AllCops:
4-
TargetRubyVersion: 2.4
4+
TargetRubyVersion: 2.7
55
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
66
# to ignore them, so only the ones explicitly set in this file are enabled.
77
DisabledByDefault: true

0 commit comments

Comments
 (0)