apidragon 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/apidragon/log.rb +1 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba5645d669bed63e76fa86bb835fc5f0ab27b874
4
- data.tar.gz: bf3ff860f629dd508006626bee57bff1685583f2
3
+ metadata.gz: 596bb96c65ed9bbfcccc2003662443147d9346e4
4
+ data.tar.gz: 4dfa61084e4c32fb25fd7207938673ce905c3463
5
5
  SHA512:
6
- metadata.gz: fdf4c6a02cc8f8fec3e89e7345c46af29f6b1118ca8f5b1c5f4a0c5cbbd317b4c250c2aef10b6fb55787d8c1eacb356ff2c920abd9debe6b3c8266093df5ce8d
7
- data.tar.gz: 26c6832181e0a17d7754d7e40559e77ccebb4a97bb8f2623db9b565de46a38289412c597b42a453de4e0308438b4edb80ed6b7b174a018c6e9fd6ba5495e9762
6
+ metadata.gz: cc58de1f39c0314fd3668a0e1b74421bf4784156d0f6a9aea5007d19b63396246ebfe399373cf5717860fc02d3ed31705005a40c654fdac9d14349718c35723b
7
+ data.tar.gz: 25ccf6a2c14cc602343a00a557a640561a74e5ae459cd38ed9729e5438a84781acc02e0dde3f29efb9264c955d06b50d1e5586b3cd9211b0eb9767e0bd64d2cc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.5
1
+ 1.4.6
data/lib/apidragon/log.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  class ResponseLogger
2
2
 
3
3
  def object_log(code=nil, body)
4
+ body = JSON.parse body
4
5
  log = File.open "#{LOG}", 'a+'
5
6
  log.write "call @ #{timestamp}"
6
7
  log.write "HTTP #{code}\n" unless code==nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen