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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8201761ef830eb2f830fdcef288880b52347dfacd229bccf22ed54bbcdb38b2d
4
- data.tar.gz: 8b53619d9859ffc5a55dcf227fdb9da6dbe160c804e1707e69392f419636fdef
3
+ metadata.gz: 2a1745c6506f188cea1772c7b58dee7123a4c4e1aadfff77ea282c605e0b4627
4
+ data.tar.gz: f74f9228749e3d66d6806b8bf925e5b841722cafa98f98b7353d9dc53a366a0f
5
5
  SHA512:
6
- metadata.gz: c5eed30b380d9d3b42b2a88761fad7218bb49f6f0019c8aa0f380165ecd68c186f29e8a9f614a77b6d772b27903a1a47bec67287aad7d3e41aff712a211c3c74
7
- data.tar.gz: 8031a60c7ce2b47124ef98ed45ededd6626aa6705e97bdb7e888ae582d2b52b1409e69d9377d55f1213cd8295e120a2cb424f8bfc7b21a590882f8d5a8885fcd
6
+ metadata.gz: 87336931ed2cb97aac66532e4d2646d0f51302785237510578a0e0722408f12101b21b90da70f4caeddfaa1de0def129a66189c742593260bdf1492eafa6b456
7
+ data.tar.gz: 796e283c638fa922fa333cba5ec389d08e059372578f924dcb3ff8340c9c156470b0e7d0cf23d981105a6444d9ce21da8a0542e8953461dbd86e80d3f0957a00
@@ -18,5 +18,6 @@ class Class
18
18
  alias :apri_classe :class_eval
19
19
  alias :valuta_in_classe :class_eval
20
20
  alias :moduli_inclusi :included_modules
21
+ alias :metodo_istanza :instance_method
21
22
 
22
23
  end
@@ -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?
@@ -3,6 +3,7 @@
3
3
  module Kernel
4
4
 
5
5
  alias :classe :class
6
+ alias :metodo :method
6
7
  alias :contesto :binding
7
8
  alias :traccia_chiamante :caller_locations
8
9
  alias :variabili_istanza :instance_variables
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Method
4
+
5
+ alias :locazione_sorgente :source_location
6
+
7
+ end
8
+
9
+ class UnboundMethod
10
+
11
+ alias :locazione_sorgente :source_location
12
+
13
+ end
@@ -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"
@@ -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.4"
3
+ VERSIONE = "1.5.2"
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.4
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-10-20 00:00:00.000000000 Z
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