cuba 0.0.2 → 0.0.3

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.markdown CHANGED
@@ -48,7 +48,7 @@ To run it, you can create a `config.ru`:
48
48
  # cat config.ru
49
49
  require "hello_world"
50
50
 
51
- run Cuba.app
51
+ run Cuba
52
52
 
53
53
  That's it, you can now run `rackup` and enjoy what you have just created.
54
54
 
data/cuba.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cuba"
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
4
4
  s.summary = "Rum based microframework for web applications."
5
5
  s.description = "Cuba is a light wrapper for Rum, a microframework for Rack applications."
6
6
  s.authors = ["Michel Martens"]
data/lib/cuba.rb CHANGED
@@ -6,7 +6,7 @@ module Cuba
6
6
  @app = Ron.new(&block)
7
7
  end
8
8
 
9
- def self.app
10
- @app
9
+ def self.call(env)
10
+ @app.call(env)
11
11
  end
12
12
  end
data/lib/cuba/test.rb CHANGED
@@ -14,7 +14,7 @@ class Test::Unit::TestCase
14
14
  include Stories::Webrat
15
15
 
16
16
  def app
17
- Cuba.app
17
+ Cuba
18
18
  end
19
19
  end
20
20
 
data/lib/cuba/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cuba
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michel Martens
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-26 00:00:00 -03:00
17
+ date: 2010-04-28 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency