Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updated minimum Ruby version to 2.7 #24879

Merged
merged 2 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions google-cloud-translate-v3/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
source "https://rubygems.org"

gemspec

gem "google-style", "~> 1.27.1"
gem "minitest", "~> 5.22"
gem "minitest-focus", "~> 1.4"
gem "minitest-rg", "~> 5.3"
gem "rake", ">= 13.0"
gem "redcarpet", "~> 3.6"
gem "yard", "~> 0.9"
2 changes: 1 addition & 1 deletion google-cloud-translate-v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g

## Supported Ruby Versions

This library is supported on Ruby 2.6+.
This library is supported on Ruby 2.7+.

Google provides official support for Ruby versions that are actively supported
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
Expand Down
32 changes: 0 additions & 32 deletions google-cloud-translate-v3/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,12 @@ Rake::TestTask.new do |t|
t.warning = false
end

namespace :test do
desc "Runs tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-translate-v3"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:test].invoke
end
end

desc "Runs the smoke tests."
Rake::TestTask.new :smoke_test do |t|
t.test_files = FileList["acceptance/**/*smoke_test.rb"]
t.warning = false
end

namespace :smoke_test do
desc "Runs smoke tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-translate-v3"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:smoke_test].invoke
end
end

# Acceptance tests
desc "Run the google-cloud-translate-v3 acceptance tests."
task :acceptance, :project, :keyfile do |t, args|
Expand Down Expand Up @@ -105,10 +77,6 @@ namespace :acceptance do
end
end

desc "Run acceptance tests with coverage."
task :coverage do
end

desc "Run acceptance cleanup."
task :cleanup do
end
Expand Down
11 changes: 1 addition & 10 deletions google-cloud-translate-v3/google-cloud-translate-v3.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,8 @@ Gem::Specification.new do |gem|
["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"]
gem.require_paths = ["lib"]

gem.required_ruby_version = ">= 2.6"
gem.required_ruby_version = ">= 2.7"

gem.add_dependency "gapic-common", ">= 0.21.1", "< 2.a"
gem.add_dependency "google-cloud-errors", "~> 1.0"

gem.add_development_dependency "google-style", "~> 1.26.3"
gem.add_development_dependency "minitest", "~> 5.16"
gem.add_development_dependency "minitest-focus", "~> 1.1"
gem.add_development_dependency "minitest-rg", "~> 5.2"
gem.add_development_dependency "rake", ">= 13.0"
gem.add_development_dependency "redcarpet", "~> 3.0"
gem.add_development_dependency "simplecov", "~> 0.18"
gem.add_development_dependency "yard", "~> 0.9"
end
2 changes: 0 additions & 2 deletions google-cloud-translate-v3/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

require "simplecov"

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
8 changes: 8 additions & 0 deletions google-cloud-translate/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ gemspec

gem "google-cloud-translate-v2", path: "../google-cloud-translate-v2"
gem "google-cloud-translate-v3", path: "../google-cloud-translate-v3"

gem "google-style", "~> 1.27.1"
gem "minitest", "~> 5.22"
gem "minitest-focus", "~> 1.4"
gem "minitest-rg", "~> 5.3"
gem "rake", ">= 13.0"
gem "redcarpet", "~> 3.6"
gem "yard", "~> 0.9"
2 changes: 1 addition & 1 deletion google-cloud-translate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ See the {file:MIGRATING.md MIGRATING.md} document for more information.

## Supported Ruby Versions

This library is supported on Ruby 2.6+.
This library is supported on Ruby 2.7+.

Google provides official support for Ruby versions that are actively supported
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
Expand Down
32 changes: 0 additions & 32 deletions google-cloud-translate/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,12 @@ Rake::TestTask.new do |t|
t.warning = true
end

namespace :test do
desc "Runs tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-translate"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:test].invoke
end
end

desc "Runs the smoke tests."
Rake::TestTask.new :smoke_test do |t|
t.test_files = FileList["acceptance/**/*smoke_test.rb"]
t.warning = false
end

namespace :smoke_test do
desc "Runs smoke tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-translate"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:smoke_test].invoke
end
end

# Acceptance tests
desc "Run the google-cloud-translate acceptance tests."
task :acceptance, :project, :keyfile do |t, args|
Expand Down Expand Up @@ -105,10 +77,6 @@ namespace :acceptance do
end
end

desc "Run acceptance tests with coverage."
task :coverage do
end

desc "Run acceptance cleanup."
task :cleanup do
end
Expand Down
11 changes: 1 addition & 10 deletions google-cloud-translate/google-cloud-translate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,9 @@ Gem::Specification.new do |gem|
["README.md", "AUTHENTICATION.md", "LICENSE.md", ".yardopts", "MIGRATING.md"]
gem.require_paths = ["lib"]

gem.required_ruby_version = ">= 2.6"
gem.required_ruby_version = ">= 2.7"

gem.add_dependency "google-cloud-core", "~> 1.6"
gem.add_dependency "google-cloud-translate-v2", ">= 0.0", "< 2.a"
gem.add_dependency "google-cloud-translate-v3", ">= 0.11", "< 2.a"

gem.add_development_dependency "google-style", "~> 1.26.1"
gem.add_development_dependency "minitest", "~> 5.16"
gem.add_development_dependency "minitest-focus", "~> 1.1"
gem.add_development_dependency "minitest-rg", "~> 5.2"
gem.add_development_dependency "rake", ">= 13.0"
gem.add_development_dependency "redcarpet", "~> 3.0"
gem.add_development_dependency "simplecov", "~> 0.9"
gem.add_development_dependency "yard", "~> 0.9"
end
2 changes: 0 additions & 2 deletions google-cloud-translate/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

