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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c69fb42081da978ceceab090449ce8267f72783e
4
- data.tar.gz: eadd988f0e19af23b3b93323741fac8305f045f2
3
+ metadata.gz: d71f52f7c676f37872c83efc2a834699fa0b0651
4
+ data.tar.gz: e2fc54d245e45e14677701c66bc114a0ee881a90
5
5
  SHA512:
6
- metadata.gz: 8e5c3b484d7f8f337e8354e80841851c3cbb494dc24b5dc24d0cd0efa84054eea3e6490e11a895ade25a14de54ea0f428572a705d8513857d8ce5da5fd2869f1
7
- data.tar.gz: 5dc1013d1aa5fb54b09a28b786a9ba6deabdad2b16418034988c04db79bf0372982a8e0343211831bce3039abcbbeb0fc0f4e4bccec6116661c226c0acecd693
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.sub(@repo.workdir, ''), lines]
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
@@ -1,3 +1,3 @@
1
1
  module TTNT
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2015-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged