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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f763fd0db38198147887d9be8eb2eae696bdbcc
4
- data.tar.gz: 15b55adc42d4082d732743bb7ec9f3d794356b3e
3
+ metadata.gz: cc7a1005d28ef0ec6a67d5e193c7c11ac34d737f
4
+ data.tar.gz: 9424b08fb08c16bf6e77a3610534cd5561a8c709
5
5
  SHA512:
6
- metadata.gz: 7821ddf077dd2c249d18af670a5f469709b821dbb39e5d04dfe3a70855cae5b332b75cd43f6f355e85edc4b66576183ae2b45cf5b50b6725ebaf3fadab183b8d
7
- data.tar.gz: 5fdef0df544d75dd8d548c2f8291d751c175b220c242ea215d6223e06f18fcb0bd7b7d44f7c2c7d1c5855ff9d660c1c3e9b95ee1ce14adb48f8a6d905b3a8a5e
6
+ metadata.gz: 134f6ea29abceab0c4fe26842e01c96d95bed41deaa082b0b52deb085403a24ea6ec7d8bd78b47c9d3332fb8ff315a4f9c3b625e566d48c6cf7c58f99edea223
7
+ data.tar.gz: 5c6b440d8b6feb81a0bea40cb8af41427cc0e82a11f57247b63a24c595b8cd2a89a6b8e04f5d31f383a3281774dde92c62decde7b0394e965688dd710817e39f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,3 +1,3 @@
1
1
  module OptimusPrime
2
- VERSION = "4.10.4"
2
+ VERSION = "4.10.5"
3
3
  end
data/lib/optimus_prime.rb CHANGED
@@ -10,13 +10,14 @@ module OptimusPrime
10
10
 
11
11
  def call(env)
12
12
 
13
- if match = env["QUERY_STRING"].match(/_OpID=(\d)+-(\d)+(.*)?/)
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){13}-(\d){5}/)
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
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-07 00:00:00.000000000 Z
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