roda-cj 0.9.2 → 0.9.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/spec/plugin_spec.rb CHANGED
@@ -15,10 +15,20 @@ describe "plugins" do
15
15
  end
16
16
  self::RequestMethods = Module.new do
17
17
  def hello(&block)
18
- on 'hello', &block
18
+ on self.class.hello, &block
19
+ end
20
+ end
21
+ self::RequestClassMethods = Module.new do
22
+ def hello(&block)
23
+ 'hello'
19
24
  end
20
25
  end
21
26
  self::ResponseMethods = Module.new do
27
+ def foobar
28
+ self.class.foobar
29
+ end
30
+ end
31
+ self::ResponseClassMethods = Module.new do
22
32
  def foobar
23
33
  "Default "
24
34
  end
data/spec/request_spec.rb CHANGED
@@ -20,6 +20,15 @@ describe "request.halt" do
20
20
 
21
21
  body.should == "foo"
22
22
  end
23
+
24
+ it "should use current response if no argument is given" do
25
+ app do |r|
26
+ response.write('foo')
27
+ r.halt
28
+ end
29
+
30
+ body.should == "foo"
31
+ end
23
32
  end
24
33
 
25
34
  describe "request.scope" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-cj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
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-08-12 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rack_csrf
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Routing tree web framework, inspired by Sinatra and Cuba
56
70
  email:
57
71
  - code@jeremyevans.net
@@ -70,15 +84,22 @@ files:
70
84
  - lib/roda/plugins/h.rb
71
85
  - lib/roda/plugins/render.rb
72
86
  - lib/roda/plugins/middleware.rb
87
+ - lib/roda/plugins/symbol_matchers.rb
73
88
  - lib/roda/plugins/flash.rb
89
+ - lib/roda/plugins/csrf.rb
90
+ - lib/roda/plugins/symbol_views.rb
74
91
  - lib/roda/plugins/halt.rb
75
92
  - lib/roda/plugins/header_matchers.rb
93
+ - lib/roda/plugins/per_thread_caching.rb
76
94
  - lib/roda/plugins/error_handler.rb
77
95
  - lib/roda/plugins/indifferent_params.rb
96
+ - lib/roda/plugins/json.rb
78
97
  - lib/roda/plugins/streaming.rb
79
98
  - lib/roda/plugins/all_verbs.rb
80
99
  - lib/roda/plugins/not_found.rb
81
100
  - lib/roda/plugins/default_headers.rb
101
+ - lib/roda/plugins/view_subdirs.rb
102
+ - lib/roda/plugins/backtracking_array.rb
82
103
  - lib/roda.rb
83
104
  - spec/response_spec.rb
84
105
  - spec/integration_spec.rb
@@ -95,10 +116,16 @@ files:
95
116
  - spec/session_spec.rb
96
117
  - spec/plugin/indifferent_params_spec.rb
97
118
  - spec/plugin/error_handler_spec.rb
119
+ - spec/plugin/json_spec.rb
120
+ - spec/plugin/symbol_views_spec.rb
98
121
  - spec/plugin/all_verbs_spec.rb
99
122
  - spec/plugin/render_spec.rb
123
+ - spec/plugin/symbol_matchers_spec.rb
100
124
  - spec/plugin/multi_route_spec.rb
125
+ - spec/plugin/csrf_spec.rb
101
126
  - spec/plugin/default_headers_spec.rb
127
+ - spec/plugin/backtracking_array_spec.rb
128
+ - spec/plugin/per_thread_caching_spec.rb
102
129
  - spec/plugin/hooks_spec.rb
103
130
  - spec/plugin/streaming_spec.rb
104
131
  - spec/plugin/flash_spec.rb
@@ -107,6 +134,7 @@ files:
107
134
  - spec/plugin/middleware_spec.rb
108
135
  - spec/plugin/h_spec.rb
109
136
  - spec/plugin/halt_spec.rb
137
+ - spec/plugin/view_subdirs_spec.rb
110
138
  - spec/plugin/header_matchers_spec.rb
111
139
  homepage: https://github.com/jeremyevans/roda
112
140
  licenses: