From 51f1dc14aac7af0787a6408315d6e1cbbbc60c3a Mon Sep 17 00:00:00 2001 From: ishakun Date: Mon, 24 Feb 2025 14:27:12 -0600 Subject: [PATCH 1/5] TECH-17407: add catalog-info.yaml --- catalog-info.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 catalog-info.yaml diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 0000000..2e36ba7 --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,33 @@ +# This file is partially auto-generated by the invoca-backstage-tools gem +# The following fields should not be edited manually as they are auto-generated +# based on the contents of the repo: +# - metadata.name +# - metadata.title +# - metadata.description +# - annotations.github.com/project-slug +# - invoca.com/version-repository-location +# - invoca.com/version-repository-name +# - spec.type +# - spec.owner +--- +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: rack-rewrite-gem + title: Rack::Rewrite + description: A rack middleware for enforcing rewrite rules. In many cases you can + get away with rack-rewrite instead of writing Apache mod_rewrite rules. + tags: + - ruby + - gem + - public + annotations: + buildkite.com/project-slug: invoca/rack-rewrite + github.com/project-slug: invoca/rack-rewrite + invoca.com/version-repository-location: gemfury + invoca.com/version-repository-name: rack-rewrite +spec: + type: library + lifecycle: production + owner: octothorpe + dependsOn: [] From 88dee50185bf8a64ed9d0898f5e6da3cc500bba8 Mon Sep 17 00:00:00 2001 From: ishakun Date: Mon, 24 Feb 2025 14:32:33 -0600 Subject: [PATCH 2/5] TECH-17407: add ci --- .github/workflows/pipeline.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..2389d7f --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,10 @@ +name: Pipeline +on: + push: + schedule: + - cron: '0 1 * * 1' # Every Monday at 1AM UTC +jobs: + tests: + uses: Invoca/ruby-test-matrix-workflow/.github/workflows/ruby-test-matrix.yml@main + with: + test-command: "bundle exec rake test" From 8ee939cbe8d1290aefbf16486ead36e136356c62 Mon Sep 17 00:00:00 2001 From: ishakun Date: Mon, 24 Feb 2025 14:38:31 -0600 Subject: [PATCH 3/5] TECH-17407: add Gemfile and Gemfile.lock; replace rake/rdoctask ith rdoc/task --- Gemfile | 11 +++++++++++ Gemfile.lock | 30 ++++++++++++++++++++++++++++++ Rakefile | 2 +- 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..df52b55 --- /dev/null +++ b/Gemfile @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gemspec + +gem 'mocha', '~> 0.9.7' +gem "rack" +gem 'rake' +gem 'shoulda', '~> 2.10.2' +gem "test-unit" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..94587e9 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,30 @@ +PATH + remote: . + specs: + rack-rewrite (1.0.2) + +GEM + remote: https://rubygems.org/ + specs: + mocha (0.9.12) + power_assert (1.2.0) + rack (2.2.8.1) + rake (13.2.1) + shoulda (2.10.3) + test-unit (3.3.6) + power_assert + +PLATFORMS + x86_64-darwin-22 + x86_64-darwin-23 + +DEPENDENCIES + mocha (~> 0.9.7) + rack + rack-rewrite! + rake + shoulda (~> 2.10.2) + test-unit + +BUNDLED WITH + 2.3.22 diff --git a/Rakefile b/Rakefile index 60a1a0b..80a852d 100644 --- a/Rakefile +++ b/Rakefile @@ -23,7 +23,7 @@ end task :default => :test -require 'rake/rdoctask' +require 'rdoc/task' Rake::RDocTask.new do |rdoc| if File.exist?('VERSION') version = File.read('VERSION') From fcc39451e2d88a3d3770fabe647a452272c9b114 Mon Sep 17 00:00:00 2001 From: ishakun Date: Mon, 24 Feb 2025 14:41:30 -0600 Subject: [PATCH 4/5] TECH-17407: update bundler --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 94587e9..d2842f9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -27,4 +27,4 @@ DEPENDENCIES test-unit BUNDLED WITH - 2.3.22 + 2.6.5 From f6799166f630235d6fbafcae685b9996840e6d65 Mon Sep 17 00:00:00 2001 From: ishakun Date: Mon, 24 Feb 2025 14:44:57 -0600 Subject: [PATCH 5/5] TECH-17407: add linux platform to Gemfile.lock --- Gemfile.lock | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile.lock b/Gemfile.lock index d2842f9..9a45ce7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -17,6 +17,7 @@ GEM PLATFORMS x86_64-darwin-22 x86_64-darwin-23 + x86_64-linux DEPENDENCIES mocha (~> 0.9.7)