camping 2.0.rc0 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,5 @@
1
1
  = 2.0
2
- === ???, 2009
2
+ === 9th Apr, 2010
3
3
  * Speed-up of Camping::Mab (thanks zimbatm!)
4
4
  * @state is now an alias of @env['rack.session']
5
5
  * Camping.use injects a Rack middleware.
data/doc/api.html CHANGED
@@ -14,13 +14,13 @@
14
14
  <li><a href="http://wiki.github.com/camping/camping">wiki</a> | </li>
15
15
  <li><a href="http://github.com/camping/camping">code</a></li>
16
16
  </ul>
17
- <p id="version">Camping 2.0.rc0</p>
17
+ <p id="version">Camping 2.0</p>
18
18
  </div>
19
19
 
20
20
  <div id="fullpage">
21
21
  <div class="page_shade">
22
22
  <div class="page ref">
23
- <p class="header">Sat Apr 03 16:22:17 +0200 2010</p>
23
+ <p class="header">Fri Apr 09 16:33:39 +0200 2010</p>
24
24
  <h1>Camping, the Reference</h1>
25
25
 
26
26
 
@@ -40,7 +40,7 @@ href="file:book/01_introduction.html#toc">The Camping Book</a>.
40
40
  </p>
41
41
  <p>
42
42
  Okay. So, the important thing to remember is that <tt><a
43
- href="api.html#M000023">Camping.goes</a> :Nuts</tt> copies the <a
43
+ href="api.html#M000028">Camping.goes</a> :Nuts</tt> copies the <a
44
44
  href="api.html#class-Camping">Camping</a> module into Nuts. This means that
45
45
  you should never use any of these methods/classes on the <a
46
46
  href="api.html#class-Camping">Camping</a> module, but rather on your own
@@ -97,8 +97,8 @@ href="api.html#class-Camping-Server">Camping::Server</a>.
97
97
 
98
98
  <h3>Methods</h3>
99
99
 
100
- <h4 class="ruled" id="M000024">
101
- <a href="#M000024">
100
+ <h4 class="ruled" id="M000029">
101
+ <a href="#M000029">
102
102
  Public Class method:
103
103
  <strong>::call(e)</strong>
104
104
  <img src="./images/permalink.gif">
@@ -129,8 +129,8 @@ href="http://rack.rubyforge.org/doc/SPEC.html">rack.rubyforge.org/doc/SPEC.html<
129
129
  591: <span class="ruby-keyword kw">end</span></pre>
130
130
  </div>
131
131
 
132
- <h4 class="ruled" id="M000023">
133
- <a href="#M000023">
132
+ <h4 class="ruled" id="M000028">
133
+ <a href="#M000028">
134
134
  Public Class method:
135
135
  <strong>::goes(m)</strong>
136
136
  <img src="./images/permalink.gif">
@@ -162,8 +162,8 @@ All the applications will be available in Camping::Apps.
162
162
  577: <span class="ruby-keyword kw">end</span></pre>
163
163
  </div>
164
164
 
165
- <h4 class="ruled" id="M000027">
166
- <a href="#M000027">
165
+ <h4 class="ruled" id="M000031">
166
+ <a href="#M000031">
167
167
  Public Class method:
168
168
  <strong>::method_missing(m, c, *a)</strong>
169
169
  <img src="./images/permalink.gif">
@@ -208,8 +208,8 @@ final argument.
208
208
  618: <span class="ruby-keyword kw">end</span></pre>
209
209
  </div>
210
210
 
211
- <h4 class="ruled" id="M000031">
212
- <a href="#M000031">
211
+ <h4 class="ruled" id="M000034">
212
+ <a href="#M000034">
213
213
  Public Class method:
214
214
  <strong>::use(*a, &b)</strong>
215
215
  <img src="./images/permalink.gif">
@@ -318,7 +318,7 @@ You can also switch the body and the header if you want:
318
318
  </pre>
319
319
  <p>
320
320
  See also: <a href="api.html#M000009">r404</a>, <a
321
- href="api.html#M000010">r500</a> and <a href="api.html#M000011">r501</a>
321
+ href="api.html#M000011">r500</a> and <a href="api.html#M000012">r501</a>
322
322
  </p>
323
323
 
324
324
  <p class="source-link">[ <a href="#">show source</a> ]</p>
@@ -361,8 +361,8 @@ to customize the error page:
361
361
  319: <span class="ruby-keyword kw">end</span></pre>
362
362
  </div>
363
363
 
364
- <h4 class="ruled" id="M000010">
365
- <a href="#M000010">
364
+ <h4 class="ruled" id="M000011">
365
+ <a href="#M000011">
366
366
  Public Instance method:
367
367
  <strong>#r500(k,m,e)</strong>
368
368
  <img src="./images/permalink.gif">
@@ -400,8 +400,8 @@ it, but you are free to override it here:
400
400
  338: <span class="ruby-keyword kw">end</span></pre>
401
401
  </div>
402
402
 
403
- <h4 class="ruled" id="M000011">
404
- <a href="#M000011">
403
+ <h4 class="ruled" id="M000012">
404
+ <a href="#M000012">
405
405
  Public Instance method:
406
406
  <strong>#r501(m)</strong>
407
407
  <img src="./images/permalink.gif">
@@ -493,8 +493,8 @@ wrap the HTML.
493
493
  253: <span class="ruby-keyword kw">end</span></pre>
494
494
  </div>
495
495
 
496
- <h4 class="ruled" id="M000015">
497
- <a href="#M000015">
496
+ <h4 class="ruled" id="M000017">
497
+ <a href="#M000017">
498
498
  Public Instance method:
499
499
  <strong>#service(*a)</strong>
500
500
  <img src="./images/permalink.gif">
@@ -517,8 +517,8 @@ overriding this method.
517
517
  394: <span class="ruby-keyword kw">end</span></pre>
518
518
  </div>
519
519
 
520
- <h4 class="ruled" id="M000012">
521
- <a href="#M000012">
520
+ <h4 class="ruled" id="M000013">
521
+ <a href="#M000013">
522
522
  Public Instance method:
523
523
  <strong>#to_a()</strong>
524
524
  <img src="./images/permalink.gif">
@@ -591,10 +591,10 @@ class which must implement the HTTP methods it wants to accept:
591
591
  <p>
592
592
  There are two ways to define controllers: Just defining a class and let <a
593
593
  href="api.html#class-Camping">Camping</a> figure out the route, or add the
594
- route explicitly using <a href="api.html#M000019">R</a>.
594
+ route explicitly using <a href="api.html#M000021">R</a>.
595
595
  </p>
596
596
  <p>
597
- If you don&#8217;t use <a href="api.html#M000019">R</a>, <a
597
+ If you don&#8217;t use <a href="api.html#M000021">R</a>, <a
598
598
  href="api.html#class-Camping">Camping</a> will first split the controller
599
599
  name up by words (HelloWorld => Hello and World). Then it would do the
600
600
  following:
@@ -692,8 +692,8 @@ If you haven&#8217;t set @body, it will use the return value of the method:
692
692
 
693
693
  <h3>Methods</h3>
694
694
 
695
- <h4 class="ruled" id="M000020">
696
- <a href="#M000020">
695
+ <h4 class="ruled" id="M000024">
696
+ <a href="#M000024">
697
697
  Public Class method:
698
698
  <strong>::D(p, m)</strong>
699
699
  <img src="./images/permalink.gif">
@@ -737,8 +737,8 @@ So, define your catch-all controllers last.
737
737
  529: <span class="ruby-keyword kw">end</span></pre>
738
738
  </div>
739
739
 
740
- <h4 class="ruled" id="M000021">
741
- <a href="#M000021">
740
+ <h4 class="ruled" id="M000026">
741
+ <a href="#M000026">
742
742
  Public Class method:
743
743
  <strong>::M()</strong>
744
744
  <img src="./images/permalink.gif">
@@ -779,8 +779,8 @@ Any controllers added after this method is called won&#8217;t work properly
779
779
  554: <span class="ruby-keyword kw">end</span></pre>
