RubyApp 0.0.90 → 0.0.91
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/ruby_app/rack/route.rb +12 -12
- data/lib/ruby_app/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/ruby_app/rack/route.rb
CHANGED
@@ -28,8 +28,8 @@ module RubyApp
|
|
28
28
|
[
|
29
29
|
200,
|
30
30
|
{
|
31
|
-
'
|
32
|
-
'
|
31
|
+
'Cache-Control' => 'no-cache',
|
32
|
+
'Content-Type' => 'text/html'
|
33
33
|
},
|
34
34
|
[ RubyApp::Elements::Pages::QuitPage.new.render(:html) ]
|
35
35
|
]
|
@@ -44,8 +44,8 @@ module RubyApp
|
|
44
44
|
[
|
45
45
|
200,
|
46
46
|
{
|
47
|
-
'
|
48
|
-
'
|
47
|
+
'Cache-Control' => 'no-cache',
|
48
|
+
'Content-Type' => RubyApp::Rack::Route.get_content_type(format)
|
49
49
|
},
|
50
50
|
[ RubyApp::Element.get_element(element_id).render(format.to_sym) ]
|
51
51
|
]
|
@@ -54,8 +54,8 @@ module RubyApp
|
|
54
54
|
[
|
55
55
|
200,
|
56
56
|
{
|
57
|
-
'
|
58
|
-
'
|
57
|
+
'Cache-Control' => 'no-cache',
|
58
|
+
'Content-Type' => RubyApp::Rack::Route.get_content_type(format)
|
59
59
|
},
|
60
60
|
[ RubyApp::Elements::ExceptionElement.new(exception).render(format.to_sym) ]
|
61
61
|
]
|
@@ -67,8 +67,8 @@ module RubyApp
|
|
67
67
|
[
|
68
68
|
200,
|
69
69
|
{
|
70
|
-
'
|
71
|
-
'
|
70
|
+
'Cache-Control' => 'no-cache',
|
71
|
+
'Content-Type' => RubyApp::Rack::Route.get_content_type(format)
|
72
72
|
},
|
73
73
|
[
|
74
74
|
RubyApp::Log.duration("#{self}.route method=#{method.inspect} path=#{path.inspect} format=#{format.to_sym.inspect} RubyApp::Session.pages.last=#{RubyApp::Session.pages.last.class}") do
|
@@ -95,8 +95,8 @@ module RubyApp
|
|
95
95
|
[
|
96
96
|
200,
|
97
97
|
{
|
98
|
-
'
|
99
|
-
'
|
98
|
+
'Cache-Control' => 'no-cache',
|
99
|
+
'Content-Type' => 'application/json'
|
100
100
|
},
|
101
101
|
[
|
102
102
|
RubyApp::Log.duration("#{self}.route method=#{method.inspect} path=#{path.inspect} POST['_class']=#{RubyApp::Request.POST['_class']}") do
|
@@ -112,8 +112,8 @@ module RubyApp
|
|
112
112
|
[
|
113
113
|
200,
|
114
114
|
{
|
115
|
-
'
|
116
|
-
'
|
115
|
+
'Cache-Control' => 'no-cache',
|
116
|
+
'Content-Type' => 'application/json'
|
117
117
|
},
|
118
118
|
[ Yajl::Encoder.new.encode(RubyApp::Element::ExceptionEvent.new(exception).to_hash) ]
|
119
119
|
]
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 169
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 91
|
10
|
+
version: 0.0.91
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|