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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3de48a8bcf3f5ac836018a935b8d6d78261192de
4
- data.tar.gz: 92e9866fc44a73a8cbc2a03eba42d4ebb696bc75
3
+ metadata.gz: 9744e7d266023f9bb65c08ed4f2e9439ed42f6c3
4
+ data.tar.gz: e0fd6eb7a5c9de78e7aa06b544630df33c513cde
5
5
  SHA512:
6
- metadata.gz: 0486d7ff39469aeed504055eed2c57d97247392e2fadb677a9216155f87c59412c67a32668689bbd9d308e949c00eaec1883052fcfa0c2a472b69588c33bcd77
7
- data.tar.gz: 7e1d5fb7f9f12006c48920690a2b635084a9a00a3edcfe04f95aeac1b17dde206537f226fb6b9010fd1869211991c3e6b2dd2d2fc11e0f63e41458d61bc68e29
6
+ metadata.gz: fb58e3f141fdb9ca2467a4c25505ce2ed2bf3960e65e481468b3c479674b9c38bf5550886e0c497d5e261bcf1f66b8812730123fb10df7a1168b3330bd9498a6
7
+ data.tar.gz: e9c034e52812c17c1e9d66aee47b4a95bbb24a377a5da3bbfe3c7a0505dba0a5a38cfb7996fcefa58ffa3c3b067cb75591977a8b76fb66e81e34eb127fa43d07
@@ -19,10 +19,10 @@ module Rack
19
19
  end
20
20
 
21
21
  def push_data(data)
22
- @endpoint = 'https://rack-metrics.com/api/v1'
22
+ endpoint = 'https://api.rack-metrics.com'
23
23
  log("[Rack Metrics] => Pushing metrics data")
24
24
  begin
25
- uri = URI(@endpoint)
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}"
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Metrics
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
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.3
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-23 00:00:00.000000000 Z
11
+ date: 2014-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler