italian-ruby 0.8.8 → 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: 3efadda6bc7f8e926de0dccb34bb0031e2161eca5472bb1cdf97c992ae355249
4
- data.tar.gz: 432898e75e2e29eb8e7a6cd696852fd073fd94686bfc53ae97f4d6aaf52ba0c7
3
+ metadata.gz: a30ccf4c28429aeeeaf50c5b890a1e02824c788aac766ce8c239133c3a474972
4
+ data.tar.gz: 8c75a5a933e2d4e0a53ec9843e579c200973a6a0373b21a4a69c2c8d800e6fee
5
5
  SHA512:
6
- metadata.gz: 01fc3cd7ee7aa304b8bab37e9abfde97f8baecf6fe8b2aaa0e2e0934bfa6e39419856168b1581418773ffc856e87b8d9b5ed05c9916d31a8b1552f8f3dcc2ec5
7
- data.tar.gz: 14b5fadcb6e1b225f2b0d4b10e2130984f97475798b9b6cfefe2aab5209cd66e8ba9b7c315c3a553e93fff6a17b3cbdcb54fe66aedf7649e0ed760bde513e738
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
@@ -8,6 +8,7 @@ class File
8
8
  alias :espandi :expand_path
9
9
  alias :nome_file :basename
10
10
  alias :nome_cartella :dirname
11
+ alias :estensione :extname
11
12
  alias :esiste? :exists?
12
13
  alias :scrivi :write
13
14
  alias :leggi :read
@@ -63,4 +63,4 @@ module Hanami
63
63
 
64
64
  end
65
65
  end
66
- end
66
+ end
@@ -7,6 +7,7 @@ class Integer
7
7
  alias :volte :times
8
8
  alias :in_decimale :to_f
9
9
  alias :in_stringa :to_s
10
+ alias :in_numero :to_i
10
11
 
11
12
  def secondi
12
13
  self
@@ -1,3 +1,5 @@
1
+ require "fileutils"
2
+
1
3
  ##
2
4
  # CoreExt - Kernel
3
5
  #
@@ -58,7 +60,7 @@ module Kernel
58
60
  end
59
61
  raise LoadError.new("cannot load such directory -- #{dir}") unless Dir.exist? caller_location_dir
60
62
 
61
- Dir["#{caller_location_dir}/**/*.ir"].each do |file|
63
+ Dir["#{caller_location_dir}/**/*.ir"].sort_by { |file| file.count("/") }.each do |file|
62
64
  richiedi_assoluto file
63
65
  end
64
66
  end
@@ -106,4 +108,4 @@ module Kernel
106
108
  end
107
109
  end
108
110
 
109
- end
111
+ end
@@ -4,6 +4,7 @@
4
4
  # Alias di metodi del namespace principale.
5
5
 
6
6
  alias :stampa :puts
7
+ alias :scrivi :print
7
8
  alias :cicla :loop
8
9
  alias :definisci_metodo_singolo :define_singleton_method
9
10
  alias :blocco_dato? :block_given?
@@ -26,4 +27,4 @@ def alza(*args)
26
27
  end
27
28
  def fallisci(*args)
28
29
  fail *args
29
- end
30
+ end
@@ -8,6 +8,9 @@ class String
8
8
  alias :prima_maiuscola :capitalize
9
9
  alias :in_simbolo :to_sym
10
10
  alias :in_stringa :to_s
11
+ alias :in_numero :to_i
12
+ alias :in_intero :to_i
13
+ alias :in_decimale :to_f
11
14
  alias :dividi :split
12
15
  alias :maiuscola :upcase
13
16
  alias :maiuscolo :upcase
@@ -25,6 +28,10 @@ class String
25
28
  alias :spoglia :strip
26
29
  alias :conteggio :count
27
30
  alias :conteggia :count
31
+ alias :codifica :encoding
32
+ alias :codifica_in :encode
33
+ alias :codifica_valida? :valid_encoding?
34
+ alias :forza_codifica_a :force_encoding
28
35
 
29
36
  def esiste?
30
37
  !nil? and self != ""
@@ -50,4 +57,4 @@ class String
50
57
  end
51
58
  end
52
59
 
53
- Stringa = String
60
+ Stringa = String
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSION = "0.8.8"
3
+ VERSION = "0.8.13"
4
4
  end
5
5
  end
