italian-ruby 0.4.5 → 0.5.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c77f39448fe83e2f6db6bac2b48e2c838c8d16f0b7bdb7cf0e8ceec8caa0a84
|
4
|
+
data.tar.gz: 9716b4baf88e939739024ed29f110098b6f8c12aa23f141673cf8bc28a8075fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc166dc16660b4407564e5cadf67499cf744c2131e1b203ff53586f5bde2b0958a78cc795b3b49e5d03a5376eab74927563ffcb70eff1e6c46fc88d87877484b
|
7
|
+
data.tar.gz: c5c0803c4b4b0482b05e566e738e7cbb8fe5b890d477ab773b66f37107a8808c739fc65f049b4fb176d82b7e89449f5201d0d25c1e191d693a19b35a2f0581cd
|
@@ -52,6 +52,7 @@ class Array
|
|
52
52
|
alias :cerniera :zip
|
53
53
|
alias :ordina :sort
|
54
54
|
alias :ordina_per :sort_by
|
55
|
+
alias :ordina_per! :sort_by!
|
55
56
|
alias :raggruppa_per :group_by
|
56
57
|
alias :indice :index
|
57
58
|
alias :indice_da_destra :rindex
|
@@ -64,6 +65,8 @@ class Array
|
|
64
65
|
alias :inietta :inject
|
65
66
|
alias :alla_posizione :at
|
66
67
|
alias :somma :sum
|
68
|
+
alias :rovescia :reverse
|
69
|
+
alias :inverti :reverse
|
67
70
|
|
68
71
|
def esiste?
|
69
72
|
!nil? && !empty?
|
@@ -5,6 +5,9 @@ module RSpec
|
|
5
5
|
def self.descrivi(*args, &block)
|
6
6
|
describe *args, &block
|
7
7
|
end
|
8
|
+
def self.variabili_condivise(*args, &block)
|
9
|
+
shared_context *args, &block
|
10
|
+
end
|
8
11
|
|
9
12
|
##
|
10
13
|
# Core
|
@@ -19,6 +22,10 @@ module RSpec
|
|
19
22
|
def risposta(*args, &block)
|
20
23
|
last_response *args, &block
|
21
24
|
end
|
25
|
+
|
26
|
+
class << self
|
27
|
+
alias :includi_variabili :include_context
|
28
|
+
end
|
22
29
|
end
|
23
30
|
|
24
31
|
module Hooks
|
@@ -45,6 +52,9 @@ module RSpec
|
|
45
52
|
alias :di :by
|
46
53
|
alias :da :from
|
47
54
|
end
|
55
|
+
class Equal
|
56
|
+
alias :o :or
|
57
|
+
end
|
48
58
|
class ChangeFromValue
|
49
59
|
alias :a :to
|
50
60
|
end
|
@@ -124,7 +134,11 @@ end
|
|
124
134
|
|
125
135
|
RSpec.configure do |config|
|
126
136
|
RSpec::Matchers.alias_matcher :sia, :be
|
137
|
+
RSpec::Matchers.alias_matcher :siano, :be
|
138
|
+
RSpec::Matchers.alias_matcher :tutti, :all
|
139
|
+
RSpec::Matchers.alias_matcher :tutte, :all
|
127
140
|
RSpec::Matchers.alias_matcher :equivalga_a, :eq
|
141
|
+
RSpec::Matchers.alias_matcher :equivalgano_a, :eq
|
128
142
|
RSpec::Matchers.alias_matcher :alzi_errore, :raise_error
|
129
143
|
RSpec::Matchers.alias_matcher :riceva, :receive
|
130
144
|
RSpec::Matchers.alias_matcher :abbia_ricevuto, :have_received
|
@@ -20,7 +20,9 @@ class Hash
|
|
20
20
|
alias :fondi :merge
|
21
21
|
alias :fondi! :merge!
|
22
22
|
alias :trasforma_chiavi :transform_keys
|
23
|
+
alias :trasforma_chiavi! :transform_keys!
|
23
24
|
alias :trasforma_valori :transform_values
|
25
|
+
alias :trasforma_valori! :transform_values!
|
24
26
|
alias :seleziona :select
|
25
27
|
alias :seleziona! :select!
|
26
28
|
alias :scarta :reject
|
data/lib/italian/ruby/version.rb
CHANGED
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
|
4
|
+
version: 0.5.4
|
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-05-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby2ruby
|