travis-metrics 2.0.0.rc4 → 2.0.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/travis/metrics/version.rb +1 -1
- data/lib/travis/metrics.rb +3 -2
- 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: 7176c23bdf4c6d8617cbfb7785dc749b73412738
|
4
|
+
data.tar.gz: cfce947c8c04081ecf5ccc3761b09a3c3a6cd479
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece8b369a34365243f4f95c2764a9d86be991ead80636925eaf10e09362628088f2a04f018d31b31b3fd49c70a22fcb4f4682056cf4d8643f26e6a24d5e3262b
|
7
|
+
data.tar.gz: dc0cbebfb2c742ce0823aac930eb4f73882e39d0a3ac502a7798a2a58a219e9c5a97fb597641f28b9fb62c7142daa31c55562d50e052d6e5be2d01805ee7d759
|
data/lib/travis/metrics.rb
CHANGED
@@ -12,14 +12,15 @@ module Travis
|
|
12
12
|
}
|
13
13
|
|
14
14
|
def setup(config, logger)
|
15
|
-
reporter =
|
15
|
+
reporter = start(config, logger)
|
16
|
+
logger.info(MSGS[:no_reporter]) unless reporter
|
16
17
|
new(reporter)
|
17
18
|
rescue Exception => e
|
18
19
|
logger.error [e.message, e.backtrace].join("\n")
|
19
20
|
end
|
20
21
|
|
21
22
|
def start(config, logger)
|
22
|
-
adapter
|
23
|
+
return unless adapter = config[:reporter]
|
23
24
|
config = config[adapter.to_sym] || {}
|
24
25
|
const = Reporter.const_get(adapter.capitalize) rescue nil
|
25
26
|
reporter = const && const.new(config, logger)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis CI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metriks-librato_metrics
|