Skip to content

Commit 7cb14cb

Browse files
File sync from hanakai-rb/repo-sync
Updated files: - .github/ISSUE_TEMPLATE/config.yml - .github/SUPPORT.md - .github/workflows/ci.yml - .github/workflows/rubocop.yml - Gemfile.devtools - LICENSE - README.md - dry-struct.gemspec - spec/support/coverage.rb - spec/support/rspec.rb - spec/support/warnings.rb
1 parent 3abc518 commit 7cb14cb

File tree

11 files changed

+89
-73
lines changed

11 files changed

+89
-73
lines changed

.github/ISSUE_TEMPLATE/config.yml

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

.github/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
## Support
22

3-
If you need help with any of the dry-rb libraries, feel free to ask questions on our [discussion forum](https://discourse.dry-rb.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:
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: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
# This file is synced from dry-rb/template-gem repo
1+
# This file is synced from hanakai-rb/repo-sync
2+
3+
24
name: CI
35

46
on:
57
push:
6-
paths:
7-
- ".github/workflows/ci.yml"
8-
- "lib/**"
9-
- "*.gemspec"
10-
- "spec/**"
11-
- "Rakefile"
12-
- "Gemfile"
13-
- "Gemfile.devtools"
14-
- ".rubocop.yml"
15-
- "project.yml"
8+
branches: ["main"]
169
pull_request:
17-
branches:
18-
- main
19-
create:
10+
branches: ["main"]
11+
schedule:
12+
- cron: "30 4 * * *"
2013

2114
jobs:
2215
tests:
@@ -26,19 +19,22 @@ jobs:
2619
fail-fast: false
2720
matrix:
2821
ruby:
29-
- "3.4"
30-
- "3.3"
31-
# ensure 3.3.0 passes
32-
# see https://github.com/dry-rb/dry-types/issues/478
33-
- "3.3.0"
34-
- "3.2"
35-
- "3.1"
22+
23+
- 3.4
24+
25+
- 3.3
26+
27+
- 3.3.0
28+
29+
- 3.2
30+
31+
- 3.1
32+
3633
include:
3734
- ruby: "3.4"
3835
coverage: "true"
3936
env:
4037
COVERAGE: ${{matrix.coverage}}
41-
COVERAGE_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}
4238
steps:
4339
- name: Checkout
4440
uses: actions/checkout@v3
@@ -65,10 +61,11 @@ jobs:
6561
- name: Set up Ruby
6662
uses: ruby/setup-ruby@v1
6763
with:
68-
ruby-version: 3.4
64+
ruby-version: 3.3
6965
- name: Install dependencies
7066
run: gem install ossy --no-document
7167
- name: Trigger release workflow
7268
run: |
7369
tag=$(echo $GITHUB_REF | cut -d / -f 3)
7470
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}}\"}"
71+

.github/workflows/rubocop.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# frozen_string_literal: true
22

3-
# This file is synced from dry-rb/template-gem repo
3+
# This file is synced from hanakai-rb/repo-sync
44

55
name: RuboCop
66

7-
on: [push, pull_request]
7+
on:
8+
push:
9+
branches: ["main"]
10+
pull_request:
11+
branches: ["main"]
812

913
permissions:
1014
contents: read
@@ -16,13 +20,13 @@ jobs:
1620
BUNDLE_ONLY: tools
1721

1822
steps:
19-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v3
2024

21-
- name: Set up Ruby 3.2
22-
uses: ruby/setup-ruby@v1
23-
with:
24-
ruby-version: 3.2
25-
bundler-cache: true
25+
- name: Set up Ruby 3.4
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: 3.4
29+
bundler-cache: true
2630

27-
- name: Run RuboCop
28-
run: bundle exec rubocop --parallel
31+
- name: Run RuboCop
32+
run: bundle exec rubocop --parallel

Gemfile.devtools

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

3-
# This file is synced from dry-rb/template-gem repo
3+
# This file is synced from hanakai-rb/repo-sync
44

55
gem "rake", ">= 12.3.3"
66

77
group :test do
88
gem "simplecov", require: false, platforms: :ruby
99
gem "simplecov-cobertura", require: false, platforms: :ruby
1010
gem "rexml", require: false
11-
gem "rspec"
1211

1312
gem "warning"
1413
end
1514

