lazibi 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Manifest.txt +15 -0
- data/lib/helper/parser_helper.rb +9 -9
- data/lib/lazibi/version.rb +1 -1
- data/lib/parser.rb +5 -3
- data/lib/vendor/beautifier.rb +74 -28
- data/test/fixtures/clean/comment_break.txt +5 -0
- data/test/fixtures/clean/mixed_re.txt +7 -0
- data/test/fixtures/clean/sep_line.txt +11 -1
- data/test/fixtures/clean/unless_problem.txt +4 -0
- data/test/fixtures/meta/loop.txt +1 -0
- data/test/fixtures/meta/multi_blocks.txt +11 -0
- data/test/fixtures/meta/single_method.txt +2 -0
- data/test/fixtures/real/comment_break.txt +5 -0
- data/test/fixtures/real/general_eval.txt +1 -0
- data/test/fixtures/real/javascript.txt +3 -0
- data/test/fixtures/real/loop.txt +1 -0
- data/test/fixtures/real/mixed_re.txt +7 -0
- data/test/fixtures/real/multi_blocks.txt +14 -0
- data/test/fixtures/real/sep_line.txt +12 -1
- data/test/fixtures/real/single_method.txt +2 -0
- data/test/fixtures/real/strange_syntax_1.txt +2 -0
- data/test/fixtures/real/unless_problem.txt +4 -0
- data/test/test_unit.rb +16 -1
- data/website/index.html +1 -1
- metadata +31 -1
data/History.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
== 0.1.9 2007-06-19
|
2
|
+
|
3
|
+
* Using rails as a regression test code base is rewarding
|
4
|
+
* Currently works with ActiveSupport, ActionMailer, ActionPack
|
5
|
+
* Unit tests are from rails source code....
|
6
|
+
* Sleepy
|
7
|
+
|
1
8
|
== 0.1.8 2007-06-19
|
2
9
|
|
3
10
|
* Support Here doc by not processing it :/
|
data/Manifest.txt
CHANGED
@@ -15,11 +15,14 @@ lib/task.rb
|
|
15
15
|
lib/vendor/beautifier.rb
|
16
16
|
scripts/rdoc2html
|
17
17
|
scripts/txt2html
|
18
|
+
test/fixtures/clean/comment_break.txt
|
18
19
|
test/fixtures/clean/end_concat.txt
|
19
20
|
test/fixtures/clean/long_indent.txt
|
21
|
+
test/fixtures/clean/mixed_re.txt
|
20
22
|
test/fixtures/clean/only_if.txt
|
21
23
|
test/fixtures/clean/re.txt
|
22
24
|
test/fixtures/clean/sep_line.txt
|
25
|
+
test/fixtures/clean/unless_problem.txt
|
23
26
|
test/fixtures/meta/basic_class.txt
|
24
27
|
test/fixtures/meta/case.txt
|
25
28
|
test/fixtures/meta/class_with_def.txt
|
@@ -27,22 +30,31 @@ test/fixtures/meta/comment.txt
|
|
27
30
|
test/fixtures/meta/eval_code.txt
|
28
31
|
test/fixtures/meta/here_doc.txt
|
29
32
|
test/fixtures/meta/inline_end.txt
|
33
|
+
test/fixtures/meta/loop.txt
|
30
34
|
test/fixtures/meta/middle.txt
|
35
|
+
test/fixtures/meta/multi_blocks.txt
|
31
36
|
test/fixtures/meta/nested_comment.txt
|
32
37
|
test/fixtures/meta/optional_do.txt
|
33
38
|
test/fixtures/meta/optional_do_with_nasty_chars.txt
|
34
39
|
test/fixtures/meta/partial_method.txt
|
40
|
+
test/fixtures/meta/single_method.txt
|
35
41
|
test/fixtures/meta/two_methods.txt
|
36
42
|
test/fixtures/real/basic_class.txt
|
37
43
|
test/fixtures/real/case.txt
|
38
44
|
test/fixtures/real/class_with_def.txt
|
39
45
|
test/fixtures/real/comment.txt
|
46
|
+
test/fixtures/real/comment_break.txt
|
40
47
|
test/fixtures/real/end_concat.txt
|
41
48
|
test/fixtures/real/eval_code.txt
|
49
|
+
test/fixtures/real/general_eval.txt
|
42
50
|
test/fixtures/real/here_doc.txt
|
43
51
|
test/fixtures/real/inline_end.txt
|
52
|
+
test/fixtures/real/javascript.txt
|
44
53
|
test/fixtures/real/long_indent.txt
|
54
|
+
test/fixtures/real/loop.txt
|
45
55
|
test/fixtures/real/middle.txt
|
56
|
+
test/fixtures/real/mixed_re.txt
|
57
|
+
test/fixtures/real/multi_blocks.txt
|
46
58
|
test/fixtures/real/nested_comment.txt
|
47
59
|
test/fixtures/real/only_if.txt
|
48
60
|
test/fixtures/real/optional_do.txt
|
@@ -50,7 +62,10 @@ test/fixtures/real/optional_do_with_nasty_chars.txt
|
|
50
62
|
test/fixtures/real/partial_method.txt
|
51
63
|
test/fixtures/real/re.txt
|
52
64
|
test/fixtures/real/sep_line.txt
|
65
|
+
test/fixtures/real/single_method.txt
|
66
|
+
test/fixtures/real/strange_syntax_1.txt
|
53
67
|
test/fixtures/real/two_methods.txt
|
68
|
+
test/fixtures/real/unless_problem.txt
|
54
69
|
test/test_helper.rb
|
55
70
|
test/test_unit.rb
|
56
71
|
website/index.html
|
data/lib/helper/parser_helper.rb
CHANGED
@@ -19,14 +19,14 @@ module Lazibi
|
|
19
19
|
def begin_keys
|
20
20
|
[
|
21
21
|
/^module\b/,
|
22
|
-
/(=\s
|
23
|
-
/(=\s
|
24
|
-
/(=\s
|
25
|
-
/(=\s
|
26
|
-
/(=\s
|
27
|
-
/(=\s
|
22
|
+
/(=\s*|^|<<\s*)if\b/,
|
23
|
+
/(=\s*|^|<<\s*)until\b/,
|
24
|
+
/(=\s*|^|<<\s*)for\b/,
|
25
|
+
/(=\s*|^|<<\s*)unless\b/,
|
26
|
+
/(=\s*|^|<<\s*)while\b/,
|
27
|
+
/(=\s*|^|<<\s*)begin\b/,
|
28
|
+
/(=\s*|^|<<\s*)loop\b\s*do/,
|
28
29
|
/\bcase\b/,
|
29
|
-
/(=\s*|^)loop\b/,
|
30
30
|
/^class\b/,
|
31
31
|
/^def\b/,
|
32
32
|
/\bdo\b/,
|
@@ -35,12 +35,12 @@ module Lazibi
|
|
35
35
|
|
36
36
|
def middle_keys
|
37
37
|
[
|
38
|
-
|
38
|
+
/^then\b/,
|
39
39
|
/^else\b/,
|
40
40
|
/^elsif\b/,
|
41
41
|
/^ensure\b/,
|
42
42
|
/^rescue\b/,
|
43
|
-
|
43
|
+
/^when\b/
|
44
44
|
]
|
45
45
|
end
|
46
46
|
|
data/lib/lazibi/version.rb
CHANGED
data/lib/parser.rb
CHANGED
@@ -85,11 +85,13 @@ module Lazibi
|
|
85
85
|
return anchor if get_indent(l) < indent
|
86
86
|
if get_indent(l) == indent
|
87
87
|
rest = get_rest l
|
88
|
-
if
|
88
|
+
if start_anchor? rest
|
89
|
+
return anchor
|
90
|
+
elsif end_anchor? rest
|
91
|
+
return false
|
92
|
+
elsif middle_anchor? rest
|
89
93
|
anchor = i + 1
|
90
94
|
next
|
91
|
-
elsif end_anchor? rest
|
92
|
-
return false
|
93
95
|
else
|
94
96
|
return anchor
|
95
97
|
end
|
data/lib/vendor/beautifier.rb
CHANGED
@@ -13,15 +13,15 @@ module Beautifier
|
|
13
13
|
|
14
14
|
$indentExp = [
|
15
15
|
/^module\b/,
|
16
|
-
/(=\s
|
17
|
-
/(=\s
|
18
|
-
/(=\s
|
19
|
-
/(=\s
|
20
|
-
/(=\s
|
21
|
-
/(=\s
|
22
|
-
|
23
|
-
/(=\s*|^)loop\b/,
|
16
|
+
/(=\s*|^|<<\s*)if\b/,
|
17
|
+
/(=\s*|^|<<\s*)until\b/,
|
18
|
+
/(=\s*|^|<<\s*)for\b/,
|
19
|
+
/(=\s*|^|<<\s*)unless\b/,
|
20
|
+
/(=\s*|^|<<\s*)while\b/,
|
21
|
+
/(=\s*|^|<<\s*)begin\b/,
|
22
|
+
/(=\s*|^|<<\s*)loop\b/,
|
24
23
|
# /\bthen\b/,
|
24
|
+
/\bcase\b/,
|
25
25
|
/^class\b/,
|
26
26
|
/^rescue\b/,
|
27
27
|
/^def\b/,
|
@@ -47,6 +47,8 @@ module Beautifier
|
|
47
47
|
/^[^\{]*\}/,
|
48
48
|
/^[^\[]*\]/
|
49
49
|
]
|
50
|
+
|
51
|
+
|
50
52
|
|
51
53
|
def self.makeTab(tab)
|
52
54
|
return (tab < 0) ? "":$tabStr * $tabSize * tab
|
@@ -58,26 +60,41 @@ module Beautifier
|
|
58
60
|
return line + "\n"
|
59
61
|
end
|
60
62
|
|
61
|
-
def self.clean_line( line )
|
63
|
+
def self.clean_line( line, leave_comment = false )
|
62
64
|
|
63
65
|
# throw out sequences that will
|
64
66
|
# only sow confusion
|
65
67
|
|
66
68
|
tline = line.dup
|
67
|
-
|
68
|
-
|
69
|
-
tline.gsub!(
|
69
|
+
|
70
|
+
|
71
|
+
tline.gsub!(/\/.*?[^\\]\//,"//")
|
72
|
+
|
73
|
+
tline.gsub!(/#\{.*?\}/,"")
|
70
74
|
tline.gsub!(/\\\"/,"'")
|
71
75
|
tline.gsub!(/".*?"/,"\"\"")
|
72
76
|
tline.gsub!(/'.*?'/,"''")
|
73
|
-
|
74
|
-
|
77
|
+
|
75
78
|
# more ..
|
76
|
-
tline.gsub!(/%
|
77
|
-
tline.gsub!(/%
|
78
|
-
tline.gsub!(/%
|
79
|
+
tline.gsub!(/%r\{.*?\}/, "''")
|
80
|
+
tline.gsub!(/%r\(.*?\)/, "''")
|
81
|
+
tline.gsub!(/%r\[.*?\]/, "''")
|
82
|
+
tline.gsub!(/%r(.).*?\1/, "''")
|
83
|
+
|
84
|
+
tline.gsub!(/%w\{.*?\}/, "''")
|
85
|
+
tline.gsub!(/%w\(.*?\)/, "''")
|
86
|
+
tline.gsub!(/%w\[.*?\]/, "''")
|
87
|
+
tline.gsub!(/%w(.).*?\1/, "''")
|
88
|
+
|
89
|
+
|
90
|
+
tline.gsub!(/%q\{.*?\}/, "''")
|
91
|
+
tline.gsub!(/%q\(.*?\)/, "''")
|
92
|
+
tline.gsub!(/%q\[.*?\]/, "''")
|
93
|
+
tline.gsub!(/%q(.).*?\1/, "''")
|
94
|
+
|
79
95
|
|
80
|
-
|
96
|
+
|
97
|
+
tline.gsub!(/#.*$/, '') unless leave_comment
|
81
98
|
|
82
99
|
tline
|
83
100
|
end
|
@@ -102,7 +119,7 @@ module Beautifier
|
|
102
119
|
buffer = ''
|
103
120
|
new_lines = []
|
104
121
|
for line in lines
|
105
|
-
if line =~
|
122
|
+
if clean_line(line, true).strip =~ /#/
|
106
123
|
if continue
|
107
124
|
new_lines << buffer
|
108
125
|
new_lines << line
|
@@ -119,7 +136,7 @@ module Beautifier
|
|
119
136
|
new_lines << buffer
|
120
137
|
new_lines << line
|
121
138
|
buffer = ''
|
122
|
-
elsif line.strip[-1..-1] == "\\"
|
139
|
+
elsif line.strip[-1..-1] == "\\"
|
123
140
|
continue = true
|
124
141
|
buffer += ' ' + line.strip[0...-1].strip
|
125
142
|
else
|
@@ -131,7 +148,7 @@ module Beautifier
|
|
131
148
|
else
|
132
149
|
if line.strip == ''
|
133
150
|
new_lines << line
|
134
|
-
elsif line.strip[-1..-1] == "\\"
|
151
|
+
elsif line.strip[-1..-1] == "\\"
|
135
152
|
continue = true
|
136
153
|
buffer += line.rstrip[0...-1].strip
|
137
154
|
else
|
@@ -143,9 +160,9 @@ module Beautifier
|
|
143
160
|
new_lines.join("\n")
|
144
161
|
end
|
145
162
|
|
146
|
-
|
163
|
+
|
147
164
|
def self.valid?( line )
|
148
|
-
not_supported = using_eval?(line) || here_doc?(line)
|
165
|
+
not_supported = using_eval?(line) || here_doc?(line) || special_syntax(line)
|
149
166
|
return !not_supported
|
150
167
|
end
|
151
168
|
|
@@ -156,10 +173,30 @@ module Beautifier
|
|
156
173
|
def self.here_doc?( line )
|
157
174
|
line =~ /(=\s*<<)|(<<-)/
|
158
175
|
end
|
176
|
+
|
177
|
+
def self.special_syntax( line )
|
178
|
+
patterns = [
|
179
|
+
/:\[\]=/,
|
180
|
+
/\beval\b/,
|
181
|
+
/javascript_cdata/
|
182
|
+
]
|
183
|
+
for p in patterns
|
184
|
+
return true if line =~ p
|
185
|
+
end
|
159
186
|
|
187
|
+
false
|
188
|
+
end
|
189
|
+
|
190
|
+
def self.valid_before_clean?( line )
|
191
|
+
r = line =~ /#\{[^\{]*#\{.*\}.*\}/
|
192
|
+
r.nil?
|
193
|
+
end
|
194
|
+
|
195
|
+
|
160
196
|
def self.ruby( source )
|
161
197
|
invalid = false
|
162
|
-
source = join_sep_line(split_end(source))
|
198
|
+
#source = join_sep_line(split_end(source))
|
199
|
+
source = split_end(source)
|
163
200
|
commentBlock = false
|
164
201
|
multiLineArray = Array.new
|
165
202
|
multiLineStr = ""
|
@@ -167,7 +204,7 @@ module Beautifier
|
|
167
204
|
dest = ""
|
168
205
|
source.split("\n").each do |line|
|
169
206
|
# combine continuing lines
|
170
|
-
if(!(line =~
|
207
|
+
if(!(clean_line(line, true) =~ /\s*#/) && line =~ /[^\\]\\\s*$/)
|
171
208
|
multiLineArray.push line
|
172
209
|
multiLineStr += line.sub(/^(.*)\\\s*$/,"\\1")
|
173
210
|
next
|
@@ -191,9 +228,10 @@ module Beautifier
|
|
191
228
|
if(!commentLine)
|
192
229
|
# throw out sequences that will
|
193
230
|
# only sow confusion
|
231
|
+
valid_before = valid_before_clean?( tline )
|
194
232
|
tline = clean_line(tline)
|
195
|
-
unless valid?(tline)
|
196
|
-
puts '
|
233
|
+
unless ( valid?(tline) && valid_before )
|
234
|
+
puts '- ' + tline
|
197
235
|
invalid = true
|
198
236
|
break
|
199
237
|
end
|
@@ -205,8 +243,16 @@ module Beautifier
|
|
205
243
|
end
|
206
244
|
end
|
207
245
|
if (multiLineArray.length > 0)
|
246
|
+
first_line = true
|
208
247
|
multiLineArray.each do |ml|
|
209
|
-
|
248
|
+
if first_line
|
249
|
+
dest += addLine(ml,tab)
|
250
|
+
first_line = false
|
251
|
+
elsif ml.strip =~ /^unless/ || ml.strip =~ /^if/
|
252
|
+
dest = dest.chop.rstrip.chop.rstrip + ' ' + ml.strip + "\n"
|
253
|
+
else
|
254
|
+
dest += addLine(ml,tab)
|
255
|
+
end
|
210
256
|
end
|
211
257
|
multiLineArray.clear
|
212
258
|
multiLineStr = ""
|
@@ -0,0 +1 @@
|
|
1
|
+
loop { yield(scanner.scan(char) || break) }
|
@@ -0,0 +1,11 @@
|
|
1
|
+
session_options.each do |opts|
|
2
|
+
next if opts[:if] && !opts[:if].call(request)
|
3
|
+
if opts[:only] && opts[:only].include?(action)
|
4
|
+
options.merge!(opts)
|
5
|
+
elsif opts[:except] && !opts[:except].include?(action)
|
6
|
+
options.merge!(opts)
|
7
|
+
elsif !opts[:only] && !opts[:except]
|
8
|
+
options.merge!(opts)
|
9
|
+
|
10
|
+
if options.empty? then options
|
11
|
+
else
|
@@ -0,0 +1 @@
|
|
1
|
+
eval("::#{k}").object_id != k.object_id
|
@@ -0,0 +1 @@
|
|
1
|
+
loop { yield(scanner.scan(char) || break) }
|
@@ -0,0 +1,14 @@
|
|
1
|
+
session_options.each do |opts|
|
2
|
+
next if opts[:if] && !opts[:if].call(request)
|
3
|
+
if opts[:only] && opts[:only].include?(action)
|
4
|
+
options.merge!(opts)
|
5
|
+
elsif opts[:except] && !opts[:except].include?(action)
|
6
|
+
options.merge!(opts)
|
7
|
+
elsif !opts[:only] && !opts[:except]
|
8
|
+
options.merge!(opts)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
if options.empty? then options
|
13
|
+
else
|
14
|
+
end
|
data/test/test_unit.rb
CHANGED
@@ -55,6 +55,7 @@ class TestLazibi < Test::Unit::TestCase
|
|
55
55
|
assert @r.find_end(@meta[:two_methods].split("\n")[1..-1], 2) == 0
|
56
56
|
assert_find :partial_method, 2, 0
|
57
57
|
assert_find :middle, 0, 1
|
58
|
+
assert_find :multi_blocks, 0, 7
|
58
59
|
end
|
59
60
|
|
60
61
|
def test_convert_path
|
@@ -64,7 +65,7 @@ class TestLazibi < Test::Unit::TestCase
|
|
64
65
|
end
|
65
66
|
|
66
67
|
def test_convert_content
|
67
|
-
@meta.keys.reject{|k| ['partial_method', 'inline_end', 'optional_do', 'eval_code', 'here_doc'].include? k.to_s }.each do |k|
|
68
|
+
@meta.keys.reject{|k| ['partial_method', 'inline_end', 'optional_do', 'eval_code', 'here_doc', 'single_method'].include? k.to_s }.each do |k|
|
68
69
|
assert_convert k
|
69
70
|
end
|
70
71
|
end
|
@@ -82,6 +83,10 @@ class TestLazibi < Test::Unit::TestCase
|
|
82
83
|
def test_skip
|
83
84
|
assert_skip :eval_code
|
84
85
|
assert_skip :here_doc
|
86
|
+
assert_skip :single_method
|
87
|
+
assert_skip :general_eval
|
88
|
+
assert_skip :javascript
|
89
|
+
assert_skip :strange_syntax_1
|
85
90
|
end
|
86
91
|
|
87
92
|
def test_beauty
|
@@ -91,6 +96,12 @@ class TestLazibi < Test::Unit::TestCase
|
|
91
96
|
end
|
92
97
|
|
93
98
|
|
99
|
+
def test_clean
|
100
|
+
assert_clean 'str.gsub(/([^ \/a-zA-Z0-9_.-])/n)', 'str.gsub(//n)'
|
101
|
+
assert_clean '%r{\A#{Regexp.escape(expanded_root)}(/|\\)}', "''"
|
102
|
+
end
|
103
|
+
|
104
|
+
|
94
105
|
private
|
95
106
|
def assert_find( name, indent, end_i )
|
96
107
|
assert_equal @r.find_end(@meta[name].split("\n"), indent), end_i
|
@@ -120,4 +131,8 @@ class TestLazibi < Test::Unit::TestCase
|
|
120
131
|
def assert_skip( name )
|
121
132
|
assert_equal Beautifier::ruby(@real[name]), false, name
|
122
133
|
end
|
134
|
+
|
135
|
+
def assert_clean( line, exp )
|
136
|
+
assert_equal Beautifier::clean_line( line ).to_s, exp, line
|
137
|
+
end
|
123
138
|
end
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>Welcome to Lazibi</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/lazibi"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/lazibi" class="numbers">0.1.
|
36
|
+
<a href="http://rubyforge.org/projects/lazibi" class="numbers">0.1.9</a>
|
37
37
|
</div>
|
38
38
|
<p>
|
39
39
|
Lazibi is a preprocessor that allows you to use Python style indentation in
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.3
|
|
3
3
|
specification_version: 1
|
4
4
|
name: lazibi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
6
|
+
version: 0.1.9
|
7
7
|
date: 2007-06-19 00:00:00 +08:00
|
8
8
|
summary: Python like syntax for Ruby
|
9
9
|
require_paths:
|
@@ -46,11 +46,14 @@ files:
|
|
46
46
|
- lib/vendor/beautifier.rb
|
47
47
|
- scripts/rdoc2html
|
48
48
|
- scripts/txt2html
|
49
|
+
- test/fixtures/clean/comment_break.txt
|
49
50
|
- test/fixtures/clean/end_concat.txt
|
50
51
|
- test/fixtures/clean/long_indent.txt
|
52
|
+
- test/fixtures/clean/mixed_re.txt
|
51
53
|
- test/fixtures/clean/only_if.txt
|
52
54
|
- test/fixtures/clean/re.txt
|
53
55
|
- test/fixtures/clean/sep_line.txt
|
56
|
+
- test/fixtures/clean/unless_problem.txt
|
54
57
|
- test/fixtures/meta/basic_class.txt
|
55
58
|
- test/fixtures/meta/case.txt
|
56
59
|
- test/fixtures/meta/class_with_def.txt
|
@@ -58,22 +61,31 @@ files:
|
|
58
61
|
- test/fixtures/meta/eval_code.txt
|
59
62
|
- test/fixtures/meta/here_doc.txt
|
60
63
|
- test/fixtures/meta/inline_end.txt
|
64
|
+
- test/fixtures/meta/loop.txt
|
61
65
|
- test/fixtures/meta/middle.txt
|
66
|
+
- test/fixtures/meta/multi_blocks.txt
|
62
67
|
- test/fixtures/meta/nested_comment.txt
|
63
68
|
- test/fixtures/meta/optional_do.txt
|
64
69
|
- test/fixtures/meta/optional_do_with_nasty_chars.txt
|
65
70
|
- test/fixtures/meta/partial_method.txt
|
71
|
+
- test/fixtures/meta/single_method.txt
|
66
72
|
- test/fixtures/meta/two_methods.txt
|
67
73
|
- test/fixtures/real/basic_class.txt
|
68
74
|
- test/fixtures/real/case.txt
|
69
75
|
- test/fixtures/real/class_with_def.txt
|
70
76
|
- test/fixtures/real/comment.txt
|
77
|
+
- test/fixtures/real/comment_break.txt
|
71
78
|
- test/fixtures/real/end_concat.txt
|
72
79
|
- test/fixtures/real/eval_code.txt
|
80
|
+
- test/fixtures/real/general_eval.txt
|
73
81
|
- test/fixtures/real/here_doc.txt
|
74
82
|
- test/fixtures/real/inline_end.txt
|
83
|
+
- test/fixtures/real/javascript.txt
|
75
84
|
- test/fixtures/real/long_indent.txt
|
85
|
+
- test/fixtures/real/loop.txt
|
76
86
|
- test/fixtures/real/middle.txt
|
87
|
+
- test/fixtures/real/mixed_re.txt
|
88
|
+
- test/fixtures/real/multi_blocks.txt
|
77
89
|
- test/fixtures/real/nested_comment.txt
|
78
90
|
- test/fixtures/real/only_if.txt
|
79
91
|
- test/fixtures/real/optional_do.txt
|
@@ -81,7 +93,10 @@ files:
|
|
81
93
|
- test/fixtures/real/partial_method.txt
|
82
94
|
- test/fixtures/real/re.txt
|
83
95
|
- test/fixtures/real/sep_line.txt
|
96
|
+
- test/fixtures/real/single_method.txt
|
97
|
+
- test/fixtures/real/strange_syntax_1.txt
|
84
98
|
- test/fixtures/real/two_methods.txt
|
99
|
+
- test/fixtures/real/unless_problem.txt
|
85
100
|
- test/test_helper.rb
|
86
101
|
- test/test_unit.rb
|
87
102
|
- website/index.html
|
@@ -100,11 +115,14 @@ extra_rdoc_files:
|
|
100
115
|
- License.txt
|
101
116
|
- Manifest.txt
|
102
117
|
- README.txt
|
118
|
+
- test/fixtures/clean/comment_break.txt
|
103
119
|
- test/fixtures/clean/end_concat.txt
|
104
120
|
- test/fixtures/clean/long_indent.txt
|
121
|
+
- test/fixtures/clean/mixed_re.txt
|
105
122
|
- test/fixtures/clean/only_if.txt
|
106
123
|
- test/fixtures/clean/re.txt
|
107
124
|
- test/fixtures/clean/sep_line.txt
|
125
|
+
- test/fixtures/clean/unless_problem.txt
|
108
126
|
- test/fixtures/meta/basic_class.txt
|
109
127
|
- test/fixtures/meta/case.txt
|
110
128
|
- test/fixtures/meta/class_with_def.txt
|
@@ -112,22 +130,31 @@ extra_rdoc_files:
|
|
112
130
|
- test/fixtures/meta/eval_code.txt
|
113
131
|
- test/fixtures/meta/here_doc.txt
|
114
132
|
- test/fixtures/meta/inline_end.txt
|
133
|
+
- test/fixtures/meta/loop.txt
|
115
134
|
- test/fixtures/meta/middle.txt
|
135
|
+
- test/fixtures/meta/multi_blocks.txt
|
116
136
|
- test/fixtures/meta/nested_comment.txt
|
117
137
|
- test/fixtures/meta/optional_do.txt
|
118
138
|
- test/fixtures/meta/optional_do_with_nasty_chars.txt
|
119
139
|
- test/fixtures/meta/partial_method.txt
|
140
|
+
- test/fixtures/meta/single_method.txt
|
120
141
|
- test/fixtures/meta/two_methods.txt
|
121
142
|
- test/fixtures/real/basic_class.txt
|
122
143
|
- test/fixtures/real/case.txt
|
123
144
|
- test/fixtures/real/class_with_def.txt
|
124
145
|
- test/fixtures/real/comment.txt
|
146
|
+
- test/fixtures/real/comment_break.txt
|
125
147
|
- test/fixtures/real/end_concat.txt
|
126
148
|
- test/fixtures/real/eval_code.txt
|
149
|
+
- test/fixtures/real/general_eval.txt
|
127
150
|
- test/fixtures/real/here_doc.txt
|
128
151
|
- test/fixtures/real/inline_end.txt
|
152
|
+
- test/fixtures/real/javascript.txt
|
129
153
|
- test/fixtures/real/long_indent.txt
|
154
|
+
- test/fixtures/real/loop.txt
|
130
155
|
- test/fixtures/real/middle.txt
|
156
|
+
- test/fixtures/real/mixed_re.txt
|
157
|
+
- test/fixtures/real/multi_blocks.txt
|
131
158
|
- test/fixtures/real/nested_comment.txt
|
132
159
|
- test/fixtures/real/only_if.txt
|
133
160
|
- test/fixtures/real/optional_do.txt
|
@@ -135,7 +162,10 @@ extra_rdoc_files:
|
|
135
162
|
- test/fixtures/real/partial_method.txt
|
136
163
|
- test/fixtures/real/re.txt
|
137
164
|
- test/fixtures/real/sep_line.txt
|
165
|
+
- test/fixtures/real/single_method.txt
|
166
|
+
- test/fixtures/real/strange_syntax_1.txt
|
138
167
|
- test/fixtures/real/two_methods.txt
|
168
|
+
- test/fixtures/real/unless_problem.txt
|
139
169
|
- website/index.txt
|
140
170
|
executables:
|
141
171
|
- lazibi
|