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" 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..9a45ce7 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,31 @@ +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 + x86_64-linux + +DEPENDENCIES + mocha (~> 0.9.7) + rack + rack-rewrite! + rake + shoulda (~> 2.10.2) + test-unit + +BUNDLED WITH + 2.6.5 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') 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: []