italian-ruby 1.1.1 → 1.2.4

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: 7d68a553838d25e66987fdfe7389fa82cefd6fd1cb4edb8209749113f972e644
4
- data.tar.gz: ddbfccb52ba45a6f18b7c8d717feb33ed122a033d8989d0b4a9122a8f1cc9100
3
+ metadata.gz: 56d468ed0d7bf7cd445b1ce6a7a9bcc771549212087ab95a4ed99f431358cd31
4
+ data.tar.gz: 652714dcf1cc0640078269fd8f1bc7f810c006ecb859beccac31d78b2da79559
5
5
  SHA512:
6
- metadata.gz: bfa8a802086a6b23fc24a29535e1c031771326933618f47e6cc309818759d7fcaaa32bb8ff5acf404f484c52472872d56fb96c4a101e664fe82b80713db96147
7
- data.tar.gz: 99d9326fcbaca9e9b711af733e828e7697c437506c71f77eb484a9915b75bed47e4563e9ed3685e5c9ff56bfaacbf695f7e1bb24b5ec1142d1d96cb9e83ebd4d
6
+ metadata.gz: 42c6477f7cb886de2ce67f08bc0213e2377ef3fd02832e511622e359bacc00786615021bcae23f1387b7c39b6a3e7d3044916cca73f8847ce78dd6b001d39c37
7
+ data.tar.gz: 1c4d335689ef410d07910ec469d8deae27aecf4b754054ea7299a4c8832cb2b34325f1b251bbdbf866da1bc1cc25afca6a2f822244d072c64465486841c745d2
@@ -1 +1 @@
1
- 2.7.2
1
+ 3.0.0
@@ -6,6 +6,8 @@ class Date
6
6
  class << self
7
7
  alias :oggi :today
8
8
  alias :converti :parse
9
+ alias :da_stringa :strptime
10
+ alias :deformatta :strptime
9
11
  end
10
12
 
11
13
  alias :anno_prossimo :next_year
@@ -14,6 +16,7 @@ class Date
14
16
  alias :in_stringa :to_s
15
17
  alias :in_data :to_date
16
18
  alias :in_tempo :to_time
19
+ alias :giorno :day
17
20
  alias :giorno_della_settimana :cwday
18
21
  alias :settimana :cweek
19
22
  alias :mese :month
@@ -25,5 +28,5 @@ class Date
25
28
 
26
29
  end
27
30
 
28
- Object.send :remove_const, :Data
31
+ Object.send :remove_const, :Data rescue nil
29
32
  Data = Date
@@ -9,7 +9,9 @@ class File
9
9
  alias :estensione :extname
10
10
  alias :esiste? :exists?
11
11
  alias :scrivi :write
12
+ alias :scrivi_binario :binwrite
12
13
  alias :leggi :read
14
+ alias :leggi_binario :binread
13
15
  alias :apri :open
14
16
  alias :cancella :unlink
15
17
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+ require "stringio"
2
3
 
3
4
  class String
4
5
  alias :congela :freeze
@@ -26,6 +27,8 @@ class String
26
27
  alias :rimpiazza :gsub
27
28
  alias :rimpiazza! :gsub!
28
29
  alias :scansiona :scan
30
+ alias :vuota? :empty?
31
+ alias :vuoto? :empty?
29
32
  alias :spoglia :strip
30
33
  alias :mastica :chomp
31
34
  alias :conteggio :count
@@ -40,4 +43,5 @@ class String
40
43
  alias :specificata? :esiste?
41
44
  end
42
45
 
43
- Stringa = String
46
+ Stringa = String
47
+ StringaIO = StringIO
@@ -108,7 +108,7 @@ class Array
108
108
 
109
109
  ##
110
110
  # Restituisce la lista togliendo gli ultimi n elementi.
111
- def tronca(n = 0)
111
+ def tronca(n = 1)
112
112
  self[0..(-1 - n)]
113
113
  end
114
114
 
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSIONE = "1.1.1"
3
+ VERSIONE = "1.2.4"
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.1.1
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Ballardin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-22 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -143,7 +143,7 @@ metadata:
143
143
  homepage_uri: https://github.com/Pluvie/italian-ruby
144
144
  source_code_uri: https://github.com/Pluvie/italian-ruby
145
145
  changelog_uri: https://github.com/Pluvie/italian-ruby/CHANGELOG.md
146
- post_install_message:
146
+ post_install_message:
147
147
  rdoc_options: []
148
148
  require_paths:
149
149
  - lib
@@ -158,8 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.1.4
162
- signing_key:
161
+ rubygems_version: 3.2.3
162
+ signing_key:
163
163
  specification_version: 4
164
164
  summary: Program in Ruby writing in Italian.
165
165
  test_files: []