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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58b038816eaddc65ee765d986391e931b9c9fc4f
4
- data.tar.gz: 9ac884a2d7cb52418d754521336a747ecb1c4797
3
+ metadata.gz: 7176c23bdf4c6d8617cbfb7785dc749b73412738
4
+ data.tar.gz: cfce947c8c04081ecf5ccc3761b09a3c3a6cd479
5
5
  SHA512:
6
- metadata.gz: fa36355535b333cc97fa636e69d128c2ab614d2de33cc8ae38ee5582121980fcb7c9fc037e940f2ea95e6932f728f26838e8cd4be283a1d77063aea4ccc22b3b
7
- data.tar.gz: 4a34aa214f2c9640c9eac2526518d330704e4d3bd3d35a010235f834c32cf543b161c0ec8be4a3165cff903de8113b548a9a6b062a4ca7a22d293cfc64f9bfe6
6
+ metadata.gz: ece8b369a34365243f4f95c2764a9d86be991ead80636925eaf10e09362628088f2a04f018d31b31b3fd49c70a22fcb4f4682056cf4d8643f26e6a24d5e3262b
7
+ data.tar.gz: dc0cbebfb2c742ce0823aac930eb4f73882e39d0a3ac502a7798a2a58a219e9c5a97fb597641f28b9fb62c7142daa31c55562d50e052d6e5be2d01805ee7d759
@@ -1,5 +1,5 @@
1
1
  module Travis
2
2
  class Metrics
3
- VERSION = "2.0.0.rc4"
3
+ VERSION = "2.0.0.rc5"
4
4
  end
5
5
  end
@@ -12,14 +12,15 @@ module Travis
12
12
  }
13
13
 
14
14
  def setup(config, logger)
15
- reporter = config[:reporter] ? start(config, logger) : logger.info(MSGS[:no_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 = config[:reporter]
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.rc4
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-12 00:00:00.000000000 Z
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