optimus_prime 1.0.1 → 1.0.2

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: 70feae880e23b073da4ac911ca69534ab9b3498d
4
- data.tar.gz: 5a74ff3f014ae0627ac32e5b7ab24e12256fba01
3
+ metadata.gz: 5705ce196f1ac30ab2d1f07e26a475d3782c07dc
4
+ data.tar.gz: 9e1ea712f2e22989a1ceb76f5987b91b40f8ce96
5
5
  SHA512:
6
- metadata.gz: 1ff1674b24e1f18b9363d8d8d42f1d65d188e20bfeeaa63e22d813b639ce67b73173e0f7c18b689248103733f837f0fe4d4f6775b87c36272d814a9e396abe40
7
- data.tar.gz: dd3f2866a919c0df1299b42e4800fe6d679998e7178b20465f226469abddd36bfc7315e938e42f1060ce60eb9a7ede8a54f47c50e3b9af0e7b915dff7c784904
6
+ metadata.gz: bdfef60774dfa812a46b61cb3b9af6ebc5af335d50b7c177a52bdedd0b21b42f89db87d9140d9fe376439cf294fe89f128b007b3172440ca07596d6a8645c19d
7
+ data.tar.gz: 09f49cd950021ed2c8958905c7cbd094e3cb38a20a1b064daad7d14df9d60584f9a2054bc9a899d0418aeda64cd1120e58750af4ac2d4aa58a60373edc3e63fe
@@ -38,8 +38,10 @@ module OptimusPrime
38
38
  end
39
39
 
40
40
 
41
- new_body = params.tap { |p| p.delete("splat"); p.delete("captures") }
42
- @@responses[path][:body] = new_body.to_json
41
+ if response[:persisted]
42
+ new_body = params.tap { |p| p.delete("splat"); p.delete("captures") }
43
+ @@responses[path][:body] = new_body.to_json
44
+ end
43
45
 
44
46
  content_type(response[:content_type])
45
47
  status(response[:status_code])
@@ -1,3 +1,3 @@
1
1
  module OptimusPrime
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
data/optimus_prime.log CHANGED
@@ -2854,3 +2854,38 @@ Thin web server (v1.6.2 codename Doc Brown)
2854
2854
  Debugging ON
2855
2855
  Maximum connections set to 1024
2856
2856
  Listening on 0.0.0.0:7003, CTRL+C to stop
2857
+ Exiting!
2858
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2859
+ Using rack adapter
2860
+ Thin web server (v1.6.2 codename Doc Brown)
2861
+ Debugging ON
2862
+ Maximum connections set to 1024
2863
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2864
+ Exiting!
2865
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2866
+ Using rack adapter
2867
+ Thin web server (v1.6.2 codename Doc Brown)
2868
+ Debugging ON
2869
+ Maximum connections set to 1024
2870
+ Listening on 0.0.0.0:7004, CTRL+C to stop
2871
+ Exiting!
2872
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2873
+ Using rack adapter
2874
+ Thin web server (v1.6.2 codename Doc Brown)
2875
+ Debugging ON
2876
+ Maximum connections set to 1024
2877
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2878
+ Exiting!
2879
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2880
+ Using rack adapter
2881
+ Thin web server (v1.6.2 codename Doc Brown)
2882
+ Debugging ON
2883
+ Maximum connections set to 1024
2884
+ Listening on 0.0.0.0:7003, CTRL+C to stop
2885
+ Exiting!
2886
+ Writing PID to /Users/user/dev/optimus_prime/tmp/pids/optimus_prime.pid
2887
+ Using rack adapter
2888
+ Thin web server (v1.6.2 codename Doc Brown)
2889
+ Debugging ON
2890
+ Maximum connections set to 1024
2891
+ Listening on 0.0.0.0:7003, CTRL+C to stop
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: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Nalesso