Skip to content

Commit 8769e9f

Browse files
committed
Modernize gem.
1 parent 1536d9b commit 8769e9f

File tree

7 files changed

+50
-50
lines changed

7 files changed

+50
-50
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
indent_size = 2

.github/workflows/development.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
experimental: [false]
13-
1412
os:
1513
- ubuntu
1614
- macos
@@ -20,29 +18,27 @@ jobs:
2018
- 2.6
2119
- 2.7
2220

21+
experimental: [false]
22+
env: [""]
23+
2324
include:
24-
# - experimental: true
25-
# os: ubuntu
26-
# ruby: truffleruby
27-
# - experimental: true
28-
# os: ubuntu
29-
# ruby: jruby
30-
- experimental: true
31-
os: ubuntu
25+
- os: ubuntu
26+
ruby: truffleruby
27+
experimental: true
28+
- os: ubuntu
29+
ruby: jruby
30+
experimental: true
31+
- os: ubuntu
3232
ruby: head
33-
- experimental: true
34-
os: ubuntu
35-
ruby: 2.6
36-
env: COVERAGE=PartialSummary,Coveralls
33+
experimental: true
3734

3835
steps:
39-
- uses: actions/checkout@v1
40-
- uses: ruby/setup-ruby@v1
36+
- uses: actions/checkout@v2
37+
- uses: ioquatix/setup-ruby@master
4138
with:
4239
ruby-version: ${{matrix.ruby}}
43-
44-
- name: Install dependencies
45-
run: ${{matrix.env}} bundle install
40+
bundler-cache: true
4641

4742
- name: Run tests
43+
timeout-minutes: 5
4844
run: ${{matrix.env}} bundle exec rspec

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
/pkg/
77
/spec/reports/
88
/tmp/
9+
/fuzz/*/output/
910

1011
# rspec failure tracking
1112
.rspec_status
12-
Gemfile.lock
13+
/gems.locked
1314
.covered.db

Gemfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22

33
Provides a low-level implementation of the HTTP/2 protocol.
44

5-
[![Actions Status](https://github.com/socketry/protocol-http2/workflows/Development/badge.svg)](https://github.com/socketry/protocol-http2/actions?workflow=Development)
5+
[![Development Status](https://github.com/socketry/protocol-http2/workflows/Development/badge.svg)](https://github.com/socketry/protocol-http2/actions?workflow=Development)
66

77
## Installation
88

99
Add this line to your application's Gemfile:
1010

11-
```ruby
11+
``` ruby
1212
gem 'protocol-http2'
1313
```
1414

1515
And then execute:
1616

17-
$ bundle
17+
$ bundle
1818

1919
Or install it yourself as:
2020

21-
$ gem install protocol-http2
21+
$ gem install protocol-http2
2222

2323
## Usage
2424

2525
Here is a basic HTTP/2 client:
2626

27-
```ruby
27+
``` ruby
2828
require 'async'
2929
require 'async/io/stream'
3030
require 'async/http/endpoint'
@@ -89,17 +89,17 @@ end
8989

9090
## Contributing
9191

92-
1. Fork it
93-
2. Create your feature branch (`git checkout -b my-new-feature`)
94-
3. Commit your changes (`git commit -am 'Add some feature'`)
95-
4. Push to the branch (`git push origin my-new-feature`)
96-
5. Create new Pull Request
92+
1. Fork it
93+
2. Create your feature branch (`git checkout -b my-new-feature`)
94+
3. Commit your changes (`git commit -am 'Add some feature'`)
95+
4. Push to the branch (`git push origin my-new-feature`)
96+
5. Create new Pull Request
9797

9898
## License
9999

100100
Released under the MIT license.
101101

102-
Copyright, 2019, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
102+
Copyright, 2019, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
103103

104104
Permission is hereby granted, free of charge, to any person obtaining a copy
105105
of this software and associated documentation files (the "Software"), to deal

gems.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source "https://rubygems.org"
2+
3+
gemspec
4+
5+
group :maintenance, optional: true do
6+
gem "bake-modernize"
7+
gem "bake-bundler"
8+
end

protocol-http2.gemspec

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,23 @@
22
require_relative "lib/protocol/http2/version"
33

44
Gem::Specification.new do |spec|
5-
spec.name = "protocol-http2"
6-
spec.version = Protocol::HTTP2::VERSION
7-
spec.authors = ["Samuel Williams"]
8-
spec.email = ["[email protected]"]
5+
spec.name = "protocol-http2"
6+
spec.version = Protocol::HTTP2::VERSION
97

10-
spec.summary = "A low level implementation of the HTTP/2 protocol."
11-
spec.homepage = "https://github.com/socketry/protocol-http2"
12-
spec.license = "MIT"
8+
spec.summary = "A low level implementation of the HTTP/2 protocol."
9+
spec.authors = ["Samuel Williams"]
10+
spec.license = "MIT"
1311

14-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
15-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16-
end
12+
spec.homepage = "https://github.com/socketry/protocol-http2"
1713

18-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19-
spec.require_paths = ["lib"]
14+
spec.files = Dir.glob('{.github,examples,fuzz,lib}/**/*', File::FNM_DOTMATCH, base: __dir__)
2015

21-
spec.required_ruby_version = '~> 2.5'
16+
spec.required_ruby_version = ">= 2.5"
2217

2318
spec.add_dependency "protocol-hpack", "~> 1.4"
2419
spec.add_dependency "protocol-http", "~> 0.18"
2520

26-
spec.add_development_dependency "covered"
27-
spec.add_development_dependency "bake-bundler"
2821
spec.add_development_dependency "bundler"
22+
spec.add_development_dependency "covered"
2923
spec.add_development_dependency "rspec", "~> 3.0"
3024
end

0 commit comments

Comments
 (0)