Skip to content

Commit d384583

Browse files
committed
Modernize gem.
1 parent 5f9c3d4 commit d384583

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+214
-1214
lines changed

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Run tests
3434
timeout-minutes: 5
35-
run: bundle exec rspec
35+
run: bundle exec bake test
3636

3737
- uses: actions/upload-artifact@v2
3838
with:
Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
name: Documentation
22

3-
permissions:
4-
contents: write
5-
63
on:
74
push:
85
branches:
96
- main
107

8+
# Allows you to run this workflow manually from the Actions tab:
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages:
1112
permissions:
12-
contents: write
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment:
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
1321

1422
env:
1523
CONSOLE_OUTPUT: XTerm
1624
BUNDLE_WITH: maintenance
1725

1826
jobs:
19-
deploy:
27+
generate:
2028
runs-on: ubuntu-latest
2129

2230
steps:
@@ -30,12 +38,24 @@ jobs:
3038
- name: Installing packages
3139
run: sudo apt-get install wget
3240

33-
- name: Prepare GitHub Pages
34-
run: bundle exec bake github:pages:prepare --directory docs
35-
3641
- name: Generate documentation
3742
timeout-minutes: 5
3843
run: bundle exec bake utopia:project:static --force no
3944

40-
- name: Deploy GitHub Pages
41-
run: bundle exec bake github:pages:commit --directory docs
45+
- name: Upload documentation artifact
46+
uses: actions/upload-pages-artifact@v1
47+
with:
48+
path: docs
49+
50+
deploy:
51+
runs-on: ubuntu-latest
52+
53+
environment:
54+
name: github-pages
55+
url: ${{steps.deployment.outputs.page_url}}
56+
57+
needs: generate
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v1

.github/workflows/test-external.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- macos
2121

2222
ruby:
23+
- "2.7"
2324
- "3.0"
2425
- "3.1"
2526

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
/.bundle/
2-
/.yardoc
3-
/_yardoc/
4-
/coverage/
5-
/doc/
62
/pkg/
7-
/spec/reports/
8-
/spec/protocol/http/body/reader_spec.txt
9-
/tmp/
10-
/external/
11-
12-
# rspec failure tracking
13-
.rspec_status
143
/gems.locked
15-
.covered.db
4+
/.covered.db
5+
/external

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dan Olson <[email protected]>

bake.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# frozen_string_literal: true
22

3+
# Released under the MIT License.
4+
# Copyright, 2020-2022, by Samuel Williams.
5+
36
def external
47
require 'bundler'
58

benchmark/string.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
# Released under the MIT License.
4+
# Copyright, 2022, by Samuel Williams.
15

26
def generator
37
100000.times do |i|

gems.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# frozen_string_literal: true
22

3+
# Released under the MIT License.
4+
# Copyright, 2018-2022, by Samuel Williams.
5+
36
source "https://rubygems.org"
47

58
# Specify your gem's dependencies in protocol-http.gemspec

lib/protocol/http.rb

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright, 2018, by Samuel G. D. Williams. <http://www.codeotaku.com>
4-
#
5-
# Permission is hereby granted, free of charge, to any person obtaining a copy
6-
# of this software and associated documentation files (the "Software"), to deal
7-
# in the Software without restriction, including without limitation the rights
8-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
# copies of the Software, and to permit persons to whom the Software is
10-
# furnished to do so, subject to the following conditions:
11-
#
12-
# The above copyright notice and this permission notice shall be included in
13-
# all copies or substantial portions of the Software.
14-
#
15-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
# THE SOFTWARE.
3+
# Released under the MIT License.
4+
# Copyright, 2018-2022, by Samuel Williams.
225

236
require_relative "http/version"

lib/protocol/http/accept_encoding.rb

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
# frozen_string_literal: true
22

3-
# Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com>
4-
#
5-
# Permission is hereby granted, free of charge, to any person obtaining a copy
6-
# of this software and associated documentation files (the "Software"), to deal
7-
# in the Software without restriction, including without limitation the rights
8-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
# copies of the Software, and to permit persons to whom the Software is
10-
# furnished to do so, subject to the following conditions:
11-
#
12-
# The above copyright notice and this permission notice shall be included in
13-
# all copies or substantial portions of the Software.
14-
#
15-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
# THE SOFTWARE.
3+
# Released under the MIT License.
4+
# Copyright, 2019-2022, by Samuel Williams.
225

236
require_relative 'middleware'
247

0 commit comments

Comments
 (0)