8000 Modernize gem. · socketry/async-rspec@2631ff5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2631ff5

Browse files
committed
Modernize gem.
1 parent 66f0ac8 commit 2631ff5

File tree

6 files changed

+37
-19
lines changed

6 files changed

+37
-19
lines changed
File renamed without changes.

.github/workflows/development.yml

Lines changed: 11 additions & 5 deletions
8000
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ name: Development
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
8+
env:
9+
CONSOLE_OUTPUT: Text
10+
511
jobs:
612
test:
13+
name: ${{matrix.ruby}} on ${{matrix.os}}
714
runs-on: ${{matrix.os}}-latest
815
continue-on-error: ${{matrix.experimental}}
916

@@ -14,12 +21,11 @@ jobs:
1421
- macos
1522

1623
ruby:
17-
- 2.6
18-
- 2.7
24+
- "2.7"
1925
- "3.0"
26+
- "3.1"
2027

2128
experimental: [false]
22-
env: [""]
2329

2430
include:
2531
- os: ubuntu
@@ -33,12 +39,12 @@ jobs:
3339
experimental: true
3440

3541
steps:
36-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v3
3743
- uses: ruby/setup-ruby@v1
3844
with:
3945
ruby-version: ${{matrix.ruby}}
4046
bundler-cache: true
4147

4248
- name: Run tests
4349
timeout-minutes: 5
44-
run: ${{matrix.env}} bundle exec rspec
50+
run: bundle exec rspec

.github/workflows/documentation.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,41 @@
11
name: Documentation
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
branches:
6-
- master
9+
- main
10+
11+
permissions:
12+
contents: write
13+
14+
env:
15+
CONSOLE_OUTPUT: Text
16+
BUNDLE_WITH: maintenance
717

818
jobs:
919
deploy:
1020
runs-on: ubuntu-latest
1121

1222
steps:
13-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
24+
1425
- uses: ruby/setup-ruby@v1
15-
env:
16-
BUNDLE_WITH: maintenance
1726
with:
18-
ruby-version: 2.7
27+
ruby-version: "3.1"
1928
bundler-cache: true
2029

2130
- name: Installing packages
2231
run: sudo apt-get install wget
2332

33+
- name: Prepare GitHub Pages
34+
run: bundle exec bake github:pages:prepare --directory docs
35+
2436
- name: Generate documentation
2537
timeout-minutes: 5
26-
run: bundle exec bake utopia:project:static
38+
run: bundle exec bake utopia:project:static --force no
2739

28-
- name: Deploy documentation
29-
uses: JamesIves/github-pages-deploy-action@4.0.0
30-
with:
31-
branch: docs
32-
folder: docs
40+
- name: Deploy GitHub Pages
41+
run: bundle exec bake github:pages:commit --directory docs

async-rspec.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12

23
require_relative "lib/async/rspec/version"
34

@@ -6,7 +7,7 @@ Gem::Specification.new do |spec|
67
spec.version = Async::RSpec::VERSION
78

89
spec.summary = "Helpers for writing specs against the async gem."
9-
spec.authors = ["Samuel Williams"]
10+
spec.authors = ["Samuel Williams", "Janko Marohnić", "Olle Jonsson", "Cyril Roelandt", "Jeremy Jung"]
1011
spec.license = "MIT"
1112

1213
spec.homepage = "https://github.com/socketry/async-rspec"

gems.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55

66
# gem "async", path: "../async"
77

8+
gem "rugged", "= 1.4.4"
9+
810
group :maintenance, optional: true do
911
gem "bake-modernize"
10-
gem "bake-bundler"
12+
gem "bake-gem"
1113
end
1214

1315
group :test do

gems/async-head.rb renamed to gems/async-v2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
gemspec path: "../"
66

7-
gem 'async', git: "https://github.com/socketry/async"
7+
gem 'async', '~> 2.0'

0 commit comments

Comments
 (0)
0