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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f0528de4eba03d1a520693be7840d5f3f2156db
4
- data.tar.gz: 5daf611b38482c680274d2d3fa1121a1a3adb009
3
+ metadata.gz: 5392ff7b83a5403b68c060b64333227a6565e561
4
+ data.tar.gz: 1f4bd713affda9b17b4ba7e080bed9a963f11880
5
5
  SHA512:
6
- metadata.gz: 65035d0c3a46dc930116a2efc9c941bf861bca05ec24b22fcc167b27d94f0e182aa25a7fbb19f94fbd70ce0a8fde38bc5b50fb8a3a3a40efa39e8dc9df46aa16
7
- data.tar.gz: e82f0e098ef5355da213fd76b080a3d63dbd3dc1e678df8b3f008a0f59c95d31e42327aa7b007160522cc2971d516482247d08ca90f43c62383687f041d13517
6
+ metadata.gz: ef08af363b92beb5d341d1c4a3e89d0289dff9645b6c4cc835a9fcca408c230f0215451948b0a08ceffb9e367eee549284cc78421050e738dcb0f7fbc4506f14
7
+ data.tar.gz: 6fe6709b8884c9ade40afa3eebe50deb6c3b0240d78c79db213d9598b28dca5ac7364a8a81d2429fe02f1f70413876be725bd267ffbe573d7aa8f659b5659b85
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- responses[path] = { content_type: (params["content_type"] || :html), body: body, status_code: (params["status_code"].to_i || 200), requested_with: (params["requested_with"] || false), sleep: (params["sleep"] || false), persisted: (params["persisted"] || false) }
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
@@ -1,3 +1,3 @@
1
1
  module OptimusPrime
2
- VERSION = "4.10.8"
2
+ VERSION = "4.10.10"
3
3
  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.8
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-25 00:00:00.000000000 Z
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