italian-ruby 0.8.12 → 0.8.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a30ccf4c28429aeeeaf50c5b890a1e02824c788aac766ce8c239133c3a474972
|
4
|
+
data.tar.gz: 8c75a5a933e2d4e0a53ec9843e579c200973a6a0373b21a4a69c2c8d800e6fee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da61a2cd14e6f985b40dcbaee176662a86d3c1b1481cbc04aec10418ab5eee289909c65d9a7ba3c5a04884694f3ef70a6e991fa6178f4c9c1e145ea1249f9de2
|
7
|
+
data.tar.gz: 299e9914b284b993fec427a89f2f6025144485bd504dac6055cdda2c6cf107254a657c64a725a390e280f41ff503adf2c96c09c1f0081fd4203aa3f430fd728e
|
@@ -70,6 +70,8 @@ class Array
|
|
70
70
|
alias :inverti :reverse
|
71
71
|
alias :lista :entries
|
72
72
|
alias :affetta :slice
|
73
|
+
alias :salta_i_primi :drop
|
74
|
+
alias :salta_le_prime :drop
|
73
75
|
|
74
76
|
def esiste?
|
75
77
|
!nil? && !empty?
|
@@ -138,4 +140,4 @@ class Array
|
|
138
140
|
alias :seconda :secondo
|
139
141
|
end
|
140
142
|
|
141
|
-
Lista = Array
|
143
|
+
Lista = Array
|
@@ -60,7 +60,7 @@ module Kernel
|
|
60
60
|
end
|
61
61
|
raise LoadError.new("cannot load such directory -- #{dir}") unless Dir.exist? caller_location_dir
|
62
62
|
|
63
|
-
Dir["#{caller_location_dir}/**/*.ir"].each do |file|
|
63
|
+
Dir["#{caller_location_dir}/**/*.ir"].sort_by { |file| file.count("/") }.each do |file|
|
64
64
|
richiedi_assoluto file
|
65
65
|
end
|
66
66
|
end
|
@@ -108,4 +108,4 @@ module Kernel
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
|
-
end
|
111
|
+
end
|
@@ -9,6 +9,8 @@ class String
|
|
9
9
|
alias :in_simbolo :to_sym
|
10
10
|
alias :in_stringa :to_s
|
11
11
|
alias :in_numero :to_i
|
12
|
+
alias :in_intero :to_i
|
13
|
+
alias :in_decimale :to_f
|
12
14
|
alias :dividi :split
|
13
15
|
alias :maiuscola :upcase
|
14
16
|
alias :maiuscolo :upcase
|
@@ -55,4 +57,4 @@ class String
|
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
|
-
Stringa = String
|
60
|
+
Stringa = String
|
data/lib/italian/ruby/version.rb
CHANGED
data/vim/syntax/ir.vim
CHANGED
@@ -8,7 +8,7 @@ if exists("b:current_syntax")
|
|
8
8
|
endif
|
9
9
|
|
10
10
|
syn match italianRubyKeyword /\v(\s)*(classe|modulo|esegui|fine)(\s|$)/
|
11
|
-
syn match italianRubyKeyword /\v(\s)*(se|allora|altrimenti|altrimenti_se|considera|quando|
|
11
|
+
syn match italianRubyKeyword /\v(\s)*(se|allora|altrimenti|altrimenti_se|considera|quando|finché|in)(\s|$)/
|
12
12
|
syn match italianRubyKeyword /\v(\s)*(prossimo|prossima|esci|ritorna|rilascia|blocco_dato\?)(\s|$)/
|
13
13
|
syn match italianRubyKeyword /\v(\s)*(inizia|recupera|assicura|riprova)(\s|$)/
|
14
14
|
|
@@ -32,13 +32,13 @@ syn match italianRubySpecial /\v(\s)*(cicla|alza)(\s|$)/
|
|
32
32
|
syn match italianRubySpecial /\v\.(nuovo|nuova)/hs=s+1
|
33
33
|
syn match italianRubySpecial /\v(se_stesso|se_stessa)/
|
34
34
|
syn match italianRubySpecial /\v(\*){1,2}[a-zA-Z_]/he=e-1
|
35
|
-
syn match italianRubySpecialBoolean /\v(\s)
|
36
|
-
syn match italianRubySpecialBoolean /\v(\s)
|
35
|
+
syn match italianRubySpecialBoolean /\v(\s)+(si|no|nullo)(\s|$)/
|
36
|
+
syn match italianRubySpecialBoolean /\v(\s)+(si|no|nullo)(\W)/he=e-1
|
37
37
|
|
38
|
-
syn region italianRubyDefinition start=/definisci/ end=/[$\n]/ contains=
|
39
|
-
syn match italianRubyDefinitionKeyword /\vdefinisci/ contained
|
40
|
-
syn match italianRubyMethodName /\v([a-z0-9_]+)\(/he=e-1 contained
|
41
|
-
syn match italianRubyMethodName /\v([a-z0-9_]+)$/ contained
|
38
|
+
syn region italianRubyDefinition start=/definisci/ end=/[$\n]/ contains=italianRubySymbol,italianRubyConstant,italianRubySpecialBoolean,italianRubySplatOperator
|
39
|
+
syn match italianRubyDefinitionKeyword /\vdefinisci/ contained containedin=italianRubyDefinition
|
40
|
+
syn match italianRubyMethodName /\v([a-z0-9_=\?]+)\(/he=e-1 contained containedin=italianRubyDefinition
|
41
|
+
syn match italianRubyMethodName /\v([a-z0-9_=\?]+)$/ contained containedin=italianRubyDefinition
|
42
42
|
syn match italianRubySplatOperator /\v(\*{1,2}[a-zA-Z0-9_])/he=e-1
|
43
43
|
|
44
44
|
let b:current_syntax = "ir"
|
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.8.
|
4
|
+
version: 0.8.13
|
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-07-
|
11
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|