kolekti 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/lib/kolekti.rb +1 -0
- data/lib/kolekti/parser.rb +24 -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: d31a54ccd3f90a1c99b7af76a8b2fb85234a5950
|
4
|
+
data.tar.gz: 46cdd89738d6160caba35f6ee738b8ea7b55a6e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcc633f5a514e884d82ecc0440c817a4711fbf8b7a34762fd82f95dbd83949e68ead01abe4178e8dfc5226f80c2b100232bc84a58b42ce3a6ab72584d1bdda39
|
7
|
+
data.tar.gz: 40db975688f9cb1dfe298b5dac0a0b871470e39d95d5f57c951f16e0dbb6004342a4e35e04cc83fb400bf50a56630ed6d4cf0e4a1cfd71a45f819dcd3b8eb918
|
data/CHANGELOG.rdoc
CHANGED
data/lib/kolekti.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
module Kolekti
|
2
|
+
class Parser
|
3
|
+
def self.parse(collected_metrics_hash); raise NotImplementedError; end
|
4
|
+
|
5
|
+
# Sometimes the parser does not generate results for some Module that
|
6
|
+
# other may generate. In this we case need a default value to fulfill
|
7
|
+
# it.
|
8
|
+
def self.default_value; raise NotImplementedError; end
|
9
|
+
|
10
|
+
def self.parse_file_name(file_name)
|
11
|
+
# Generates a module name by removing the file extension, replacing slashes with dots, and internal dots with underscores
|
12
|
+
path = Pathname.new(file_name.to_s)
|
13
|
+
|
14
|
+
path = (path.sub_ext '').to_s
|
15
|
+
|
16
|
+
path.sub! /^\//, ''
|
17
|
+
path.sub! /\/$/, ''
|
18
|
+
path.gsub! '.', '_'
|
19
|
+
path.gsub! '/', '.'
|
20
|
+
|
21
|
+
path
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
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: 1.0
|
4
|
+
version: 1.1.0
|
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-
|
14
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: kalibro_client
|
@@ -168,6 +168,7 @@ files:
|
|
168
168
|
- lib/kolekti/collector.rb
|
169
169
|
- lib/kolekti/errors.rb
|
170
170
|
- lib/kolekti/memory_persistence_strategy.rb
|
171
|
+
- lib/kolekti/parser.rb
|
171
172
|
- lib/kolekti/persistence_strategy.rb
|
172
173
|
- lib/kolekti/runner.rb
|
173
174
|
- lib/kolekti/version.rb
|