cuba 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -0
- data/cuba.gemspec +2 -2
- data/lib/cuba/rum.rb +4 -0
- data/lib/cuba/version.rb +1 -1
- data/test/webrat.log +9 -0
- metadata +24 -4
data/README.markdown
CHANGED
data/cuba.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cuba"
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.5"
|
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"]
|
7
7
|
s.email = ["michel@soveran.com"]
|
8
8
|
s.homepage = "http://github.com/soveran/cuba"
|
9
|
-
s.files = ["LICENSE", "README.markdown", "Rakefile", "lib/cuba/ron.rb", "lib/cuba/rum.rb", "lib/cuba/test.rb", "lib/cuba/version.rb", "lib/cuba.rb", "cuba.gemspec", "test/cuba_test.rb"]
|
9
|
+
s.files = ["LICENSE", "README.markdown", "Rakefile", "lib/cuba/ron.rb", "lib/cuba/rum.rb", "lib/cuba/test.rb", "lib/cuba/version.rb", "lib/cuba.rb", "cuba.gemspec", "test/cuba_test.rb", "test/webrat.log"]
|
10
10
|
s.add_dependency "rack", ">= 1.1.0"
|
11
11
|
s.add_dependency "haml", ">= 2.2.22"
|
12
12
|
s.add_dependency "tilt", ">= 0.9"
|
data/lib/cuba/rum.rb
CHANGED
@@ -68,6 +68,10 @@ class Rum
|
|
68
68
|
yield *arg.map { |a| a == true || (a != false && a.call) || return }
|
69
69
|
env["SCRIPT_NAME"], env["PATH_INFO"] = s, p
|
70
70
|
@matched = true
|
71
|
+
ensure
|
72
|
+
unless @matched
|
73
|
+
env["SCRIPT_NAME"], env["PATH_INFO"] = s, p
|
74
|
+
end
|
71
75
|
end
|
72
76
|
|
73
77
|
def any(*args)
|
data/lib/cuba/version.rb
CHANGED
data/test/webrat.log
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Logfile created on 2010-05-08 22:24:04 -0300 by logger.rb/20321
|
2
|
+
D, [2010-05-08T22:24:04.490239 #59737] DEBUG -- : REQUESTING PAGE: GET / with {} and HTTP headers {}
|
3
|
+
D, [2010-05-08T22:24:04.502240 #59737] DEBUG -- : REQUESTING PAGE: GET /login with {} and HTTP headers {"HTTP_REFERER"=>"/"}
|
4
|
+
D, [2010-05-08T22:24:04.504636 #59737] DEBUG -- : REQUESTING PAGE: POST /login with {"user"=>"Michel"} and HTTP headers {"HTTP_REFERER"=>"/login"}
|
5
|
+
D, [2010-05-08T22:24:04.507504 #59737] DEBUG -- : REQUESTING PAGE: GET / with {} and HTTP headers {"HTTP_REFERER"=>"/login"}
|
6
|
+
D, [2010-05-14T12:19:24.081242 #70310] DEBUG -- : REQUESTING PAGE: GET / with {} and HTTP headers {}
|
7
|
+
D, [2010-05-14T12:19:24.127110 #70310] DEBUG -- : REQUESTING PAGE: GET /login with {} and HTTP headers {"HTTP_REFERER"=>"/"}
|
8
|
+
D, [2010-05-14T12:19:24.129474 #70310] DEBUG -- : REQUESTING PAGE: POST /login with {"user"=>"Michel"} and HTTP headers {"HTTP_REFERER"=>"/login"}
|
9
|
+
D, [2010-05-14T12:19:24.132340 #70310] DEBUG -- : REQUESTING PAGE: GET / with {} and HTTP headers {"HTTP_REFERER"=>"/login"}
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Michel Martens
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-14 00:00:00 -03:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rack
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 19
|
27
30
|
segments:
|
28
31
|
- 1
|
29
32
|
- 1
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: haml
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 43
|
41
46
|
segments:
|
42
47
|
- 2
|
43
48
|
- 2
|
@@ -49,9 +54,11 @@ dependencies:
|
|
49
54
|
name: tilt
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - ">="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 25
|
55
62
|
segments:
|
56
63
|
- 0
|
57
64
|
- 9
|
@@ -62,9 +69,11 @@ dependencies:
|
|
62
69
|
name: webrat
|
63
70
|
prerelease: false
|
64
71
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
65
73
|
requirements:
|
66
74
|
- - ">="
|
67
75
|
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
68
77
|
segments:
|
69
78
|
- 0
|
70
79
|
- 7
|
@@ -76,9 +85,11 @@ dependencies:
|
|
76
85
|
name: contest
|
77
86
|
prerelease: false
|
78
87
|
requirement: &id005 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
79
89
|
requirements:
|
80
90
|
- - ">="
|
81
91
|
- !ruby/object:Gem::Version
|
92
|
+
hash: 31
|
82
93
|
segments:
|
83
94
|
- 0
|
84
95
|
- 1
|
@@ -90,9 +101,11 @@ dependencies:
|
|
90
101
|
name: stories
|
91
102
|
prerelease: false
|
92
103
|
requirement: &id006 !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
93
105
|
requirements:
|
94
106
|
- - ">="
|
95
107
|
- !ruby/object:Gem::Version
|
108
|
+
hash: 29
|
96
109
|
segments:
|
97
110
|
- 0
|
98
111
|
- 1
|
@@ -104,9 +117,11 @@ dependencies:
|
|
104
117
|
name: rack-test
|
105
118
|
prerelease: false
|
106
119
|
requirement: &id007 !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
107
121
|
requirements:
|
108
122
|
- - ">="
|
109
123
|
- !ruby/object:Gem::Version
|
124
|
+
hash: 13
|
110
125
|
segments:
|
111
126
|
- 0
|
112
127
|
- 5
|
@@ -134,6 +149,7 @@ files:
|
|
134
149
|
- lib/cuba.rb
|
135
150
|
- cuba.gemspec
|
136
151
|
- test/cuba_test.rb
|
152
|
+
- test/webrat.log
|
137
153
|
has_rdoc: true
|
138
154
|
homepage: http://github.com/soveran/cuba
|
139
155
|
licenses: []
|
@@ -144,23 +160,27 @@ rdoc_options: []
|
|
144
160
|
require_paths:
|
145
161
|
- lib
|
146
162
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
+
none: false
|
147
164
|
requirements:
|
148
165
|
- - ">="
|
149
166
|
- !ruby/object:Gem::Version
|
167
|
+
hash: 3
|
150
168
|
segments:
|
151
169
|
- 0
|
152
170
|
version: "0"
|
153
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
+
none: false
|
154
173
|
requirements:
|
155
174
|
- - ">="
|
156
175
|
- !ruby/object:Gem::Version
|
176
|
+
hash: 3
|
157
177
|
segments:
|
158
178
|
- 0
|
159
179
|
version: "0"
|
160
180
|
requirements: []
|
161
181
|
|
162
182
|
rubyforge_project:
|
163
|
-
rubygems_version: 1.3.
|
183
|
+
rubygems_version: 1.3.7
|
164
184
|
signing_key:
|
165
185
|
specification_version: 3
|
166
186
|
summary: Rum based microframework for web applications.
|