roda 1.0.0 → 1.1.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG +34 -0
- data/README.rdoc +18 -13
- data/Rakefile +8 -0
- data/doc/conventions.rdoc +163 -0
- data/doc/release_notes/1.1.0.txt +226 -0
- data/lib/roda.rb +51 -22
- data/lib/roda/plugins/assets.rb +613 -0
- data/lib/roda/plugins/caching.rb +215 -0
- data/lib/roda/plugins/chunked.rb +278 -0
- data/lib/roda/plugins/error_email.rb +112 -0
- data/lib/roda/plugins/flash.rb +3 -3
- data/lib/roda/plugins/hooks.rb +1 -1
- data/lib/roda/plugins/indifferent_params.rb +3 -3
- data/lib/roda/plugins/middleware.rb +3 -8
- data/lib/roda/plugins/multi_route.rb +110 -18
- data/lib/roda/plugins/not_allowed.rb +3 -3
- data/lib/roda/plugins/path.rb +38 -0
- data/lib/roda/plugins/render.rb +18 -16
- data/lib/roda/plugins/render_each.rb +0 -2
- data/lib/roda/plugins/streaming.rb +1 -2
- data/lib/roda/plugins/view_subdirs.rb +7 -1
- data/lib/roda/version.rb +1 -1
- data/spec/assets/css/app.scss +1 -0
- data/spec/assets/css/no_access.css +1 -0
- data/spec/assets/css/raw.css +1 -0
- data/spec/assets/js/head/app.js +1 -0
- data/spec/integration_spec.rb +95 -3
- data/spec/matchers_spec.rb +2 -2
- data/spec/plugin/assets_spec.rb +413 -0
- data/spec/plugin/caching_spec.rb +335 -0
- data/spec/plugin/chunked_spec.rb +182 -0
- data/spec/plugin/default_headers_spec.rb +6 -5
- data/spec/plugin/error_email_spec.rb +76 -0
- data/spec/plugin/multi_route_spec.rb +120 -0
- data/spec/plugin/not_allowed_spec.rb +14 -3
- data/spec/plugin/path_spec.rb +29 -0
- data/spec/plugin/render_each_spec.rb +6 -1
- data/spec/plugin/symbol_matchers_spec.rb +7 -2
- data/spec/request_spec.rb +10 -0
- data/spec/response_spec.rb +47 -0
- data/spec/views/about.erb +1 -0
- data/spec/views/about.str +1 -0
- data/spec/views/content-yield.erb +1 -0
- data/spec/views/home.erb +2 -0
- data/spec/views/home.str +2 -0
- data/spec/views/layout-alternative.erb +2 -0
- data/spec/views/layout-yield.erb +3 -0
- data/spec/views/layout.erb +2 -0
- data/spec/views/layout.str +2 -0
- metadata +57 -2
@@ -0,0 +1 @@
|
|
1
|
+
<h1><%= title %></h1>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1>#{title}</h1>
|
@@ -0,0 +1 @@
|
|
1
|
+
This is the actual content.
|
data/spec/views/home.erb
ADDED
data/spec/views/home.str
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -80,6 +80,34 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sass
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: json
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
83
111
|
description: Routing tree web framework, inspired by Sinatra and Cuba
|
84
112
|
email:
|
85
113
|
- code@jeremyevans.net
|
@@ -89,20 +117,28 @@ extra_rdoc_files:
|
|
89
117
|
- README.rdoc
|
90
118
|
- MIT-LICENSE
|
91
119
|
- CHANGELOG
|
120
|
+
- doc/conventions.rdoc
|
92
121
|
- doc/release_notes/1.0.0.txt
|
122
|
+
- doc/release_notes/1.1.0.txt
|
93
123
|
files:
|
94
124
|
- CHANGELOG
|
95
125
|
- MIT-LICENSE
|
96
126
|
- README.rdoc
|
97
127
|
- Rakefile
|
128
|
+
- doc/conventions.rdoc
|
98
129
|
- doc/release_notes/1.0.0.txt
|
130
|
+
- doc/release_notes/1.1.0.txt
|
99
131
|
- lib/roda.rb
|
100
132
|
- lib/roda/plugins/_erubis_escaping.rb
|
101
133
|
- lib/roda/plugins/all_verbs.rb
|
134
|
+
- lib/roda/plugins/assets.rb
|
102
135
|
- lib/roda/plugins/backtracking_array.rb
|
136
|
+
- lib/roda/plugins/caching.rb
|
137
|
+
- lib/roda/plugins/chunked.rb
|
103
138
|
- lib/roda/plugins/content_for.rb
|
104
139
|
- lib/roda/plugins/csrf.rb
|
105
140
|
- lib/roda/plugins/default_headers.rb
|
141
|
+
- lib/roda/plugins/error_email.rb
|
106
142
|
- lib/roda/plugins/error_handler.rb
|
107
143
|
- lib/roda/plugins/flash.rb
|
108
144
|
- lib/roda/plugins/h.rb
|
@@ -117,6 +153,7 @@ files:
|
|
117
153
|
- lib/roda/plugins/not_allowed.rb
|
118
154
|
- lib/roda/plugins/not_found.rb
|
119
155
|
- lib/roda/plugins/pass.rb
|
156
|
+
- lib/roda/plugins/path.rb
|
120
157
|
- lib/roda/plugins/per_thread_caching.rb
|
121
158
|
- lib/roda/plugins/render.rb
|
122
159
|
- lib/roda/plugins/render_each.rb
|
@@ -125,6 +162,10 @@ files:
|
|
125
162
|
- lib/roda/plugins/symbol_views.rb
|
126
163
|
- lib/roda/plugins/view_subdirs.rb
|
127
164
|
- lib/roda/version.rb
|
165
|
+
- spec/assets/css/app.scss
|
166
|
+
- spec/assets/css/no_access.css
|
167
|
+
- spec/assets/css/raw.css
|
168
|
+
- spec/assets/js/head/app.js
|
128
169
|
- spec/composition_spec.rb
|
129
170
|
- spec/env_spec.rb
|
130
171
|
- spec/integration_spec.rb
|
@@ -133,10 +174,14 @@ files:
|
|
133
174
|
- spec/opts_spec.rb
|
134
175
|
- spec/plugin/_erubis_escaping_spec.rb
|
135
176
|
- spec/plugin/all_verbs_spec.rb
|
177
|
+
- spec/plugin/assets_spec.rb
|
136
178
|
- spec/plugin/backtracking_array_spec.rb
|
179
|
+
- spec/plugin/caching_spec.rb
|
180
|
+
- spec/plugin/chunked_spec.rb
|
137
181
|
- spec/plugin/content_for_spec.rb
|
138
182
|
- spec/plugin/csrf_spec.rb
|
139
183
|
- spec/plugin/default_headers_spec.rb
|
184
|
+
- spec/plugin/error_email_spec.rb
|
140
185
|
- spec/plugin/error_handler_spec.rb
|
141
186
|
- spec/plugin/flash_spec.rb
|
142
187
|
- spec/plugin/h_spec.rb
|
@@ -151,6 +196,7 @@ files:
|
|
151
196
|
- spec/plugin/not_allowed_spec.rb
|
152
197
|
- spec/plugin/not_found_spec.rb
|
153
198
|
- spec/plugin/pass_spec.rb
|
199
|
+
- spec/plugin/path_spec.rb
|
154
200
|
- spec/plugin/per_thread_caching_spec.rb
|
155
201
|
- spec/plugin/render_each_spec.rb
|
156
202
|
- spec/plugin/render_spec.rb
|
@@ -165,6 +211,15 @@ files:
|
|
165
211
|
- spec/session_spec.rb
|
166
212
|
- spec/spec_helper.rb
|
167
213
|
- spec/version_spec.rb
|
214
|
+
- spec/views/about.erb
|
215
|
+
- spec/views/about.str
|
216
|
+
- spec/views/content-yield.erb
|
217
|
+
- spec/views/home.erb
|
218
|
+
- spec/views/home.str
|
219
|
+
- spec/views/layout-alternative.erb
|
220
|
+
- spec/views/layout-yield.erb
|
221
|
+
- spec/views/layout.erb
|
222
|
+
- spec/views/layout.str
|
168
223
|
homepage: https://github.com/jeremyevans/roda
|
169
224
|
licenses:
|
170
225
|
- MIT
|