rorvswild 0.1.3 → 0.1.4

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: eeecdd2dfd26ee6068a96bcb067e946e8bd1b904
4
- data.tar.gz: 39387cead4fa49a5c6ee04ce03a35950ed1ff5c0
3
+ metadata.gz: 70d2e0a1c6c2b85f064696e0b987652e107c2036
4
+ data.tar.gz: a4bdebdd5d69f383d7c52015bc3cd36c1eef7424
5
5
  SHA512:
6
- metadata.gz: 1d142fb4e7f10a32220e44e12665b1ad311a250790274c65e3cf4c11d4aa2390e480aca3e6dabfc4b2345986b4faa1445d9c3a3542024ba039834f03a3a22842
7
- data.tar.gz: ead8f7d8516a43c70c2625868752938188cdfce6a9dd522ea6f339bdac66bb3dbed450eaff216eb42fce732dac633feb24690f1b1f2f8fef629493f415527ca0
6
+ metadata.gz: 4caea6d24fbc53037c269b6926ff0aca89c7b0ed96aac7f0ee377144edfcc0d40a2e5f1f731a137c862e3e39eec5a2be6201afbaec0ae49def13782a63feeb41
7
+ data.tar.gz: 9d9aa424ecb40ff187fd8ea26f28787845567bcdefe4efcb453e8c136790d9f424e47c13f794d947b63d03f13222cdc6037cd6ff0c7b49d4052b3c1a3e18c89f
@@ -1,3 +1,3 @@
1
1
  module RorVsWild
2
- VERSION = "0.1.3".freeze
2
+ VERSION = "0.1.4".freeze
3
3
  end
data/lib/rorvswild.rb CHANGED
@@ -80,6 +80,7 @@ module RorVsWild
80
80
  request[:view_runtime] = (payload[:view_runtime] || 0).round
81
81
  request[:other_runtime] = compute_duration(start, finish) - request[:db_runtime] - request[:view_runtime]
82
82
  error[:parameters] = filter_sensitive_data(payload[:params]) if error
83
+ attributes = request.merge(queries: slowest_queries, views: slowest_views, error: error)
83
84
  Thread.new { post_request }
84
85
  rescue => exception
85
86
  log_error(exception)
@@ -211,8 +212,8 @@ module RorVsWild
211
212
  rescue => ex
212
213
  end
213
214
 
214
- def post_request
215
- post("/requests", request: request.merge(queries: slowest_queries, views: slowest_views, error: error))
215
+ def post_request(attributes)
216
+ post("/requests", request: attributes)
216
217
  rescue => exception
217
218
  log_error(exception)
218
219
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rorvswild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Bernard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-06 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler