kwartz 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +10 -3
- data/README.txt +6 -1
- data/bin/kwartz +1 -1
- data/doc-api/classes/Kwartz.html +2 -2
- data/doc-api/classes/Kwartz/Main.html +2 -2
- data/doc-api/created.rid +1 -1
- data/doc-api/files/__/README_txt.html +6 -2
- data/doc-api/files/kwartz/assert_rb.html +1 -1
- data/doc-api/files/kwartz/binding/eperl_rb.html +1 -1
- data/doc-api/files/kwartz/binding/erubis_rb.html +1 -1
- data/doc-api/files/kwartz/binding/eruby_rb.html +1 -1
- data/doc-api/files/kwartz/binding/jstl_rb.html +1 -1
- data/doc-api/files/kwartz/binding/php_rb.html +1 -1
- data/doc-api/files/kwartz/binding/pierubis_rb.html +1 -1
- data/doc-api/files/kwartz/binding/rails_rb.html +1 -1
- data/doc-api/files/kwartz/binding/ruby_rb.html +1 -1
- data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
- data/doc-api/files/kwartz/config_rb.html +1 -1
- data/doc-api/files/kwartz/converter_rb.html +1 -1
- data/doc-api/files/kwartz/defun_rb.html +1 -1
- data/doc-api/files/kwartz/error_rb.html +1 -1
- data/doc-api/files/kwartz/helper/rails_rb.html +1 -1
- data/doc-api/files/kwartz/main_rb.html +2 -2
- data/doc-api/files/kwartz/node_rb.html +1 -1
- data/doc-api/files/kwartz/parser_rb.html +1 -1
- data/doc-api/files/kwartz/translator_rb.html +1 -1
- data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
- data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
- data/doc-api/files/kwartz/util_rb.html +1 -1
- data/doc-api/files/kwartz_rb.html +1 -1
- data/doc/img/fig01.png +0 -0
- data/doc/img/fig02.png +0 -0
- data/doc/img/fig03.png +0 -0
- data/doc/img/fig04.png +0 -0
- data/doc/{p-pattern.html → pattern-catalog.html} +29 -21
- data/doc/pattern-catalog/design.css +51 -0
- data/doc/pattern-catalog/design.html +42 -0
- data/doc/reference.html +23 -261
- data/doc/users-guide.html +70 -44
- data/kwartz.gemspec +13 -9
- data/lib/kwartz.rb +2 -2
- data/lib/kwartz/assert.rb +1 -1
- data/lib/kwartz/binding/eperl.rb +1 -1
- data/lib/kwartz/binding/erubis.rb +1 -1
- data/lib/kwartz/binding/eruby.rb +1 -1
- data/lib/kwartz/binding/jstl.rb +1 -1
- data/lib/kwartz/binding/php.rb +1 -1
- data/lib/kwartz/binding/pierubis.rb +1 -1
- data/lib/kwartz/binding/rails.rb +1 -1
- data/lib/kwartz/binding/ruby.rb +1 -1
- data/lib/kwartz/binding/struts.rb +1 -1
- data/lib/kwartz/config.rb +1 -1
- data/lib/kwartz/converter.rb +1 -1
- data/lib/kwartz/defun.rb +1 -1
- data/lib/kwartz/error.rb +1 -1
- data/lib/kwartz/helper/rails.rb +1 -1
- data/lib/kwartz/main.rb +4 -4
- data/lib/kwartz/node.rb +1 -1
- data/lib/kwartz/parser.rb +1 -1
- data/lib/kwartz/translator.rb +1 -1
- data/lib/kwartz/util.rb +1 -1
- data/lib/kwartz/util/assert-text-equal.rb +1 -1
- data/lib/kwartz/util/testcase-helper.rb +10 -4
- data/test/test-compile.rb +1 -1
- data/test/test-converter.rb +27 -12
- data/test/test-converter.yaml +173 -26
- data/test/test-directives.rb +1 -1
- data/test/test-main.rb +1 -1
- data/test/test-parser.rb +1 -1
- data/test/test-parser.yaml +1 -1
- data/test/test-rails.rb +1 -1
- data/test/test-ruleset.rb +1 -1
- data/test/test-ruleset.yaml +18 -18
- data/test/test.rb +1 -1
- metadata +10 -4
data/doc/users-guide.html
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html">
|
5
|
-
<title>Kwartz
|
6
|
-
<meta name="author" content="Makoto Kuwata <kwa(at)kuwata-lab.com>">
|
5
|
+
<title>Kwartz-Ruby Users' Guide</title>
|
7
6
|
<meta name="generator" content="kwaser">
|
8
7
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
9
8
|
<link rel="stylesheet" href="docstyle.css" type="text/css">
|
@@ -13,16 +12,16 @@
|
|
13
12
|
<blockquote>
|
14
13
|
<div class="mainbody">
|
15
14
|
|
16
|
-
<div align="left"><h1>Kwartz
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
</div>
|
21
|
-
|
15
|
+
<div align="left"><h1>Kwartz-Ruby Users' Guide</h1></div>
|
16
|
+
<p>$Release: 3.1.1 $<br>
|
17
|
+
$Date: 2006-09-30 05:02:08 +0900 (Sat, 30 Sep 2006) $
|
18
|
+
</p>
|
22
19
|
<a name="preface"></a>
|
23
20
|
<h2 class="section1">Preface</h2>
|
24
|
-
<p>This is the users' guide of Kwartz
|
25
|
-
|
21
|
+
<p>This is the users' guide of Kwartz-ruby.
|
22
|
+
</p>
|
23
|
+
<p>Kwartz<sup>(<a href="#fnref:1" name="fnlink:1">*1</a>)</sup> is a template system which realized the concept of 'Independence of Presentation Logic'.
|
24
|
+
Kwartz-ruby is an implementation of Kwartz in Ruby.
|
26
25
|
</p>
|
27
26
|
<div class="footnote">
|
28
27
|
<dl compact>
|
@@ -146,7 +145,6 @@ If you are familiar with CSS, you'll be also familiar with Kwartz.
|
|
146
145
|
<img src="img/fig04.png" alt="relation of HTML, CSS, JavaScript, and Kwartz" />
|
147
146
|
</div>
|
148
147
|
<p>Kwartz-ruby is an implemenation of Kwartz in Ruby.
|
149
|
-
There is a plan to implement Kwartz in PHP or Java.
|
150
148
|
</p>
|
151
149
|
<p>In the following, the word 'Kwartz' means the specification of the template system
|
152
150
|
and the word 'Kwartz-ruby' means the implementation of it in Ruby language.
|
@@ -189,7 +187,7 @@ Multi-languages support</dt>
|
|
189
187
|
<p> Kwartz can create output scripts for Ruby(eRuby), PHP, JSP(JSTL 1.2 & 1.1).
|
190
188
|
Presentation logics are written in each language<sup>(<a href="#fnref:3" name="fnlink:3">*3</a>)</sup>.
|
191
189
|
This approach gives you the power of the target language fully.
|
192
|
-
For example, you can write Ruby on Rails helper
|
190
|
+
For example, you can write Ruby on Rails helper methods (such as <code>link_to</code>, <code>form_tag</code>, and so on) directly as a part of presentation logic.
|
193
191
|
</p>
|
194
192
|
</dd>
|
195
193
|
<dt class="dt2">
|
@@ -224,7 +222,7 @@ Auto-escape and Partial-escape</dt>
|
|
224
222
|
<div class="footnote">
|
225
223
|
<dl compact>
|
226
224
|
<dt>(<a name="fnref:3" href="#fnlink:3">*3</a>)</dt>
|
227
|
-
<dd>Previous version of Kwartz adopt original language and convert it to each target language(Ruby, PHP, JSTL, and so on). From
|
225
|
+
<dd>Previous version of Kwartz adopt original language and convert it to each target language(Ruby, PHP, JSTL, and so on). From version 3.0, it is required to write presentation logic in target language.</dd>
|
228
226
|
</dl>
|
229
227
|
</div>
|
230
228
|
<br>
|
@@ -299,20 +297,20 @@ Presentation logic file(example1.plogic):</div>
|
|
299
297
|
value: member;
|
300
298
|
}
|
301
299
|
</pre>
|
302
|
-
<p>(Don't forget the semicolon at the end of line
|
300
|
+
<p>(Don't forget the semicolon at the end of line!)
|
303
301
|
</p>
|
304
302
|
<p>Kwartz generates eRuby script from the above files. This action is called 'compiling'.
|
305
303
|
</p>
|
306
304
|
<div class="terminal_caption">
|
307
|
-
how to compile
|
305
|
+
how to compile</div>
|
308
306
|
<pre class="terminal">$ kwartz -p example1.plogic example1.html > example1.rhtml
|
309
307
|
</pre>
|
310
|
-
<p>The following is the compiled
|
308
|
+
<p>The following is the compiled output script.
|
311
309
|
Notice that <code>id="mark:item1"</code> is removed automatically while <code>id="list1"</code> is leaved.
|
312
310
|
</p>
|
313
311
|
<a name="example1.expected"></a>
|
314
312
|
<div class="program_caption">
|
315
|
-
generated
|
313
|
+
generated output script</div>
|
316
314
|
<pre class="program"><table>
|
317
315
|
<% for member in @members %>
|
318
316
|
<tr id="list1">
|
@@ -671,7 +669,7 @@ presentation logic (form1.plogic)</div>
|
|
671
669
|
<strong>elem:</strong> text_field 'member', 'name';
|
672
670
|
}
|
673
671
|
<strong>#member_birth</strong> {
|
674
|
-
<strong>elem:</strong> date_select 'member', birth';
|
672
|
+
<strong>elem:</strong> date_select 'member', 'birth';
|
675
673
|
}
|
676
674
|
<strong>#submit</strong> {
|
677
675
|
<strong>elem:</strong> submit_to 'Submit';
|
@@ -683,7 +681,7 @@ compile</div>
|
|
683
681
|
<pre class="terminal">$ kwartz -p form1.plogic form1.html
|
684
682
|
<strong><%= start_form_tag :action=>'new' %></strong>
|
685
683
|
Name: <strong><%= text_field 'member', 'name' %></strong><br>
|
686
|
-
Birthday: <strong><%= date_select 'member', birth' %></strong><br>
|
684
|
+
Birthday: <strong><%= date_select 'member', 'birth' %></strong><br>
|
687
685
|
<strong><%= submit_to 'Submit' %></strong>
|
688
686
|
</form>
|
689
687
|
</pre>
|
@@ -740,7 +738,7 @@ Presentation Data(directive1.html):</div>
|
|
740
738
|
</pre>
|
741
739
|
<div class="terminal_caption">
|
742
740
|
Compile:</div>
|
743
|
-
<pre class="terminal">$ kwartz
|
741
|
+
<pre class="terminal">$ kwartz directive1.html > directive1.rhtml
|
744
742
|
</pre>
|
745
743
|
<a name="directive1.expected"></a>
|
746
744
|
<div class="program_caption">
|
@@ -862,7 +860,8 @@ presentation data (escape1.html):</div>
|
|
862
860
|
<a name="escape1.plogic"></a>
|
863
861
|
<div class="program_caption">
|
864
862
|
presentation logic (escape1.plogic)</div>
|
865
|
-
<pre class="program"
|
863
|
+
<pre class="program">
|
864
|
+
#val1 {
|
866
865
|
<strong>value:</strong> expr;
|
867
866
|
}
|
868
867
|
#val2 {
|
@@ -904,7 +903,7 @@ JSTL prints escaped value in default.
|
|
904
903
|
</p>
|
905
904
|
<p>Directives <code>kw:d="Value: <em>expr</em>"</code>, <code>kw:d="Attr: '<em>name</em>' <em>expr</em>"</code>, and <code>kw:d="Append: <em>expr</em>"</code> always escape expression value even when the command-line option '<code>-e</code>' is not specified.
|
906
905
|
</p>
|
907
|
-
<p>Directives <code>kw:d="VALUE: <em>expr</em
|
906
|
+
<p>Directives <code>kw:d="VALUE: <em>expr</em>"</code>, <code>kw:d="ATTR: '<em>name</em>' <em>expr</em>"</code>, and <code>kw:d="APPEND: <em>expr</em>"</code> doesn't escape expression value even when the command-line option '<code>-e</code>' is specified.
|
908
907
|
</p>
|
909
908
|
<p>Configuration option PROPERTY_ESCAPE in 'kwartz/config.rb' determines whether values are escaped or not in default.
|
910
909
|
If this is true then Kwartz will escape values in default.
|
@@ -914,7 +913,7 @@ If this is true then Kwartz will escape values in default.
|
|
914
913
|
|
915
914
|
<a name="langs"></a>
|
916
915
|
<h3 class="section2">Multi-language</h3>
|
917
|
-
<p>Kwartz
|
916
|
+
<p>Kwartz now supports the following programming language.
|
918
917
|
</p>
|
919
918
|
<ul type="disc">
|
920
919
|
<li>Ruby, eRuby(ERB, Erubis)
|
@@ -1243,19 +1242,19 @@ This is useful to share common presentation logic in many files.
|
|
1243
1242
|
<div class="program_caption">
|
1244
1243
|
link_to.plogic</div>
|
1245
1244
|
<pre class="program"><strong>#link_to_new</strong> {
|
1246
|
-
elem:
|
1245
|
+
elem: link_to 'New', :action=>'new';
|
1247
1246
|
}
|
1248
1247
|
<strong>#link_to_show</strong> {
|
1249
|
-
elem:
|
1248
|
+
elem: link_to 'Show', :action=>'show', :id=>@member;
|
1250
1249
|
}
|
1251
1250
|
<strong>#link_to_edit</strong> {
|
1252
|
-
elem:
|
1251
|
+
elem: link_to 'Edit', :action=>'edit', :id=>@member;
|
1253
1252
|
}
|
1254
1253
|
<strong>#link_to_list</strong> {
|
1255
|
-
elem:
|
1254
|
+
elem: link_to 'List', :action=>'list';
|
1256
1255
|
}
|
1257
1256
|
<strong>#link_to_destroy</strong> {
|
1258
|
-
|
1257
|
+
elem: link_to('Destroy', {:action=>'destroy', :id=>@member}, :confirm=>'Are you sure?');
|
1259
1258
|
}
|
1260
1259
|
</pre>
|
1261
1260
|
<a name="show2.html"></a>
|
@@ -1265,9 +1264,9 @@ show.html</div>
|
|
1265
1264
|
Name: <span id="mark:name">foo</span> <br>
|
1266
1265
|
Email: <span id="mark:email">foo@mail.com</span> <br>
|
1267
1266
|
</p>
|
1268
|
-
<a href="#" <strong>id="link_to_edit"</strong>>Edit
|
1269
|
-
<a href="#" <strong>id="link_to_new"</strong>>
|
1270
|
-
<a href="#" <strong>id="link_to_list"</strong>>
|
1267
|
+
<a href="#" <strong>id="link_to_edit"</strong>>Edit</a> |
|
1268
|
+
<a href="#" <strong>id="link_to_new"</strong>>New</a> |
|
1269
|
+
<a href="#" <strong>id="link_to_list"</strong>>List</a>
|
1271
1270
|
</pre>
|
1272
1271
|
<div class="program_caption">
|
1273
1272
|
show.plogic</div>
|
@@ -1288,9 +1287,9 @@ compile</div>
|
|
1288
1287
|
Name: <span><%=h @member.name %></span> <br>
|
1289
1288
|
Email: <span><%=h @member.email %></span> <br>
|
1290
1289
|
</p>
|
1291
|
-
<%=
|
1292
|
-
<%=
|
1293
|
-
<%=
|
1290
|
+
<%= link_to 'Edit', :action=>'edit', :id=>@member %> |
|
1291
|
+
<%= link_to 'New', :action=>'new' %> |
|
1292
|
+
<%= link_to 'List', :action=>'list' %>
|
1294
1293
|
</pre>
|
1295
1294
|
<br>
|
1296
1295
|
|
@@ -1505,8 +1504,8 @@ document-test.html</div>
|
|
1505
1504
|
document-test.plogic</div>
|
1506
1505
|
<pre class="program"><strong>#DOCUMENT</strong> {
|
1507
1506
|
<strong>begin:</strong> {
|
1508
|
-
title =
|
1509
|
-
user =
|
1507
|
+
title = cgi['title']
|
1508
|
+
user = cgi['user']
|
1510
1509
|
}
|
1511
1510
|
<strong>end:</strong> {
|
1512
1511
|
print "<!--end-->\n"
|
@@ -1517,8 +1516,8 @@ document-test.plogic</div>
|
|
1517
1516
|
<div class="terminal_caption">
|
1518
1517
|
compile</div>
|
1519
1518
|
<pre class="terminal">$ kwartz -p document-test.plogic document-test.html
|
1520
|
-
<strong><% title =
|
1521
|
-
<strong><% user =
|
1519
|
+
<strong><% title = cgi['title'] %></strong>
|
1520
|
+
<strong><% user = cgi['user'] %></strong>
|
1522
1521
|
<html>
|
1523
1522
|
<body>hello</body>
|
1524
1523
|
</html>
|
@@ -2052,7 +2051,30 @@ file "file3.rhtml" => ["file3.html", "file3.plogic", layout] do |t|
|
|
2052
2051
|
end
|
2053
2052
|
</pre>
|
2054
2053
|
<div class="program_caption">
|
2055
|
-
example of
|
2054
|
+
example of Kookbook.yaml for <a href="http://www.kuwata-lab.com/kook">Kook</a></div>
|
2055
|
+
<pre class="program">properties:
|
2056
|
+
- layout : layout.html
|
2057
|
+
|
2058
|
+
parameters:
|
2059
|
+
- all : [ file1.rhtml, file2.rhtml, file3.rhtml ]
|
2060
|
+
- rook_product: $(all)
|
2061
|
+
|
2062
|
+
recipes:
|
2063
|
+
|
2064
|
+
- product: *.rhtml
|
2065
|
+
ingreds: [ $(1).html, $(1).plogic ]
|
2066
|
+
method*: |
|
2067
|
+
$pdata = $ingreds[0]; $plogic = $ingreds[1];
|
2068
|
+
k_sys("kwartz -p $plogic} $pdata > $product");
|
2069
|
+
|
2070
|
+
- product: file3.rhtml
|
2071
|
+
ingres: [ file3.html, file3.plogic, $(layout) ]
|
2072
|
+
method*: |
|
2073
|
+
$pdata = $ingreds[0]; $plogic = $ingreds[1]
|
2074
|
+
k_sys("kwartz -p $plogic -L $(layout) $pdata > $product"
|
2075
|
+
</pre>
|
2076
|
+
<div class="program_caption">
|
2077
|
+
example of Rookbook.yaml for <a href="http://www.kuwata-lab.com/kook">Rook</a></div>
|
2056
2078
|
<pre class="program">properties:
|
2057
2079
|
- layout : layout.html
|
2058
2080
|
|
@@ -2072,7 +2094,7 @@ recipes:
|
|
2072
2094
|
ingres: [ file3.html, file3.plogic, $(layout) ]
|
2073
2095
|
method*: |
|
2074
2096
|
pdata, plogic, layout = @ingreds
|
2075
|
-
sys "kwartz-
|
2097
|
+
sys "kwartz -p #{plogic} -L $(layout) #{pdata} > #{@product}"
|
2076
2098
|
</pre>
|
2077
2099
|
<br>
|
2078
2100
|
|
@@ -2085,7 +2107,6 @@ recipes:
|
|
2085
2107
|
usage of Kwartz::Main class</div>
|
2086
2108
|
<pre class="program"><strong>require 'kwartz'</strong>
|
2087
2109
|
<strong>require 'kwartz/main'</strong>
|
2088
|
-
|
2089
2110
|
argv = %w[-p hello.plogic -L layout.html hello.html]
|
2090
2111
|
<strong>main = Kwartz::Main.new(argv)</strong>
|
2091
2112
|
<strong>output = main.execute()</strong>
|
@@ -2106,7 +2127,7 @@ Erubis is an implementation of eRuby which supports not only Ruby but also other
|
|
2106
2127
|
presentation data (js-example.html)</div>
|
2107
2128
|
<pre class="program"><table>
|
2108
2129
|
<tr class="odd" <strong>id="mark:list"</strong>>
|
2109
|
-
<td><strong
|
2130
|
+
<td><strong>@{item}@</strong></td>
|
2110
2131
|
</tr>
|
2111
2132
|
<tr class="even" <strong>id="dummy:d1"</strong>>
|
2112
2133
|
<td>foo</td>
|
@@ -2139,11 +2160,16 @@ output script (js-example.jshtml)</div>
|
|
2139
2160
|
<strong><% klass = i % 1 == 0 ? 'even' : 'odd'; %></strong>
|
2140
2161
|
<strong><% item = list[i]; %></strong>
|
2141
2162
|
<tr class="<strong><%= klass %></strong>">
|
2142
|
-
<td><strong><
|
2163
|
+
<td><strong><%== item %></strong></td>
|
2143
2164
|
</tr>
|
2144
2165
|
<strong><% } %></strong>
|
2145
2166
|
</table>
|
2146
2167
|
</pre>
|
2168
|
+
<p>In Erubis, <code><%= ... %></code> means embedded expression and <code><%== ... %></code> means embedded expression with escaping.
|
2169
|
+
In this example, <code>@{item}@</code> is compiled into <code><%== item %></code> because it needs escaping and <code>attr: 'class' klass</code> is compiled into <code><%= klass %></code> without escaping.
|
2170
|
+
</p>
|
2171
|
+
<p>The following is an example to compile into JavaScript code with Erubis.
|
2172
|
+
</p>
|
2147
2173
|
<a name="js-example.expected"></a>
|
2148
2174
|
<div class="terminal_caption">
|
2149
2175
|
convert into JavaScript code with erubis</div>
|
@@ -2153,7 +2179,7 @@ var _buf = []; _buf.push("<table>\n");
|
|
2153
2179
|
<strong>klass = i % 1 == 0 ? 'even' : 'odd';</strong>
|
2154
2180
|
<strong>item = list[i];</strong>
|
2155
2181
|
_buf.push(" <tr class=\""); _buf.push(<strong>klass</strong>); _buf.push("\">\n\
|
2156
|
-
<td>"); _buf.push(<strong>item</strong>); _buf.push("</td>\n\
|
2182
|
+
<td>"); _buf.push(escape(<strong>item</strong>)); _buf.push("</td>\n\
|
2157
2183
|
</tr>\n");
|
2158
2184
|
<strong>}</strong>
|
2159
2185
|
_buf.push("</table>\n");
|
data/kwartz.gemspec
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
###
|
4
4
|
### RubyGems Specification file for Kwartz-ruby
|
5
5
|
###
|
6
|
-
### $Rev:
|
7
|
-
### $Release: 3.1.
|
6
|
+
### $Rev: 142 $
|
7
|
+
### $Release: 3.1.1 $
|
8
8
|
### copyright(c) 2004-2006 kuwata-lab.com all rights reserved
|
9
9
|
###
|
10
10
|
|
@@ -14,7 +14,7 @@ spec = Gem::Specification.new do |s|
|
|
14
14
|
## package information
|
15
15
|
s.name = 'kwartz'
|
16
16
|
s.author = 'Makoto Kuwata'
|
17
|
-
s.version = ("$Release: 3.1.
|
17
|
+
s.version = ("$Release: 3.1.1 $" =~ /[\.\d]+/) && $&
|
18
18
|
s.platform = Gem::Platform::RUBY
|
19
19
|
s.homepage = 'http://www.kuwata-lab.com/kwartz'
|
20
20
|
s.summary = "a template system for Ruby, PHP, and Java"
|
@@ -34,12 +34,16 @@ spec = Gem::Specification.new do |s|
|
|
34
34
|
files += Dir.glob('examples/**/*')
|
35
35
|
files += Dir.glob('test/**/*')
|
36
36
|
#files += Dir.glob('man/**/*')
|
37
|
-
files +=
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
37
|
+
files += Dir.glob('doc/*.html')
|
38
|
+
files += Dir.glob('doc/*.css')
|
39
|
+
files += Dir.glob('doc/img/*.png')
|
40
|
+
files += Dir.glob('doc/pattern-catalog/design.*')
|
41
|
+
#files += [ "doc/users-guide.html",
|
42
|
+
# "doc/reference.html",
|
43
|
+
# "doc/p-pattern.html",
|
44
|
+
# "doc/docstyle.css",
|
45
|
+
# #"doc/design.css", "doc/design.html",
|
46
|
+
# ]
|
43
47
|
files += Dir.glob('doc-api/**/*')
|
44
48
|
files += %w[README.txt ChangeLog LGPL setup.rb kwartz.gemspec]
|
45
49
|
s.files = files
|
data/lib/kwartz.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
###
|
2
2
|
### $Rev: 136 $
|
3
|
-
### $Release: 3.1.
|
3
|
+
### $Release: 3.1.1 $
|
4
4
|
### copyright(c) 2004-2006 kuwata-lab.com all rights reserved
|
5
5
|
###
|
6
6
|
|
7
7
|
|
8
8
|
module Kwartz
|
9
9
|
|
10
|
-
RELEASE = ('$Release: 3.1.
|
10
|
+
RELEASE = ('$Release: 3.1.1 $' =~ /\$Release: (\S+)\s*\$/) && $1
|
11
11
|
|
12
12
|
end
|
13
13
|
|
data/lib/kwartz/assert.rb
CHANGED
data/lib/kwartz/binding/eperl.rb
CHANGED
data/lib/kwartz/binding/eruby.rb
CHANGED
data/lib/kwartz/binding/jstl.rb
CHANGED
data/lib/kwartz/binding/php.rb
CHANGED
data/lib/kwartz/binding/rails.rb
CHANGED
data/lib/kwartz/binding/ruby.rb
CHANGED
data/lib/kwartz/config.rb
CHANGED