optimus_prime 4.10.8 → 4.10.10
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.tar.gz.sig +0 -0
- data/lib/optimus_prime/server.rb +2 -1
- data/lib/optimus_prime/version.rb +1 -1
- 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: 5392ff7b83a5403b68c060b64333227a6565e561
|
4
|
+
data.tar.gz: 1f4bd713affda9b17b4ba7e080bed9a963f11880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef08af363b92beb5d341d1c4a3e89d0289dff9645b6c4cc835a9fcca408c230f0215451948b0a08ceffb9e367eee549284cc78421050e738dcb0f7fbc4506f14
|
7
|
+
data.tar.gz: 6fe6709b8884c9ade40afa3eebe50deb6c3b0240d78c79db213d9598b28dca5ac7364a8a81d2429fe02f1f70413876be725bd267ffbe573d7aa8f659b5659b85
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/optimus_prime/server.rb
CHANGED
@@ -136,7 +136,8 @@ module OptimusPrime
|
|
136
136
|
body = params["response"]
|
137
137
|
body = body.is_a?(String) ? body : body.to_json
|
138
138
|
|
139
|
-
|
139
|
+
status_code = params["status_code"].to_i == 0 ? 200 : params["status_code"]
|
140
|
+
responses[path] = { content_type: (params["content_type"] || :html), body: body, status_code: status_code, requested_with: (params["requested_with"] || false), sleep: (params["sleep"] || false), persisted: (params["persisted"] || false) }
|
140
141
|
requests[path] = { count: 0, last_request: nil }
|
141
142
|
201
|
142
143
|
end
|
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.10
|
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-10-08 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|