Skip to content

Commit 3c83a36

Browse files
committed
v1.4.0
1 parent 7adf46f commit 3c83a36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1031
-1098
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Ruby ${{ matrix.ruby }}
1818
strategy:
1919
matrix:
20-
ruby: ['3.3', '3.2', '3.1', '3.0']
20+
ruby: ['3.4', '3.3', '3.2', '3.1', '3.0', '2.7']
2121

2222
steps:
2323
- uses: actions/checkout@v2
@@ -37,7 +37,7 @@ jobs:
3737
name: Benchmark ${{ matrix.ruby }}
3838
strategy:
3939
matrix:
40-
ruby: ['3.3', '3.2', '3.1', '3.0']
40+
ruby: ['3.4', '3.3', '3.2', '3.1', '3.0', '2.7']
4141

4242
steps:
4343
- uses: actions/checkout@v2
@@ -57,7 +57,7 @@ jobs:
5757
name: Benchmark ${{ matrix.ruby }} + YJIT
5858
strategy:
5959
matrix:
60-
ruby: ['3.3', '3.2']
60+
ruby: ['3.4', '3.3', '3.2']
6161
steps:
6262
- uses: actions/checkout@v2
6363
- name: Login to DockerHub

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/spec/reports/
88
/tmp/
99
.DS_Store
10+
/**/Gemfile.lock
1011

1112
# rspec failure tracking
1213
.rspec_status

.rubocop.yml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
require:
2-
- rubocop-rspec
3-
- rubocop-performance
4-
5-
AllCops:
6-
TargetRubyVersion: 2.5
7-
SuggestExtensions: false
8-
NewCops: enable
9-
Exclude:
10-
- vendor/bundle/**/*
11-
- benchmark/vendor/bundle/**/*
1+
inherit_mode:
2+
merge:
3+
- Exclude
124

13-
Gemspec/RequiredRubyVersion:
14-
Enabled: false
5+
require:
6+
- standard
157

16-
Layout/LineLength:
17-
Max: 120
8+
plugins:
9+
- standard-custom
10+
- standard-performance
11+
- rubocop-performance
12+
- rubocop-rspec
1813

19-
Style/Documentation:
20-
Enabled: false
14+
inherit_gem:
15+
standard: config/base.yml
16+
standard-performance: config/base.yml
17+
standard-custom: config/base.yml
2118

22-
Metrics/BlockLength:
23-
Exclude:
24-
- '*.gemspec'
25-
AllowedMethods:
26-
- describe
27-
- context
19+
inherit_from: []
2820

29-
RSpec/LetSetup:
30-
Enabled: false
21+
AllCops:
22+
NewCops: enable
23+
SuggestExtensions: false

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
3.4.7

.simplecov

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
SimpleCov.start do
44
enable_coverage :branch
55

6-
add_filter 'spec'
7-
add_filter 'benchmark'
6+
add_filter "spec"
7+
add_filter "benchmark"
88
end

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 3.4.7

Gemfile

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

3-
source 'https://rubygems.org'
3+
source "https://rubygems.org"
44

55
gemspec
66

7+
version_parts = RUBY_VERSION.split(".")
8+
minor_version_path = version_parts[..1].join("_")
9+
10+
if File.exist?("gemfiles/ruby_#{minor_version_path}/Gemfile")
11+
eval_gemfile "gemfiles/ruby_#{minor_version_path}/Gemfile"
12+
else
13+
eval_gemfile "gemfiles/ruby_#{version_parts[0]}/Gemfile"
14+
end
15+
716
group :development, :test do
8-
gem 'lefthook', '~> 1.6.10'
9-
gem 'pry', '~> 0.14.2'
10-
gem 'rake', '~> 13.2.1'
11-
gem 'rubocop', '~> 1.63.4'
12-
gem 'rubocop-performance', '~> 1.21.0'
13-
gem 'rubocop-rspec', '~> 2.29.1'
17+
gem "lefthook", "~> 2.0.4"
18+
gem "pry", "~> 0.15.2"
19+
gem "rake", "~> 13.3.1"
1420
end
1521

1622
group :test do
17-
gem 'ffaker', '~> 2.23.0'
18-
gem 'rspec', '~> 3.13.0'
19-
gem 'simplecov', '~> 0.22.0'
23+
gem "rspec", "~> 3.13.2"
24+
gem "simplecov", "~> 0.22.0"
2025
end

Gemfile.lock

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

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Yaso
2-
[![Ruby](https://github.com/Ar2emis/yaso/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/Ar2emis/yaso/actions/workflows/main.yml) ![gem](https://img.shields.io/gem/v/yaso) [![GitHub license](https://img.shields.io/github/license/Ar2emis/yaso)](https://github.com/Ar2emis/yaso/blob/master/LICENSE.txt)
2+
[![Ruby](https://github.com/ar2em1s/yaso/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/ar2em1s/yaso/actions/workflows/main.yml) ![gem](https://img.shields.io/gem/v/yaso) [![GitHub license](https://img.shields.io/github/license/ar2em1s/yaso)](https://github.com/ar2em1s/yaso/blob/master/LICENSE.txt)
33

4-
That's my (Yet Another) ServiceObject pattern implementation. I made it fast ([the fastest of this kind actually](https://github.com/Ar2emis/yaso/wiki/Benchmarks); [simple_command](https://github.com/nebulab/simple_command), you got me this time) and simple to use (I hope). I was inspired by those alternatives and I hope this will encourage them to be even better:
4+
That's my (Yet Another) ServiceObject pattern implementation. I made it fast ([benchmarks](https://github.com/ar2em1s/yaso/wiki/Benchmarks)) and simple to use (I hope). I was inspired by those alternatives and I hope this will encourage them to be even better:
55
- [Trailblazer](https://github.com/trailblazer/trailblazer)
66
- [Decouplio](https://github.com/differencialx/decouplio)
77

@@ -10,28 +10,32 @@ That's my (Yet Another) ServiceObject pattern implementation. I made it fast ([t
1010
Add this line to your application's Gemfile:
1111

1212
```ruby
13-
gem 'yaso'
13+
gem "yaso"
1414
```
1515

1616
And then execute:
1717

18-
$ bundle install
18+
```bash
19+
bundle install
20+
```
1921

2022
Or install it yourself as:
2123

22-
$ gem install yaso
24+
```bash
25+
gem install yaso
26+
```
2327

2428
## Usage
2529

26-
All the information you can find in the gem [wiki](https://github.com/Ar2emis/yaso/wiki).
30+
All the information you can find in the gem [wiki](https://github.com/ar2em1s/yaso/wiki).
2731

2832
## Development
2933

3034
I don't think that someone would like to help me developing the gem but if so just fork a repository, do your dark business, open a pull request and assign me as a reviewer.
3135

3236
## Contributing
3337

34-
Bug reports and pull requests are welcome on GitHub at https://github.com/Ar2emis/yaso.
38+
Bug reports and pull requests are welcome on GitHub at https://github.com/ar2em1s/yaso.
3539

3640
## License
3741

Rakefile

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

3-
require 'bundler/gem_tasks'
4-
require 'rspec/core/rake_task'
3+
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
55

66
RSpec::Core::RakeTask.new(:spec)
77

8-
require 'rubocop/rake_task'
8+
require "rubocop/rake_task"
99

1010
RuboCop::RakeTask.new
1111

0 commit comments

Comments
 (0)