w2tags 0.9.56 → 0.9.57
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.
- data/lib/w2tags/parser.rb +15 -6
- data/tasks/setup.rb +1 -1
- metadata +1 -1
data/lib/w2tags/parser.rb
CHANGED
@@ -184,7 +184,7 @@ module W2Tags
|
|
184
184
|
|
185
185
|
@ln_end = "" #imediate ends tag
|
186
186
|
@row.gsub!(/\\\\/,'') #esc char \\
|
187
|
-
@row.gsub!('\}','') #esc char \
|
187
|
+
@row.gsub!('\}','') #esc char \}
|
188
188
|
@row.gsub!('\;','') #esc char \;
|
189
189
|
while (parse_all) do; end
|
190
190
|
@row.gsub!('','\\')
|
@@ -418,6 +418,9 @@ module W2Tags
|
|
418
418
|
@new.gsub!(k,v)
|
419
419
|
end
|
420
420
|
end
|
421
|
+
prms.gsub!(/\\\\/,'') #esc char \\
|
422
|
+
prms.gsub!('\}','') #esc char \}
|
423
|
+
prms.gsub!('\;','') #esc char \;
|
421
424
|
prms = prms.split(';') #W2Tags::splitter(prms)
|
422
425
|
new_prms = @new.scan(/\$[0-9]/).uniq
|
423
426
|
new_alls = @new.scan(/\$\*/) #;p 'rpl:',new_alls,new_prms,prms
|
@@ -447,11 +450,17 @@ module W2Tags
|
|
447
450
|
clscnt = clsmlt.length
|
448
451
|
clsmlt+= clscnt==1 ? clsmlt*prms.length : ['']*prms.length
|
449
452
|
prms.each_with_index do |x,i|
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
453
|
+
y = x.strip
|
454
|
+
if /^~[-%]/ =~ y
|
455
|
+
tmp<< y[1,y.length-1]
|
456
|
+
tmp<< "\n#{@spc}" if i+1<prms.size
|
457
|
+
else
|
458
|
+
line = rpt+x #tmp<< @new.gsub(new_prms[0],x)
|
459
|
+
#implement multi class params ^.d;.g canggh;bow
|
460
|
+
line.gsub!(classs,clsmlt[i]) if classs
|
461
|
+
tmp<< line
|
462
|
+
tmp<< "\n#{@spc}" if i+1<prms.size
|
463
|
+
end
|
455
464
|
end
|
456
465
|
@new = tmp
|
457
466
|
else
|
data/tasks/setup.rb
CHANGED
@@ -17,7 +17,7 @@ PROJ = OpenStruct.new(
|
|
17
17
|
:authors => 'Widi Harsojo',
|
18
18
|
:email => 'wharsojo@gmail.com',
|
19
19
|
:url => "\000",
|
20
|
-
:version => ENV['VERSION'] || '0.9.
|
20
|
+
:version => ENV['VERSION'] || '0.9.57',
|
21
21
|
:exclude => %w(tmp$ bak$ ~$ CVS \.svn/ \.git/ ^pkg/),
|
22
22
|
:release_name => ENV['RELEASE'],
|
23
23
|
|