780
780
  </div>
781
781
 
782
- <h4 class="ruled" id="M000019">
783
- <a href="#M000019">
782
+ <h4 class="ruled" id="M000021">
783
+ <a href="#M000021">
784
784
  Public Class method:
785
785
  <strong>::R(*u)</strong>
786
786
  <img src="./images/permalink.gif">
@@ -789,7 +789,7 @@ Any controllers added after this method is called won&#8217;t work properly
789
789
  <div class="method">
790
790
  <p>
791
791
  Add routes to a controller class by piling them into the <a
792
- href="api.html#M000019">R</a> method.
792
+ href="api.html#M000021">R</a> method.
793
793
  </p>
794
794
  <p>
795
795
  The route is a regexp which will match the request path. Anything enclosed
@@ -1279,8 +1279,8 @@ more than one script.
1279
1279
 
1280
1280
  <h3>Methods</h3>
1281
1281
 
1282
- <h4 class="ruled" id="M000025">
1283
- <a href="#M000025">
1282
+ <h4 class="ruled" id="M000019">
1283
+ <a href="#M000019">
1284
1284
  Public Class method:
1285
1285
  <strong>::new(*scripts)</strong>
1286
1286
  <img src="./images/permalink.gif">
@@ -1302,8 +1302,8 @@ will be loaded relative to the current working directory.
1302
1302
  153: <span class="ruby-keyword kw">end</span></pre>
1303
1303
  </div>
1304
1304
 
1305
- <h4 class="ruled" id="M000030">
1306
- <a href="#M000030">
1305
+ <h4 class="ruled" id="M000025">
1306
+ <a href="#M000025">
1307
1307
  Public Instance method:
1308
1308
  <strong>#apps()</strong>
1309
1309
  <img src="./images/permalink.gif">
@@ -1313,7 +1313,7 @@ will be loaded relative to the current working directory.
1313
1313
  <p>
1314
1314
  Returns a Hash of all the apps available in the scripts, where the key
1315
1315
  would be the name of the app (the one you gave to <a
1316
- href="api.html#M000023">Camping.goes</a>) and the value would be the app
1316
+ href="api.html#M000028">Camping.goes</a>) and the value would be the app
1317
1317
  (wrapped inside <a href="api.html#class-Camping-Reloader-App">App</a>).
1318
1318
  </p>
1319
1319
 
@@ -1327,8 +1327,8 @@ href="api.html#M000023">Camping.goes</a>) and the value would be the app
1327
1327
  189: <span class="ruby-keyword kw">end</span></pre>
1328
1328
  </div>
1329
1329
 
1330
- <h4 class="ruled" id="M000028">
1331
- <a href="#M000028">
1330
+ <h4 class="ruled" id="M000022">
1331
+ <a href="#M000022">
1332
1332
  Public Instance method:
1333
1333
  <strong>#clear()</strong>
1334
1334
  <img src="./images/permalink.gif">
@@ -1347,8 +1347,8 @@ Removes all the scripts from the reloader.
1347
1347
  175: <span class="ruby-keyword kw">end</span></pre>
1348
1348
  </div>
1349
1349
 
1350
- <h4 class="ruled" id="M000029">
1351
- <a href="#M000029">
1350
+ <h4 class="ruled" id="M000023">
1351
+ <a href="#M000023">
1352
1352
  Public Instance method:
1353
1353
  <strong>#reload!()</strong>
1354
1354
  <img src="./images/permalink.gif">
@@ -1367,8 +1367,8 @@ Simply calls reload! on all the Script objects.
1367
1367
  180: <span class="ruby-keyword kw">end</span></pre>
1368
1368
  </div>
1369
1369
 
1370
- <h4 class="ruled" id="M000026">
1371
- <a href="#M000026">
1370
+ <h4 class="ruled" id="M000020">
1371
+ <a href="#M000020">
1372
1372
  Public Instance method:
1373
1373
  <strong>#update(*scripts)</strong>
1374
1374
  <img src="./images/permalink.gif">
@@ -1424,8 +1424,8 @@ any method call. Then the method call will be forwarded to the app.
1424
1424
 
1425
1425
  <h3>Methods</h3>
1426
1426
 
1427
- <h4 class="ruled" id="M000016">
1428
- <a href="#M000016">
1427
+ <h4 class="ruled" id="M000010">
1428
+ <a href="#M000010">
1429
1429
  Public Class method:
1430
1430
  <strong>::new(script)</strong>
1431
1431
  <img src="./images/permalink.gif">
@@ -1441,8 +1441,8 @@ any method call. Then the method call will be forwarded to the app.
1441
1441
  49: <span class="ruby-keyword kw">end</span></pre>
1442
1442
  </div>
1443
1443
 
1444
- <h4 class="ruled" id="M000017">
1445
- <a href="#M000017">
1444
+ <h4 class="ruled" id="M000014">
1445
+ <a href="#M000014">
1446
1446
  Public Instance method:
1447
1447
  <strong>#method_missing(meth, *args, &blk)</strong>
1448
1448
  <img src="./images/permalink.gif">
@@ -1523,8 +1523,8 @@ browser.
1523
1523
 
1524
1524
  <h3>Methods</h3>
1525
1525
 
1526
- <h4 class="ruled" id="M000032">
1527
- <a href="#M000032">
1526
+ <h4 class="ruled" id="M000030">
1527
+ <a href="#M000030">
1528
1528
  Public Class method:
1529
1529
  <strong>::new(conf, paths)</strong>
1530
1530
  <img src="./images/permalink.gif">
@@ -1543,8 +1543,8 @@ browser.
1543
1543
  34: <span class="ruby-keyword kw">end</span></pre>
1544
1544
  </div>
1545
1545
 
1546
- <h4 class="ruled" id="M000037">
1547
- <a href="#M000037">
1546
+ <h4 class="ruled" id="M000036">
1547
+ <a href="#M000036">
1548
1548
  Public Instance method:
1549
1549
  <strong>#app()</strong>
1550
1550
  <img src="./images/permalink.gif">
@@ -1584,8 +1584,8 @@ browser.
1584
1584
  116: <span class="ruby-keyword kw">end</span></pre>
1585
1585
  </div>
1586
1586
 
1587
- <h4 class="ruled" id="M000038">
1588
- <a href="#M000038">
1587
+ <h4 class="ruled" id="M000037">
1588
+ <a href="#M000037">
1589
1589
  Public Instance method:
1590
1590
  <strong>#apps()</strong>
1591
1591
  <img src="./images/permalink.gif">
@@ -1604,8 +1604,8 @@ browser.
1604
1604
  123: <span class="ruby-keyword kw">end</span></pre>
1605
1605
  </div>
1606
1606
 
1607
- <h4 class="ruled" id="M000039">
1608
- <a href="#M000039">
1607
+ <h4 class="ruled" id="M000038">
1608
+ <a href="#M000038">
1609
1609
  Public Instance method:
1610
1610
  <strong>#call(env)</strong>
1611
1611
  <img src="./images/permalink.gif">
@@ -1621,8 +1621,8 @@ browser.
1621
1621
  127: <span class="ruby-keyword kw">end</span></pre>
1622
1622
  </div>
1623
1623
 
1624
- <h4 class="ruled" id="M000033">
1625
- <a href="#M000033">
1624
+ <h4 class="ruled" id="M000032">
1625
+ <a href="#M000032">
1626
1626
  Public Instance method:
1627
1627
  <strong>#connect(db)</strong>
1628
1628
  <img src="./images/permalink.gif">
@@ -1640,8 +1640,8 @@ browser.
1640
1640
  40: <span class="ruby-keyword kw">end</span></pre>
1641
1641
  </div>
1642
1642
 
1643
- <h4 class="ruled" id="M000035">
1644
- <a href="#M000035">
1643
+ <h4 class="ruled" id="M000033">
1644
+ <a href="#M000033">
1645
1645
  Public Instance method:
1646
1646
  <strong>#find_scripts()</strong>
