italian-ruby 1.4.4 → 1.5.2
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/alias/class.rb +1 -0
- data/lib/italian/ruby/alias/file.rb +1 -1
- data/lib/italian/ruby/alias/kernel.rb +1 -0
- data/lib/italian/ruby/alias/method.rb +13 -0
- data/lib/italian/ruby/alias.rb +1 -0
- data/lib/italian/ruby/metodi/json.rb +10 -0
- data/lib/italian/ruby/metodi/time.rb +14 -1
- data/lib/italian/ruby/versione.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1745c6506f188cea1772c7b58dee7123a4c4e1aadfff77ea282c605e0b4627
|
4
|
+
data.tar.gz: f74f9228749e3d66d6806b8bf925e5b841722cafa98f98b7353d9dc53a366a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87336931ed2cb97aac66532e4d2646d0f51302785237510578a0e0722408f12101b21b90da70f4caeddfaa1de0def129a66189c742593260bdf1492eafa6b456
|
7
|
+
data.tar.gz: 796e283c638fa922fa333cba5ec389d08e059372578f924dcb3ff8340c9c156470b0e7d0cf23d981105a6444d9ce21da8a0542e8953461dbd86e80d3f0957a00
|
data/lib/italian/ruby/alias.rb
CHANGED
@@ -14,6 +14,7 @@ require_relative "alias/integer"
|
|
14
14
|
require_relative "alias/io"
|
15
15
|
require_relative "alias/kernel"
|
16
16
|
require_relative "alias/main"
|
17
|
+
require_relative "alias/method"
|
17
18
|
require_relative "alias/module"
|
18
19
|
require_relative "alias/nil_class"
|
19
20
|
require_relative "alias/numeric"
|
@@ -20,7 +20,20 @@ class Time
|
|
20
20
|
if defined? I18n
|
21
21
|
I18n.l self, format: format
|
22
22
|
else
|
23
|
-
strftime format
|
23
|
+
formattazione = strftime format
|
24
|
+
formattazione
|
25
|
+
.gsub(/January/i, "Gennaio")
|
26
|
+
.gsub(/February/i, "Febbraio")
|
27
|
+
.gsub(/March/i, "Marzo")
|
28
|
+
.gsub(/April/i, "Aprile")
|
29
|
+
.gsub(/May/i, "Maggio")
|
30
|
+
.gsub(/June/i, "Giugno")
|
31
|
+
.gsub(/July/i, "Luglio")
|
32
|
+
.gsub(/August/i, "Agosto")
|
33
|
+
.gsub(/September/i, "Settembre")
|
34
|
+
.gsub(/October/i, "Ottobre")
|
35
|
+
.gsub(/November/i, "Novembre")
|
36
|
+
.gsub(/December/i, "Dicembre")
|
24
37
|
end
|
25
38
|
end
|
26
39
|
|
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.
|
4
|
+
version: 1.5.2
|
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-
|
11
|
+
date: 2021-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/italian/ruby/alias/io.rb
|
92
92
|
- lib/italian/ruby/alias/kernel.rb
|
93
93
|
- lib/italian/ruby/alias/main.rb
|
94
|
+
- lib/italian/ruby/alias/method.rb
|
94
95
|
- lib/italian/ruby/alias/module.rb
|
95
96
|
- lib/italian/ruby/alias/nil_class.rb
|
96
97
|
- lib/italian/ruby/alias/numeric.rb
|