Skip to content

Commit 2ad4e22

Browse files
authored
feat: Update Ruby dependency to minimum of 2.4 (#4206)
1 parent e8526dc commit 2ad4e22

File tree

217 files changed

+1058
-1243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+1058
-1243
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In order to use the google-cloud-ruby console and run the project's tests, there
1919
small amount of setup:
2020

2121
1. Install Ruby.
22-
google-cloud-ruby requires Ruby 2.3+. You may choose to manage your Ruby and gem installations with [RVM](https://rvm.io/), [rbenv](https://github.com/rbenv/rbenv), or [chruby](https://github.com/postmodern/chruby).
22+
google-cloud-ruby requires Ruby 2.4+. You may choose to manage your Ruby and gem installations with [RVM](https://rvm.io/), [rbenv](https://github.com/rbenv/rbenv), or [chruby](https://github.com/postmodern/chruby).
2323

2424
2. Install [Bundler](http://bundler.io/).
2525

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,11 +1185,11 @@ $ gem install google-cloud-video_intelligence
11851185

11861186
## Supported Ruby Versions
11871187

1188-
These libraries are currently supported on Ruby 2.3+.
1188+
These libraries are currently supported on Ruby 2.4+.
11891189

11901190
Google provides official support for Ruby versions that are actively supported
11911191
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
1192-
in security maintenance, and not end of life. Currently, this means Ruby 2.3
1192+
in security maintenance, and not end of life. Currently, this means Ruby 2.4
11931193
and later. Older versions of Ruby _may_ still work, but are unsupported and not
11941194
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
11951195
about the Ruby support schedule.

gcloud/.rubocop.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
inherit_gem:
2+
google-style: google-style.yml
3+
14
AllCops:
25
Exclude:
36
- "gcloud.gemspec"
47
- "Rakefile"
58
- "test/**/*"
6-
TargetRubyVersion: 2.2
79

810
Documentation:
911
Enabled: false
@@ -13,7 +15,3 @@ Layout/EmptyLines: # for the extra line between copyright and code
1315
Metrics/LineLength:
1416
Exclude:
1517
- "Gemfile"
16-
Style/StringLiterals:
17-
EnforcedStyle: double_quotes
18-
Style/MethodDefParentheses:
19-
EnforcedStyle: require_no_parentheses

gcloud/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ be able to accept your pull requests.
2424
In order to use the google-cloud console and run the project's tests,
2525
there is a small amount of setup:
2626

27-
1. Install Ruby. google-cloud requires Ruby 2.3+. You may choose to
27+
1. Install Ruby. google-cloud requires Ruby 2.4+. You may choose to
2828
manage your Ruby and gem installations with [RVM](https://rvm.io/),
2929
[rbenv](https://github.com/rbenv/rbenv), or
3030
[chruby](https://github.com/postmodern/chruby).

gcloud/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ end
3939

4040
## Supported Ruby Versions
4141

42-
This library is supported on Ruby 2.3+.
42+
This library is supported on Ruby 2.4+.
4343

4444
Google provides official support for Ruby versions that are actively supported
4545
by Ruby Core—that is, Ruby versions that are either in normal maintenance or in
46-
security maintenance, and not end of life. Currently, this means Ruby 2.3 and
46+
security maintenance, and not end of life. Currently, this means Ruby 2.4 and
4747
later. Older versions of Ruby _may_ still work, but are unsupported and not
4848
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
4949
about the Ruby support schedule.

gcloud/gcloud.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ Gem::Specification.new do |gem|
1616
["README.md", "AUTHENTICATION.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "LICENSE", ".yardopts"]
1717
gem.require_paths = ["lib"]
1818

19-
gem.required_ruby_version = ">= 2.0.0"
19+
gem.required_ruby_version = ">= 2.4"
2020

2121
gem.add_dependency "google-cloud", "~> 0.23"
2222

23+
gem.add_development_dependency "google-style", "~> 1.24.0"
2324
gem.add_development_dependency "minitest", "~> 5.10"
2425
gem.add_development_dependency "minitest-autotest", "~> 1.0"
2526
gem.add_development_dependency "minitest-focus", "~> 1.1"
2627
gem.add_development_dependency "minitest-rg", "~> 5.2"
2728
gem.add_development_dependency "autotest-suffix", "~> 1.1"
2829
gem.add_development_dependency "redcarpet", "~> 3.0"
29-
gem.add_development_dependency "rubocop", "~> 0.64.0"
3030
gem.add_development_dependency "simplecov", "~> 0.9"
3131
gem.add_development_dependency "yard", "~> 0.9"
3232
gem.add_development_dependency "yard-doctest", "~> 0.1.13"

google-cloud-asset/.rubocop.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1+
inherit_gem:
2+
google-style: google-style.yml
3+
14
AllCops:
25
Exclude:
36
- "google-cloud-asset.gemspec"
47
- "lib/google/**/*"
58
- "Rakefile"
69
- "test/**/*"
710
- "acceptance/**/*"
8-
TargetRubyVersion: 2.2
911

1012
Documentation:
1113
Enabled: false
12-
13-
Style/StringLiterals:
14-
EnforcedStyle: double_quotes
15-
Style/MethodDefParentheses:
16-
EnforcedStyle: require_no_parentheses

google-cloud-asset/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ end
5858

5959
## Supported Ruby Versions
6060

61-
This library is supported on Ruby 2.3+.
61+
This library is supported on Ruby 2.4+.
6262

6363
Google provides official support for Ruby versions that are actively supported
6464
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
65-
in security maintenance, and not end of life. Currently, this means Ruby 2.3
65+
in security maintenance, and not end of life. Currently, this means Ruby 2.4
6666
and later. Older versions of Ruby _may_ still work, but are unsupported and not
6767
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
6868
about the Ruby support schedule.

google-cloud-asset/google-cloud-asset.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ Gem::Specification.new do |gem|
1919
["README.md", "AUTHENTICATION.md", "LICENSE", ".yardopts"]
2020
gem.require_paths = ["lib"]
2121

22-
gem.required_ruby_version = ">= 2.0.0"
22+
gem.required_ruby_version = ">= 2.4"
2323

24-
gem.add_dependency "google-gax", "~> 1.7"
24+
gem.add_dependency "google-gax", "~> 1.8"
2525
gem.add_dependency "grpc-google-iam-v1", "~> 0.6.9"
2626

2727
gem.add_development_dependency "minitest", "~> 5.10"
2828
gem.add_development_dependency "redcarpet", "~> 3.0"
29-
gem.add_development_dependency "rubocop", "~> 0.64.0"
29+
gem.add_development_dependency "google-style", "~> 1.24.0"
3030
gem.add_development_dependency "simplecov", "~> 0.9"
3131
gem.add_development_dependency "yard", "~> 0.9"
3232
end

google-cloud-asset/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-10-12T10:40:43.989266Z",
2+
"updateTime": "2019-10-18T20:52:57.030484Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.39.0",
8-
"dockerImage": "googleapis/artman@sha256:72554d0b3bdc0b4ac7d6726a6a606c00c14b454339037ed86be94574fb05d9f3"
7+
"version": "0.40.0",
8+
"dockerImage": "googleapis/artman@sha256:fd2b49cce3d652929cc80157ec2d91bebe993f7cd4e89afaad80f9c785f8bf36"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "af8dd2c1750558b538eaa6bdaa3bc899079533ee",
16-
"internalRef": "274260771"
15+
"sha": "906335b5a958557e1070fc6f275171dc8a42b1ec",
16+
"internalRef": "275374583"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)