italian-ruby 0.8.6 → 0.8.7

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: 27e0f8311e6c0afdd408d26bba2b2924193ca62016024fbc00c74b12ef26b253
4
- data.tar.gz: 86e565d946be4c77fa45b5c77c2fc47320fa57ac329131b2885d226beb4e6916
3
+ metadata.gz: 83284550d7e3870fcb441f11d5a0ddec4823c6eb230f1416ce9895e246748782
4
+ data.tar.gz: 56b67fa379e306eb12ee16fe129019db57092820f412897191a9047b1dbcee22
5
5
  SHA512:
6
- metadata.gz: e56cb01b18175ba4b561641904772363877a9ad041d1b28dc3d1fc1e5ae7856a3554e34660afec0e03978f031393ba8aba3e5b962b66e145b7c5d8c33b5f9bf5
7
- data.tar.gz: 695c312163d2d1fd484c2da2d0331e111ee907e677210a1d0d8f33cab0f810fc1fe6aa55f130d86637b40d005ccd698a8ff6adc5448b52737456edd97b9488b8
6
+ metadata.gz: '0852d6a8a169ae6b2421d6c9df88595eca1dbd62588c874d597053541441736b62d798385bdbff233b8f19c49e86584bbe326b6693224864e2babb40e4b5fed1'
7
+ data.tar.gz: d5214dafb0d58cfeb16f6f1927d5ba17796cd932b361ecea13dc18595760eed35437bcf28e6b8b3095833d0dd51348f2e754835c64f418980b7c5d7360bad1e3
@@ -32,6 +32,12 @@ class Date
32
32
  self.prev_year.prev_year
33
33
  end
34
34
  alias :due_anni_precedenti :due_anni_fa
35
+
36
+ alias :original_compare :==
37
+ def ==(other)
38
+ return (self == other.to_date) if other.is_a? Time
39
+ original_compare other
40
+ end
35
41
  end
36
42
 
37
43
  Data = Date
@@ -21,6 +21,12 @@ class Time
21
21
  def in_tempo
22
22
  self
23
23
  end
24
+
25
+ alias :original_compare :==
26
+ def ==(other)
27
+ return (self.to_date == other) if other.is_a? Date
28
+ original_compare other
29
+ end
24
30
  end
25
31
 
26
32
  Tempo = Time
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSION = "0.8.6"
3
+ VERSION = "0.8.7"
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.8.6
4
+ version: 0.8.7
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-06-24 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler