Capcode 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,10 +12,14 @@ Capcode is a web microframework
12
12
 
13
13
  == FEATURES/PROBLEMS:
14
14
 
15
+ === 0.9.3
16
+ * Major bug correction
17
+
15
18
  === 0.9.2
16
19
  * Remove JSON dependency
17
20
  * Add the "HTTP code" renderer, so you can now use something like this : render 200 => "OK", :server => "Capcode", ...
18
21
  * Reintroduce before_filter. {See example filter.rb}[http://github.com/glejeune/Capcode/tree/master/examples/filter.rb].
22
+ * Remove mime-types dependency
19
23
 
20
24
  === 0.9.1
21
25
  * You don't need to require the renderers. This will be done by Capcode at use time.
@@ -434,7 +434,7 @@ href="Capcode.html#M000012">set</a> globally
434
434
  594: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;** Map routes.&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Capcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Configuration</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">:verbose</span>)
435
435
  595: <span class="ruby-comment cmt">#app = Rack::URLMap.new(@@__ROUTES)</span>
436
436
  596: <span class="ruby-identifier">app</span> = <span class="ruby-constant">Rack</span><span class="ruby-operator">::</span><span class="ruby-constant">URLMap</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Capcode</span>.<span class="ruby-identifier">routes</span>)
437
- 597: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;** Initialize static directory (#{Capcode::Configuration.get(:static)})&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Capcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Configuration</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">:verbose</span>)
437
+ 597: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;** Initialize static directory (#{Capcode.static}) in #{File.expand_path(Capcode::Configuration.get(:root))}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Capcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Configuration</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">:verbose</span>)
438
438
  598: <span class="ruby-identifier">app</span> = <span class="ruby-constant">Rack</span><span class="ruby-operator">::</span><span class="ruby-constant">Static</span>.<span class="ruby-identifier">new</span>(
439
439
  599: <span class="ruby-identifier">app</span>,
440
440
  600: <span class="ruby-comment cmt">#:urls =&gt; [@@__STATIC_DIR], </span>
@@ -605,7 +605,7 @@ the <a href="Helpers.html#M000021">static</a> directory on the server
605
605
  271: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">static</span>
606
606
  272: {
607
607
  273: <span class="ruby-identifier">:uri</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Capcode</span>.<span class="ruby-identifier">static</span>,
608
- 274: <span class="ruby-identifier">:path</span> =<span class="ruby-operator">&gt;</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">&quot;.&quot;</span>, <span class="ruby-constant">Capcode</span>.<span class="ruby-identifier">static</span> ) )
608
+ 274: <span class="ruby-identifier">:path</span> =<span class="ruby-operator">&gt;</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-constant">Capcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Configuration</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">:root</span>), <span class="ruby-constant">Capcode</span><span class="ruby-operator">::</span><span class="ruby-constant">Configuration</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">:static</span>) ) )
609
609
  275: }
610
610
  276: <span class="ruby-keyword kw">end</span>
611
611
  </pre>
@@ -1 +1 @@
1
- Fri, 05 Feb 2010 19:23:09 +0100
1
+ Wed, 10 Feb 2010 08:55:46 +0100
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Feb 04 15:27:28 +0100 2010</td>
59
+ <td>Wed Feb 10 08:55:37 +0100 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -91,6 +91,12 @@ href="http://www.algorithmique.net/capcode">www.algorithmique.net/capcode</a>/
91
91
  <a href="../classes/Capcode.html">Capcode</a> is a web microframework
92
92
  </p>
93
93
  <h2>FEATURES/PROBLEMS:</h2>
94
+ <h3>0.9.3</h3>
95
+ <ul>
96
+ <li>Major bug correction
97
+
98
+ </li>
99
+ </ul>
94
100
  <h3>0.9.2</h3>
95
101
  <ul>
96
102
  <li>Remove JSON dependency
@@ -105,6 +111,9 @@ href="../classes/Capcode.html">Capcode</a>&quot;, &#8230;
105
111
  href="http://github.com/glejeune/Capcode/tree/master/examples/filter.rb">See
106
112
  example filter.rb</a>.
107
113
 
114
+ </li>
115
+ <li>Remove mime-types dependency
116
+
108
117
  </li>
109
118
  </ul>
110
119
  <h3>0.9.1</h3>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Feb 04 16:06:55 +0100 2010</td>
59
+ <td>Wed Feb 10 08:55:11 +0100 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Feb 04 15:36:48 +0100 2010</td>
59
+ <td>Mon Feb 08 21:10:35 +0100 2010</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -271,7 +271,7 @@ module Capcode
271
271
  def static
272
272
  {
273
273
  :uri => Capcode.static,
274
- :path => File.expand_path( File.join(".", Capcode.static ) )
274
+ :path => File.expand_path( File.join(Capcode::Configuration.get(:root), Capcode::Configuration.get(:static) ) )
275
275
  }
276
276
  end
277
277
 
@@ -594,7 +594,7 @@ module Capcode
594
594
  puts "** Map routes." if Capcode::Configuration.get(:verbose)
595
595
  #app = Rack::URLMap.new(@@__ROUTES)
596
596
  app = Rack::URLMap.new(Capcode.routes)
597
- puts "** Initialize static directory (#{Capcode::Configuration.get(:static)})" if Capcode::Configuration.get(:verbose)
597
+ puts "** Initialize static directory (#{Capcode.static}) in #{File.expand_path(Capcode::Configuration.get(:root))}" if Capcode::Configuration.get(:verbose)
598
598
  app = Rack::Static.new(
599
599
  app,
600
600
  #:urls => [@@__STATIC_DIR],
@@ -29,7 +29,7 @@ module Capcode
29
29
  def execute( klass ) #:nodoc:
30
30
  klass_sym = "#{klass.class}".split( /::/)[-1].to_sym
31
31
  actions = []
32
- @filters.each do |action, data|
32
+ filters.each do |action, data|
33
33
  if (data[:only] and data[:only].include?(klass_sym)) or
34
34
  (data[:except] and not data[:except].include?(klass_sym)) or
35
35
  (data.keys.size == 0)
@@ -1,3 +1,3 @@
1
1
  module Capcode
2
- CAPCOD_VERION="0.9.2"
2
+ CAPCOD_VERION="0.9.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Capcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Gr\xC3\xA9goire Lejeune"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-05 00:00:00 +01:00
12
+ date: 2010-02-10 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,16 +22,6 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  version:
25
- - !ruby/object:Gem::Dependency
26
- name: mime-types
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
25
  description: Capcode is a web microframework
36
26
  email: gregoire.lejeune@free.fr
37
27
  executables: []