italian-ruby 1.5.14 → 1.5.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be5d5d79621b453d71b832c0d09cf8a04b60c2b79a4be65d8ad0778ff5f3bd4e
4
- data.tar.gz: daf19d9ac81828facf5415bfdcaac729a87a059bcf652255d471204dde250356
3
+ metadata.gz: 93b6400660e4150a88f88ad281732c16b4941405ccb3811e1695f98f459f8501
4
+ data.tar.gz: 18628e2bd49ea0defdf20bdd993a28a635946f352c52f0ff4c004fbd97e64f52
5
5
  SHA512:
6
- metadata.gz: 33c0e90e5cf18333962756c18c96fb2761b0fdee4defe06c9987e123faeee9a2a965a4bf1bb79400ca42861248e6b7a12e9c85af7ca23bb86fef0f2f857a17f8
7
- data.tar.gz: 112c929041aed348b5ce32b4ff290fe0fa5851e28e386f7fcb58db4f0ccb20e24b3bd6093228a945198147676d4cc7a200fef9053f5b9c959c9b55c18621fa4e
6
+ metadata.gz: 9b2d66501d78d0e7d0b11471870e29f97cd8ee3ed32180881536f3cb2bf9c8f79e8eff15c22c81856041d0f80fa567f4864d1813f22493d5da7dffd5463bee66
7
+ data.tar.gz: 87f4862a5092bde020b586e88dd346311e76a6b710abfa98e521e77b4e7fb3f0ee3f246577a5fcd91c036f4cc4e8541fa254d01d3e1cccbcab593c926f34116a
data/.gitattributes ADDED
@@ -0,0 +1,3 @@
1
+ dev linguist-generated
2
+ Dockerfile linguist-generated
3
+ docker-compose.yml linguist-generated
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- italian-ruby (1.0.0)
4
+ italian-ruby (1.5.14)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  rspec (~> 3.9)
33
33
 
34
34
  BUNDLED WITH
35
- 2.1.4
35
+ 2.2.33
@@ -1 +1,3 @@
1
- au BufRead,BufNewFile *.ir set filetype=ir
1
+ " vint: -ProhibitAutocmdWithNoGroup
2
+ autocmd BufNewFile,BufReadPost *.ir setlocal filetype=ir
3
+ autocmd BufNewFile,BufReadPost Projectfile setlocal filetype=ir
@@ -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=/[$\n\(]/ contains=italianRubySymbol,italianRubyConstant,italianRubyNumeric,italianRubySpecial,italianRubySplatOperator
17
- syn match italianRubyMethodName /\v([a-z0-9_=\?\!àèéìòù]+)/ contained containedin=italianRubyDefinition
18
- syn match italianRubyDefinitionKeyword /\vdefinisci/ contained containedin=italianRubyDefinition
19
- syn match italianRubyClassMethodPrefix /\v(se_stesso|se_stessa)\./he=e-1 contained containedin=italianRubyDefinition
20
- syn match italianRubySplatOperator /\v(\*{1,2}[a-zA-Z0-9_])/he=e-1
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 italianRubySymbol /\v(\s|^)([a-zè_][a-zA-Z0-9àèéìòù_"]+:)/
23
- syn match italianRubySymbol /\v(\s|^)("[a-zA-Z0-9àèéìòù_]+":)/
24
- syn match italianRubySymbol /\v(\s|^)(:[a-zè_"][a-zA-Z0-9àèéìòù_"]+)/
25
- syn match italianRubySymbol /\v(\(|\[)([a-zè_][a-zA-Z0-9àèéìòù_"]+:)/hs=s+1
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-_"][a-zA-Z0-9àèéìòù_"]+)/hs=s+1
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(\s)+([0-9\.]+)/
34
- syn match italianRubyInterpolationStart /\v#\{/ contained containedin=italianRubyInterpolation
35
- syn match italianRubyInterpolationStop /\v\}/ contained containedin=italianRubyInterpolation
36
- syn region italianRubyInterpolation start=/\v#\{/ end=/\v\}/ contains=TOP,italianRubyComment contained keepend
37
- syn region italianRubyString start=/"/ end=/"/ skip=/\\"/ contains=italianRubyInterpolation
38
- syn region italianRubyString start=/\v\%\{/ end=/\}/ skip=/\\"/ contains=italianRubyInterpolation
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"
@@ -0,0 +1,11 @@
1
+ version: "3.9"
2
+ name: "italian-ruby"
3
+ services:
4
+ dev:
5
+ build:
6
+ context: "."
7
+ dockerfile: "./Dockerfile"
8
+ volumes:
9
+ - ".:/italian-ruby"
10
+ - "~/.ssh:/root/.ssh-keys:ro"
11
+ command: "sleep infinity"
@@ -6,6 +6,7 @@ class Object
6
6
  alias :nuovo :new
7
7
  alias :nuova :new
8
8
  alias :ottieni_costante :const_get
9
+ alias :costanti :constants
9
10
  alias :in_stringa :to_s
10
11
  end
11
12
 
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSIONE = "1.5.14"
3
+ VERSIONE = "1.5.15"
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.5.14
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: 2022-06-28 00:00:00.000000000 Z
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.3
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