1647
1647
  <img src="./images/permalink.gif">
@@ -1665,8 +1665,8 @@ browser.
1665
1665
  52: <span class="ruby-keyword kw">end</span></pre>
1666
1666
  </div>
1667
1667
 
1668
- <h4 class="ruled" id="M000036">
1669
- <a href="#M000036">
1668
+ <h4 class="ruled" id="M000035">
1669
+ <a href="#M000035">
1670
1670
  Public Instance method:
1671
1671
  <strong>#index_page(apps)</strong>
1672
1672
  <img src="./images/permalink.gif">
@@ -1714,8 +1714,8 @@ browser.
1714
1714
  152: <span class="ruby-keyword kw">end</span></pre>
1715
1715
  </div>
1716
1716
 
1717
- <h4 class="ruled" id="M000040">
1718
- <a href="#M000040">
1717
+ <h4 class="ruled" id="M000039">
1718
+ <a href="#M000039">
1719
1719
  Public Instance method:
1720
1720
  <strong>#start()</strong>
1721
1721
  <img src="./images/permalink.gif">
@@ -1866,8 +1866,8 @@ also use any middleware which sets this variable:
1866
1866
 
1867
1867
  <h3>Methods</h3>
1868
1868
 
1869
- <h4 class="ruled" id="M000034">
1870
- <a href="#M000034">
1869
+ <h4 class="ruled" id="M000040">
1870
+ <a href="#M000040">
1871
1871
  Public Class method:
1872
1872
  <strong>::included(app)</strong>
1873
1873
  <img src="./images/permalink.gif">
data/doc/book.html CHANGED
@@ -14,13 +14,13 @@
14
14
  <li><a href="http://wiki.github.com/camping/camping">wiki</a> | </li>
15
15
  <li><a href="http://github.com/camping/camping">code</a></li>
16
16
  </ul>
17
- <p id="version">Camping 2.0.rc0</p>
17
+ <p id="version">Camping 2.0</p>
18
18
  </div>
19
19
 
20
20
  <div id="fullpage">
21
21
  <div class="page_shade">
22
22
  <div class="page">
23
- <p class="header">Sat Apr 03 16:22:17 +0200 2010</p>
23
+ <p class="header">Fri Apr 09 16:33:39 +0200 2010</p>
24
24
  <h1>Camping, the Book</h1>
25
25
  <ol>
26
26
 
@@ -15,13 +15,13 @@
15
15
  <li><a href="http://wiki.github.com/camping/camping">wiki</a> | </li>
16
16
  <li><a href="http://github.com/camping/camping">code</a></li>
17
17
  </ul>
18
- <p id="version">Camping 2.0.rc0</p>
18
+ <p id="version">Camping 2.0</p>
19
19
  </div>
20
20
 
21
21
  <div id="fullpage">
22
22
  <div class="page_shade">
23
23
  <div class="page">
24
- <p class="header">Sat Apr 03 16:22:17 +0200 2010</p>
24
+ <p class="header">Fri Apr 09 16:33:39 +0200 2010</p>
25
25
  <h1>Introduction</h1>
26
26
  <p>
27
27
  <a href="../api.html#class-Camping">Camping</a> is a small web framework,
@@ -15,13 +15,13 @@
15
15
  <li><a href="http://wiki.github.com/camping/camping">wiki</a> | </li>
16
16
  <li><a href="http://github.com/camping/camping">code</a></li>
17
17
  </ul>
18
- <p id="version">Camping 2.0.rc0</p>
18
+ <p id="version">Camping 2.0</p>
19
19
  </div>
20
20
 
21
21
  <div id="fullpage">
22
22
  <div class="page_shade">
23
23
  <div class="page">
24
- <p class="header">Sat Apr 03 16:22:17 +0200 2010</p>
24
+ <p class="header">Fri Apr 09 16:33:39 +0200 2010</p>
25
25
  <h1>Getting Started</h1>
26
26
  <p>
27
27
  Start a new text file called nuts.rb. Here&#8217;s what you put inside:
