Capcode 0.8.0 → 0.8.1
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/README +3 -0
- data/doc/rdoc/classes/Capcode.html +2 -2
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +7 -1
- data/doc/rdoc/files/lib/capcode_rb.html +1 -1
- data/lib/capcode.rb +2 -3
- data/lib/capcode/render/static.rb +3 -1
- data/lib/capcode/version.rb +1 -1
- metadata +1 -1
data/README
CHANGED
|
@@ -466,7 +466,7 @@ This is also the working directory !
|
|
|
466
466
|
407: <span class="ruby-keyword kw">begin</span>
|
|
467
467
|
408: <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">parse!</span> <span class="ruby-constant">ARGV</span>
|
|
468
468
|
409: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">OptionParser</span><span class="ruby-operator">::</span><span class="ruby-constant">ParseError</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">ex</span>
|
|
469
|
-
410: <span class="ruby-
|
|
469
|
+
410: <span class="ruby-identifier">puts</span> <span class="ruby-node">"!! #{ex.message}"</span>
|
|
470
470
|
411: <span class="ruby-identifier">puts</span> <span class="ruby-node">"** use `#{File.basename($0)} --help` for more details..."</span>
|
|
471
471
|
412: <span class="ruby-identifier">exit</span> <span class="ruby-value">1</span>
|
|
472
472
|
413: <span class="ruby-keyword kw">end</span>
|
|
@@ -501,7 +501,7 @@ This is also the working directory !
|
|
|
501
501
|
442: <span class="ruby-keyword kw">end</span>
|
|
502
502
|
443:
|
|
503
503
|
444: <span class="ruby-comment cmt"># Set Static directory</span>
|
|
504
|
-
445: <span class="ruby-ivar">@@__STATIC_DIR</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"/"</span>, <span class="ruby-identifier">conf</span>[<span class="ruby-identifier">:static</span>]))
|
|
504
|
+
445: <span class="ruby-ivar">@@__STATIC_DIR</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"/"</span>, <span class="ruby-identifier">conf</span>[<span class="ruby-identifier">:static</span>])) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">conf</span>[<span class="ruby-identifier">:static</span>].<span class="ruby-identifier">nil?</span>
|
|
505
505
|
446:
|
|
506
506
|
447: <span class="ruby-comment cmt"># Initialize Rack App</span>
|
|
507
507
|
448: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"** Map routes."</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">__VERBOSE</span>
|
data/doc/rdoc/created.rid
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Wed, 08 Jul 2009
|
|
1
|
+
Wed, 08 Jul 2009 02:03:05 +0200
|
data/doc/rdoc/files/README.html
CHANGED
|
@@ -81,7 +81,7 @@ end</strong>
|
|
|
81
81
|
<div id="README" class="page_shade">
|
|
82
82
|
<div class="page">
|
|
83
83
|
<div class="header">
|
|
84
|
-
<div class="path">README / Wed Jul 08
|
|
84
|
+
<div class="path">README / Wed Jul 08 02:02:45 +0200 2009</div>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
87
87
|
<h1><a href="../classes/Capcode.html">Capcode</a></h1>
|
|
@@ -98,6 +98,12 @@ Copyright (C) 2009 Gregoire Lejeune
|
|
|
98
98
|
<a href="../classes/Capcode.html">Capcode</a> is a web microframework
|
|
99
99
|
</p>
|
|
100
100
|
<h2>FEATURES/PROBLEMS:</h2>
|
|
101
|
+
<h3>0.8.1</h3>
|
|
102
|
+
<ul>
|
|
103
|
+
<li>Sorry for 0.8.0 !!
|
|
104
|
+
|
|
105
|
+
</li>
|
|
106
|
+
</ul>
|
|
101
107
|
<h3>0.8.0</h3>
|
|
102
108
|
<ul>
|
|
103
109
|
<li>Bugs corrections in haml and text renderer
|
|
@@ -81,7 +81,7 @@ end</strong>
|
|
|
81
81
|
<div id="lib/capcode.rb" class="page_shade">
|
|
82
82
|
<div class="page">
|
|
83
83
|
<div class="header">
|
|
84
|
-
<div class="path">lib/capcode.rb / Wed Jul 08
|
|
84
|
+
<div class="path">lib/capcode.rb / Wed Jul 08 02:02:06 +0200 2009</div>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
87
87
|
<pre>
|
data/lib/capcode.rb
CHANGED
|
@@ -407,7 +407,7 @@ module Capcode
|
|
|
407
407
|
begin
|
|
408
408
|
opts.parse! ARGV
|
|
409
409
|
rescue OptionParser::ParseError => ex
|
|
410
|
-
|
|
410
|
+
puts "!! #{ex.message}"
|
|
411
411
|
puts "** use `#{File.basename($0)} --help` for more details..."
|
|
412
412
|
exit 1
|
|
413
413
|
end
|
|
@@ -442,7 +442,7 @@ module Capcode
|
|
|
442
442
|
end
|
|
443
443
|
|
|
444
444
|
# Set Static directory
|
|
445
|
-
@@__STATIC_DIR = File.expand_path(File.join("/", conf[:static]))
|
|
445
|
+
@@__STATIC_DIR = File.expand_path(File.join("/", conf[:static])) unless conf[:static].nil?
|
|
446
446
|
|
|
447
447
|
# Initialize Rack App
|
|
448
448
|
puts "** Map routes." if __VERBOSE
|
|
@@ -521,7 +521,6 @@ module Capcode
|
|
|
521
521
|
end
|
|
522
522
|
|
|
523
523
|
def static #:nodoc:
|
|
524
|
-
puts "-------------------- #{@@__STATIC_DIR}"
|
|
525
524
|
@@__STATIC_DIR
|
|
526
525
|
end
|
|
527
526
|
end
|
data/lib/capcode/version.rb
CHANGED