require "simplecov"

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
8 changes: 8 additions & 0 deletions google-cloud-video-live_stream-v1/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
source "https://rubygems.org"

gemspec

gem "google-style", "~> 1.27.1"
gem "minitest", "~> 5.22"
gem "minitest-focus", "~> 1.4"
gem "minitest-rg", "~> 5.3"
gem "rake", ">= 13.0"
gem "redcarpet", "~> 3.6"
gem "yard", "~> 0.9"
2 changes: 1 addition & 1 deletion google-cloud-video-live_stream-v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g

## Supported Ruby Versions

This library is supported on Ruby 2.6+.
This library is supported on Ruby 2.7+.

Google provides official support for Ruby versions that are actively supported
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
Expand Down
32 changes: 0 additions & 32 deletions google-cloud-video-live_stream-v1/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,12 @@ Rake::TestTask.new do |t|
t.warning = false
end

namespace :test do
desc "Runs tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-video-live_stream-v1"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:test].invoke
end
end

desc "Runs the smoke tests."
Rake::TestTask.new :smoke_test do |t|
t.test_files = FileList["acceptance/**/*smoke_test.rb"]
t.warning = false
end

namespace :smoke_test do
desc "Runs smoke tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-video-live_stream-v1"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:smoke_test].invoke
end
end

# Acceptance tests
desc "Run the google-cloud-video-live_stream-v1 acceptance tests."
task :acceptance, :project, :keyfile do |t, args|
Expand Down Expand Up @@ -105,10 +77,6 @@ namespace :acceptance do
end
end

desc "Run acceptance tests with coverage."
task :coverage do
end

desc "Run acceptance cleanup."
task :cleanup do
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,9 @@ Gem::Specification.new do |gem|
["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"]
gem.require_paths = ["lib"]

gem.required_ruby_version = ">= 2.6"
gem.required_ruby_version = ">= 2.7"

gem.add_dependency "gapic-common", ">= 0.21.1", "< 2.a"
gem.add_dependency "google-cloud-errors", "~> 1.0"
gem.add_dependency "google-cloud-location", ">= 0.7", "< 2.a"

gem.add_development_dependency "google-style", "~> 1.26.3"
gem.add_development_dependency "minitest", "~> 5.16"
gem.add_development_dependency "minitest-focus", "~> 1.1"
gem.add_development_dependency "minitest-rg", "~> 5.2"
gem.add_development_dependency "rake", ">= 13.0"
gem.add_development_dependency "redcarpet", "~> 3.0"
gem.add_development_dependency "simplecov", "~> 0.18"
gem.add_development_dependency "yard", "~> 0.9"
end
2 changes: 0 additions & 2 deletions google-cloud-video-live_stream-v1/test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

require "simplecov"

require "minitest/autorun"
require "minitest/focus"
require "minitest/rg"
Expand Down
8 changes: 8 additions & 0 deletions google-cloud-video-live_stream/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ source "https://rubygems.org"
gemspec

gem "google-cloud-video-live_stream-v1", path: "../google-cloud-video-live_stream-v1"

gem "google-style", "~> 1.27.1"
gem "minitest", "~> 5.22"
gem "minitest-focus", "~> 1.4"
gem "minitest-rg", "~> 5.3"
gem "rake", ">= 13.0"
gem "redcarpet", "~> 3.6"
gem "yard", "~> 0.9"
2 changes: 1 addition & 1 deletion google-cloud-video-live_stream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In order to use this library, you first need to go through the following steps:

## Supported Ruby Versions

This library is supported on Ruby 2.6+.
This library is supported on Ruby 2.7+.

Google provides official support for Ruby versions that are actively supported
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
Expand Down
32 changes: 0 additions & 32 deletions google-cloud-video-live_stream/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,12 @@ Rake::TestTask.new do |t|
t.warning = true
end

namespace :test do
desc "Runs tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-video-live_stream"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:test].invoke
end
end

desc "Runs the smoke tests."
Rake::TestTask.new :smoke_test do |t|
t.test_files = FileList["acceptance/**/*smoke_test.rb"]
t.warning = false
end

namespace :smoke_test do
desc "Runs smoke tests with coverage."
task :coverage do
require "simplecov"
SimpleCov.start do
command_name "google-cloud-video-live_stream"
track_files "lib/**/*.rb"
add_filter "test/"
end

Rake::Task[:smoke_test].invoke
end
end

# Acceptance tests
desc "Run the google-cloud-video-live_stream acceptance tests."
task :acceptance, :project, :keyfile do |t, args|
Expand Down Expand Up @@ -105,10 +77,6 @@ namespace :acceptance do
end
end

desc "Run acceptance tests with coverage."
task :coverage do
end

desc "Run acceptance cleanup."
task :cleanup do
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,8 @@ Gem::Specification.new do |gem|
["README.md", "AUTHENTICATION.md", "LICENSE.md", ".yardopts"]
gem.require_paths = ["lib"]

gem.required_ruby_version = ">= 2.6"
gem.required_ruby_version = ">= 2.7"

gem.add_dependency "google-cloud-core", "~> 1.6"
gem.add_dependency "google-cloud-video-live_stream-v1", ">= 0.8", "< 2.a"

gem.add_development_dependency "google-style", "~> 1.26.1"
gem.add_development_dependency "minitest", "~> 5.16"
gem.add_development_dependency "minitest-focus", "~> 1.1"
gem.add_development_dependency "minitest-rg", "~> 5.2"
gem.add_development_dependency "rake", ">= 13.0"
gem.add_development_dependency "redcarpet", "~> 3.0"
gem.add_development_dependency "simplecov", "~> 0.9"
gem.add_development_dependency "yard", "~> 0.9"
end
Loading