@@ -530,7 +530,7 @@ You&#8217;ve taken quite a few steps in the last minutes. You deserve a
530
530
  break. But let&#8217;s recap for a moment:
531
531
  </p>
532
532
  <ul>
533
- <li>Always place <tt><a href="../api.html#M000023">Camping.goes</a> :App</tt>
533
+ <li>Always place <tt><a href="../api.html#M000028">Camping.goes</a> :App</tt>
534
534
  at the top of your file.
535
535
 
536
536
  </li>
@@ -15,13 +15,13 @@
15
15
  <li><a href="http://wiki.github.com/camping/camping">wiki</a> | </li>
16
16
  <li><a href="http://github.com/camping/camping">code</a></li>
17
17
  </ul>
18
- <p id="version">Camping 2.0.rc0</p>
18
+ <p id="version">Camping 2.0</p>
19
19
  </div>
20
20
 
21
21
  <div id="fullpage">
22
22
  <div class="page_shade">
23
23
  <div class="page">
24
- <p class="header">Sat Apr 03 16:22:17 +0200 2010</p>
24
+ <p class="header">Fri Apr 09 16:33:39 +0200 2010</p>
25
25
  <h1>Appendix I: Upgrade Notes</h1>
26
26
  <h2 class="ruled" id="from-15-to-20">From 1.5 to 2.0</h2>
27
27
  <h3>Rack</h3>
@@ -108,11 +108,11 @@ ServerError.
108
108
  can&#8217;t be found.
109
109
 
110
110
  </li>
111
- <li><a href="../api.html#M000011">Camping::Base#r501</a> is called when a route
111
+ <li><a href="../api.html#M000012">Camping::Base#r501</a> is called when a route
112
112
  is found, but doesn&#8217;t respond to the method.
113
113
 
114
114
  </li>
115
- <li><a href="../api.html#M000010">Camping::Base#r500</a> is called when an
115
+ <li><a href="../api.html#M000011">Camping::Base#r500</a> is called when an
116
116
  error happens.
117
117
 
118
118
  </li>
data/doc/created.rid CHANGED
@@ -1 +1 @@
1
- Sat, 03 Apr 2010 16:22:16 +0200
1
+ Fri, 09 Apr 2010 16:33:38 +0200
data/doc/index.html CHANGED
@@ -14,13 +14,13 @@
14
14
  <li><a href="http://wiki.github.com/camping/camping">wiki</a> | </li>
15
15
  <li><a href="http://github.com/camping/camping">code</a></li>
16
16
  </ul>
17
- <p id="version">Camping 2.0.rc0</p>
17
+ <p id="version">Camping 2.0</p>
18
18
  </div>
19
19
 
20
20
  <div id="fullpage">
21
21
  <div class="page_shade">
22
22
  <div class="page">
23
- <p class="header">Sat Apr 03 16:22:17 +0200 2010</p>
23
+ <p class="header">Fri Apr 09 16:33:39 +0200 2010</p>
24
24
  <h1>Camping, a Microframework</h1>
25
25
  <img src="images/Camping.gif" alt="The Camping Badge" id="logo">
26
26
 
metadata CHANGED
@@ -1,12 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camping
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - rc0
9
- version: 2.0.rc0
8
+ version: "2.0"
10
9
  platform: ruby
11
10
  authors:
12
11
  - why the lucky stiff
@@ -14,7 +13,7 @@ autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
15
 
17
- date: 2010-04-03 00:00:00 +02:00
16
+ date: 2010-04-09 00:00:00 +02:00
18
17
  default_executable:
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency
@@ -128,13 +127,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
127
  version: 1.8.2
129
128
  required_rubygems_version: !ruby/object:Gem::Requirement
130
129
  requirements:
131
- - - ">"
130
+ - - ">="
132
131
  - !ruby/object:Gem::Version
133
132
  segments:
134
- - 1
135
- - 3
136
- - 1
137
- version: 1.3.1
133
+ - 0
134
+ version: "0"
138
135
  requirements: []
139
136
 
140
137
  rubyforge_project: camping