Skip to content

Commit 982cd64

Browse files
committed
v1.4.0
1 parent 7adf46f commit 982cd64

Some content is hidden

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

51 files changed

+1076
-1051
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+
/benchmark/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: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
# frozen_string_literal: true
22

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

55
gemspec
66

7+
eval_gemfile "gemfiles/ruby_#{RUBY_VERSION[0]}/Gemfile"
8+
79
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'
10+
gem "lefthook", "~> 2.0.4"
11+
gem "pry", "~> 0.15.2"
12+
gem "rake", "~> 13.3.1"
1413
end
1514

1615
group :test do
17-
gem 'ffaker', '~> 2.23.0'
18-
gem 'rspec', '~> 3.13.0'
19-
gem 'simplecov', '~> 0.22.0'
16+
gem "rspec", "~> 3.13.2"
17+
gem "simplecov", "~> 0.22.0"
2018
end

Gemfile.lock

Lines changed: 60 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,106 @@
11
PATH
22
remote: .
33
specs:
4-
yaso (1.3.2)
4+
yaso (1.4.0)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
9-
ast (2.4.2)
9+
ast (2.4.3)
1010
coderay (1.1.3)
11-
diff-lcs (1.5.1)
11+
diff-lcs (1.6.2)
1212
docile (1.4.0)
13-
ffaker (2.23.0)
14-
json (2.7.2)
15-
language_server-protocol (3.17.0.3)
16-
lefthook (1.6.10)
13+
ffaker (2.25.0)
14+
json (2.16.0)
15+
language_server-protocol (3.17.0.5)
16+
lefthook (2.0.4)
17+
lint_roller (1.1.0)
1718
method_source (1.1.0)
18-
parallel (1.24.0)
19-
parser (3.3.1.0)
19+
parallel (1.27.0)
20+
parser (3.3.10.0)
2021
ast (~> 2.4.1)
2122
racc
22-
pry (0.14.2)
23+
prism (1.6.0)
24+
pry (0.15.2)
2325
coderay (~> 1.1)
2426
method_source (~> 1.0)
25-
racc (1.7.3)
27+
racc (1.8.1)
2628
rainbow (3.1.1)
27-
rake (13.2.1)
28-
regexp_parser (2.9.0)
29-
rexml (3.2.6)
30-
rspec (3.13.0)
29+
rake (13.3.1)
30+
regexp_parser (2.11.3)
31+
rspec (3.13.2)
3132
rspec-core (~> 3.13.0)
3233
rspec-expectations (~> 3.13.0)
3334
rspec-mocks (~> 3.13.0)
34-
rspec-core (3.13.0)
35+
rspec-core (3.13.6)
3536
rspec-support (~> 3.13.0)
36-
rspec-expectations (3.13.0)
37+
rspec-expectations (3.13.5)
3738
diff-lcs (>= 1.2.0, < 2.0)
3839
rspec-support (~> 3.13.0)
39-
rspec-mocks (3.13.0)
40+
rspec-mocks (3.13.7)
4041
diff-lcs (>= 1.2.0, < 2.0)
4142
rspec-support (~> 3.13.0)
42-
rspec-support (3.13.1)
43-
rubocop (1.63.4)
43+
rspec-support (3.13.6)
44+
rubocop (1.80.2)
4445
json (~> 2.3)
45-
language_server-protocol (>= 3.17.0)
46+
language_server-protocol (~> 3.17.0.2)
47+
lint_roller (~> 1.1.0)
4648
parallel (~> 1.10)
4749
parser (>= 3.3.0.2)
4850
rainbow (>= 2.2.2, < 4.0)
49-
regexp_parser (>= 1.8, < 3.0)
50-
rexml (>= 3.2.5, < 4.0)
51-
rubocop-ast (>= 1.31.1, < 2.0)
51+
regexp_parser (>= 2.9.3, < 3.0)
52+
rubocop-ast (>= 1.46.0, < 2.0)
5253
ruby-progressbar (~> 1.7)
53-
unicode-display_width (>= 2.4.0, < 3.0)
54-
rubocop-ast (1.31.3)
55-
parser (>= 3.3.1.0)
56-
rubocop-capybara (2.20.0)
57-
rubocop (~> 1.41)
58-
rubocop-factory_bot (2.25.1)
59-
rubocop (~> 1.41)
60-
rubocop-performance (1.21.0)
61-
rubocop (>= 1.48.1, < 2.0)
62-
rubocop-ast (>= 1.31.1, < 2.0)
63-
rubocop-rspec (2.29.1)
64-
rubocop (~> 1.40)
65-
rubocop-capybara (~> 2.17)
66-
rubocop-factory_bot (~> 2.22)
67-
rubocop-rspec_rails (~> 2.28)
68-
rubocop-rspec_rails (2.28.3)
69-
rubocop (~> 1.40)
54+
unicode-display_width (>= 2.4.0, < 4.0)
55+
rubocop-ast (1.48.0)
56+
parser (>= 3.3.7.2)
57+
prism (~> 1.4)
58+
rubocop-performance (1.25.0)
59+
lint_roller (~> 1.1)
60+
rubocop (>= 1.75.0, < 2.0)
61+
rubocop-ast (>= 1.38.0, < 2.0)
62+
rubocop-rspec (3.7.0)
63+
lint_roller (~> 1.1)
64+
rubocop (~> 1.72, >= 1.72.1)
7065
ruby-progressbar (1.13.0)
7166
simplecov (0.22.0)
7267
docile (~> 1.1)
7368
simplecov-html (~> 0.11)
7469
simplecov_json_formatter (~> 0.1)
7570
simplecov-html (0.12.3)
7671
simplecov_json_formatter (0.1.4)
77-
unicode-display_width (2.5.0)
72+
standard (1.51.1)
73+
language_server-protocol (~> 3.17.0.2)
74+
lint_roller (~> 1.0)
75+
rubocop (~> 1.80.2)
76+
standard-custom (~> 1.0.0)
77+
standard-performance (~> 1.8)
78+
standard-custom (1.0.2)
79+
lint_roller (~> 1.0)
80+
rubocop (~> 1.50)
81+
standard-performance (1.8.0)
82+
lint_roller (~> 1.1)
83+
rubocop-performance (~> 1.25.0)
84+
unicode-display_width (3.2.0)
85+
unicode-emoji (~> 4.1)
86+
unicode-emoji (4.1.0)
7887

7988
PLATFORMS
89+
arm64-darwin-24
90+
ruby
8091
x86_64-darwin-22
8192
x86_64-darwin-23
8293
x86_64-linux
8394

8495
DEPENDENCIES
85-
ffaker (~> 2.23.0)
86-
lefthook (~> 1.6.10)
87-
pry (~> 0.14.2)
88-
rake (~> 13.2.1)
89-
rspec (~> 3.13.0)
90-
rubocop (~> 1.63.4)
91-
rubocop-performance (~> 1.21.0)
92-
rubocop-rspec (~> 2.29.1)
96+
ffaker (~> 2.25.0)
97+
lefthook (~> 2.0.4)
98+
pry (~> 0.15.2)
99+
rake (~> 13.3.1)
100+
rspec (~> 3.13.2)
101+
rubocop-rspec (~> 3.7.0)
93102
simplecov (~> 0.22.0)
103+
standard (~> 1.51.1)
94104
yaso!
95105

96106
BUNDLED WITH

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)