italian-ruby 1.5.7 → 1.5.10

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: 016a6983b314af9117d1b56352497033b1ac218cdf73fd069ca1d96df06e41dd
4
- data.tar.gz: 66640d0d6e25d075da48852ced76d3195b243d7129c280bf089442ba8850b528
3
+ metadata.gz: 07e2d1266ce1d3159f91925e42ab94016bb26900dce4108ac0e6b2b1582344df
4
+ data.tar.gz: 685900e39e6d5ad3283eeff8685504fe44c265bcf33e34964d2183452008993f
5
5
  SHA512:
6
- metadata.gz: bfeaf4f849af30f08bbdcc4ebc0129d084920809e4a85de7eccc5b49771149dfabc0f4ad3db1136944c4b439f37e793d0f3a07c9ac7fa17acb284f222397f600
7
- data.tar.gz: c4c3ee75472b2d8a74728a6f85a0a3534cb899faf75bfe15d27b4cd779809a1915959e373326d5494b0c4ff7a6f59ed63d8fce4143128ba1ffe8f684b76e8031
6
+ metadata.gz: 6e5c01e9fcd69bbb7ab43f71bd8420d8c1ad7c4e4d339a1f7561161c4bac6729474df3613b44b5ea773b1ff8d3c8504e73107f0abafaf85258850d22b1bae1b1
7
+ data.tar.gz: f50ec212c42a8f94925edda1bb903ae9491bca2c4358e577dca1c658cbfa7b11d4f7b4a1a10e3e67d458901845b733b66b9753cb6916fe087ff92d313e3d2ec5
data/install.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require "fileutils"
2
+ FileUtils.mkdir_p "pkg"
3
+
1
4
  require_relative "lib/italian/ruby/versione"
2
5
  versione = Italian::Ruby::VERSIONE
3
6
 
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Dir
4
+
5
+ class << self
6
+ alias :ricerca :glob
7
+ alias :esiste? :exists?
8
+ end
9
+
10
+ end
11
+
12
+ Cartella = Dir
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FileUtils
4
+
5
+ class << self
6
+ alias :crea_cartella :mkdir_p
7
+ end
8
+
9
+ end
10
+
11
+ UtilitàArchivi = FileUtils
@@ -4,10 +4,12 @@ require_relative "alias/array"
4
4
  require_relative "alias/binding"
5
5
  require_relative "alias/class"
6
6
  require_relative "alias/date"
7
+ require_relative "alias/dir"
7
8
  require_relative "alias/enumerator"
8
9
  require_relative "alias/error"
9
10
  require_relative "alias/false_class"
10
11
  require_relative "alias/file"
12
+ require_relative "alias/file_utils"
11
13
  require_relative "alias/float"
12
14
  require_relative "alias/hash"
13
15
  require_relative "alias/integer"
@@ -28,7 +28,7 @@ class Array
28
28
  pacchetto = [ elemento ]
29
29
  indice += avanzamento
30
30
  indice = da if indice_elemento == conteggio - 1
31
- yield pacchetto, indice_elemento, conteggio if block_given?
31
+ yield pacchetto, indice_elemento + 1, conteggio if block_given?
32
32
  end
33
33
  else
34
34
  avanzamento = conteggio / da.in_decimale
@@ -8,6 +8,12 @@ module JSON
8
8
  self.parse(*args)
9
9
  end
10
10
 
11
+ ##
12
+ # Processa la stringa come JSON, simbolizzando il risultato.
13
+ def self.simbolizza(*args)
14
+ self.parse(*args).simbolizza
15
+ end
16
+
11
17
  ##
12
18
  # Converte l'oggetto in una stringa JSON.
13
19
  def self.in_stringa(*args)
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSIONE = "1.5.7"
3
+ VERSIONE = "1.5.10"
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.5.7
4
+ version: 1.5.10
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-01-12 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,10 +81,12 @@ files:
81
81
  - lib/italian/ruby/alias/binding.rb
82
82
  - lib/italian/ruby/alias/class.rb
83
83
  - lib/italian/ruby/alias/date.rb
84
+ - lib/italian/ruby/alias/dir.rb
84
85
  - lib/italian/ruby/alias/enumerator.rb
85
86
  - lib/italian/ruby/alias/error.rb
86
87
  - lib/italian/ruby/alias/false_class.rb
87
88
  - lib/italian/ruby/alias/file.rb
89
+ - lib/italian/ruby/alias/file_utils.rb
88
90
  - lib/italian/ruby/alias/float.rb
89
91
  - lib/italian/ruby/alias/hash.rb
90
92
  - lib/italian/ruby/alias/integer.rb