Skip to content

Commit

Permalink
Modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
dentarg committed Jan 16, 2024
1 parent 8f5f4dc commit ea3ecf1
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 13 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
workflow_dispatch:

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- run: bundle exec rake

install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- run: ruby -v
- run: gem build *.gemspec
- run: gem install *.gem
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

8 changes: 6 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
source 'https://rubygems.org'
source "https://rubygems.org"

# Specify your gem's dependencies in rack-headers_filter.gemspec
gemspec

gem "rack"
gem "rack-test"
gem "rake"
gem "rspec"
18 changes: 11 additions & 7 deletions rack-headers_filter.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
Gem::Specification.new do |spec|
spec.name = "rack-headers_filter"
spec.version = '0.0.1'
spec.version = "0.0.1"
spec.authors = ["zimbatm"]
spec.email = ["[email protected]"]

Expand All @@ -10,14 +10,18 @@ Gem::Specification.new do |spec|
The goal of this gem is to avoid depending on potentially forgeable
headers down the line by configuring the deploy target properly.
}
spec.homepage = "https://github.com/pusher/rack-headers_filter"
spec.homepage = "https://github.com/spinels/rack-headers_filter"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.files = Dir["lib/**/*.rb", "script/*", "spec/**/*.rb"] + [
".rspec",
"Gemfile",
"LICENSE.txt",
"Rakefile",
"README.md",
"README.md",
]
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.11"
spec.add_development_dependency "rack", "~> 1.6"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.required_ruby_version = ">= 2.7.8"
end

0 comments on commit ea3ecf1

Please sign in to comment.