italian-ruby 0.5.1 → 0.5.6

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: 1ee3aa7ec2ecef44b615e39a58fcbbd6a71584a45dd58a13464a7564f850b369
4
- data.tar.gz: f4e1d6bf496ed85d7c7722b22eb20ede722b1fe3585c27d0b007691a87bc8be8
3
+ metadata.gz: a47b20a2912ff270ad8b83d631bf1a437eea9eb2c367b6809c6d829c85d1e69e
4
+ data.tar.gz: f7709de47c6be3b7f6e556e648b6a26eee5c2ffb5793114bd218ee2676a0a457
5
5
  SHA512:
6
- metadata.gz: 1c04c908e5fe5cc44c0881007d114a38ed5bc5374e27ec464301f2e4a8b4bfb6f477161501aadc4af6a17d198a3da43257664b4db04f08751c3ab7953984da9b
7
- data.tar.gz: 0a45bd6fd411f7afe51d96b201ccf72f1f39da45521dceea2da8a5ace48354d018abceb9e7bc04a88a8e9ee0045263b4f9e3274eb2b8708ff00c265eff7d4dcb
6
+ metadata.gz: c7e786fec2ee190262bfd6ffbf656e7b42c8387ee655af2de4f972fa8b1bb7542c4ce0242b080c15c3a899b321df8c1b05eac4b6f39889693a1d40a229c493c0
7
+ data.tar.gz: 8346efc39ad5ab24874dac817e3dff5eebd303984048745dda419fd32d17ec2084ec2f01d2e326c345dcf4b661ae2192af6210e48afb54cbf1db8ca08beba8fb
@@ -51,7 +51,9 @@ class Array
51
51
  alias :trova :find
52
52
  alias :cerniera :zip
53
53
  alias :ordina :sort
54
+ alias :ordina! :sort!
54
55
  alias :ordina_per :sort_by
56
+ alias :ordina_per! :sort_by!
55
57
  alias :raggruppa_per :group_by
56
58
  alias :indice :index
57
59
  alias :indice_da_destra :rindex
@@ -9,6 +9,14 @@ class Date
9
9
  class << self
10
10
  alias :oggi :today
11
11
  alias :converti :parse
12
+
13
+ def domani
14
+ oggi + 1
15
+ end
16
+
17
+ def ieri
18
+ oggi - 1
19
+ end
12
20
  end
13
21
 
14
22
  alias :anno_prossimo :next_year
@@ -21,6 +29,7 @@ class Date
21
29
  def due_anni_fa
22
30
  self.prev_year.prev_year
23
31
  end
32
+ alias :due_anni_precedenti :due_anni_fa
24
33
  end
25
34
 
26
35
  Data = Date
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.6"
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.5.1
4
+ version: 0.5.6
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-05 00:00:00.000000000 Z
11
+ date: 2020-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2ruby