@@ -0,0 +1 @@
1
+ au BufRead,BufNewFile *.ir set filetype=ir
@@ -0,0 +1,44 @@
1
+ " Vim syntax file
2
+ " Language: Italian Ruby
3
+ " Maintainer: Francesco Ballardin
4
+ " Latest Revision: 01 July 2020
5
+
6
+ if exists("b:current_syntax")
7
+ finish
8
+ endif
9
+
10
+ syn match italianRubyKeyword /\v(\s)*(classe|modulo|esegui|fine)(\s|$)/
11
+ syn match italianRubyKeyword /\v(\s)*(se|allora|altrimenti|altrimenti_se|considera|quando|finché|in)(\s|$)/
12
+ syn match italianRubyKeyword /\v(\s)*(prossimo|prossima|esci|ritorna|rilascia|blocco_dato\?)(\s|$)/
13
+ syn match italianRubyKeyword /\v(\s)*(inizia|recupera|assicura|riprova)(\s|$)/
14
+
15
+ syn match italianRubySymbol /\v(\s)*([a-zè_][a-zA-Z0-9àèéìòù_"]+:)/
16
+ syn match italianRubySymbol /\v(\s)*("[a-zA-Z0-9àèéìòù_]+":)/
17
+ syn match italianRubySymbol /\v(\s)*(:[a-zè_"][a-zA-Z0-9àèéìòù_"]+)/
18
+
19
+ syn match italianRubyInstanceVar /\v[\s^]*\@[a-zè_][a-zA-Z0-9àèéìòù_"]*/
20
+ syn match italianRubyConstant /\v[A-Z][a-zA-Z0-9àèéìòù_]+/
21
+ syn match italianRubyComment /\v#.*$/
22
+
23
+ syn match italianRubyInterpolationStart /\v#\{/ containedin=italianRubyInterpolation
24
+ syn match italianRubyInterpolationStop /\v\}/ containedin=italianRubyInterpolation
25
+ syn region italianRubyInterpolation start=/\v#\{/ end=/\v\}/ contains=TOP,italianRubyComment contained keepend
26
+ syn region italianRubyString start=/"/ end=/"/ skip=/\\"/ contains=italianRubyInterpolation
27
+
28
+ syn match italianRubySpecial /\v(\s)*(includi|estendi|preponi)(\s|$)/
29
+ syn match italianRubySpecial /\v(\s)*(pubblici|protetti|privati)(\s|$)/
30
+ syn match italianRubySpecial /\v(\s)*(richiedi|richiedi_relativo|richiedi_tutti)(\s|$)/
31
+ syn match italianRubySpecial /\v(\s)*(cicla|alza)(\s|$)/
32
+ syn match italianRubySpecial /\v\.(nuovo|nuova)/hs=s+1
33
+ syn match italianRubySpecial /\v(se_stesso|se_stessa)/
34
+ syn match italianRubySpecial /\v(\*){1,2}[a-zA-Z_]/he=e-1
35
+ syn match italianRubySpecialBoolean /\v(\s)+(si|no|nullo)(\s|$)/
36
+ syn match italianRubySpecialBoolean /\v(\s)+(si|no|nullo)(\W)/he=e-1
37
+
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
+ syn match italianRubySplatOperator /\v(\*{1,2}[a-zA-Z0-9_])/he=e-1
43
+
44
+ let b:current_syntax = "ir"
@@ -0,0 +1,42 @@
1
+ ""
2
+ " Imposta dimensione tabulazione
3
+ set tabstop=2
4
+ set shiftwidth=2
5
+ set expandtab
6
+ set nu
7
+
8
+ ""
9
+ " Comando per aprire nuovo tab
10
+ command! -complete=file -nargs=1 T tabedit <args>
11
+
12
+ ""
13
+ " Muoversi fra tab con H (sinistra) e L (destra)
14
+ nnoremap H gT
15
+ nnoremap L gt
16
+
17
+ ""
18
+ " Aggiunge automaticamente indentazione su nuova riga
19
+ set autoindent
20
+
21
+ ""
22
+ " Mostra opzioni sopra la linea di comando
23
+ set wildmenu
24
+
25
+ ""
26
+ " Evidenziazione sintassi ItalianRuby
27
+ syntax on
28
+
29
+ highlight italianRubyKeyword ctermfg=171
30
+ highlight italianRubyDefinitionKeyword ctermfg=171
31
+ highlight italianRubySpecial ctermfg=33
32
+ highlight italianRubySpecialBoolean ctermfg=33
33
+ highlight italianRubyMethod ctermfg=220
34
+ highlight italianRubyMethodName ctermfg=220
35
+ highlight italianRubySymbol ctermfg=33
36
+ highlight italianRubySplatOperator ctermfg=117
37
+ highlight italianRubyInstanceVar ctermfg=117
38
+ highlight italianRubyInterpolationStart ctermfg=117
39
+ highlight italianRubyInterpolationStop ctermfg=117
40
+ highlight italianRubyConstant ctermfg=43
41
+ highlight italianRubyComment ctermfg=28
42
+ highlight italianRubyString ctermfg=208
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.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-06-25 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,6 +106,9 @@ files:
106
106
  - lib/italian/ruby/traduttore.rb
107
107
  - lib/italian/ruby/utils/debug.rb
108
108
  - lib/italian/ruby/version.rb
109
+ - vim/ftdetect/ir.vim
110
+ - vim/syntax/ir.vim
111
+ - vim/vimrc
109
112
  - vscode/italianruby.tmGrammar.json
110
113
  homepage: https://github.com/Pluvie/italian-ruby
111
114
  licenses: