kolekti 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +32 -0
- data/lib/kolekti/runner.rb +13 -0
- data/lib/kolekti/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35c6a62d501817f67b76a8869a260862dd527c42
|
4
|
+
data.tar.gz: 61baf792d42778967902f279360b9034914f3a9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6d522a2191c7a3dd284294bb97070697b571bd5c09a0e46c5f8da9fb095eb7dacc92c8237cf1424facd492a812ca63ba430fe3e165fef1fbe2579c521796fa6
|
7
|
+
data.tar.gz: 9f33e5f105279b70a7690f712b703314de41ca17b7e92917ef4c1d309855881224ba8684f5260568d547053707d9ac328162fd010a7fb460f2e19f9916733048
|
data/CHANGELOG.rdoc
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
= Revision history for Kolekti gem
|
2
|
+
|
3
|
+
The Kolekti gem provides a basic API for KalibroProcessor's collectors
|
4
|
+
|
5
|
+
== Unreleased
|
6
|
+
|
7
|
+
== v0.0.2 - 24/02/2016
|
8
|
+
|
9
|
+
Add backport for Array#to_h on ruby-2.0.0-p598
|
10
|
+
|
11
|
+
== v0.0.1 - 19/02/2016
|
12
|
+
|
13
|
+
And the Mezuro team said: "Let there be parsers!"
|
14
|
+
|
15
|
+
===
|
16
|
+
|
17
|
+
Kolekti.
|
18
|
+
Copyright (C) 2015 The Mezuro Team
|
19
|
+
|
20
|
+
This program is free software: you can redistribute it and/or modify
|
21
|
+
it under the terms of the GNU Affero General Public License as published by
|
22
|
+
the Free Software Foundation, either version 3 of the License, or
|
23
|
+
(at your option) any later version.
|
24
|
+
|
25
|
+
This program is distributed in the hope that it will be useful,
|
26
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
27
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
28
|
+
GNU Affero General Public License for more details.
|
29
|
+
|
30
|
+
You should have received a copy of the GNU Affero General Public License
|
31
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
32
|
+
|
data/lib/kolekti/runner.rb
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
require 'kolekti/errors'
|
2
2
|
|
3
|
+
# SPB runs on CentOS 7, which uses ruby 2.0.0-p598. On that version the Array class
|
4
|
+
# does not have the to_h method. The code below is a fix for that and should be removed
|
5
|
+
# when CentOS updates its ruby version. Version 2.1.0 already has Array#to_h built-in.
|
6
|
+
class Array
|
7
|
+
def to_h
|
8
|
+
result_hash = {}
|
9
|
+
self.each do |code, metric_configuration|
|
10
|
+
result_hash[code] = metric_configuration
|
11
|
+
end
|
12
|
+
return result_hash
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
3
16
|
module Kolekti
|
4
17
|
class Runner
|
5
18
|
attr_reader :repository_path, :wanted_metric_configurations, :collectors
|
data/lib/kolekti/version.rb
CHANGED
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: 0.0.
|
4
|
+
version: 0.0.2
|
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-02-
|
14
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: kalibro_client
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- ".ruby-gemset"
|
156
156
|
- ".ruby-version"
|
157
157
|
- ".travis.yml"
|
158
|
+
- CHANGELOG.rdoc
|
158
159
|
- COPYING
|
159
160
|
- COPYING.LESSER
|
160
161
|
- Gemfile
|