italian-ruby 0.4.2 → 0.4.3

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: 315bfdae9318cce316a19c36d7f40150e01ca6f77f8a306f1dcbf8f765f1af8c
4
- data.tar.gz: 3f2bcc14489b435c7ed14508137c75d147df51e7d2c360f67e9f695dcb856a44
3
+ metadata.gz: 63d4be9ec90f2464acac56774db6c9e9470f8223234bc41dc197e06075f048db
4
+ data.tar.gz: 5b4617a2e1800f11d3dd878bd0665f9be347295f0cac922f5293d8cad91fa99f
5
5
  SHA512:
6
- metadata.gz: 1e585308df2c475259efcd34375eb9d9e7008df13aa382df1d6e586345e3167ec425b2515ba51ab8f0212e9713370463029978de816f18cc1a549f2aa2e1771a
7
- data.tar.gz: cc2d71ff81b5c9ffb85f3f7f4d479205b37005623a36d4e3f7fc7f54ac5db68a8e924b7940723848ea1e7d99c41ae70921a464600446fb7f3c2a1eac4205ef95
6
+ metadata.gz: d87c01c0c0adc6658daac7e27cf60513cce48a72e38c5d5abebb3440d1ec41c9d538c5dbac818fc8a50bb8e121871e2f396ab9f41453d28b3413d9b7aae095bd
7
+ data.tar.gz: 73fc374438b587e3fe26df56c88ba00f418b88840990f8f34b1d243a2e29a2fd40907e58c47e52c65f73ec89461bc4d5daf7825c2c4e5b2f3addf6179b8c2841
@@ -105,7 +105,15 @@ class Array
105
105
  end
106
106
 
107
107
  def mappa_e_rimuovi_duplicati(&block)
108
- self.map(&block).uniq
108
+ self.map.with_index(&block).uniq
109
+ end
110
+
111
+ def mappa_e_compatta(&block)
112
+ self.map.with_index(&block).compact
113
+ end
114
+
115
+ def mappa_e_appiattisci(&block)
116
+ self.map.with_index(&block).flatten
109
117
  end
110
118
 
111
119
  def in_mappa(&block)
@@ -23,11 +23,13 @@ module Hanami
23
23
 
24
24
  class Result
25
25
  alias :riuscito? :successful?
26
+ alias :riuscita? :successful?
26
27
  alias :errore :error
27
28
 
28
29
  def fallito?
29
30
  !successful?
30
31
  end
32
+ alias :fallita? :fallito?
31
33
  end
32
34
 
33
35
  Risultato = Result
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
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.4.2
4
+ version: 0.4.3
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-04-30 00:00:00.000000000 Z
11
+ date: 2020-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2ruby