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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebd54606b10c4ebe84df93817c47257dfef15b38
4
- data.tar.gz: f34dd3a798203625979717a6116f9a5962e74737
3
+ metadata.gz: 63081ad59417e6e9f40b02e742a226337eb22ba6
4
+ data.tar.gz: 1e1be82239bd0578f1a90e94f11a26d8a8e7d8bc
5
5
  SHA512:
6
- metadata.gz: 4d3ae734b13795572be3c9e645a3d90f25d660926a067f7535eb25d837eff1738134143e36bd9c1e0a720a63fe0f074285f5561382ea3cd71a610f3aba5465bd
7
- data.tar.gz: a23d732052a5ec40ecccd1a55bd720e41be3569afd8b3a685429bab6a4b1093dc0fea3549240b529444f3c7389c9130221d60f390c8fc6c263fbbd776e3655c4
6
+ metadata.gz: a65fe80f05ef6d8904e1184fcdae1ea1daaa9d4b0b9df598f48fd7da74c2f9ace44e8faca3db51db3bd543828b0ddfe5b2e4947852df5cdf8197c7f6fee97c15
7
+ data.tar.gz: 39d4e419dfdc703648aaeff80b054a44e17ba1b828ac19fc692ae1e46ac8f6cae0120a2576d9faf74499a2fbf62aa7790070469ba1f406f4bc68d83cf9b94f03
@@ -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
- req['cookie'] = wb_req.params["HTTP_COOKIE"]
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 "*\n* Could not find #{$1} -- giving up!\n*"
76
- return $site.fetch_from_server(Net::HTTP::Get.new("/error_pages/not_found.html"))
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
@@ -1 +1 @@
1
- VER = "0.6.9"
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.9
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: 2014-09-29 00:00:00.000000000 Z
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.2.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/)