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 +4 -4
- data/lib/italian/ruby/metodi/date.rb +12 -0
- data/lib/italian/ruby/versione.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed69f65ce97ddca798b585593d266f4981de8cd4cccf385faa5f0755295a4d7
|
4
|
+
data.tar.gz: 5c3e6705c863c6522db2ae12c34174202f7d19afc4274fb230b218df3407796d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|