on_strum-service 1.0.2 → 1.1.1

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: 7131fa690f8510959fdfccd7f88c46541e9b59cec92dd8e01fdd9bc33ce364af
4
- data.tar.gz: c0b7d320b5aad204d47c573db2e27808144f654be203c9f90483821224a7ab5c
3
+ metadata.gz: 2c98eb082435bcef1bc63dd93a2e71f820e3892f6c4cd2aed56e41bc0e70a4f8
4
+ data.tar.gz: 1b43d745b3783796482cb8a43afb1e3b1a2b19f962f24e167a35c58aad284549
5
5
  SHA512:
6
- metadata.gz: 8195cc677e846f06ed52ca7672a919674156e045fbddb0147c473a698e574ff403503f5a0330caf3bd5f08e28af3a0895f377af4493a9294a850b3b18ba4cb74
7
- data.tar.gz: 9f4c30ab307aaa38a14f7de2c1899baec4f4339ea441a374603079eff31801f743fd27214daebc1e73e8c3d667b5ffde9d8172e7ec768ff465f00e6ebee34a9b
6
+ metadata.gz: 75ce068455ae658cd0c386123cf39e39afb9f3ef8b3fd2a391996da6bcdb726af5262d31a3989b07b8976cc6d021aa93ebeedf06fd551bdde73423be16fcdf05
7
+ data.tar.gz: 1be324a04827770a38c722f79e624c488e094dfb78766008cae4974acfcf45e4a4afaf10640098d1e84f8dd1af7b794db37a2f16d1f15ad1f22ee54fd048aa14
@@ -3,8 +3,11 @@
3
3
  module OnStrum
4
4
  module Service
5
5
  module ClassMethods
6
- def call(ctx, **args, &block)
7
- new(ctx, **args).execute(&block)
6
+ def call(*args, **kwargs, &block)
7
+ # For Ruby 2.7: call({key: 'value'}) -> args=[], kwargs={key: 'value'}
8
+ # For Ruby 3.0: call({key: 'value'}) -> args=[{key: 'value'}], kwargs={}
9
+ ctx = ::RUBY_VERSION < '3.0' && args.empty? ? kwargs : args.first
10
+ new(ctx || {}, **kwargs).execute(&block)
8
11
  end
9
12
  end
10
13
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OnStrum
4
4
  module Service
5
- VERSION = '1.0.2'
5
+ VERSION = '1.1.1'
6
6
  end
7
7
  end
@@ -5,7 +5,7 @@ require_relative 'lib/on_strum/service/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'on_strum-service'
7
7
  spec.version = OnStrum::Service::VERSION
8
- spec.authors = ['Serhiy Nazarov']
8
+ spec.authors = ['Serhiy Nazarov', 'Vladislav Trotsenko']
9
9
  spec.email = %w[admin@on-strum.org]
10
10
 
11
11
  spec.summary = %(on_strum-service)
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  'bug_tracker_uri' => 'https://github.com/on-strum/ruby-on-strum-service/issues'
23
23
  }
24
24
 
25
- spec.required_ruby_version = '>= 2.5.0'
25
+ spec.required_ruby_version = '>= 2.7.0'
26
26
  spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin|lib)/|.ruby-version|on_strum-service.gemspec|LICENSE}) }
27
27
  spec.require_paths = %w[lib]
28
28
 
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: on_strum-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhiy Nazarov
8
+ - Vladislav Trotsenko
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2025-01-03 00:00:00.000000000 Z
12
+ date: 2025-01-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
@@ -80,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
81
  requirements:
81
82
  - - ">="
82
83
  - !ruby/object:Gem::Version
83
- version: 2.5.0
84
+ version: 2.7.0
84
85
  required_rubygems_version: !ruby/object:Gem::Requirement
85
86
  requirements:
86
87
  - - ">="