vae 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vae_site_servlet.rb +5 -4
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63081ad59417e6e9f40b02e742a226337eb22ba6
|
4
|
+
data.tar.gz: 1e1be82239bd0578f1a90e94f11a26d8a8e7d8bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65fe80f05ef6d8904e1184fcdae1ea1daaa9d4b0b9df598f48fd7da74c2f9ace44e8faca3db51db3bd543828b0ddfe5b2e4947852df5cdf8197c7f6fee97c15
|
7
|
+
data.tar.gz: 39d4e419dfdc703648aaeff80b054a44e17ba1b828ac19fc692ae1e46ac8f6cae0120a2576d9faf74499a2fbf62aa7790070469ba1f406f4bc68d83cf9b94f03
|
data/lib/vae_site_servlet.rb
CHANGED
@@ -63,17 +63,18 @@ class VaeSiteServlet < Servlet
|
|
63
63
|
req = Net::HTTP::Post.new(uri)
|
64
64
|
req.body = wb_req.body.read
|
65
65
|
end
|
66
|
-
|
66
|
+
req_404 = Net::HTTP::Get.new("/error_pages/not_found.html")
|
67
|
+
req['cookie'] = req_404['cookie'] = wb_req.params["HTTP_COOKIE"]
|
67
68
|
if wb_req.params['HTTP_X_REQUESTED_WITH']
|
68
|
-
req['X-Requested-With'] = wb_req.params['HTTP_X_REQUESTED_WITH']
|
69
|
+
req['X-Requested-With'] = req_404['X-Requested-With'] = wb_req.params['HTTP_X_REQUESTED_WITH']
|
69
70
|
end
|
70
71
|
res = $site.fetch_from_server(req)
|
71
72
|
if res.body =~ /__vae_local_needs=(.*)/
|
72
73
|
begin
|
73
74
|
return fetch_from_vae(wb_req, method, [ get_source_file($1) ])
|
74
75
|
rescue FileNotFound
|
75
|
-
puts "
|
76
|
-
return $site.fetch_from_server(
|
76
|
+
puts "* Could not find requested file: #{$1}"
|
77
|
+
return $site.fetch_from_server(req_404)
|
77
78
|
end
|
78
79
|
end
|
79
80
|
res
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VER = "0.6.
|
1
|
+
VER = "0.6.10"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Action Verb, LLC
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chunky_png
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.4.8
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: This gem allows for local development for sites on Vae Platform (http://vaeplatform.com/)
|