ttnt 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ttnt/test_to_code_mapping.rb +6 -2
- data/lib/ttnt/version.rb +1 -1
- 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: d71f52f7c676f37872c83efc2a834699fa0b0651
|
4
|
+
data.tar.gz: e2fc54d245e45e14677701c66bc114a0ee881a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dd2fb1c983347930da189aa08f969ab9167c1b5bda8155def7d95b84bb96afdf0d130cbe2b5a1ca357cc515696eb37bfa513a92c983af654e3448be4ed9e769
|
7
|
+
data.tar.gz: a551fe32c109fc43f47a875416bbf81c7e8fac8607eae68efa3928b314aee602c4d0fe0f5d257f06e8e03d41f2dfca2be433df4584314187f2439f0ae56c9e7d
|
@@ -43,9 +43,13 @@ module TTNT
|
|
43
43
|
|
44
44
|
private
|
45
45
|
|
46
|
+
def normalized_path(file)
|
47
|
+
File.expand_path(file).sub(@repo.workdir, '')
|
48
|
+
end
|
49
|
+
|
46
50
|
def normalize_path(spectra)
|
47
51
|
spectra.map do |filename, lines|
|
48
|
-
[filename
|
52
|
+
[normalized_path(filename), lines]
|
49
53
|
end.to_h
|
50
54
|
end
|
51
55
|
|
@@ -79,7 +83,7 @@ module TTNT
|
|
79
83
|
end
|
80
84
|
|
81
85
|
def spectra_file(test:)
|
82
|
-
filename = test.gsub('/', DIRECTORY_SEPARATOR_PLACEHOLDER)
|
86
|
+
filename = normalized_path(test).gsub('/', DIRECTORY_SEPARATOR_PLACEHOLDER)
|
83
87
|
"#{base_savedir}/#{filename}.json"
|
84
88
|
end
|
85
89
|
|
data/lib/ttnt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ttnt
|
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
|
- Genki Sugimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|