1615
group :tools do
17-
gem "rubocop", "~> 1.69.2"
16+
gem "rubocop", "~> 1.72.0"
1817
gem "byebug"
19-
gem "yard"
20-
21-
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0")
22-
gem "debug"
23-
end
2418
end

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-2023 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: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
<!--- this file is synced from dry-rb/template-gem project -->
2-
[gem]: https://rubygems.org/gems/dry-struct
1+
<!--- This file is synced from hanakai-rb/repo-sync -->
2+
3+
[rubygem]: https://rubygems.org/gems/dry-struct
34
[actions]: https://github.com/dry-rb/dry-struct/actions
45

5-
# dry-struct [![Gem Version](https://badge.fury.io/rb/dry-struct.svg)][gem] [![CI Status](https://github.com/dry-rb/dry-struct/workflows/CI/badge.svg)][actions]
6+
# dry-struct [![Gem Version](https://badge.fury.io/rb/dry-struct.svg)][rubygem] [![CI Status](https://github.com/dry-rb/dry-struct/workflows/CI/badge.svg)][actions]
67

78
## Links
89

9-
* [User documentation](https://dry-rb.org/gems/dry-struct)
10-
* [API documentation](http://rubydoc.info/gems/dry-struct)
11-
* [Forum](https://discourse.dry-rb.org)
12-
13-
## Supported Ruby versions
14-
15-
This library officially supports the following Ruby versions:
16-
17-
* MRI `>= 3.1`
18-
* jruby `>= 9.4` (not tested on CI)
10+
- [User documentation](https://dry-rb.org/gems/dry-struct)
11+
- [API documentation](http://rubydoc.info/gems/dry-struct)
12+
- [Forum](https://discourse.dry-rb.org)
1913

2014
## License
2115

2216
See `LICENSE` file.
17+

dry-struct.gemspec

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# frozen_string_literal: true
22

3-
# this file is synced from dry-rb/template-gem project
3+
# This file is synced from hanakai-rb/repo-sync. To update it, edit repo-sync.yml.
44

55
lib = File.expand_path("lib", __dir__)
66
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
77
require "dry/struct/version"
88

99
Gem::Specification.new do |spec|
1010
spec.name = "dry-struct"
11-
spec.authors = ["Piotr Solnica"]
12-
spec.email = ["piotr.solnica@gmail.com"]
11+
spec.authors = ["Hanakai team"]
12+
spec.email = ["info@hanakai.org"]
1313
spec.license = "MIT"
1414
spec.version = Dry::Struct::VERSION.dup
1515

@@ -21,17 +21,22 @@ Gem::Specification.new do |spec|
2121
spec.executables = []
2222
spec.require_paths = ["lib"]
2323

24-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
25-
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-struct/blob/main/CHANGELOG.md"
26-
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-struct"
27-
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-struct/issues"
28-
spec.metadata["rubygems_mfa_required"] = "true"
24+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
25+
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-struct/blob/main/CHANGELOG.md"
26+
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-struct"
27+
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-struct/issues"
28+
spec.metadata["funding_uri"] = "https://github.com/sponsors/hanami"
2929

3030
spec.required_ruby_version = ">= 3.1.0"
3131

32-
# to update dependencies edit project.yml
33-
spec.add_dependency "dry-core", "~> 1.1"
34-
spec.add_dependency "dry-types", "~> 1.8", ">= 1.8.2"
35-
spec.add_dependency "ice_nine", "~> 0.11"
36-
spec.add_dependency "zeitwerk", "~> 2.6"
32+
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
33+
spec.add_runtime_dependency "dry-core", "~> 1.1"
34+
spec.add_runtime_dependency "dry-types", "~> 1.8", ">= 1.8.2"
35+
spec.add_runtime_dependency "ice_nine", "~> 0.11"
36+
spec.add_development_dependency "bundler"
37+
spec.add_development_dependency "rake"
38+
spec.add_development_dependency "rspec"
39+
spec.add_development_dependency "yard"
40+
3741
end
42+

spec/support/coverage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# this file is managed by dry-rb/devtools
3+
# This file is synced from hanakai-rb/repo-sync
44

55
if ENV["COVERAGE"] == "true"
66
require "simplecov"

spec/support/rspec.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# frozen_string_literal: true
2+
3+
# This file is synced from hanakai-rb/repo-sync
4+
5+
RSpec.configure do |config|
6+
# When no filter given, search and run focused tests
7+
config.filter_run_when_matching :focus
8+
9+
# Disables rspec monkey patches (no reason for their existence tbh)
10+
config.disable_monkey_patching!
11+
12+
# Run ruby in verbose mode
13+
config.warnings = true
14+
15+
# Collect all failing expectations automatically,
16+
# without calling aggregate_failures everywhere
17+
config.define_derived_metadata do |meta|
18+
meta[:aggregate_failures] = true
19+
end
20+
end

0 commit comments

Comments
 (0)