gcov2x 0.3.0 → 0.3.1

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: 50fa0a8dd61420208012101bda3b0af01c7938d4
4
- data.tar.gz: f69ce2235ed8de8a7033f4a8127cb8928e401ae2
3
+ metadata.gz: 01b9e4af28185210fd6ee01bf29c9e94f59a6a79
4
+ data.tar.gz: b56ca81bfb265dcf8875114274944501c1d81828
5
5
  SHA512:
6
- metadata.gz: 27f6b3d1b9d6061dedf03a394befb2eaa679ede1965bc332f069be3a5b8335fe448b30245290a0917bc9517955c6e4085c0064fb7f1c23ad420f814259106459
7
- data.tar.gz: dd9335ac6eb775306d23e513d7600c53c9fdb807a647c2edde217a28e34dccacc0b81bd39ff2b594f18fb2363440573204c7710dca4c4b7c24fbe3d77dd8b3c7
6
+ metadata.gz: aa095cdd4a33e0a4fa3a909465941e30313ad44c97dfa01c9350edaa01925e3b934ce2940a40aa9379a9d5500a27d94285a449daa2e142cc8db5a077fbc45cf7
7
+ data.tar.gz: f00a5f3d6c53a87f53f2d45e85165fca1f7aa3b38d8e5ac78343e62699e47bc32ebef20c77e97d0971411943a22131586cf3d4d8f3b392ff34200e1f73f48600
data/gcov2x.gemspec CHANGED
@@ -12,4 +12,5 @@ Gem::Specification.new do |gem|
12
12
  gem.executables = ["gcov2x"]
13
13
  gem.homepage = 'http://rubygems.org/gems/gcov2x'
14
14
  gem.license = 'MIT'
15
+ gem.required_ruby_version = '>= 2.0'
15
16
  end
@@ -33,7 +33,7 @@ EOF
33
33
 
34
34
  def class_of line
35
35
  case line.count
36
- when :none then "moot"
36
+ when :none then "irrelevant"
37
37
  when :missed then "missed"
38
38
  else "ok"
39
39
  end
@@ -59,6 +59,14 @@ EOF
59
59
  end
60
60
  end
61
61
 
62
+ def count_of line
63
+ case line.count
64
+ when :none then ""
65
+ when :missed then "<strong>miss</strong>"
66
+ else line.count
67
+ end
68
+ end
69
+
62
70
  def encode text
63
71
  CGI.escapeHTML( text )
64
72
  end
@@ -69,36 +69,6 @@ if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c
69
69
  margin:0px;
70
70
  }
71
71
 
72
- .code div {
73
- display: block;
74
- font-family: monospace;
75
- white-space: pre;
76
- font-size:8pt;
77
- height: 10pt;
78
- vertical-align:top;
79
-
80
- margin-top: 0px;
81
-
82
- padding-top: 0px;
83
- padding-bottom: 0px;
84
- padding-left: 0px;
85
- padding-right: 0px;
86
- margin:0px;
87
- width:100%;
88
- }
89
-
90
- .code .ok {
91
- background-color:#bbffbb;
92
- }
93
-
94
- .code .moot {
95
- background-color:#f5f5e8;
96
- }
97
-
98
- .code .missed {
99
- background-color:#ffbbbb;
100
- }
101
-
102
72
  div.stats {
103
73
  width:300px;
104
74
  border:1px solid #d3d3d3;
@@ -142,6 +112,67 @@ if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c
142
112
  font-weight: bold;
143
113
  }
144
114
 
115
+ .code div {
116
+ /*display: block;*/
117
+ font-family: monospace;
118
+ white-space: pre;
119
+ font-size:8pt;
120
+ height: 10pt;
121
+ vertical-align:top;
122
+
123
+ margin-top: 0px;
124
+
125
+ padding-top: 0px;
126
+ padding-bottom: 0px;
127
+ padding-left: 2px;
128
+ padding-right: 2px;
129
+ margin:0px;
130
+ }
131
+
132
+ .code .text {
133
+ /*background-color:#f5f5e8;*/
134
+ }
135
+
136
+ .code .ok {
137
+ background-color:#bbffbb;
138
+ }
139
+
140
+ .code .irrelevant {
141
+ background-color:#f5f5f0;
142
+ }
143
+
144
+ .code .missed {
145
+ background-color:#ffbbbb;
146
+ }
147
+
148
+ .code .text {
149
+ /*display:inline-block;*/
150
+ padding-left:2px;
151
+ padding-right:2px;
152
+ float:left;
153
+ margin-right:0;
154
+ }
155
+
156
+ .code .number {
157
+ /*display:inline-block;*/
158
+ /*min-width:20px*/
159
+ float:left;
160
+ width:20pt;
161
+ padding-left:2px;
162
+ padding-right:2px;
163
+ color:grey;
164
+ }
165
+
166
+ .code .count {
167
+ /*display:inline-block;*/
168
+ /*min-width:20px*/
169
+ float:left;
170
+ width:20pt;
171
+ padding-left:2px;
172
+ padding-right:8px;
173
+ color:grey;
174
+ }
175
+
145
176
  </style>
146
177
 
147
178
  <script type='text/javascript'>//<![CDATA[
@@ -195,7 +226,7 @@ if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c
195
226
  <div class="stats_line"><div class="title">Hits per line</div><div class="value"><%=file.stats[:hits_per_line_s]%></div></div>
196
227
  </div>
197
228
  <div class="code">
198
- <% file.lines.each do |line| %><div class="<%= class_of line %>"><%= encode(line.text) %></div><% end %>
229
+ <% file.lines.each do |line| %><div class="<%=class_of line%>"><div class="number"><%=line.number %></div><div class="count"><%=count_of line %></div><div class="text"><%= encode(line.text) %></div></div><% end %>
199
230
  </div>
200
231
  </div>
201
232
  </div>
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GCOV
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gcov2x
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattias Bergbom
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '2.0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="