italian-ruby 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a91a0398d3e7987e8d3091e57631637d7a8cdc4d69c3d13276e8234665c956a
4
- data.tar.gz: 8ed0a455ecd787c62f779095b0475f8f721990eac6ca101654e62efc86df840b
3
+ metadata.gz: bed69f65ce97ddca798b585593d266f4981de8cd4cccf385faa5f0755295a4d7
4
+ data.tar.gz: 5c3e6705c863c6522db2ae12c34174202f7d19afc4274fb230b218df3407796d
5
5
  SHA512:
6
- metadata.gz: 73d493ac9eccfbed72ae192758f2c78779217a23ee62eb626a2aec24bb32f967952a9f0296e9d8a965b5f6b6fbe04db988d0b9e36919b7588d29890b64d1a9b4
7
- data.tar.gz: d1a97b16a594fa826f4a4957f131e858d6a812b97464d7595de808600fc06728edff25a8c91919ef92348ca767971b74de3f9e5bf18e194fca832f103ee6b457
6
+ metadata.gz: b9f5b6731fc64251b795d83bc99664fd6e0615d69bfded83ceab3450ccaa3cc90ea7fa453b57d34b37b0da66d8ea8e95325df57289252197e807d0ceda46985d
7
+ data.tar.gz: 51d138e5d8f08143d873dd1baf3bbdeca4e432840e4aa94a5ffc0fd079c1787e1abc117bcde508e4ca968848a771bab5420c9efdb7ac20d8b2c7d9cbf568e45a
@@ -25,6 +25,18 @@ class Date
25
25
  end
26
26
 
27
27
  ##
28
+ # Restituisce la data di inizio anno.
29
+ def inizio_anno
30
+ Date.new self.year, 1, 1
31
+ end
32
+
33
+ ##
34
+ # Restituisce la data di fine anno.
35
+ def fine_anno
36
+ Date.new self.year, 12, 31
37
+ end
38
+
39
+
28
40
  # Formatta la data secondo la rappresentazione passata.
29
41
  def formatta_locale(format)
30
42
  formattazione = strftime format
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSIONE = "1.2.8"
3
+ VERSIONE = "1.2.9"
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: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Ballardin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler