meter 0.1.2 → 0.1.3

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: 1962b339a6061ef61b79f15ff77ce021dc423c31
4
- data.tar.gz: 8372f6b81b754606041c444cf1bdf0c7eb24d9d7
3
+ metadata.gz: ce4fd155c15a829e11744172377cc5c0e2954b98
4
+ data.tar.gz: 76edcf155301fc3917f93057a092792f2efcdd95
5
5
  SHA512:
6
- metadata.gz: ddc125bfce893eb9aee2eec2e1b1d147b41b4735108c80b280d6aae359a3758db814e24678b7785f1259d3fb4e38ade32a91d8122c26f7704afd6374f9172733
7
- data.tar.gz: e75d2c4d0d872d25f714dd96f42e0c4946c66ae7e187640856e45b6fb70a90d813daf4a8b38c8bc90a30725ee3f2554f159b724cdcd8004b4984ad5981b89a7f
6
+ metadata.gz: 8e9e802277bb3004d343baf626bbd509336bfccc803906dc890d204e2d1b68bbd6b6a48db30db4c2b1efa1d1ff0d463397659736be68e7e4f673583aafd54a7c
7
+ data.tar.gz: 85205b7c512d4713e85d98b329107532a9c772b27597f50e6536f9f156e65413f44d2b4162269e8addc16fc79ef45132f9d6a1934d69c86f7e3c9bbb88eb52da
data/lib/meter/backend.rb CHANGED
@@ -25,7 +25,7 @@ module Meter
25
25
  end
26
26
 
27
27
  def log(stat, data = {})
28
- data = { environment: ::Meter.config.environment, Timestamp: Time.now }.merge data
28
+ data = { environment: ::Meter.config.environment, Timestamp: Time.now.strftime("%FT%H:%M:%S%:z") }.merge data
29
29
  data.merge! app: ::Meter.config.namespace, statname: stat
30
30
  ::Meter.config.logger.debug { "Logging #{log_file} - #{data}"}
31
31
  log_file.open('a') { |f| f.puts(JSON.dump data) }
data/lib/meter/version.rb CHANGED
@@ -2,7 +2,7 @@ module Meter
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bukowskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec