italian-ruby 0.9.15 → 0.9.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cbaae2ffc707e561b3ad4047bf75345cbad4a2d88d99c121c1c7504389bc2a0
4
- data.tar.gz: c390ea6dd47d83624bf41211eb7ecdb9396c1cad352ed0c793807ce04f5a4c6f
3
+ metadata.gz: 57478929b50282fa000339fec8d9357991d5d393a06f7ccdfacf0f1288bf9ff4
4
+ data.tar.gz: 78f6a2a4fff16dbb06951de926cebaa6fcdfc4372df81805fe19b849193248c9
5
5
  SHA512:
6
- metadata.gz: 6d3ecc6f3c80870d563182f6278a256ec35e674a4751c01c9dc9ebf3f0bc3fbe6ad0455aa7bf771fc5ea4733f2deeb6d7ff45e47859a07590eee441c65319d2d
7
- data.tar.gz: 99840b8a50262461cc7e56ea05341a97e77d56f58f479aa44d75ff75870979fbbbbbc3dda6164e4df5378ed0809082216b2852ec76346ee3832422e6a8010bb9
6
+ metadata.gz: '0280f2c8e7afb97ea0b303f216b54c83da0ce24df95219b1f5dff417ae0630be46b70223a0172328c104cacc8a5485a0323a1fabe687ae882f9e87b9d7485ee3'
7
+ data.tar.gz: 02acc4e6971374f277c3311360421a0336a4370914bd28a16123bc5bd7a841e205192a94076ba5ead4e7e5a36e2f088cc399c6706176aed83b36ec06c745159d
@@ -9,16 +9,42 @@ module Hanami
9
9
  alias :errore! :error!
10
10
  alias :errore :error
11
11
 
12
+ def termina!
13
+ throw :stop
14
+ end
15
+
12
16
  module LegacyInterface
13
17
  def chiama
14
18
  _call { super }
15
19
  end
20
+
21
+ def _call
22
+ catch :fail do
23
+ catch :stop do
24
+ validate!
25
+ yield
26
+ end
27
+ end
28
+
29
+ _prepare!
30
+ end
16
31
  end
17
32
  module Interface
18
33
  def chiama(*args)
19
34
  @__result = ::Hanami::Interactor::Result.new
20
35
  _call(*args) { super }
21
36
  end
37
+
38
+ def _call(*args)
39
+ catch :fail do
40
+ catch :stop do
41
+ validate!(*args)
42
+ yield
43
+ end
44
+ end
45
+
46
+ _prepare!
47
+ end
22
48
  end
23
49
 
24
50
  class Result
@@ -76,6 +76,10 @@ class Hash
76
76
  end
77
77
  copy
78
78
  end
79
+
80
+ def esponi(*keys)
81
+ self.select { |key, value| key.in? keys }
82
+ end
79
83
  end
80
84
 
81
- Mappa = Hash
85
+ Mappa = Hash
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSION = "0.9.15"
3
+ VERSION = "0.9.16"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: italian-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.15
4
+ version: 0.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Ballardin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-30 00:00:00.000000000 Z
11
+ date: 2020-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler