slayer 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2616136d45efa56080f52cc1e50c83234aef62ea9d17d3c710fdbda46640a4ab
4
- data.tar.gz: 6662a50c7491c23c48b17835b0ab12ceeed09fa58fc9c450d7a0371f2e492154
3
+ metadata.gz: 7a68e66d2025d43b8d41085b0f3c3b0b7a6af22c7231927fe85829afd2af0552
4
+ data.tar.gz: a12f7e965d6c51a6c2136ca72fa3256e2c7bdab67393795b8f8f603c66405e50
5
5
  SHA512:
6
- metadata.gz: 768fac163259ffd9b3c81707f76293da2a5df147639558257a8703824c7605d30761668b670cf105639542f75b6e8f77b9b2b7dd741a9bc0460727c5e6b20d03
7
- data.tar.gz: ffa8cee897239bedb5d1d0bbb19b57cd931c74aee55921e301c92cf557e2e9816c9705ef5d78ea1d4c84b91e55dff4eeac3c8b1a012688c47dcf8e159500cd56
6
+ metadata.gz: 38c301ff78a9c2e4cbfbfbd1525fb57f4831c15dbd08518856c4062e80ed115af22544b8a7efa520eea9b2a0f773b28ed049282c4497e8c03bd8e4b2a678c0a8
7
+ data.tar.gz: 586d23d4aa0af1df2e3f96d08ce8e41b54991f2a5d0a9a05bd45ab6b4dd9b39c0ddb3b9b1530b88d019d208710c194b1191570032d9da182362ffa7b7692f425
@@ -9,10 +9,10 @@ jobs:
9
9
  release:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v2
12
+ - uses: actions/checkout@v4
13
13
  - uses: ruby/setup-ruby@v1
14
14
  with:
15
- ruby-version: 3.0.0
15
+ ruby-version: 3.2
16
16
  - run: bundle install
17
17
  - name: publish gem
18
18
  run: |
@@ -12,12 +12,12 @@ jobs:
12
12
 
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['3.1', '3.0', '2.7']
15
+ ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7']
16
16
 
17
17
  steps:
18
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
19
19
  - name: Set up Ruby
20
- uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
20
+ uses: ruby/setup-ruby@v1
21
21
  with:
22
22
  ruby-version: ${{ matrix.ruby-version }}
23
23
  - name: Install dependencies
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:3.1.2-alpine
1
+ FROM ruby:3.2-alpine
2
2
 
3
3
  RUN apk add --no-cache --update \
4
4
  bash \
@@ -1,10 +1,10 @@
1
1
  module Slayer
2
2
  class Command
3
3
  class << self
4
- def call(*args, &block)
4
+ def call(*args, **kwargs, &block)
5
5
  instance = self.new
6
6
 
7
- res = __get_result(instance, *args, &block)
7
+ res = __get_result(instance, *args, **kwargs, &block)
8
8
  handle_match(res, instance, block) if block_given?
9
9
 
10
10
  raise CommandNotImplementedError unless res.is_a? Result
@@ -28,11 +28,11 @@ module Slayer
28
28
  raise ResultFailureError, err(value: value, status: status, message: message)
29
29
  end
30
30
 
31
- def __get_result(instance, *args, &block)
31
+ def __get_result(instance, *args, **kwargs, &block)
32
32
  res = nil
33
33
 
34
34
  begin
35
- res = instance.call(*args, &block)
35
+ res = instance.call(*args, **kwargs, &block)
36
36
  rescue ResultFailureError => e
37
37
  res = e.result
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module Slayer
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wyatt Kirby
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-02-28 00:00:00.000000000 Z
12
+ date: 2024-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.2.3
217
+ rubygems_version: 3.4.19
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: A killer service layer