italian-ruby 0.7.3 → 0.7.8

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: 5e15f6f86b0961ca74ad83f10083f4c6fe2cdaff1d3d7285af51ff1d15f1a3ff
4
- data.tar.gz: c1d4294786b4604dc750b0faa3881088b6d49e7df4bc1b5ef638baf589607b91
3
+ metadata.gz: db94c4fdebc873de37ee6c25df7c332498b395fb49eaa7927dc9407d55c718ae
4
+ data.tar.gz: 342b56a07bc259b6ad3ffb1bfd7cd0c0da2681fc0d38d7baaa34e45f5df0ed30
5
5
  SHA512:
6
- metadata.gz: e5945be346028fc2dbebb5a5b20b7c61da3954733a4a9b6d8d3b3d8955eb7a09f65562896fc02bd1350b65fd9b872eba41c22e6c9893e7bc72036dd5eee3f480
7
- data.tar.gz: f84419f5ddff172b0831ab9326178be0ef95f9c4f2a468aab422bf704eaa28818fd39ee21c063c430eddf9db023a8387eba468b2d446a6c22b9a6b16c48a4634
6
+ metadata.gz: 57856bc3289204ac11603bb40a9a7dd00577edf263d38a8eb18978477d8f332d49004383716314889bf2a324bf27adbe4f28879c5555dd45697b99f6ff559836
7
+ data.tar.gz: 9936648d6bb241253472d892d71c56774fdc4d3d9bb2a703d5d3a3d817b4017b4d792d545e60e2336944b1118d56fd7da6d32dd6870d16bdb12befb83dc1ea1a
@@ -11,6 +11,8 @@ require_relative "core_ext/kernel"
11
11
  require_relative "core_ext/proc"
12
12
  require_relative "core_ext/errors"
13
13
  require_relative "core_ext/nil_class"
14
+ require_relative "core_ext/false_class"
15
+ require_relative "core_ext/true_class"
14
16
  require_relative "core_ext/json"
15
17
  require_relative "core_ext/object"
16
18
  require_relative "core_ext/array"
@@ -0,0 +1,6 @@
1
+ ##
2
+ # Core Ext - False Class
3
+
4
+ class FalseClass
5
+ alias :in_stringa :to_s
6
+ end
@@ -5,6 +5,7 @@
5
5
 
6
6
  class File
7
7
  class << self
8
+ alias :espandi :expand_path
8
9
  alias :nome_file :basename
9
10
  alias :nome_cartella :dirname
10
11
  alias :esiste? :exists?
@@ -14,4 +15,9 @@ class File
14
15
 
15
16
  alias :scrivi :write
16
17
  alias :stampa :puts
18
+
19
+ def self.percorso_non_tradotto(path)
20
+ return path unless path.respond_to? :partition
21
+ path.partition(".italian-ruby/translations").last
22
+ end
17
23
  end
@@ -6,6 +6,10 @@ module BSON
6
6
 
7
7
  alias :in_stringa :to_s
8
8
 
9
+ def in_id
10
+ self
11
+ end
12
+
9
13
  def to_json(*args)
10
14
  "\"#{self.to_s}\""
11
15
  end
@@ -13,7 +13,6 @@ class Hash
13
13
  alias :vuoto? :empty?
14
14
  alias :vuota? :empty?
15
15
  alias :ha_chiave? :has_key?
16
- alias :ottieni :fetch
17
16
  alias :prendi :fetch
18
17
  alias :deposita :store
19
18
  alias :scava :dig
@@ -0,0 +1,6 @@
1
+ ##
2
+ # Core Ext - True Class
3
+
4
+ class TrueClass
5
+ alias :in_stringa :to_s
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.8"
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: 0.7.3
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Ballardin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-26 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,6 +78,7 @@ files:
78
78
  - lib/italian/ruby/core_ext/date.rb
79
79
  - lib/italian/ruby/core_ext/enumerator.rb
80
80
  - lib/italian/ruby/core_ext/errors.rb
81
+ - lib/italian/ruby/core_ext/false_class.rb
81
82
  - lib/italian/ruby/core_ext/file.rb
82
83
  - lib/italian/ruby/core_ext/float.rb
83
84
  - lib/italian/ruby/core_ext/gems/bson.rb
@@ -99,6 +100,7 @@ files:
99
100
  - lib/italian/ruby/core_ext/string.rb
100
101
  - lib/italian/ruby/core_ext/symbol.rb
101
102
  - lib/italian/ruby/core_ext/time.rb
103
+ - lib/italian/ruby/core_ext/true_class.rb
102
104
  - lib/italian/ruby/errore.rb
103
105
  - lib/italian/ruby/traduttore.rb
104
106
  - lib/italian/ruby/utils/debug.rb