coderay 0.9.7 → 0.9.8.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/README +1 -1
- data/lib/coderay.rb +1 -1
- data/lib/coderay/helpers/file_type.rb +39 -34
- data/lib/coderay/scanner.rb +9 -1
- data/lib/coderay/scanners/css.rb +1 -1
- data/lib/coderay/scanners/nitro_xhtml.rb +1 -1
- data/lib/coderay/scanners/php.rb +1 -1
- data/lib/coderay/scanners/plaintext.rb +1 -2
- data/lib/coderay/scanners/rhtml.rb +1 -1
- data/lib/coderay/scanners/ruby.rb +1 -1
- data/lib/coderay/scanners/ruby/patterns.rb +1 -12
- data/lib/coderay/scanners/sql.rb +10 -12
- metadata +13 -18
- data/test/functional/basic.rbc +0 -2022
- data/test/functional/for_redcloth.rbc +0 -1708
- data/test/functional/load_plugin_scanner.rbc +0 -317
- data/test/functional/suite.rbc +0 -322
- data/test/functional/vhdl.rbc +0 -2334
- data/test/functional/word_list.rbc +0 -1763
@@ -1,317 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
0
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
53
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
5
|
23
|
-
7
|
24
|
-
2
|
25
|
-
64
|
26
|
-
47
|
27
|
-
49
|
28
|
-
1
|
29
|
-
1
|
30
|
-
15
|
31
|
-
99
|
32
|
-
7
|
33
|
-
3
|
34
|
-
45
|
35
|
-
4
|
36
|
-
5
|
37
|
-
43
|
38
|
-
6
|
39
|
-
43
|
40
|
-
7
|
41
|
-
65
|
42
|
-
49
|
43
|
-
8
|
44
|
-
3
|
45
|
-
13
|
46
|
-
99
|
47
|
-
12
|
48
|
-
7
|
49
|
-
9
|
50
|
-
12
|
51
|
-
7
|
52
|
-
10
|
53
|
-
12
|
54
|
-
65
|
55
|
-
12
|
56
|
-
49
|
57
|
-
11
|
58
|
-
4
|
59
|
-
15
|
60
|
-
49
|
61
|
-
9
|
62
|
-
0
|
63
|
-
15
|
64
|
-
2
|
65
|
-
11
|
66
|
-
I
|
67
|
-
6
|
68
|
-
I
|
69
|
-
0
|
70
|
-
I
|
71
|
-
0
|
72
|
-
I
|
73
|
-
0
|
74
|
-
n
|
75
|
-
p
|
76
|
-
12
|
77
|
-
s
|
78
|
-
9
|
79
|
-
test/unit
|
80
|
-
x
|
81
|
-
7
|
82
|
-
require
|
83
|
-
s
|
84
|
-
7
|
85
|
-
coderay
|
86
|
-
x
|
87
|
-
17
|
88
|
-
PluginScannerTest
|
89
|
-
x
|
90
|
-
4
|
91
|
-
Test
|
92
|
-
n
|
93
|
-
x
|
94
|
-
4
|
95
|
-
Unit
|
96
|
-
x
|
97
|
-
8
|
98
|
-
TestCase
|
99
|
-
x
|
100
|
-
10
|
101
|
-
open_class
|
102
|
-
x
|
103
|
-
14
|
104
|
-
__class_init__
|
105
|
-
M
|
106
|
-
1
|
107
|
-
n
|
108
|
-
n
|
109
|
-
x
|
110
|
-
17
|
111
|
-
PluginScannerTest
|
112
|
-
i
|
113
|
-
16
|
114
|
-
5
|
115
|
-
66
|
116
|
-
99
|
117
|
-
7
|
118
|
-
0
|
119
|
-
7
|
120
|
-
1
|
121
|
-
65
|
122
|
-
67
|
123
|
-
49
|
124
|
-
2
|
125
|
-
0
|
126
|
-
49
|
127
|
-
3
|
128
|
-
4
|
129
|
-
11
|
130
|
-
I
|
131
|
-
5
|
132
|
-
I
|
133
|
-
0
|
134
|
-
I
|
135
|
-
0
|
136
|
-
I
|
137
|
-
0
|
138
|
-
n
|
139
|
-
p
|
140
|
-
4
|
141
|
-
x
|
142
|
-
9
|
143
|
-
test_load
|
144
|
-
M
|
145
|
-
1
|
146
|
-
n
|
147
|
-
n
|
148
|
-
x
|
149
|
-
9
|
150
|
-
test_load
|
151
|
-
i
|
152
|
-
48
|
153
|
-
5
|
154
|
-
45
|
155
|
-
0
|
156
|
-
1
|
157
|
-
45
|
158
|
-
0
|
159
|
-
2
|
160
|
-
65
|
161
|
-
49
|
162
|
-
3
|
163
|
-
0
|
164
|
-
49
|
165
|
-
4
|
166
|
-
1
|
167
|
-
7
|
168
|
-
5
|
169
|
-
64
|
170
|
-
49
|
171
|
-
6
|
172
|
-
2
|
173
|
-
47
|
174
|
-
49
|
175
|
-
7
|
176
|
-
1
|
177
|
-
15
|
178
|
-
5
|
179
|
-
7
|
180
|
-
8
|
181
|
-
64
|
182
|
-
45
|
183
|
-
9
|
184
|
-
10
|
185
|
-
7
|
186
|
-
11
|
187
|
-
49
|
188
|
-
12
|
189
|
-
1
|
190
|
-
49
|
191
|
-
13
|
192
|
-
0
|
193
|
-
49
|
194
|
-
14
|
195
|
-
0
|
196
|
-
47
|
197
|
-
49
|
198
|
-
15
|
199
|
-
2
|
200
|
-
11
|
201
|
-
I
|
202
|
-
4
|
203
|
-
I
|
204
|
-
0
|
205
|
-
I
|
206
|
-
0
|
207
|
-
I
|
208
|
-
0
|
209
|
-
n
|
210
|
-
p
|
211
|
-
16
|
212
|
-
x
|
213
|
-
4
|
214
|
-
File
|
215
|
-
n
|
216
|
-
n
|
217
|
-
x
|
218
|
-
11
|
219
|
-
active_path
|
220
|
-
x
|
221
|
-
7
|
222
|
-
dirname
|
223
|
-
s
|
224
|
-
4
|
225
|
-
vhdl
|
226
|
-
x
|
227
|
-
4
|
228
|
-
join
|
229
|
-
x
|
230
|
-
7
|
231
|
-
require
|
232
|
-
s
|
233
|
-
4
|
234
|
-
VHDL
|
235
|
-
x
|
236
|
-
7
|
237
|
-
CodeRay
|
238
|
-
n
|
239
|
-
x
|
240
|
-
4
|
241
|
-
vhdl
|
242
|
-
x
|
243
|
-
7
|
244
|
-
scanner
|
245
|
-
x
|
246
|
-
5
|
247
|
-
class
|
248
|
-
x
|
249
|
-
4
|
250
|
-
name
|
251
|
-
x
|
252
|
-
12
|
253
|
-
assert_equal
|
254
|
-
p
|
255
|
-
7
|
256
|
-
I
|
257
|
-
0
|
258
|
-
I
|
259
|
-
6
|
260
|
-
I
|
261
|
-
0
|
262
|
-
I
|
263
|
-
7
|
264
|
-
I
|
265
|
-
19
|
266
|
-
I
|
267
|
-
8
|
268
|
-
I
|
269
|
-
30
|
270
|
-
x
|
271
|
-
69
|
272
|
-
/Users/murphy/ruby/coderay-0.9/test/functional/load_plugin_scanner.rb
|
273
|
-
p
|
274
|
-
0
|
275
|
-
x
|
276
|
-
17
|
277
|
-
method_visibility
|
278
|
-
x
|
279
|
-
15
|
280
|
-
add_defn_method
|
281
|
-
p
|
282
|
-
3
|
283
|
-
I
|
284
|
-
2
|
285
|
-
I
|
286
|
-
6
|
287
|
-
I
|
288
|
-
10
|
289
|
-
x
|
290
|
-
69
|
291
|
-
/Users/murphy/ruby/coderay-0.9/test/functional/load_plugin_scanner.rb
|
292
|
-
p
|
293
|
-
0
|
294
|
-
x
|
295
|
-
13
|
296
|
-
attach_method
|
297
|
-
p
|
298
|
-
7
|
299
|
-
I
|
300
|
-
0
|
301
|
-
I
|
302
|
-
1
|
303
|
-
I
|
304
|
-
9
|
305
|
-
I
|
306
|
-
2
|
307
|
-
I
|
308
|
-
12
|
309
|
-
I
|
310
|
-
4
|
311
|
-
I
|
312
|
-
35
|
313
|
-
x
|
314
|
-
69
|
315
|
-
/Users/murphy/ruby/coderay-0.9/test/functional/load_plugin_scanner.rb
|
316
|
-
p
|
317
|
-
0
|
data/test/functional/suite.rbc
DELETED
@@ -1,322 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
0
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
95
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
65
|
23
|
-
7
|
24
|
-
2
|
25
|
-
45
|
26
|
-
3
|
27
|
-
4
|
28
|
-
65
|
29
|
-
49
|
30
|
-
5
|
31
|
-
0
|
32
|
-
49
|
33
|
-
6
|
34
|
-
1
|
35
|
-
49
|
36
|
-
7
|
37
|
-
2
|
38
|
-
15
|
39
|
-
99
|
40
|
-
43
|
41
|
-
8
|
42
|
-
7
|
43
|
-
9
|
44
|
-
49
|
45
|
-
10
|
46
|
-
1
|
47
|
-
7
|
48
|
-
11
|
49
|
-
64
|
50
|
-
49
|
51
|
-
12
|
52
|
-
1
|
53
|
-
15
|
54
|
-
5
|
55
|
-
7
|
56
|
-
13
|
57
|
-
64
|
58
|
-
47
|
59
|
-
49
|
60
|
-
1
|
61
|
-
1
|
62
|
-
15
|
63
|
-
5
|
64
|
-
7
|
65
|
-
14
|
66
|
-
45
|
67
|
-
15
|
68
|
-
16
|
69
|
-
43
|
70
|
-
17
|
71
|
-
47
|
72
|
-
49
|
73
|
-
18
|
74
|
-
0
|
75
|
-
7
|
76
|
-
19
|
77
|
-
63
|
78
|
-
3
|
79
|
-
47
|
80
|
-
49
|
81
|
-
20
|
82
|
-
1
|
83
|
-
15
|
84
|
-
7
|
85
|
-
21
|
86
|
-
64
|
87
|
-
7
|
88
|
-
22
|
89
|
-
64
|
90
|
-
7
|
91
|
-
23
|
92
|
-
64
|
93
|
-
35
|
94
|
-
3
|
95
|
-
19
|
96
|
-
0
|
97
|
-
15
|
98
|
-
20
|
99
|
-
0
|
100
|
-
56
|
101
|
-
24
|
102
|
-
50
|
103
|
-
25
|
104
|
-
0
|
105
|
-
15
|
106
|
-
2
|
107
|
-
11
|
108
|
-
I
|
109
|
-
6
|
110
|
-
I
|
111
|
-
2
|
112
|
-
I
|
113
|
-
0
|
114
|
-
I
|
115
|
-
0
|
116
|
-
n
|
117
|
-
p
|
118
|
-
26
|
119
|
-
s
|
120
|
-
9
|
121
|
-
test/unit
|
122
|
-
x
|
123
|
-
7
|
124
|
-
require
|
125
|
-
x
|
126
|
-
5
|
127
|
-
MYDIR
|
128
|
-
x
|
129
|
-
4
|
130
|
-
File
|
131
|
-
n
|
132
|
-
x
|
133
|
-
11
|
134
|
-
active_path
|
135
|
-
x
|
136
|
-
7
|
137
|
-
dirname
|
138
|
-
x
|
139
|
-
9
|
140
|
-
const_set
|
141
|
-
x
|
142
|
-
7
|
143
|
-
Globals
|
144
|
-
x
|
145
|
-
2
|
146
|
-
$:
|
147
|
-
x
|
148
|
-
2
|
149
|
-
[]
|
150
|
-
s
|
151
|
-
3
|
152
|
-
lib
|
153
|
-
x
|
154
|
-
2
|
155
|
-
<<
|
156
|
-
s
|
157
|
-
7
|
158
|
-
coderay
|
159
|
-
s
|
160
|
-
22
|
161
|
-
Running basic CodeRay
|
162
|
-
x
|
163
|
-
7
|
164
|
-
CodeRay
|
165
|
-
n
|
166
|
-
x
|
167
|
-
7
|
168
|
-
VERSION
|
169
|
-
x
|
170
|
-
4
|
171
|
-
to_s
|
172
|
-
s
|
173
|
-
9
|
174
|
-
tests...
|
175
|
-
x
|
176
|
-
4
|
177
|
-
puts
|
178
|
-
s
|
179
|
-
5
|
180
|
-
basic
|
181
|
-
s
|
182
|
-
19
|
183
|
-
load_plugin_scanner
|
184
|
-
s
|
185
|
-
9
|
186
|
-
word_list
|
187
|
-
M
|
188
|
-
1
|
189
|
-
p
|
190
|
-
2
|
191
|
-
x
|
192
|
-
9
|
193
|
-
for_block
|
194
|
-
t
|
195
|
-
n
|
196
|
-
x
|
197
|
-
9
|
198
|
-
__block__
|
199
|
-
i
|
200
|
-
28
|
201
|
-
57
|
202
|
-
22
|
203
|
-
1
|
204
|
-
1
|
205
|
-
15
|
206
|
-
5
|
207
|
-
45
|
208
|
-
0
|
209
|
-
1
|
210
|
-
45
|
211
|
-
2
|
212
|
-
3
|
213
|
-
21
|
214
|
-
1
|
215
|
-
1
|
216
|
-
7
|
217
|
-
4
|
218
|
-
64
|
219
|
-
81
|
220
|
-
5
|
221
|
-
49
|
222
|
-
6
|
223
|
-
2
|
224
|
-
47
|
225
|
-
49
|
226
|
-
7
|
227
|
-
1
|
228
|
-
11
|
229
|
-
I
|
230
|
-
6
|
231
|
-
I
|
232
|
-
0
|
233
|
-
I
|
234
|
-
1
|
235
|
-
I
|
236
|
-
1
|
237
|
-
n
|
238
|
-
p
|
239
|
-
8
|
240
|
-
x
|
241
|
-
4
|
242
|
-
File
|
243
|
-
n
|
244
|
-
x
|
245
|
-
5
|
246
|
-
MYDIR
|
247
|
-
n
|
248
|
-
s
|
249
|
-
3
|
250
|
-
.rb
|
251
|
-
x
|
252
|
-
1
|
253
|
-
+
|
254
|
-
x
|
255
|
-
4
|
256
|
-
join
|
257
|
-
x
|
258
|
-
4
|
259
|
-
load
|
260
|
-
p
|
261
|
-
5
|
262
|
-
I
|
263
|
-
0
|
264
|
-
I
|
265
|
-
a
|
266
|
-
I
|
267
|
-
5
|
268
|
-
I
|
269
|
-
b
|
270
|
-
I
|
271
|
-
1c
|
272
|
-
x
|
273
|
-
55
|
274
|
-
/Users/murphy/ruby/coderay-0.9/test/functional/suite.rb
|
275
|
-
p
|
276
|
-
0
|
277
|
-
x
|
278
|
-
4
|
279
|
-
each
|
280
|
-
p
|
281
|
-
15
|
282
|
-
I
|
283
|
-
0
|
284
|
-
I
|
285
|
-
1
|
286
|
-
I
|
287
|
-
9
|
288
|
-
I
|
289
|
-
3
|
290
|
-
I
|
291
|
-
1a
|
292
|
-
I
|
293
|
-
5
|
294
|
-
I
|
295
|
-
29
|
296
|
-
I
|
297
|
-
6
|
298
|
-
I
|
299
|
-
32
|
300
|
-
I
|
301
|
-
7
|
302
|
-
I
|
303
|
-
47
|
304
|
-
I
|
305
|
-
9
|
306
|
-
I
|
307
|
-
55
|
308
|
-
I
|
309
|
-
a
|
310
|
-
I
|
311
|
-
5f
|
312
|
-
x
|
313
|
-
55
|
314
|
-
/Users/murphy/ruby/coderay-0.9/test/functional/suite.rb
|
315
|
-
p
|
316
|
-
2
|
317
|
-
x
|
318
|
-
5
|
319
|
-
suite
|
320
|
-
x
|
321
|
-
9
|
322
|
-
test_case
|