optimus_prime 4.10.4 → 4.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/optimus_prime/version.rb +1 -1
- data/lib/optimus_prime.rb +4 -3
- data/tags +0 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc7a1005d28ef0ec6a67d5e193c7c11ac34d737f
|
4
|
+
data.tar.gz: 9424b08fb08c16bf6e77a3610534cd5561a8c709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 134f6ea29abceab0c4fe26842e01c96d95bed41deaa082b0b52deb085403a24ea6ec7d8bd78b47c9d3332fb8ff315a4f9c3b625e566d48c6cf7c58f99edea223
|
7
|
+
data.tar.gz: 5c6b440d8b6feb81a0bea40cb8af41427cc0e82a11f57247b63a24c595b8cd2a89a6b8e04f5d31f383a3281774dde92c62decde7b0394e965688dd710817e39f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/optimus_prime.rb
CHANGED
@@ -10,13 +10,14 @@ module OptimusPrime
|
|
10
10
|
|
11
11
|
def call(env)
|
12
12
|
|
13
|
-
|
13
|
+
match = env["QUERY_STRING"].match(/_OpID=(\d)+-(\d)+(.*)?/)
|
14
|
+
if match && match[match.size - 1] != ""
|
14
15
|
|
15
16
|
path_to_be_prepended = match[match.size - 1]
|
16
17
|
if path_to_be_prepended != "" && path_to_be_prepended != nil
|
17
|
-
timestamps = env["QUERY_STRING"].match(/[_OpID=](\d)
|
18
|
+
timestamps = env["QUERY_STRING"].match(/[_OpID=](\d)+-(\d)+/)
|
18
19
|
|
19
|
-
path_to_be_prepended.insert(0, '/') unless path_to_be_prepended.start_with?('/')
|
20
|
+
path_to_be_prepended.insert(0, '/') unless path_to_be_prepended.start_with?('/') || env["PATH_INFO"].start_with?('/')
|
20
21
|
|
21
22
|
env["PATH_INFO"] = env["PATH_INFO"] << path_to_be_prepended
|
22
23
|
env["REQUEST_PATH"] = env["PATH_INFO"].clone
|
data/tags
CHANGED
@@ -7,7 +7,6 @@
|
|
7
7
|
OptimusPrime lib/optimus_prime/version.rb /^module OptimusPrime$/;" m
|
8
8
|
call lib/optimus_prime.rb /^ def call(env)$/
|
9
9
|
get lib/optimus_prime.rb /^ ::Faraday.get("http:\/\/localhost:#{op_port}/
|
10
|
-
insert lib/optimus_prime.rb /^ path_to_be_prepended.insert(0, '\/') unl/
|
11
10
|
prime lib/optimus_prime.rb /^ def prime(path_name, response="", options={})$/
|
12
11
|
sleep lib/optimus_prime.rb /^ sleep(0.1)$/
|
13
12
|
system lib/optimus_prime.rb /^ return system("echo '\\nOptimus is already p/
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optimus_prime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.10.
|
4
|
+
version: 4.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Nalesso
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
VENeDFfZVO7+QJ1CcexQChPNOenp/1hPs18XXfz7Bx/EOw69PTCudZVqj+xt3gYS
|
32
32
|
9Y/PNWqAWckM1cLwdt/PnWHI
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-08-
|
34
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|