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 +4 -4
- data/lib/meter/backend.rb +1 -1
- data/lib/meter/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: ce4fd155c15a829e11744172377cc5c0e2954b98
|
4
|
+
data.tar.gz: 76edcf155301fc3917f93057a092792f2efcdd95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|