kolekti 1.0.0 → 1.0.1

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: 35c62c82a9b9cfb081e6be5f6a1b28b24c5a67a5
4
- data.tar.gz: 1c6045bc9c8084c38ee7a6ccacd9096a50ce939f
3
+ metadata.gz: 882fc816fcb3c37f668f468895e345fa7135d9ba
4
+ data.tar.gz: 38f56562221b4c800bba093dc496e0a51a114979
5
5
  SHA512:
6
- metadata.gz: 99ecb31c96ddf973c80a95900a8ea032a0adfeb4105880cc5cfe6c479339678bf2cce0c912a6d37962bbe0b5b069503e518ba6a2f112fe6177332f64e5eaf6f7
7
- data.tar.gz: 67d6b94012a490922a7c375fd6d89f3e3916418bbc28dd69e0e422264862fe0ee552de14fb4ed4a92750576572eca7b5885aa10b2791217b4f8526dcede12fdd
6
+ metadata.gz: dc10e1d888eac0b43fd6f7036fcffd20170961c76e4be6ce746a46df37f8205631edf7dde155000dc2873f2297050430be4963c40316a74176cd6a0fc1df0a55
7
+ data.tar.gz: e66cd497829e7e7b28f1873f2a6bda39330609d0d0ed414e779094e62f6f5c96d3d8bb4fffa13ad7077aa5c1b92080bcf7030ffa4037317a6850760aca397b0d
data/CHANGELOG.rdoc CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  The Kolekti gem provides a basic API for KalibroProcessor's collectors
4
4
 
5
- == Unreleased
5
+ == v1.0.1 - 23/03/2016
6
+
7
+ Fix collector selection logic for metrics and correct tests
6
8
 
7
9
  == v1.0.0 - 01/03/2016
8
10
 
@@ -40,7 +40,10 @@ module Kolekti
40
40
 
41
41
  def find_collectors
42
42
  collectors = wanted_metric_configurations.map do |code, metric_configuration|
43
- found_collector = Kolekti.collectors.find { |collector| collector.supported_metrics.include? code }
43
+ collector_name = metric_configuration.metric.metric_collector_name
44
+ found_collector = Kolekti.collectors.find do |collector|
45
+ collector.name == collector_name && collector.supported_metrics.include?(code.to_sym)
46
+ end
44
47
  raise UnavailableMetricError.new("No Metric Collector for metric code #{code}") if found_collector.nil?
45
48
 
46
49
  found_collector
@@ -1,3 +1,3 @@
1
1
  module Kolekti
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kolekti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Miranda
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2016-03-01 00:00:00.000000000 Z
14
+ date: 2016-03-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: kalibro_client