rack-metrics 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/metrics/metrics.rb +2 -2
- data/lib/rack/metrics/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: 9744e7d266023f9bb65c08ed4f2e9439ed42f6c3
|
4
|
+
data.tar.gz: e0fd6eb7a5c9de78e7aa06b544630df33c513cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb58e3f141fdb9ca2467a4c25505ce2ed2bf3960e65e481468b3c479674b9c38bf5550886e0c497d5e261bcf1f66b8812730123fb10df7a1168b3330bd9498a6
|
7
|
+
data.tar.gz: e9c034e52812c17c1e9d66aee47b4a95bbb24a377a5da3bbfe3c7a0505dba0a5a38cfb7996fcefa58ffa3c3b067cb75591977a8b76fb66e81e34eb127fa43d07
|
data/lib/rack/metrics/metrics.rb
CHANGED
@@ -19,10 +19,10 @@ module Rack
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def push_data(data)
|
22
|
-
|
22
|
+
endpoint = 'https://api.rack-metrics.com'
|
23
23
|
log("[Rack Metrics] => Pushing metrics data")
|
24
24
|
begin
|
25
|
-
uri = URI(
|
25
|
+
uri = URI(endpoint)
|
26
26
|
res = Net::HTTP.post_form(uri, 'api_key' => Rack::Metrics.config.api_key, 'api_version' => '1.1.0', 'data' => data)
|
27
27
|
rescue => e
|
28
28
|
log "[Rack Metrics] => Error while pushing metrics data: #{e.message}"
|
data/lib/rack/metrics/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Molnar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|