Skip to content

Commit 6c7ebc6

Browse files
committed
Migrate project to Hanakai's repo-sync automation
1 parent 22222d2 commit 6c7ebc6

File tree

8 files changed

+76
-25
lines changed

8 files changed

+76
-25
lines changed

.rspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--color
2+
--require spec_helper
3+
--order random
4+
--warnings

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# dry-operation
1+
# Changelog
22

3-
Model your app’s business operations.
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
47

58
## [Unreleased]
69

@@ -21,5 +24,3 @@ Model your app’s business operations.
2124
### Added
2225

2326
- Initial release (@waiting-for-dev)
24-
25-
[1.0.0]: https://github.com/dry-rb/dry-operation/releases/tag/v1.0.0

Gemfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
source "https://rubygems.org"
44

5+
eval_gemfile "Gemfile.devtools"
6+
57
gemspec
68

79
group :tools do
@@ -14,15 +16,8 @@ group :docs do
1416
gem "yard-junk"
1517
end
1618

17-
group :development do
18-
gem "rake"
19-
gem "rubocop"
20-
end
21-
2219
group :test do
2320
gem "guard-rspec"
24-
gem "rspec"
25-
gem "simplecov"
2621
end
2722

2823
group :development, :test do

Gemfile.devtools

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# frozen_string_literal: true
2+
3+
# This file is synced from hanakai-rb/repo-sync
4+
5+
gem "rake", ">= 12.3.3"
6+
7+
group :test do
8+
gem "simplecov", require: false, platforms: :ruby
9+
gem "simplecov-cobertura", require: false, platforms: :ruby
10+
gem "rexml", require: false
11+
12+
gem "warning"
13+
end
14+
15+
group :tools do
16+
gem "rubocop", "~> 1.72.0"
17+
gem "byebug"
18+
end

repo-sync.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name:
2+
gem: dry-operation
3+
constant: Dry::Operation
4+
github_org: dry-rb
5+
gemspec:
6+
authors: ["Hanakai team"]
7+
email: ["[email protected]"]
8+
summary: "A domain specific language for composable business transaction workflows."
9+
homepage: "https://dry-rb.org/gems/dry-operation"
10+
required_ruby_version: ">= 3.1.0"
11+
development_dependencies:
12+
- bundler
13+
- rake
14+
- rspec
15+
- yard
16+
runtime_dependencies:
17+
- [dry-monads, "~> 1.6"]
18+
- [zeitwerk, "~> 2.6"]

spec/spec_helper.rb

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

3-
require "simplecov"
4-
5-
unless ENV["NO_COVERAGE"]
6-
SimpleCov.start do
7-
add_filter %r{^/spec/}
8-
enable_coverage :branch
9-
enable_coverage_for_eval
10-
end
11-
end
3+
require_relative "support/coverage"
4+
require_relative "support/warnings"
125

136
Bundler.require :tools
147

@@ -19,15 +12,12 @@
1912

2013
SPEC_ROOT = Pathname(__dir__).realpath.freeze
2114

15+
Dir.glob(SPEC_ROOT / "support" / "**" / "*.rb").each { |f| require f }
16+
2217
RSpec.configure do |config|
23-
config.color = true
24-
config.disable_monkey_patching!
2518
config.example_status_persistence_file_path = "./tmp/rspec-examples.txt"
26-
config.filter_run_when_matching :focus
2719
config.formatter = :progress
28-
config.order = :random
2920
config.shared_context_metadata_behavior = :apply_to_host_groups
30-
config.warnings = true
3121

3222
config.expect_with :rspec do |expectations|
3323
expectations.syntax = :expect

spec/support/coverage.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
# This file is synced from hanakai-rb/repo-sync
4+
5+
if ENV["COVERAGE"] == "true"
6+
require "simplecov"
7+
require "simplecov-cobertura"
8+
9+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
10+
11+
SimpleCov.start do
12+
add_filter "/spec/"
13+
enable_coverage :branch
14+
end
15+
end

spec/support/warnings.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
# This file is synced from hanakai-rb/repo-sync
4+
5+
require "warning"
6+
7+
Warning.ignore(%r{rspec/core})
8+
Warning.ignore(%r{rspec/mocks})
9+
Warning.ignore(/codacy/)
10+
Warning[:experimental] = false if Warning.respond_to?(:[])

0 commit comments

Comments
 (0)