transrate 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/transrate +10 -2
- data/lib/transrate/dimension_reduce.rb +0 -1
- data/lib/transrate/reciprocal_annotation.rb +0 -1
- data/lib/transrate/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: 691eaf0cbf7a2273841277680178a34cd0801bd7
|
4
|
+
data.tar.gz: 1a84acd029aa35ae1e89b39ad8fed7c08397aed0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b6ed04d9d95a3997585051ca38d427b4f47385097258e7fe60dc040a222dbd372373d9ed246163dc1d2fac5fa4d2e5e0f8397c2b6702258ec6ce3340510bc01
|
7
|
+
data.tar.gz: 95bec4a0beb4bd1a7d94a81ec94a91f06f3f9bb8e07bbe8f85450a6f31d65d0ab938a3d40b462999e21eecf02759e1e796fa2593de7970b5d2f09e50e4e39f98
|
data/bin/transrate
CHANGED
@@ -36,7 +36,16 @@ EOS
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def pretty_print_hash hash, width
|
39
|
-
hash.map
|
39
|
+
hash.map do |k, v|
|
40
|
+
# show as float if there are any decimal places
|
41
|
+
if v.to_f.round(2).to_s.split('.').last.to_i > 0
|
42
|
+
v = v.to_f.round(2)
|
43
|
+
end
|
44
|
+
pad = (width - (k.to_s.length + v.to_s.length))
|
45
|
+
"#{k.to_s.split('_').join(' ')}" +
|
46
|
+
"#{" " * pad}" +
|
47
|
+
"#{v}"
|
48
|
+
end.join("\n")
|
40
49
|
end
|
41
50
|
|
42
51
|
include Transrate
|
@@ -89,7 +98,6 @@ if opts.reference
|
|
89
98
|
puts "\nCalculating comparative metrics..."
|
90
99
|
t0 = Time.now
|
91
100
|
comparative_metrics = transrater.comparative_metrics
|
92
|
-
p comparative_metrics.comp_stats
|
93
101
|
comparative_results = comparative_metrics.comp_stats
|
94
102
|
|
95
103
|
if comparative_results
|
data/lib/transrate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|