metric_fu 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ === MetricFu 2.1.1 / 2011-03-2
2
+
3
+ * Making syntax highlighting optional (config.syntax_highlighting = false) so Ruby 1.9.2 users don't get "invalid byte sequence in UTF-8" errors.
4
+
1
5
  === MetricFu 2.1.0 / 2011-03-1
2
6
 
3
7
  * Flog gemspec version was >= 2.2.0, which was too early and didn't work. Changed to >= 2.3.0 - Chris Griego
@@ -150,6 +150,7 @@ module MetricFu
150
150
  @graph_engine = :bluff # can be :bluff or :gchart
151
151
 
152
152
  @darwin_txmt_protocol_no_thanks = false
153
+ @syntax_highlighting = true #Can be set to false to avoid UTF-8 issues with Ruby 1.9.2 and Syntax 1.0
153
154
  end
154
155
 
155
156
  # Perform a simple check to try and guess if we're running
@@ -56,7 +56,8 @@ class AwesomeTemplate < MetricFu::Template
56
56
  out << "&nbsp;"
57
57
  end
58
58
  out << "</td>"
59
- out << "<td valign='top'><a name='line#{idx + 1}'>#{convertor.convert(line)}</a></td>"
59
+ line_for_display = MetricFu.configuration.syntax_highlighting ? convertor.convert(line) : line
60
+ out << "<td valign='top'><a name='line#{idx + 1}'>#{line_for_display}</a></td>"
60
61
  out << "</tr>"
61
62
  end
62
63
  out << "<table></body></html>"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 0
10
- version: 2.1.0
9
+ - 1
10
+ version: 2.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Scruggs
@@ -24,7 +24,7 @@ autorequire:
24
24
  bindir: bin
25
25
  cert_chain: []
26
26
 
27
- date: 2011-03-01 00:00:00 -06:00
27
+ date: 2011-03-02 00:00:00 -06:00
28
28
  default_executable:
29
29
  dependencies:
30
30
  - !ruby/object:Gem::Dependency