subunit 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/subunit.rb +6 -4
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e76018bbc5927b0645dc9b7b35df35041719bbcac77e078306edd8f00a83f04
|
4
|
+
data.tar.gz: 68057c6ef69c1cf21d554502f8c9055da642729614dadd3d2418f7fa8c55af51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c322cef743c9ab764bd35158e68867cf5879e254427aad7351a2f3a0e222effc4a9597637f22f69250df7d058e4ad8e2ab42b74218a98db8e47d47da71433fe3
|
7
|
+
data.tar.gz: '09affcc2c6235d9bd29a03441b6bf64298a3aa7a46062b3a47753302a0f7d1088fec5d6c73c186e232181447dafeb6da1a1bb296303c109197aca89f9074a568'
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/subunit.rb
CHANGED
@@ -77,16 +77,18 @@ class Subunit
|
|
77
77
|
|
78
78
|
s.sub!(/%xi?/) do |x|
|
79
79
|
|
80
|
-
|
81
|
-
|
80
|
+
h = to_h
|
81
|
+
a = h.to_a
|
82
|
+
a2 = (a.length > 1 and x[-1][/i$/] and h[:seconds]) ? a[0..-2] : a
|
82
83
|
a2.map {|label, val| val.to_s + label[0]}.join(' ')
|
83
84
|
|
84
85
|
end
|
85
86
|
|
86
87
|
s.sub!(/%Xi?/) do |x|
|
87
88
|
|
88
|
-
|
89
|
-
|
89
|
+
h = to_h
|
90
|
+
a = h.to_a
|
91
|
+
a2 = (a.length > 1 and x[-1][/i$/] and h[:seconds]) ? a[0..-2] : a
|
90
92
|
|
91
93
|
a2.map do |label, val|
|
92
94
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|