Skip to content

Commit 3f75746

Browse files
committed
feat(TestTube): remove code isolation option
1 parent cfd0d89 commit 3f75746

19 files changed

+159
-370
lines changed

.github/workflows/ci.yml

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

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Ruby
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: Ruby ${{ matrix.ruby }}
9+
strategy:
10+
matrix:
11+
ruby:
12+
- 3.2
13+
- 3.3
14+
- head
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby }}
22+
bundler-cache: true
23+
24+
- name: Run the test task
25+
run: bundle exec rake test

.github/workflows/rubocop.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- name: RuboCop Linter Action
11-
uses: andrewmcodes/rubocop-linter-action@v3.3.0
9+
- uses: actions/checkout@v4
10+
- name: Set up Ruby
11+
uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: 3.2
14+
bundler-cache: true
1215

13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
- name: Run the RuboCop task
17+
run: bundle exec rake rubocop

.rubocop.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
inherit_mode:
2+
merge:
3+
- Exclude
4+
15
AllCops:
26
NewCops: enable
3-
TargetRubyVersion: 2.7
7+
TargetRubyVersion: 3.2
48

59
Exclude:
610
- test/**/*.rb

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.3
1+
3.2.3

CODE_OF_CONDUCT.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ We as members, contributors, and leaders pledge to make participation in our
66
community a harassment-free experience for everyone, regardless of age, body
77
size, visible or invisible disability, ethnicity, sex characteristics, gender
88
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, caste, color, religion, or sexual identity
10-
and orientation.
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
1111

1212
We pledge to act and interact in ways that contribute to an open, welcoming,
1313
diverse, inclusive, and healthy community.
@@ -22,17 +22,17 @@ community include:
2222
* Giving and gracefully accepting constructive feedback
2323
* Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
26-
overall community
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
3232
* Trolling, insulting or derogatory comments, and personal or political attacks
3333
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
3636
* Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

@@ -52,7 +52,7 @@ decisions when appropriate.
5252

5353
This Code of Conduct applies within all community spaces, and also applies when
5454
an individual is officially representing the community in public spaces.
55-
Examples of representing our community include using an official e-mail address,
55+
Examples of representing our community include using an official email address,
5656
posting via an official social media account, or acting as an appointed
5757
representative at an online or offline event.
5858

@@ -82,15 +82,15 @@ behavior was inappropriate. A public apology may be requested.
8282

8383
### 2. Warning
8484

85-
**Community Impact**: A violation through a single incident or series
86-
of actions.
85+
**Community Impact**: A violation through a single incident or series of
86+
actions.
8787

8888
**Consequence**: A warning with consequences for continued behavior. No
8989
interaction with the people involved, including unsolicited interaction with
9090
those enforcing the Code of Conduct, for a specified period of time. This
9191
includes avoiding interactions in community spaces as well as external channels
92-
like social media. Violating these terms may lead to a temporary or
93-
permanent ban.
92+
like social media. Violating these terms may lead to a temporary or permanent
93+
ban.
9494

9595
### 3. Temporary Ban
9696

@@ -106,27 +106,27 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112-
**Consequence**: A permanent ban from any sort of public interaction within
113-
the community.
112+
**Consequence**: A permanent ban from any sort of public interaction within the
113+
community.
114114

115115
## Attribution
116116

117117
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118-
version 2.0, available at
119-
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
118+
version 2.1, available at
119+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120120

121121
Community Impact Guidelines were inspired by
122122
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123123

