dyndoc-ruby 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: df0e60ad08bb4e822e8c4bcd189dcac3d7bf6d3b
4
- data.tar.gz: 2e0eb8ffa6af5ce335de61051eae4136d12c658d
3
+ metadata.gz: 0f91480a9a8e6a1371732c608cabca09bba83435
4
+ data.tar.gz: 8ff1d87a98d699a66d3e51939eaa70d4123d088d
5
5
  SHA512:
6
- metadata.gz: 10a285cf2276a5db04aab293620a9e56baf7f264c1f13bed06781e3d2ead908b39e483f384c5cffdf96388cd86aa7a29de7610bf88f47cf1b45d9bbcff18f4c6
7
- data.tar.gz: a39f49286141803572a529b0e053b467d4439ded8889a2792f49fd7438afbbc1ddedea0a2a4807fda64c727af2ef8ac170502a6c2e04a7dded469dac92098ebd
6
+ metadata.gz: fc5d658a571a4f51c71e1503cb4fa2612ed26b001bc73851004b4a456426accb2b47afeef005db3eb88953363d66455a0758ffdcf9a63b68e948a9e40eb7b48c
7
+ data.tar.gz: 5d6c5c370295ffd391915d408d00e67d0b61d25ac1df9a6adf69e8bb1a871345a3c5dd0a1f23226bd21204ef6657dc79d198cd04d6b615f312b3fb020135abcb
data/bin/dyn-ctl CHANGED
@@ -89,7 +89,7 @@ when "new"
89
89
  FileUtils.mkdir_p File.join(ENV["HOME"],"dyndoc",'log')
90
90
 
91
91
  unless File.exists? DYNCTL_PLIST
92
- plist= <<-END.sub(/CMD/,CMD).sub(/DYN_CMD/,`which #{CMD}`.strip).sub(/ERR_FILE/,DYNCTL_ERR_FILE).sub(/OUT_FILE/,DYNCTL_OUT_FILE).sub(/DYN_PATH/,ENV["PATH"]).sub(/DYN_LANG/,ENV["LANG"])
92
+ plist= <<-END.sub(/CMD/,CMD).sub(/DYN_CMD/,`which #{CMD}`.strip).sub(/ERR_FILE/,DYNCTL_ERR_FILE).sub(/OUT_FILE/,DYNCTL_OUT_FILE).sub(/DYN_PATH/,ENV["PATH"]).sub(/DYN_LANG/,ENV["LANG"]).sub(/DYN_JULIA_DIR/,ENV["JULIA_DIR"])
93
93
  <?xml version="1.0" encoding="UTF-8"?>
94
94
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
95
95
  <plist version="1.0">
@@ -100,6 +100,8 @@ when "new"
100
100
  <string>DYN_PATH</string>
101
101
  <key>LANG</key>
102
102
  <string>DYN_LANG</string>
103
+ <key>JULIA_DIR</key>
104
+ <string>DYN_JULIA_DIR</string>
103
105
  </dict>
104
106
  <key>Label</key>
105
107
  <string>CMD</string>
data/bin/dyn-srv CHANGED
@@ -10,9 +10,22 @@ else
10
10
  require 'fileutils'
11
11
 
12
12
  dir_pids=File.join(Dyndoc.home,"pids")
13
+ dir_log=File.join(Dyndoc.home,"log")
13
14
  FileUtils.mkdir_p dir_pids
14
- Daemons.run_proc('dyn-srv',{dir: dir_pids}) do
15
- Dyndoc::InteractiveServer.new.run
15
+ FileUtils.mkdir_p dir_log
16
+
17
+ ## from delayed_job gem
18
+ @files_to_reopen = []
19
+ ObjectSpace.each_object(File) do |file|
20
+ @files_to_reopen << file unless file.closed?
21
+ end
22
+
23
+ Daemons.run_proc('dyn-srv',{dir: dir_pids, log_output: true, log_dir: dir_log}) do
24
+ @files_to_reopen.each do |file|
25
+ file.reopen file.path, 'a+'
26
+ file.sync = true
27
+ end
28
+ Dyndoc::InteractiveServer.new.run
16
29
  end
17
30
 
18
31
  end
