Skip to content

Commit d18c709

Browse files
committed
Modernize gem.
1 parent b4bee6b commit d18c709

Some content is hidden

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

92 files changed

+409
-1282
lines changed
Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,61 @@
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:
2331
- uses: actions/checkout@v3
2432

2533
- uses: ruby/setup-ruby@v1
2634
with:
27-
ruby-version: "3.1"
35+
ruby-version: "3.2"
2836
bundler-cache: true
2937

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
@@ -23,6 +23,7 @@ jobs:
2323
- "2.7"
2424
- "3.0"
2525
- "3.1"
26+
- "3.2"
2627

2728
steps:
2829
- uses: actions/checkout@v3

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- "2.7"
2525
- "3.0"
2626
- "3.1"
27+
- "3.2"
2728

2829
experimental: [false]
2930

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Viacheslav Koval <theathlet@yandex.ru>
2+
Sam Shadwell <git@samshadwell.com>

async-http.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Gem::Specification.new do |spec|
77
spec.version = Async::HTTP::VERSION
88

99
spec.summary = "A HTTP client and server library."
10-
spec.authors = ["Samuel Williams", "Brian Morearty", "Bruno Sutic", "Janko Marohnić", "Adam Daniels", "Cyril Roelandt", "Denis Talakevich", "Ian Ker-Seymer", "Igor Sidorov", "Marco Concetto Rudilosso", "Olle Jonsson", "Orgad Shaneh", "Stefan Wrobel", "TheAthlete", "Trevor Turk", "samshadwell"]
10+
spec.authors = ["Samuel Williams", "Brian Morearty", "Bruno Sutic", "Janko Marohnić", "Adam Daniels", "Cyril Roelandt", "Denis Talakevich", "Ian Ker-Seymer", "Igor Sidorov", "Marco Concetto Rudilosso", "Olle Jonsson", "Orgad Shaneh", "Sam Shadwell", "Stefan Wrobel", "Tim Meusel", "Trevor Turk", "Viacheslav Koval"]
1111
spec.license = "MIT"
1212

1313
spec.cert_chain = ['release.cert']
1414
spec.signing_key = File.expand_path('~/.gem/release.pem')
1515

1616
spec.homepage = "https://github.com/socketry/async-http"
1717

18-
spec.files = Dir.glob('{bake,lib}/**/*', File::FNM_DOTMATCH, base: __dir__)
18+
spec.files = Dir.glob(['{bake,lib}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__)
1919

2020
spec.add_dependency "async", ">= 1.25"
2121
spec.add_dependency "async-io", ">= 1.28"

bake/async/http.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, 2020-2023, by Samuel Williams.
15

26
# Fetch the specified URL and print the response.
37
# @param url [String] the URL to parse and fetch.

bake/async/http/h2spec.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, 2019-2023, by Samuel Williams.
15

26
def build
37
# Fetch the code:

examples/compare/benchmark.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Released under the MIT License.
5+
# Copyright, 2020-2023, by Samuel Williams.
26

37
require 'benchmark'
48

examples/compare/gems.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, 2020-2023, by Samuel Williams.
15

26
source "https://rubygems.org"
37

examples/download/chunked.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Released under the MIT License.
5+
# Copyright, 2020-2023, by Samuel Williams.
26

37
require 'async'
48
require 'async/clock'

0 commit comments

Comments
 (0)