optimus_prime 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/optimus_prime/server.rb +2 -3
- data/lib/optimus_prime/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5c90535932ecb7a0c0218ab5ec0755251ccb5be
|
4
|
+
data.tar.gz: 0e6b43e58531f1dc199ca1a092b4e16916658da5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9adebe0ecfb7ed2b254d972b0d7bd406261741d8fe8ed92bdfe4f6dec131ad59f0d53a91176571d2bdea72668775b2a999a9ca5950f3c5c6a672f8f94831cc9
|
7
|
+
data.tar.gz: 992535dd55b886a0313100964c54d4599f227094b595af2019b8b4bb585bf3f19289e32f0e943ce452f9dd7e82d07a713d93a717e6743b2f560fecb6ca56d7ae
|
data/lib/optimus_prime/server.rb
CHANGED
@@ -33,9 +33,8 @@ module OptimusPrime
|
|
33
33
|
sleep(response[:sleep].to_i) if response[:sleep]
|
34
34
|
|
35
35
|
if response[:persisted]
|
36
|
-
new_body =
|
37
|
-
|
38
|
-
@@responses[path][:body] = JSON.parse(response[:body]).merge!(new_body).to_json
|
36
|
+
new_body = request.body.read
|
37
|
+
@@responses[path][:body] = JSON.parse(response[:body]).merge!(JSON.parse(new_body)).to_json
|
39
38
|
end
|
40
39
|
201
|
41
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optimus_prime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Nalesso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|