italian-ruby 1.5.13 → 1.5.14
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/string.rb +32 -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: be5d5d79621b453d71b832c0d09cf8a04b60c2b79a4be65d8ad0778ff5f3bd4e
|
4
|
+
data.tar.gz: daf19d9ac81828facf5415bfdcaac729a87a059bcf652255d471204dde250356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c0e90e5cf18333962756c18c96fb2761b0fdee4defe06c9987e123faeee9a2a965a4bf1bb79400ca42861248e6b7a12e9c85af7ca23bb86fef0f2f857a17f8
|
7
|
+
data.tar.gz: 112c929041aed348b5ce32b4ff290fe0fa5851e28e386f7fcb58db4f0ccb20e24b3bd6093228a945198147676d4cc7a200fef9053f5b9c959c9b55c18621fa4e
|
@@ -100,6 +100,22 @@ class String
|
|
100
100
|
def in_data
|
101
101
|
return unless defined? Date
|
102
102
|
Date.parse self
|
103
|
+
.gsub(/gennaio/i, "JAN")
|
104
|
+
.gsub(/maggio/i, "MAY")
|
105
|
+
.gsub(/giugno/i, "JUN")
|
106
|
+
.gsub(/luglio/i, "JUL")
|
107
|
+
.gsub(/agosto/i, "AUG")
|
108
|
+
.gsub(/settembre/i, "SEP")
|
109
|
+
.gsub(/ottobre/i, "OCT")
|
110
|
+
.gsub(/dicembre/i, "DEC")
|
111
|
+
.gsub(/GEN/i, "JAN")
|
112
|
+
.gsub(/MAG/i, "MAY")
|
113
|
+
.gsub(/GIU/i, "JUN")
|
114
|
+
.gsub(/LUG/i, "JUL")
|
115
|
+
.gsub(/AGO/i, "AUG")
|
116
|
+
.gsub(/SET/i, "SEP")
|
117
|
+
.gsub(/OTT/i, "OCT")
|
118
|
+
.gsub(/DIC/i, "DEC")
|
103
119
|
end
|
104
120
|
|
105
121
|
##
|
@@ -107,6 +123,22 @@ class String
|
|
107
123
|
def in_tempo
|
108
124
|
return unless defined? Time
|
109
125
|
Time.parse self
|
126
|
+
.gsub(/gennaio/i, "JAN")
|
127
|
+
.gsub(/maggio/i, "MAY")
|
128
|
+
.gsub(/giugno/i, "JUN")
|
129
|
+
.gsub(/luglio/i, "JUL")
|
130
|
+
.gsub(/agosto/i, "AUG")
|
131
|
+
.gsub(/settembre/i, "SEP")
|
132
|
+
.gsub(/ottobre/i, "OCT")
|
133
|
+
.gsub(/dicembre/i, "DEC")
|
134
|
+
.gsub(/GEN/i, "JAN")
|
135
|
+
.gsub(/MAG/i, "MAY")
|
136
|
+
.gsub(/GIU/i, "JUN")
|
137
|
+
.gsub(/LUG/i, "JUL")
|
138
|
+
.gsub(/AGO/i, "AUG")
|
139
|
+
.gsub(/SET/i, "SEP")
|
140
|
+
.gsub(/OTT/i, "OCT")
|
141
|
+
.gsub(/DIC/i, "DEC")
|
110
142
|
end
|
111
143
|
|
112
144
|
##
|
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.5.
|
4
|
+
version: 1.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Ballardin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|