deas 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/deas.gemspec +7 -1
- data/lib/deas/logger.rb +23 -0
- data/lib/deas/route.rb +45 -0
- data/lib/deas/runner.rb +30 -0
- data/lib/deas/server.rb +152 -0
- data/lib/deas/sinatra_app.rb +54 -0
- data/lib/deas/sinatra_runner.rb +119 -0
- data/lib/deas/template.rb +80 -0
- data/lib/deas/test_helpers.rb +15 -0
- data/lib/deas/test_runner.rb +40 -0
- data/lib/deas/version.rb +1 -1
- data/lib/deas/view_handler.rb +97 -0
- data/lib/deas.rb +35 -2
- data/test/helper.rb +9 -1
- data/test/support/fake_app.rb +46 -0
- data/test/support/routes.rb +117 -0
- data/test/support/view_handlers.rb +52 -0
- data/test/support/views/_info.erb +1 -0
- data/test/support/views/layout1.erb +2 -0
- data/test/support/views/layout2.erb +2 -0
- data/test/support/views/layout3.erb +2 -0
- data/test/support/views/show.erb +2 -0
- data/test/support/views/with_layout.erb +1 -0
- data/test/system/making_requests_tests.rb +78 -0
- data/test/unit/deas_tests.rb +21 -0
- data/test/unit/logger_tests.rb +33 -0
- data/test/unit/route_tests.rb +43 -0
- data/test/unit/runner_tests.rb +34 -0
- data/test/unit/server_tests.rb +203 -0
- data/test/unit/sinatra_app_tests.rb +70 -0
- data/test/unit/sinatra_runner_tests.rb +103 -0
- data/test/unit/template_tests.rb +150 -0
- data/test/unit/view_handler_tests.rb +96 -0
- metadata +130 -7
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.2
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kelly Redding
|
@@ -16,12 +16,56 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-
|
19
|
+
date: 2013-05-01 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name: assert
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 15
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 0
|
32
|
+
version: "1.0"
|
33
|
+
requirement: *id001
|
34
|
+
name: ns-options
|
35
|
+
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 5
|
44
|
+
segments:
|
45
|
+
- 1
|
46
|
+
- 5
|
47
|
+
version: "1.5"
|
48
|
+
requirement: *id002
|
49
|
+
name: rack
|
50
|
+
type: :runtime
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 7
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 4
|
62
|
+
version: "1.4"
|
63
|
+
requirement: *id003
|
64
|
+
name: sinatra
|
65
|
+
type: :runtime
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
25
69
|
none: false
|
26
70
|
requirements:
|
27
71
|
- - ~>
|
@@ -31,8 +75,39 @@ dependencies:
|
|
31
75
|
- 2
|
32
76
|
- 0
|
33
77
|
version: "2.0"
|
78
|
+
requirement: *id004
|
79
|
+
name: assert
|
80
|
+
type: :development
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
prerelease: false
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 15
|
89
|
+
segments:
|
90
|
+
- 1
|
91
|
+
- 0
|
92
|
+
version: "1.0"
|
93
|
+
requirement: *id005
|
94
|
+
name: assert-mocha
|
95
|
+
type: :development
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 7
|
104
|
+
segments:
|
105
|
+
- 0
|
106
|
+
- 6
|
107
|
+
version: "0.6"
|
108
|
+
requirement: *id006
|
109
|
+
name: rack-test
|
34
110
|
type: :development
|
35
|
-
version_requirements: *id001
|
36
111
|
description: Handler-based web framework powered by Sinatra
|
37
112
|
email:
|
38
113
|
- kelly@kellyredding.com
|
@@ -51,9 +126,38 @@ files:
|
|
51
126
|
- Rakefile
|
52
127
|
- deas.gemspec
|
53
128
|
- lib/deas.rb
|
129
|
+
- lib/deas/logger.rb
|
130
|
+
- lib/deas/route.rb
|
131
|
+
- lib/deas/runner.rb
|
132
|
+
- lib/deas/server.rb
|
133
|
+
- lib/deas/sinatra_app.rb
|
134
|
+
- lib/deas/sinatra_runner.rb
|
135
|
+
- lib/deas/template.rb
|
136
|
+
- lib/deas/test_helpers.rb
|
137
|
+
- lib/deas/test_runner.rb
|
54
138
|
- lib/deas/version.rb
|
139
|
+
- lib/deas/view_handler.rb
|
55
140
|
- log/.gitkeep
|
56
141
|
- test/helper.rb
|
142
|
+
- test/support/fake_app.rb
|
143
|
+
- test/support/routes.rb
|
144
|
+
- test/support/view_handlers.rb
|
145
|
+
- test/support/views/_info.erb
|
146
|
+
- test/support/views/layout1.erb
|
147
|
+
- test/support/views/layout2.erb
|
148
|
+
- test/support/views/layout3.erb
|
149
|
+
- test/support/views/show.erb
|
150
|
+
- test/support/views/with_layout.erb
|
151
|
+
- test/system/making_requests_tests.rb
|
152
|
+
- test/unit/deas_tests.rb
|
153
|
+
- test/unit/logger_tests.rb
|
154
|
+
- test/unit/route_tests.rb
|
155
|
+
- test/unit/runner_tests.rb
|
156
|
+
- test/unit/server_tests.rb
|
157
|
+
- test/unit/sinatra_app_tests.rb
|
158
|
+
- test/unit/sinatra_runner_tests.rb
|
159
|
+
- test/unit/template_tests.rb
|
160
|
+
- test/unit/view_handler_tests.rb
|
57
161
|
- tmp/.gitkeep
|
58
162
|
homepage: http://github.com/redding/deas
|
59
163
|
licenses: []
|
@@ -84,9 +188,28 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
188
|
requirements: []
|
85
189
|
|
86
190
|
rubyforge_project:
|
87
|
-
rubygems_version: 1.8.
|
191
|
+
rubygems_version: 1.8.15
|
88
192
|
signing_key:
|
89
193
|
specification_version: 3
|
90
194
|
summary: Handler-based web framework powered by Sinatra
|
91
195
|
test_files:
|
92
196
|
- test/helper.rb
|
197
|
+
- test/support/fake_app.rb
|
198
|
+
- test/support/routes.rb
|
199
|
+
- test/support/view_handlers.rb
|
200
|
+
- test/support/views/_info.erb
|
201
|
+
- test/support/views/layout1.erb
|
202
|
+
- test/support/views/layout2.erb
|
203
|
+
- test/support/views/layout3.erb
|
204
|
+
- test/support/views/show.erb
|
205
|
+
- test/support/views/with_layout.erb
|
206
|
+
- test/system/making_requests_tests.rb
|
207
|
+
- test/unit/deas_tests.rb
|
208
|
+
- test/unit/logger_tests.rb
|
209
|
+
- test/unit/route_tests.rb
|
210
|
+
- test/unit/runner_tests.rb
|
211
|
+
- test/unit/server_tests.rb
|
212
|
+
- test/unit/sinatra_app_tests.rb
|
213
|
+
- test/unit/sinatra_runner_tests.rb
|
214
|
+
- test/unit/template_tests.rb
|
215
|
+
- test/unit/view_handler_tests.rb
|