Skip to content

Commit 947f2be

Browse files
File sync from hanakai-rb/repo-sync
Updated files: - .github/ISSUE_TEMPLATE/bug-report.md - .github/ISSUE_TEMPLATE/config.yml - .github/SUPPORT.md - .github/workflows/ci.yml - .github/workflows/rubocop.yml - CODE_OF_CONDUCT.md - CONTRIBUTING.md - LICENSE - README.md - dry-operation.gemspec - spec/support/rspec.rb
1 parent 6cd51a0 commit 947f2be

File tree

11 files changed

+339
-41
lines changed

11 files changed

+339
-41
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: "\U0001F41B Bug report"
3+
about: See CONTRIBUTING.md for more information
4+
title: ''
5+
labels: bug, help wanted
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the bug
11+
12+
A clear and concise description of what the bug is.
13+
14+
## To Reproduce
15+
16+
Provide detailed steps to reproduce, **an executable script would be best**.
17+
18+
## Expected behavior
19+
20+
A clear and concise description of what you expected to happen.
21+
22+
## My environment
23+
24+
- Affects my production application: **YES/NO**
25+
- Ruby version: ...
26+
- OS: ...

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Community support
4+
url: https://discourse.hanamirb.org
5+
about: Please ask and answer questions here.

.github/SUPPORT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Support
2+
3+
If you need help with any of the dry-rb libraries, feel free to ask questions on our [discussion forum](https://discourse.hanamirb.org/). This is the best place to seek help. Make sure to search for a potential solution in past threads before posting your question. Thanks! :heart:

.github/workflows/ci.yml

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,78 @@
1+
# This file is synced from hanakai-rb/repo-sync
2+
3+
14
name: CI
25

36
on:
47
push:
8+
branches: ["main"]
59
pull_request:
10+
branches: ["main"]
611
schedule:
712
- cron: "30 4 * * *"
813

914
jobs:
10-
build:
11-
name: Build
15+
tests:
1216
runs-on: ubuntu-latest
13-
17+
name: Tests
1418
strategy:
1519
fail-fast: false
1620
matrix:
17-
ruby: ["3.1", "3.2", "3.3", "3.4"]
18-
21+
ruby:
22+
23+
- 3.4
24+
25+
- 3.3
26+
27+
- 3.3.0
28+
29+
- 3.2
30+
31+
- 3.1
32+
33+
include:
34+
- ruby: "3.4"
35+
coverage: "true"
36+
env:
37+
COVERAGE: ${{matrix.coverage}}
1938
steps:
2039
- name: Checkout
2140
uses: actions/checkout@v3
22-
23-
- name: Setup Ruby
41+
- name: Install package dependencies
42+
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
43+
- name: Set up Ruby
2444
uses: ruby/setup-ruby@v1
2545
with:
26-
ruby-version: ${{ matrix.ruby }}
46+
ruby-version: ${{matrix.ruby}}
2747
bundler-cache: true
28-
29-
- name: Rake
48+
- name: Run all tests
3049
run: bundle exec rake
31-
env:
32-
NO_COVERAGE: true
33-
3450
workflow-keepalive:
3551
if: github.event_name == 'schedule'
3652
runs-on: ubuntu-latest
3753
permissions:
3854
actions: write
3955
steps:
4056
- uses: liskin/gh-workflow-keepalive@v1
57+
release:
58+
runs-on: ubuntu-latest
59+
if: contains(github.ref, 'tags') && github.event_name == 'create'
60+
needs: tests
61+
env:
62+
GITHUB_LOGIN: dry-bot
63+
GITHUB_TOKEN: ${{secrets.GH_PAT}}
64+
steps:
65+
- uses: actions/checkout@v3
66+
- name: Install package dependencies
67+
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
68+
- name: Set up Ruby
69+
uses: ruby/setup-ruby@v1
70+
with:
71+
ruby-version: 3.3
72+
- name: Install dependencies
73+
run: gem install ossy --no-document
74+
- name: Trigger release workflow
75+
run: |
76+
tag=$(echo $GITHUB_REF | cut -d / -f 3)
77+
ossy gh w dry-rb/devtools release --payload "{\"tag\":\"$tag\",\"sha\":\"${{github.sha}}\",\"tag_creator\":\"$GITHUB_ACTOR\",\"repo\":\"$GITHUB_REPOSITORY\",\"repo_name\":\"${{github.event.repository.name}}\"}"
78+

.github/workflows/rubocop.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# frozen_string_literal: true
2+
3+
# This file is synced from hanakai-rb/repo-sync
4+
5+
name: RuboCop
6+
7+
on:
8+
push:
9+
branches: ["main"]
10+
pull_request:
11+
branches: ["main"]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
env:
20+
BUNDLE_ONLY: tools
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: Set up Ruby 3.4
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: 3.4
29+
bundler-cache: true
30+
31+
- name: Run RuboCop
32+
run: bundle exec rubocop --parallel

CODE_OF_CONDUCT.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
team at dry-rb.org.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series of
86+
actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or permanent
93+
ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within the
113+
community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.1, available at
119+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120+
121+
Community Impact Guidelines were inspired by
122+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123+
124+
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 at
126+
[https://www.contributor-covenant.org/translations][translations].
127+
128+
[homepage]: https://www.contributor-covenant.org
129+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130+
[Mozilla CoC]: https://github.com/mozilla/diversity
131+
[FAQ]: https://www.contributor-covenant.org/faq
132+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Issue Guidelines
2+
3+
## Reporting bugs
4+
5+
If you found a bug, report an issue and describe what's the expected behavior versus what actually happens. If the bug causes a crash, attach a full backtrace. If possible, a reproduction script showing the problem is highly appreciated.
6+
7+
## Reporting feature requests
8+
9+
Report a feature request **only after discussing it first on [discourse.dry-rb.org](https://discourse.dry-rb.org)** where it was accepted. Please provide a concise description of the feature.
10+
11+
## Reporting questions, support requests, ideas, concerns etc.
12+
13+
**PLEASE DON'T** - use [discourse.dry-rb.org](https://discourse.dry-rb.org) instead.
14+
15+
# Pull Request Guidelines
16+
17+
A Pull Request will only be accepted if it addresses a specific issue that was reported previously, or fixes typos, mistakes in documentation etc.
18+
19+
Other requirements:
20+
21+
1) Do not open a pull request if you can't provide tests along with it. If you have problems writing tests, ask for help in the related issue.
22+
2) Follow the style conventions of the surrounding code. In most cases, this is standard ruby style.
23+
3) Add API documentation if it's a new feature
24+
4) Update API documentation if it changes an existing feature
25+
5) Bonus points for sending a PR which updates user documentation in the `docsite` directory
26+
27+
# Asking for help
28+
29+
If these guidelines aren't helpful, and you're stuck, please post a message on [discourse.dry-rb.org](https://discourse.dry-rb.org).

LICENSE

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

3-
Copyright (c) 2015-2024 dry-rb team
3+
Copyright (c) 2015-2025 Hanakai team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in
@@ -18,3 +18,4 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1818
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1919
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
[gem]: https://rubygems.org/gems/dry-operation
1+
<!--- This file is synced from hanakai-rb/repo-sync -->
2+
3+
[rubygem]: https://rubygems.org/gems/dry-operation
24
[actions]: https://github.com/dry-rb/dry-operation/actions
35

4-
# dry-operation [![Gem Version](https://badge.fury.io/rb/dry-operation.svg)][gem] [![Continuous Integration](https://github.com/dry-rb/dry-operation/actions/workflows/ci.yml/badge.svg)][actions]
6+
# dry-operation [![Gem Version](https://badge.fury.io/rb/dry-operation.svg)][rubygem] [![CI Status](https://github.com/dry-rb/dry-operation/workflows/CI/badge.svg)][actions]
57

68
## Links
79

8-
* [User documentation](https://dry-rb.org/gems/dry-operation)
9-
* [API documentation](http://rubydoc.info/gems/dry-operation)
10-
* [Forum](https://discourse.dry-rb.org)
10+
- [User documentation](https://dry-rb.org/gems/dry-operation)
11+
- [API documentation](http://rubydoc.info/gems/dry-operation)
12+
- [Forum](https://discourse.dry-rb.org)
1113

1214
## License
1315

14-
See [`LICENSE`](LICENSE).
16+
See `LICENSE` file.
17+

0 commit comments

Comments
 (0)