italian-ruby 1.5.14 → 1.5.15
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 +4 -4
- data/.gitattributes +3 -0
- data/Dockerfile +40 -0
- data/Gemfile.lock +2 -2
- data/dev/vim/ftdetect/ir.vim +3 -1
- data/dev/vim/syntax/ir.vim +58 -20
- data/docker-compose.yml +11 -0
- data/lib/italian/ruby/alias/object.rb +1 -0
- data/lib/italian/ruby/versione.rb +1 -1
- metadata +9 -7
- data/dev/vim/vimrc +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93b6400660e4150a88f88ad281732c16b4941405ccb3811e1695f98f459f8501
|
4
|
+
data.tar.gz: 18628e2bd49ea0defdf20bdd993a28a635946f352c52f0ff4c004fbd97e64f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b2d66501d78d0e7d0b11471870e29f97cd8ee3ed32180881536f3cb2bf9c8f79e8eff15c22c81856041d0f80fa567f4864d1813f22493d5da7dffd5463bee66
|
7
|
+
data.tar.gz: 87f4862a5092bde020b586e88dd346311e76a6b710abfa98e521e77b4e7fb3f0ee3f246577a5fcd91c036f4cc4e8541fa254d01d3e1cccbcab593c926f34116a
|
data/.gitattributes
ADDED
data/Dockerfile
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
FROM ruby:3.0
|
2
|
+
|
3
|
+
# Installazione gemme e dipendenze.
|
4
|
+
RUN apt-get update && \
|
5
|
+
apt-get install -y \
|
6
|
+
build-essential
|
7
|
+
|
8
|
+
WORKDIR /italian-ruby
|
9
|
+
COPY . .
|
10
|
+
RUN bundle install
|
11
|
+
|
12
|
+
# Configurazione Bash e SSH.
|
13
|
+
RUN mkdir -p /root/.ssh && \
|
14
|
+
mkdir -p /root/.ssh-keys
|
15
|
+
RUN ln -s /root/.ssh-keys/fb /root/.ssh && \
|
16
|
+
ln -s /root/.ssh-keys/fb.pub /root/.ssh
|
17
|
+
RUN echo "\n\n"\
|
18
|
+
"# Custom prompt\n"\
|
19
|
+
"PS1=\"\[\e[1;34m\]\w\[\e[m\] # \"\n\n"\
|
20
|
+
"# Alias lista\n"\
|
21
|
+
"alias ll='ls -alF'\n\n"\
|
22
|
+
"# Avvio ssh-agent\n"\
|
23
|
+
"if [ -z \"\$SSH_AUTH_SOCK\" ]\n"\
|
24
|
+
"then\n"\
|
25
|
+
" # Check for a currently running instance of the agent\n"\
|
26
|
+
" RUNNING_AGENT=\"\`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'\`\"\n"\
|
27
|
+
" if [ \"\$RUNNING_AGENT\" = "0" ]\n"\
|
28
|
+
" then\n"\
|
29
|
+
" # Launch a new instance of the agent\n"\
|
30
|
+
" ssh-agent -s &> \$HOME/.ssh-agent\n"\
|
31
|
+
" fi\n"\
|
32
|
+
" eval \`cat \$HOME/.ssh-agent\`\n"\
|
33
|
+
" ssh-add ~/.ssh/fb\n"\
|
34
|
+
"fi\n"\
|
35
|
+
>> ~/.bashrc
|
36
|
+
|
37
|
+
# Evita errori di ownership git.
|
38
|
+
RUN git config --global --add safe.directory /italian-ruby
|
39
|
+
|
40
|
+
CMD [ "/bin/bash" ]
|
data/Gemfile.lock
CHANGED
data/dev/vim/ftdetect/ir.vim
CHANGED
data/dev/vim/syntax/ir.vim
CHANGED
@@ -8,45 +8,83 @@ if exists("b:current_syntax")
|
|
8
8
|
endif
|
9
9
|
|
10
10
|
syn match italianRubyKeyword /\v(\s|^)(classe|modulo|esegui)\s/me=e-1
|
11
|
-
syn match italianRubyKeyword /\v(\s|^)(se|allora|altrimenti_se|a_meno_che|considera|quando|finché|in|definito\?|blocco_dato\?|alias|super)\s/me=e-1
|
12
|
-
syn match italianRubyKeyword /\v(\s|^)(prossimo|prossima|esci|ritorna|rilascia|recupera)\s/me=e-1
|
11
|
+
syn match italianRubyKeyword /\v(\s|^)(se|allora|altrimenti_se|a_meno_che|considera|quando|mentre|finché|in|definito\?|blocco_dato\?|alias|super)\s/me=e-1
|
12
|
+
syn match italianRubyKeyword /\v(\s|^)(prossimo|prossima|esci|ritorna|rilascia|recupera|fine)\s/me=e-1
|
13
|
+
syn match italianRubyKeyword /\v(\s|^)fine[\.,]/me=e-1
|
13
14
|
syn match italianRubyKeyword /\v(\s|^)(se|allora|altrimenti|a_meno_che|considera|esci|ritorna|rilascia|blocco_dato\?|super)$/
|
14
15
|
syn match italianRubyKeyword /\v(\s|^)(prossimo|prossima|inizia|recupera|assicura|riprova|esegui|fine)$/
|
15
16
|
|
16
|
-
syn region italianRubyDefinition start=/definisci/ end
|
17
|
-
syn
|
18
|
-
syn match
|
19
|
-
syn match
|
20
|
-
syn match
|
17
|
+
syn region italianRubyDefinition start=/definisci/ end=/$/ keepend contains=italianRubySymbol,italianRubyConstant,italianRubyNumeric,italianRubySpecial,italianRubySplatOperator, italianRubyToProcOperator
|
18
|
+
syn region italianRubyMethodDefinition start=/\vdefinisci [a-z0-9_=\.\?\!àèéìòù]+/ end=/\v[ \(]/ keepend contained containedin=italianRubyDefinition
|
19
|
+
syn match italianRubyMethodName /\v([a-z0-9_=\?\!àèéìòù]+)/ contained containedin=italianRubyMethodDefinition
|
20
|
+
syn match italianRubyDefinitionKeyword /definisci/ contained containedin=italianRubyMethodDefinition
|
21
|
+
syn match italianRubyClassMethodPrefix /\v(se_stesso|se_stessa)\./he=e-1 contained containedin=italianRubyMethodDefinition
|
21
22
|
|
22
|
-
syn match
|
23
|
-
syn match
|
24
|
-
|
25
|
-
syn match italianRubySymbol /\v(\
|
23
|
+
syn match italianRubySplatOperator /\v(\*{1,2}[a-zA-Z0-9_])/he=e-1,me=e-1
|
24
|
+
syn match italianRubyToProcOperator /\v(\&[a-zA-Z0-9àèéìòù_]+)/he=s+1
|
25
|
+
|
26
|
+
syn match italianRubySymbol /\v(\s|^)([a-zè_][a-zA-Z0-9àèéìòù_]*:)/
|
27
|
+
syn match italianRubySymbol /\v(\s|^)(:[a-zA-Zè_][a-zA-Z0-9àèéìòù_]*)/
|
28
|
+
syn match italianRubySymbol /\v(\s|^)("[a-zA-Z0-9àèéìòù_\/]*":)/
|
29
|
+
syn match italianRubySymbol /\v(\s|^)(:"[a-zA-Z0-9àèéìòù_\/]*")/
|
30
|
+
syn match italianRubySymbol /\v\((:[a-zA-Zè_][a-zA-Z0-9àèéìòù_]*)\)/ms=s+1,me=e-1
|
31
|
+
syn match italianRubySymbol /\v(\(|\[)([a-zèA-Z_][a-zA-Z0-9àèéìòù_"]+:)/hs=s+1
|
26
32
|
syn match italianRubySymbol /\v(\(|\[)("[a-zA-Z0-9àèéìòù_]+":)/hs=s+1
|
27
|
-
syn match italianRubySymbol /\v(\(|\[|\&)(:[a-
|
33
|
+
syn match italianRubySymbol /\v(\(|\[|\&)(:[a-zA-Zè_"][a-zA-Z0-9àèéìòù_"]+)/hs=s+1
|
28
34
|
|
29
|
-
syn match italianRubyInstanceVar /\v\@[a-zè_][a-zA-Z0-9àèéìòù_"]*/
|
30
35
|
syn match italianRubyConstant /\v[A-Z][a-zA-Z0-9àèéìòùÀÈÌÒÙ_]+/
|
36
|
+
syn match italianRubyConstant /\v(\s|^)([a-zè_][a-zA-Z0-9àèéìòù_]*::)/he=e-2
|
31
37
|
syn match italianRubyComment /\v#.*$/
|
38
|
+
syn match italianRubyInstanceVar /\v\@[a-zè_][a-zA-Z0-9àèéìòù_"]*/
|
39
|
+
syn match italianRubyInstanceVar /\v\@\@[a-zè_][a-zA-Z0-9àèéìòù_"]*/
|
40
|
+
syn match italianRubyGlobalVar /\v\$[a-zA-Zè_][a-zA-Z0-9àèéìòù_"]*/
|
32
41
|
|
33
|
-
syn match italianRubyNumeric /\v(
|
34
|
-
syn match
|
35
|
-
syn match
|
36
|
-
syn
|
37
|
-
syn region
|
38
|
-
syn region italianRubyString start
|
42
|
+
syn match italianRubyNumeric /\v([0-9]+[\.\_]*)+(\s|\n|\t|\.|,|;){1}/me=e-1
|
43
|
+
syn match italianRubyNumeric /\v(\[|\()([0-9\.\_]+)(\]|\))/ms=s+1,me=e-1
|
44
|
+
syn match italianRubyInterpolationStart /\v#\{/ contained containedin=italianRubyInterpolation
|
45
|
+
syn match italianRubyInterpolationStop /\v\}/ contained containedin=italianRubyInterpolation
|
46
|
+
syn region italianRubyInterpolation start=/\v#\{/ end=/\v\}/ contains=TOP,italianRubyComment contained keepend
|
47
|
+
syn region italianRubyString start=/"/ end=/"/ skip=/\\"/ contains=italianRubyInterpolation
|
48
|
+
syn region italianRubyString start=/\v\%\{/ end=/\}/ skip=/\\"/ contains=italianRubyInterpolation
|
49
|
+
syn region italianRubyString start=/\V<<-STR/ end=/STR/ contains=italianRubyInterpolation
|
50
|
+
syn region italianRubyString start=/\V<<~STR/ end=/STR/ contains=italianRubyInterpolation
|
51
|
+
syn region italianRubyRegexp start="\V/" end="\V/" contains=italianRubyInterpolation oneline
|
52
|
+
syn match italianRubyRegexpSpecial "\v\\/|\\n|\\r|\\.|\^|\$" contained containedin=italianRubyRegexp
|
53
|
+
syn match italianRubyRegexpSpecial "\v\\s|\\S|\\d|\\D" contained containedin=italianRubyRegexp
|
54
|
+
syn match italianRubyRegexpSpecial "\v\\w|\\W|\\b|\\B" contained containedin=italianRubyRegexp
|
39
55
|
|
56
|
+
syn match italianRubyInvocation /\vinvoca /me=e-1
|
40
57
|
syn match italianRubySpecial /\v(\s|^)(includi|estendi|preponi)(\s|$)/
|
41
58
|
syn match italianRubySpecial /\v(\s|^)(pubblici|protetti|privati)(\s|$)/
|
42
|
-
syn match italianRubySpecial /\v(\s|^)(richiedi|richiedi_relativo|richiedi_tutti)(\s|$)/
|
59
|
+
syn match italianRubySpecial /\v(\s|^)(richiedi|richiedi_relativo|richiedi_tutti|rimanda|rimanda_relativo)(\s|$)/
|
43
60
|
syn match italianRubySpecial /\v(\s|^)(cicla|alza)(\s|$)/me=e-1
|
44
61
|
syn match italianRubySpecial /\v(\s|^)(cattura|lancia)\s/me=e-1
|
45
62
|
syn match italianRubySpecial /\v\.(nuovo|nuova)(\s|\,|\()/hs=s+1,he=e-1,me=e-1
|
46
63
|
syn match italianRubySpecial /\v\.(nuovo|nuova)\)/hs=s+1,he=e-1
|
47
64
|
syn match italianRubySpecial /\v\.(nuovo|nuova)$/hs=s+1
|
48
65
|
syn match italianRubySpecial /\v(se_stesso|se_stessa)/
|
66
|
+
syn match italianRubySpecial /\v(definisci_metodo|definisci_metodo_singolo)\s/he=e-1,me=e-1
|
49
67
|
syn match italianRubySpecial /\v(\s)+(si|no|nullo|nulla|vero|falso)$/
|
50
68
|
syn match italianRubySpecial /\v(\s)+(si|no|nullo|nulla|vero|falso)\W/he=e-1,me=e-1
|
51
69
|
|
70
|
+
highlight italianRubyKeyword ctermfg=171
|
71
|
+
highlight italianRubyDefinitionKeyword ctermfg=171
|
72
|
+
highlight italianRubySpecial ctermfg=33
|
73
|
+
highlight italianRubyInvocation ctermfg=171
|
74
|
+
highlight italianRubyClassMethodPrefix ctermfg=33
|
75
|
+
highlight italianRubyMethodName ctermfg=220
|
76
|
+
highlight italianRubySymbol ctermfg=33
|
77
|
+
highlight italianRubyNumeric ctermfg=148
|
78
|
+
highlight italianRubySplatOperator ctermfg=117
|
79
|
+
highlight italianRubyToProcOperator ctermfg=117
|
80
|
+
highlight italianRubyInstanceVar ctermfg=117
|
81
|
+
highlight italianRubyGlobalVar ctermfg=117
|
82
|
+
highlight italianRubyInterpolationStart ctermfg=117
|
83
|
+
highlight italianRubyInterpolationStop ctermfg=117
|
84
|
+
highlight italianRubyConstant ctermfg=43
|
85
|
+
highlight italianRubyComment ctermfg=28
|
86
|
+
highlight italianRubyString ctermfg=208
|
87
|
+
highlight italianRubyRegexp ctermfg=197
|
88
|
+
highlight italianRubyRegexpSpecial ctermfg=223
|
89
|
+
|
52
90
|
let b:current_syntax = "ir"
|
data/docker-compose.yml
ADDED
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.
|
4
|
+
version: 1.5.15
|
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:
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,9 +61,11 @@ executables:
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
+
- ".gitattributes"
|
64
65
|
- ".gitignore"
|
65
66
|
- ".rspec"
|
66
67
|
- ".ruby-version"
|
68
|
+
- Dockerfile
|
67
69
|
- Gemfile
|
68
70
|
- Gemfile.lock
|
69
71
|
- README.md
|
@@ -71,8 +73,8 @@ files:
|
|
71
73
|
- bin/italian-ruby
|
72
74
|
- dev/vim/ftdetect/ir.vim
|
73
75
|
- dev/vim/syntax/ir.vim
|
74
|
-
- dev/vim/vimrc
|
75
76
|
- dev/vscode/italianruby.tmGrammar.json
|
77
|
+
- docker-compose.yml
|
76
78
|
- install.rb
|
77
79
|
- italian-ruby.gemspec
|
78
80
|
- lib/italian/ruby.rb
|
@@ -149,7 +151,7 @@ metadata:
|
|
149
151
|
homepage_uri: https://github.com/Pluvie/italian-ruby
|
150
152
|
source_code_uri: https://github.com/Pluvie/italian-ruby
|
151
153
|
changelog_uri: https://github.com/Pluvie/italian-ruby/CHANGELOG.md
|
152
|
-
post_install_message:
|
154
|
+
post_install_message:
|
153
155
|
rdoc_options: []
|
154
156
|
require_paths:
|
155
157
|
- lib
|
@@ -164,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
166
|
- !ruby/object:Gem::Version
|
165
167
|
version: '0'
|
166
168
|
requirements: []
|
167
|
-
rubygems_version: 3.2.
|
168
|
-
signing_key:
|
169
|
+
rubygems_version: 3.2.33
|
170
|
+
signing_key:
|
169
171
|
specification_version: 4
|
170
172
|
summary: Program in Ruby writing in Italian.
|
171
173
|
test_files: []
|
data/dev/vim/vimrc
DELETED
@@ -1,47 +0,0 @@
|
|
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
|
-
" Evidenzia risultati ricerca
|
23
|
-
set hlsearch
|
24
|
-
|
25
|
-
""
|
26
|
-
" Mostra opzioni sopra la linea di comando
|
27
|
-
set wildmenu
|
28
|
-
|
29
|
-
""
|
30
|
-
" Evidenziazione sintassi ItalianRuby
|
31
|
-
syntax on
|
32
|
-
|
33
|
-
highlight italianRubyKeyword ctermfg=171
|
34
|
-
highlight italianRubyDefinitionKeyword ctermfg=171
|
35
|
-
highlight italianRubySpecial ctermfg=33
|
36
|
-
highlight italianRubyClassMethodPrefix ctermfg=33
|
37
|
-
highlight italianRubyMethod ctermfg=220
|
38
|
-
highlight italianRubyMethodName ctermfg=220
|
39
|
-
highlight italianRubySymbol ctermfg=33
|
40
|
-
highlight italianRubyNumeric ctermfg=148
|
41
|
-
highlight italianRubySplatOperator ctermfg=117
|
42
|
-
highlight italianRubyInstanceVar ctermfg=117
|
43
|
-
highlight italianRubyInterpolationStart ctermfg=117
|
44
|
-
highlight italianRubyInterpolationStop ctermfg=117
|
45
|
-
highlight italianRubyConstant ctermfg=43
|
46
|
-
highlight italianRubyComment ctermfg=28
|
47
|
-
highlight italianRubyString ctermfg=208
|