strum-service 0.0.3 → 0.0.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: 9e9cf711054f4a87537d4e9200065324ab9957f546f4dd156b8efde9dc0bb109
4
- data.tar.gz: f261527adff9e339fa220c0557c5631d223a87b5542082b26f0cfa0e41d7f719
3
+ metadata.gz: 2dc9cd9b5198b405b48bb20f5e8c548c34317f1a3d8e0f381f083804025cb645
4
+ data.tar.gz: 18935269b599e66ada9d5d031579761cbfb1128452851c51b79a81ac6a34a749
5
5
  SHA512:
6
- metadata.gz: acb83d0690366234a774fdb9e982ab2d7ca16e36967a8aef313a4b69253b7c7464d336b466e3dd4e3a1eb4ee722c2dc8d5a275514d7a49cecfeb34ca2aa06820
7
- data.tar.gz: da811b26cd5f43678c28fbc76b4c6b17a23d5015b74aa58cbf16e736b301ea79ed2cc7c5acb8ccfa68bc9bcf0ba1f67e5a4178a10a803f6e699cd601b2bd4f74
6
+ metadata.gz: 2b263cb72d6ae7d8cf4893fd6521b124387681e21b13018faeafc176043b57c45c779b3b26a0807d568628f5b1ae9e999c8b05768a97674a56a824159aabdaee
7
+ data.tar.gz: 433e6ec8f1877aa7cdff54da99dee66c2bcf6de6351881eb341ac62d8948e6cdcecbe1534401bc636e3060c7b740f9f6b356fb03b8698ca4a9c10878dbf9766a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strum-service (0.0.3)
4
+ strum-service (0.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/strum/service.rb CHANGED
@@ -39,10 +39,10 @@ module Strum
39
39
  self._inputs = inputs.dup.freeze
40
40
  end
41
41
 
42
- def execute
42
+ def execute(&block)
43
43
  catch(:exit) do
44
44
  audit
45
- yield(self) if block_given?
45
+ instance_exec(self, &block) if block_given?
46
46
  call if valid?
47
47
  end
48
48
  valid? ? valid_result : invalid_result
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Strum
4
4
  module Service
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strum-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhiy Nazarov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-03-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Strum Service
14
14
  email: