italian-ruby 1.4.5 → 1.5.3

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: 8675ad0c3d0ccafb5301dab91db17a328ab2990ae1b8c2d8034325a796cb730a
4
- data.tar.gz: 1736fe24110dfa5deeac1c218402121a267987cd43d5b038a066ca2aa652a2e1
3
+ metadata.gz: 842d190a74cdee51fa6df713f0333ea77d720fcf306e33f80a0b679d7c5c5368
4
+ data.tar.gz: 88faa3868b041267798f4150138aea7923c66ae8248d5d9380e66c37fc08c5c3
5
5
  SHA512:
6
- metadata.gz: 14b74aa8d07c9edfbddea88451727d3bbb5cdfbcd11f4d3b67dd7e6f827d73e33471f95edfed99ca45220c69cc3e3346d6d38e419b91aaa53eaa30d40d6e9c32
7
- data.tar.gz: bd1612c49558693d72da92be8a8a39bce1efae7759aebbe0c3a0b9efed4e1e793095b90e2594baaa2af0e8b8e1c5cf1ee14b115a174c0a90efb148fd2a248314
6
+ metadata.gz: 811fc9e4d55c2d9d386b79a026d81051d3e328c477b8a433d79eedd2266250e1346fe871fdfce96ffaa512bc2eb472e601f52c1d59f4c57512e710fab316a7cb
7
+ data.tar.gz: 8b2279c79e6c2f573a4334949bdc2345b0725d575c81deab0eb08fb4f6ea07d203efa35e9711c067ede8790de6f9f7741c69bdee1bbdfcfe2c6779807efac947
@@ -4,7 +4,7 @@ class File
4
4
 
5
5
  class << self
6
6
  alias :espandi :expand_path
7
- alias :nome_file :basename
7
+ alias :nome_base :basename
8
8
  alias :nome_cartella :dirname
9
9
  alias :estensione :extname
10
10
  alias :esiste? :exists?
@@ -46,6 +46,13 @@ class Date
46
46
  def formatta_locale(format)
47
47
  formattazione = strftime format
48
48
  formattazione
49
+ .gsub(/Monday/i, "Lunedì")
50
+ .gsub(/Tuesday/i, "Martedì")
51
+ .gsub(/Wednesday/i, "Mercoledì")
52
+ .gsub(/Thursday/i, "Giovedì")
53
+ .gsub(/Friday/i, "Venerdì")
54
+ .gsub(/Saturday/i, "Sabato")
55
+ .gsub(/Sunday/i, "Domenica")
49
56
  .gsub(/January/i, "Gennaio")
50
57
  .gsub(/February/i, "Febbraio")
51
58
  .gsub(/March/i, "Marzo")
@@ -14,4 +14,14 @@ module JSON
14
14
  self.dump(*args)
15
15
  end
16
16
 
17
+ ##
18
+ # Genera un JSON ben formattato per l'oggetto.
19
+ def self.formatta(*args)
20
+ self.pretty_generate(*args)
21
+ end
22
+
23
+ class << self
24
+ alias :elabora :processa
25
+ end
26
+
17
27
  end
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSIONE = "1.4.5"
3
+ VERSIONE = "1.5.3"
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.4.5
4
+ version: 1.5.3
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-10-21 00:00:00.000000000 Z
11
+ date: 2021-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler