From 619c4a7f793b4724e1f92c6eeb1bf7aff798c026 Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Wed, 29 May 2024 21:49:18 -0400 Subject: [PATCH] examples: remove Ruby That fixes the Dependabot advisory. --- .github/dependabot.yml | 5 --- .github/workflows/main.yml | 3 -- ci/run-ruby-example.sh | 9 ----- examples/ruby/Gemfile | 5 --- examples/ruby/Gemfile.lock | 81 -------------------------------------- examples/ruby/main.rb | 16 -------- 6 files changed, 119 deletions(-) delete mode 100644 ci/run-ruby-example.sh delete mode 100644 examples/ruby/Gemfile delete mode 100644 examples/ruby/Gemfile.lock delete mode 100644 examples/ruby/main.rb diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5e70f0eb95..966d3dccc9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -31,11 +31,6 @@ updates: schedule: interval: daily open-pull-requests-limit: 99 - - package-ecosystem: bundler - directory: "/examples/ruby" - schedule: - interval: daily - open-pull-requests-limit: 99 - package-ecosystem: docker directory: "/" schedule: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 49d4a48b9c..0c687de941 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -134,9 +134,6 @@ jobs: - lang: dotnet docker-image: mcr.microsoft.com/dotnet/sdk:5.0-alpine entrypoint: /bin/sh - - lang: ruby - docker-image: ruby:3.2-alpine - entrypoint: /bin/sh - lang: scala docker-image: mozilla/sbt:8u292_1.5.7 entrypoint: /bin/sh diff --git a/ci/run-ruby-example.sh b/ci/run-ruby-example.sh deleted file mode 100644 index 7c69eb7208..0000000000 --- a/ci/run-ruby-example.sh +++ /dev/null @@ -1,9 +0,0 @@ -set -e - -./fake-gcs-server -backend memory -scheme http -port 8080 -external-url "http://localhost:8080" & - -( - cd examples/ruby - bundle - bundle exec ruby main.rb -) diff --git a/examples/ruby/Gemfile b/examples/ruby/Gemfile deleted file mode 100644 index 018e8cf139..0000000000 --- a/examples/ruby/Gemfile +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -source 'https://rubygems.org' - -gem 'google-cloud-storage' diff --git a/examples/ruby/Gemfile.lock b/examples/ruby/Gemfile.lock deleted file mode 100644 index 6200a6bd63..0000000000 --- a/examples/ruby/Gemfile.lock +++ /dev/null @@ -1,81 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - addressable (2.8.6) - public_suffix (>= 2.0.2, < 6.0) - base64 (0.2.0) - declarative (0.0.20) - digest-crc (0.6.5) - rake (>= 12.0.0, < 14.0.0) - faraday (2.9.0) - faraday-net_http (>= 2.0, < 3.2) - faraday-net_http (3.1.0) - net-http - google-apis-core (0.14.1) - addressable (~> 2.5, >= 2.5.1) - googleauth (~> 1.9) - httpclient (>= 2.8.1, < 3.a) - mini_mime (~> 1.0) - representable (~> 3.0) - retriable (>= 2.0, < 4.a) - rexml - google-apis-iamcredentials_v1 (0.20.0) - google-apis-core (>= 0.14.0, < 2.a) - google-apis-storage_v1 (0.37.0) - google-apis-core (>= 0.14.0, < 2.a) - google-cloud-core (1.7.0) - google-cloud-env (>= 1.0, < 3.a) - google-cloud-errors (~> 1.0) - google-cloud-env (2.1.1) - faraday (>= 1.0, < 3.a) - google-cloud-errors (1.4.0) - google-cloud-storage (1.51.0) - addressable (~> 2.8) - digest-crc (~> 0.4) - google-apis-core (~> 0.13) - google-apis-iamcredentials_v1 (~> 0.18) - google-apis-storage_v1 (~> 0.37) - google-cloud-core (~> 1.6) - googleauth (~> 1.9) - mini_mime (~> 1.0) - googleauth (1.11.0) - faraday (>= 1.0, < 3.a) - google-cloud-env (~> 2.1) - jwt (>= 1.4, < 3.0) - multi_json (~> 1.11) - os (>= 0.9, < 2.0) - signet (>= 0.16, < 2.a) - httpclient (2.8.3) - jwt (2.8.1) - base64 - mini_mime (1.1.5) - multi_json (1.15.0) - net-http (0.4.1) - uri - os (1.1.4) - public_suffix (5.0.5) - rake (13.2.1) - representable (3.2.0) - declarative (< 0.1.0) - trailblazer-option (>= 0.1.1, < 0.2.0) - uber (< 0.2.0) - retriable (3.1.2) - rexml (3.2.6) - signet (0.19.0) - addressable (~> 2.8) - faraday (>= 0.17.5, < 3.a) - jwt (>= 1.5, < 3.0) - multi_json (~> 1.10) - trailblazer-option (0.1.2) - uber (0.1.0) - uri (0.13.0) - -PLATFORMS - arm64-darwin-22 - x86_64-linux - -DEPENDENCIES - google-cloud-storage - -BUNDLED WITH - 2.4.1 diff --git a/examples/ruby/main.rb b/examples/ruby/main.rb deleted file mode 100644 index 9bd52ac88e..0000000000 --- a/examples/ruby/main.rb +++ /dev/null @@ -1,16 +0,0 @@ -# How to run this example -# 1 - Build the docker image by running the command "docker build -t fsouza/fake-gcs-server ." -# 2 - Start the docker container: "docker run -d --name fake-gcs-server -p 8080:4443 -v ${PWD}/examples/data:/data fsouza/fake-gcs-server -scheme http" -# 3 - Check if it's working by running: "curl http://0.0.0.0:8080/storage/v1/b" -# 4 - Install requirements: "bundle install" -# 5 - Run this script: "bundle exec ruby main.rb" - -require 'google/cloud/storage' - -client = Google::Cloud::Storage.anonymous(endpoint: 'http://localhost:8080/') -client.buckets.each do |bucket| - puts "Bucket: #{bucket.name}" - bucket.files.each do |file| - puts "File: #{file.name}" - end -end