From 1eb0fc84767dacbb805640c564bb6b61de7cf4fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Jul 2023 02:28:18 +0000 Subject: [PATCH 1/2] Bump rubocop from 1.54.2 to 1.55.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.54.2 to 1.55.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.54.2...v1.55.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 44f30d5..d203721 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -110,7 +110,7 @@ GEM rspec-support (3.12.0) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.54.2) + rubocop (1.55.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -118,7 +118,7 @@ GEM rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.29.0) From 9296e3e42cbbcd65ed32a56f7978742be90db36e Mon Sep 17 00:00:00 2001 From: Shouichi Kamiya Date: Thu, 27 Jul 2023 12:56:50 +0900 Subject: [PATCH 2/2] auto fix --- lib/sparrow/cloud_build/build.rb | 4 ++-- lib/sparrow/pub_sub_gateway.rb | 2 +- spec/spec_helper.rb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sparrow/cloud_build/build.rb b/lib/sparrow/cloud_build/build.rb index da08d1e..c4ddcd2 100644 --- a/lib/sparrow/cloud_build/build.rb +++ b/lib/sparrow/cloud_build/build.rb @@ -49,8 +49,8 @@ def repo_source? !source["repoSource"].nil? || !repo_name.nil? end - def to_json(*args) - data.to_json(*args) + def to_json(*) + data.to_json(*) end private diff --git a/lib/sparrow/pub_sub_gateway.rb b/lib/sparrow/pub_sub_gateway.rb index ad19138..a3ac278 100644 --- a/lib/sparrow/pub_sub_gateway.rb +++ b/lib/sparrow/pub_sub_gateway.rb @@ -83,7 +83,7 @@ def pubsub end def emulator? - ENV.fetch("PUBSUB_EMULATOR_HOST", nil) + ENV.fetch("PUBSUB_EMULATOR_HOST", false) end def create_topic(name) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index efc1902..9357961 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -40,6 +40,6 @@ end end -def fixture(*name) - File.read(File.join("spec", "fixtures", File.join(*name))) +def fixture(*) + File.read(File.join("spec", "fixtures", File.join(*))) end