124124
For answers to common questions about this code of conduct, see the FAQ at
125-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126-
at [https://www.contributor-covenant.org/translations][translations].
125+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126+
[https://www.contributor-covenant.org/translations][translations].
127127

128128
[homepage]: https://www.contributor-covenant.org
129-
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
129+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130130
[Mozilla CoC]: https://github.com/mozilla/diversity
131131
[FAQ]: https://www.contributor-covenant.org/faq
132132
[translations]: https://www.contributor-covenant.org/translations

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,14 @@
33
source "https://rubygems.org"
44

55
gemspec
6+
7+
gem "brutal"
8+
gem "bundler"
9+
gem "matchi"
10+
gem "rake"
11+
gem "rubocop-md"
12+
gem "rubocop-performance"
13+
gem "rubocop-rake"
14+
gem "rubocop-thread_safety"
15+
gem "simplecov"
16+
gem "yard"

Gemfile.lock

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,59 @@
11
PATH
22
remote: .
33
specs:
4-
test_tube (2.1.3)
5-
defi (~> 2.0.6)
4+
test_tube (3.0.0)
5+
defi (~> 3.0.0)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
1010
ast (2.4.2)
11-
aw (0.1.13)
12-
brutal (1.2.0)
13-
defi (2.0.6)
14-
aw (~> 0.1.13)
11+
brutal (1.5.0)
12+
defi (3.0.0)
1513
docile (1.4.0)
16-
matchi (3.3.0)
17-
parallel (1.20.1)
18-
parser (3.0.2.0)
14+
json (2.7.1)
15+
language_server-protocol (3.17.0.3)
16+
matchi (3.3.1)
17+
parallel (1.24.0)
18+
parser (3.3.0.5)
1919
ast (~> 2.4.1)
20-
rainbow (3.0.0)
21-
rake (13.0.6)
22-
regexp_parser (2.1.1)
23-
rexml (3.2.5)
24-
rubocop (1.18.4)
20+
racc
21+
racc (1.7.3)
22+
rainbow (3.1.1)
23+
rake (13.1.0)
24+
regexp_parser (2.9.0)
25+
rexml (3.2.6)
26+
rubocop (1.60.2)
27+
json (~> 2.3)
28+
language_server-protocol (>= 3.17.0)
2529
parallel (~> 1.10)
26-
parser (>= 3.0.0.0)
30+
parser (>= 3.3.0.2)
2731
rainbow (>= 2.2.2, < 4.0)
2832
regexp_parser (>= 1.8, < 3.0)
29-
rexml
30-
rubocop-ast (>= 1.8.0, < 2.0)
33+
rexml (>= 3.2.5, < 4.0)
34+
rubocop-ast (>= 1.30.0, < 2.0)
3135
ruby-progressbar (~> 1.7)
32-
unicode-display_width (>= 1.4.0, < 3.0)
33-
rubocop-ast (1.8.0)
34-
parser (>= 3.0.1.1)
35-
rubocop-md (1.0.1)
36+
unicode-display_width (>= 2.4.0, < 3.0)
37+
rubocop-ast (1.30.0)
38+
parser (>= 3.2.1.0)
39+
rubocop-md (1.2.2)
3640
rubocop (>= 1.0)
37-
rubocop-performance (1.11.4)
38-
rubocop (>= 1.7.0, < 2.0)
39-
rubocop-ast (>= 0.4.0)
41+
rubocop-performance (1.20.2)
42+
rubocop (>= 1.48.1, < 2.0)
43+
rubocop-ast (>= 1.30.0, < 2.0)
4044
rubocop-rake (0.6.0)
4145
rubocop (~> 1.0)
42-
rubocop-thread_safety (0.4.2)
43-
rubocop (>= 0.53.0)
44-
ruby-progressbar (1.11.0)
45-
simplecov (0.21.2)
46+
rubocop-thread_safety (0.5.1)
47+
rubocop (>= 0.90.0)
48+
ruby-progressbar (1.13.0)
49+
simplecov (0.22.0)
4650
docile (~> 1.1)
4751
simplecov-html (~> 0.11)
4852
simplecov_json_formatter (~> 0.1)
4953
simplecov-html (0.12.3)
50-
simplecov_json_formatter (0.1.3)
51-
unicode-display_width (2.0.0)
52-
yard (0.9.26)
54+
simplecov_json_formatter (0.1.4)
55+
unicode-display_width (2.5.0)
56+
yard (0.9.34)
5357

5458
PLATFORMS
5559
ruby
@@ -68,4 +72,4 @@ DEPENDENCIES
6872
yard
6973

7074
BUNDLED WITH
71-
2.2.25
75+
2.5.5

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Cyril Kato
3+
Copyright (c) 2021-2024 Cyril Kato
44

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

0 commit comments

Comments
 (0)