@@ -0,0 +1,213 @@
1
+ ---
2
+ comment: "\n\tTODO:\n\t* syntax types, tuple types, union\n\t* take out ::Type\n\t"
3
+ fileTypes:
4
+ - jl
5
+ firstLineMatch: ^#!.*\bjulia\s*$
6
+ keyEquivalent: ^~J
7
+ name: Julia
8
+ patterns:
9
+ - include: '#symbol'
10
+ - include: '#operator'
11
+ - include: '#array'
12
+ - include: '#string'
13
+ - include: '#bracket'
14
+ - include: '#type_decl'
15
+ - include: '#function_decl'
16
+ - include: '#function_call'
17
+ - include: '#keyword'
18
+ - include: '#number'
19
+ - include: '#comment'
20
+ repository:
21
+ array:
22
+ patterns:
23
+ - begin: \[
24
+ end: \]((\.)?'*)
25
+ endCaptures:
26
+ '1':
27
+ name: keyword.operator.transpose.julia
28
+ name: meta.array.julia
29
+ patterns:
30
+ - match: \bend\b
31
+ name: constant.numeric.julia
32
+ - include: $self
33
+ bracket:
34
+ patterns:
35
+ - match: (?:\(|\)|\[|\]|\{|\}|,)(?!('|(?:\.'))*\.?')
36
+ name: meta.bracket.julia
37
+ comment:
38
+ patterns:
39
+ - begin: '#='
40
+ beginCaptures:
41
+ '0':
42
+ name: punctuation.definition.comment.begin.julia
43
+ end: =#
44
+ endCaptures:
45
+ '0':
46
+ name: punctuation.definition.comment.end.julia
47
+ name: comment.block.number-sign-equals.julia
48
+ - captures:
49
+ '1':
50
+ name: punctuation.definition.comment.julia
51
+ match: (?<!\$)(#)(?!\{).*$\n?
52
+ name: comment.line.number-sign.julia
53
+ function_call:
54
+ patterns:
55
+ - begin: ([a-zA-Z0-9_]+!?)\w*\(
56
+ beginCaptures:
57
+ '1':
58
+ name: support.function.julia
59
+ end: \)(('|(\.'))*\.?')?
60
+ endCaptures:
61
+ '1':
62
+ name: keyword.operator.transposed-func.julia
63
+ patterns:
64
+ - include: $self
65
+ function_decl:
66
+ patterns:
67
+ - captures:
68
+ '1':
69
+ name: entity.name.function.julia
70
+ '2':
71
+ name: support.type.julia
72
+ match: ([\w.!]+)({[^}]*})?\((?=.*\)\s*=(?!=))
73
+ - captures:
74
+ '1':
75
+ name: keyword.other.julia
76
+ '2':
77
+ name: entity.name.function.julia
78
+ '3':
79
+ name: support.type.julia
80
+ match: \b(function|stagedfunction|macro)\s+([\w.!]+)({[^}]*})?\(
81
+ keyword:
82
+ patterns:
83
+ - match: \b(?:function|stagedfunction|type|immutable|macro|quote|abstract|bitstype|typealias|module|baremodule|new)\b
84
+ name: keyword.other.julia
85
+ - match: \b(?:if|else|elseif|while|for|in|begin|let|end|do|try|catch|finally|return|break|continue)\b
86
+ name: keyword.control.julia
87
+ - match: \b(?:global|local|const|export|import|importall|using)\b
88
+ name: storage.modifier.variable.julia
89
+ - match: '@\w+\b'
90
+ name: support.function.macro.julia
91
+ number:
92
+ patterns:
93
+ - match: ((\b0(x|X)[0-9a-fA-F](_?[0-9a-fA-F])*)|(\b0o[0-7](_?[0-7])*)|(\b0b[0-1](_?[0-1])*)|((\b[0-9](_?[0-9])*\.?(_?[0-9]*))|(\.[0-9](_?[0-9])*))((e|E)(\+|-)?(_?[0-9])*)?(im)?|\bInf(32)?\b|\bNaN(32)?\b)
94
+ name: constant.numeric.julia
95
+ - match: \btrue\b|\bfalse\b|\bnothing\b
96
+ name: constant.language.julia
97
+ operator:
98
+ patterns:
99
+ - match: (?:=|:=|\+=|-=|\*=|/=|//=|\.//=|\.\*=|\\=|\.\\=|^=|\.^=|%=|\|=|&=|\$=|<<=|>>=)
100
+ name: keyword.operator.update.julia
101
+ - match: (?:::(?:(?:Union)?\([^)]*\)|\w+(?:{[^}]*})?))(?:\.\.\.)?
102
+ name: support.type.julia
103
+ - match: (?:\?|:)
104
+ name: keyword.operator.ternary.julia
105
+ - match: (?:\|\||&&|!)
106
+ name: keyword.operator.boolean.julia
107
+ - match: (?:->|<-|-->)
108
+ name: keyword.operator.arrow.julia
109
+ - match: (?:>|<|>=|<=|==|!=|\.>|\.<|\.>=|\.>=|\.==|\.!=|\.=|\.!|<:|:>)
110
+ name: keyword.operator.relation.julia
111
+ - match: (?::)
112
+ name: keyword.operator.range.julia
113
+ - match: (?:<<|>>)
114
+ name: keyword.operator.shift.julia
115
+ - match: (?:\||\&|~)
116
+ name: keyword.operator.bitwise.julia
117
+ - match: (?:\+|-|\*|\.\*|/|\./|//|\.//|%|\.%|\\|\.\\|\^|\.\^)
118
+ name: keyword.operator.arithmetic.julia
119
+ - match: (?:::)
120
+ name: keyword.operator.isa.julia
121
+ - match: (?:\.(?=[a-zA-Z])|\.\.+)
122
+ name: keyword.operator.dots.julia
123
+ - match: (?:\$(?=.+))
124
+ name: keyword.operator.interpolation.julia
125
+ - captures:
126
+ '2':
127
+ name: keyword.operator.transposed-variable.julia
128
+ match: (\w+)(('|(\.'))*\.?')
129
+ - captures:
130
+ '1':
131
+ name: keyword.bracket.end.julia
132
+ '2':
133
+ name: keyword.operator.transposed-matrix.julia
134
+ match: (\])((?:'|(?:\.'))*\.?')
135
+ - captures:
136
+ '1':
137
+ name: keyword.bracket.end.julia
138
+ '2':
139
+ name: keyword.operator.transposed-parens.julia
140
+ match: (\))((?:'|(?:\.'))*\.?')
141
+ string:
142
+ patterns:
143
+ - begin: ''''
144
+ beginCaptures:
145
+ '0':
146
+ name: punctuation.definition.string.begin.julia
147
+ end: ''''
148
+ endCaptures:
149
+ '0':
150
+ name: punctuation.definition.string.end.julia
151
+ name: string.quoted.single.julia
152
+ patterns:
153
+ - include: '#string_escaped_char'
154
+ - begin: '"'
155
+ beginCaptures:
156
+ '0':
157
+ name: punctuation.definition.string.begin.julia
158
+ end: '"'
159
+ endCaptures:
160
+ '0':
161
+ name: punctuation.definition.string.end.julia
162
+ name: string.quoted.double.julia
163
+ patterns:
164
+ - include: '#string_escaped_char'
165
+ - begin: \b\w+"
166
+ beginCaptures:
167
+ '0':
168
+ name: punctuation.definition.string.begin.julia
169
+ end: '"\w*'
170
+ endCaptures:
171
+ '0':
172
+ name: punctuation.definition.string.end.julia
173
+ name: string.quoted.other.julia
174
+ patterns:
175
+ - include: '#string_custom_escaped_char'
176
+ - begin: '`'
177
+ beginCaptures:
178
+ '0':
179
+ name: punctuation.definition.string.begin.julia
180
+ end: '`'
181
+ endCaptures:
182
+ '0':
183
+ name: punctuation.definition.string.end.julia
184
+ name: string.interpolated.julia
185
+ patterns:
186
+ - include: '#string_escaped_char'
187
+ string_custom_escaped_char:
188
+ patterns:
189
+ - match: \\"
190
+ name: constant.character.escape.julia
191
+ string_escaped_char:
192
+ patterns:
193
+ - match: \\(\\|[0-3]\d{0,2}|[4-7]\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8}|.)
194
+ name: constant.character.escape.julia
195
+ symbol:
196
+ patterns:
197
+ - match: (?<![a-zA-Z0-9:<]:):[a-zA-Z_][a-zA-Z0-9_]*\b
198
+ name: constant.other.symbol.julia
199
+ type_decl:
200
+ patterns:
201
+ - captures:
202
+ '1':
203
+ name: keyword.control.type.julia
204
+ '2':
205
+ name: entity.name.type.julia
206
+ '3':
207
+ name: entity.other.inherited-class.julia
208
+ '4':
209
+ name: punctuation.separator.inheritance.julia
210
+ match: (type|immutable)\s+(\w+)(\s*(<:)\s*\w+(?:{.*})?)?
211
+ name: meta.type.julia
212
+ scopeName: source.julia
213
+ uuid: F5D95417-DF9F-48AD-92DF-21CE62F7C31B
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyndoc-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - RCqls
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-23 00:00:00.000000000 Z
11
+ date: 2017-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: R4rb
@@ -303,6 +303,7 @@ files:
303
303
  - share/etc/uv/syntax/source.js.syntax
304
304
  - share/etc/uv/syntax/source.js.yui.syntax
305
305
  - share/etc/uv/syntax/source.json.syntax
306
+ - share/etc/uv/syntax/source.julia.syntax
306
307
  - share/etc/uv/syntax/source.lex.syntax
307
308
  - share/etc/uv/syntax/source.lighttpd-config.syntax
308
309
  - share/etc/uv/syntax/source.lilypond.syntax