roda-cj 0.9.6 → 1.0.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.
@@ -0,0 +1,29 @@
1
+ require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__)))
2
+
3
+ describe "path plugin" do
4
+ it "adds path method for defining named paths" do
5
+ app(:bare) do
6
+ plugin :path
7
+ path :foo, "/foo"
8
+ path :bar do |o|
9
+ "/bar/#{o}"
10
+ end
11
+
12
+ route do |r|
13
+ "#{foo_path}#{bar_path('a')}"
14
+ end
15
+ end
16
+
17
+ body.should == '/foo/bar/a'
18
+ end
19
+
20
+ it "raises if both path and block are given" do
21
+ app.plugin :path
22
+ proc{app.path(:foo, '/foo'){}}.should raise_error(Roda::RodaError)
23
+ end
24
+
25
+ it "raises if neither path nor block are given" do
26
+ app.plugin :path
27
+ proc{app.path(:foo)}.should raise_error(Roda::RodaError)
28
+ end
29
+ end
metadata CHANGED
@@ -1,83 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-cj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 1.0.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jeremy Evans
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-08-16 00:00:00.000000000 Z
12
+ date: 2014-09-27 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rack
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rspec
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: tilt
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: erubis
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rack_csrf
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - '>='
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - '>='
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: yuicompressor
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
81
108
  - !ruby/object:Gem::Version
82
109
  version: '0'
83
110
  description: Routing tree web framework, inspired by Sinatra and Cuba
@@ -85,104 +112,115 @@ email:
85
112
  - code@jeremyevans.net
86
113
  executables: []
87
114
  extensions: []
88
- extra_rdoc_files: []
115
+ extra_rdoc_files:
116
+ - README.rdoc
117
+ - MIT-LICENSE
118
+ - CHANGELOG
119
+ - doc/release_notes/1.0.0.txt
89
120
  files:
90
121
  - README.rdoc
91
122
  - MIT-LICENSE
92
123
  - CHANGELOG
93
124
  - Rakefile
94
- - lib/roda/version.rb
95
- - lib/roda/plugins/multi_route.rb
125
+ - doc/release_notes/1.0.0.txt
126
+ - lib/roda.rb
127
+ - lib/roda/plugins/render.rb
128
+ - lib/roda/plugins/streaming.rb
129
+ - lib/roda/plugins/not_allowed.rb
96
130
  - lib/roda/plugins/hooks.rb
97
- - lib/roda/plugins/pass.rb
98
131
  - lib/roda/plugins/h.rb
99
- - lib/roda/plugins/render.rb
100
132
  - lib/roda/plugins/middleware.rb
101
- - lib/roda/plugins/symbol_matchers.rb
102
- - lib/roda/plugins/flash.rb
133
+ - lib/roda/plugins/_erubis_escaping.rb
103
134
  - lib/roda/plugins/csrf.rb
135
+ - lib/roda/plugins/multi_route.rb
136
+ - lib/roda/plugins/render_each.rb
104
137
  - lib/roda/plugins/symbol_views.rb
105
- - lib/roda/plugins/content_for.rb
106
- - lib/roda/plugins/halt.rb
107
- - lib/roda/plugins/not_allowed.rb
138
+ - lib/roda/plugins/all_verbs.rb
139
+ - lib/roda/plugins/symbol_matchers.rb
140
+ - lib/roda/plugins/head.rb
141
+ - lib/roda/plugins/view_subdirs.rb
108
142
  - lib/roda/plugins/header_matchers.rb
143
+ - lib/roda/plugins/path.rb
109
144
  - lib/roda/plugins/per_thread_caching.rb
110
- - lib/roda/plugins/error_handler.rb
111
- - lib/roda/plugins/_erubis_escaping.rb
112
- - lib/roda/plugins/indifferent_params.rb
113
- - lib/roda/plugins/head.rb
114
- - lib/roda/plugins/json.rb
115
- - lib/roda/plugins/render_each.rb
116
- - lib/roda/plugins/streaming.rb
117
- - lib/roda/plugins/all_verbs.rb
118
- - lib/roda/plugins/not_found.rb
119
145
  - lib/roda/plugins/default_headers.rb
120
- - lib/roda/plugins/view_subdirs.rb
121
146
  - lib/roda/plugins/backtracking_array.rb
122
- - lib/roda.rb
123
- - spec/response_spec.rb
147
+ - lib/roda/plugins/halt.rb
148
+ - lib/roda/plugins/json.rb
149
+ - lib/roda/plugins/indifferent_params.rb
150
+ - lib/roda/plugins/not_found.rb
151
+ - lib/roda/plugins/error_email.rb
152
+ - lib/roda/plugins/pass.rb
153
+ - lib/roda/plugins/error_handler.rb
154
+ - lib/roda/plugins/flash.rb
155
+ - lib/roda/plugins/assets.rb
156
+ - lib/roda/plugins/content_for.rb
157
+ - lib/roda/version.rb
158
+ - spec/request_spec.rb
159
+ - spec/session_spec.rb
160
+ - spec/version_spec.rb
161
+ - spec/plugin_spec.rb
124
162
  - spec/integration_spec.rb
125
- - spec/module_spec.rb
126
- - spec/env_spec.rb
127
163
  - spec/opts_spec.rb
128
164
  - spec/redirect_spec.rb
165
+ - spec/module_spec.rb
166
+ - spec/response_spec.rb
167
+ - spec/spec_helper.rb
129
168
  - spec/composition_spec.rb
130
169
  - spec/matchers_spec.rb
131
- - spec/spec_helper.rb
132
- - spec/request_spec.rb
133
- - spec/version_spec.rb
134
- - spec/plugin_spec.rb
135
- - spec/session_spec.rb
136
- - spec/plugin/indifferent_params_spec.rb
137
- - spec/plugin/error_handler_spec.rb
170
+ - spec/env_spec.rb
138
171
  - spec/plugin/json_spec.rb
172
+ - spec/plugin/_erubis_escaping_spec.rb
139
173
  - spec/plugin/symbol_views_spec.rb
140
- - spec/plugin/head_spec.rb
141
- - spec/plugin/all_verbs_spec.rb
142
- - spec/plugin/render_spec.rb
143
- - spec/plugin/symbol_matchers_spec.rb
144
- - spec/plugin/multi_route_spec.rb
174
+ - spec/plugin/indifferent_params_spec.rb
175
+ - spec/plugin/middleware_spec.rb
176
+ - spec/plugin/content_for_spec.rb
177
+ - spec/plugin/assets_spec.rb
145
178
  - spec/plugin/csrf_spec.rb
146
- - spec/plugin/default_headers_spec.rb
147
- - spec/plugin/backtracking_array_spec.rb
148
- - spec/plugin/_erubis_escaping_spec.rb
179
+ - spec/plugin/not_allowed_spec.rb
180
+ - spec/plugin/header_matchers_spec.rb
149
181
  - spec/plugin/per_thread_caching_spec.rb
150
- - spec/plugin/content_for_spec.rb
151
- - spec/plugin/hooks_spec.rb
152
182
  - spec/plugin/streaming_spec.rb
153
- - spec/plugin/flash_spec.rb
154
- - spec/plugin/pass_spec.rb
155
- - spec/plugin/render_each_spec.rb
156
- - spec/plugin/not_found_spec.rb
157
- - spec/plugin/middleware_spec.rb
158
- - spec/plugin/not_allowed_spec.rb
183
+ - spec/plugin/hooks_spec.rb
159
184
  - spec/plugin/h_spec.rb
160
185
  - spec/plugin/halt_spec.rb
161
186
  - spec/plugin/view_subdirs_spec.rb
162
- - spec/plugin/header_matchers_spec.rb
187
+ - spec/plugin/all_verbs_spec.rb
188
+ - spec/plugin/path_spec.rb
189
+ - spec/plugin/render_spec.rb
190
+ - spec/plugin/flash_spec.rb
191
+ - spec/plugin/error_email_spec.rb
192
+ - spec/plugin/error_handler_spec.rb
193
+ - spec/plugin/multi_route_spec.rb
194
+ - spec/plugin/default_headers_spec.rb
195
+ - spec/plugin/render_each_spec.rb
196
+ - spec/plugin/not_found_spec.rb
197
+ - spec/plugin/symbol_matchers_spec.rb
198
+ - spec/plugin/backtracking_array_spec.rb
199
+ - spec/plugin/head_spec.rb
200
+ - spec/plugin/pass_spec.rb
163
201
  homepage: https://github.com/jeremyevans/roda
164
202
  licenses:
165
203
  - MIT
166
- metadata: {}
167
204
  post_install_message:
168
205
  rdoc_options: []
169
206
  require_paths:
170
207
  - lib
171
208
  required_ruby_version: !ruby/object:Gem::Requirement
209
+ none: false
172
210
  requirements:
173
- - - '>='
211
+ - - ! '>='
174
212
  - !ruby/object:Gem::Version
175
213
  version: '0'
176
214
  required_rubygems_version: !ruby/object:Gem::Requirement
215
+ none: false
177
216
  requirements:
178
- - - '>='
217
+ - - ! '>='
179
218
  - !ruby/object:Gem::Version
180
219
  version: '0'
181
220
  requirements: []
182
221
  rubyforge_project:
183
- rubygems_version: 2.0.14
222
+ rubygems_version: 1.8.23
184
223
  signing_key:
185
- specification_version: 4
224
+ specification_version: 3
186
225
  summary: Routing tree web framework
187
226
  test_files: []
188
- has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: b1af4812c5c122b1788a1e021e201cd000da9414
4
- data.tar.gz: c48935831202f575e8a6032e7f765be91cc00efb
5
- SHA512:
6
- metadata.gz: 4c6b474e100d17790346d51b78f8b3ba9d08a600770c58b6a34476c60b1347c17da326428a1ce2e22519258d2efec957be58cc37b945ab4c1fcb5a08c608208c
7
- data.tar.gz: 91451697eba17949e058401335579b1d915e0b0a6b535df8cc4f480978c3ad5acf804c08fee8e5ac3ea67af6e433f99d87da7c9b844e5ca0a10cc9f323645904