lib/simplecov-teamcity-summary/formatter.rb in simplecov-teamcity-summary-0.1.0 vs lib/simplecov-teamcity-summary/formatter.rb in simplecov-teamcity-summary-0.1.1
- old
+ new
@@ -1,7 +1,10 @@
-require 'simplecov'
+# Ensure we are using a compatible version of SimpleCov
+if Gem::Version.new(SimpleCov::VERSION) < Gem::Version.new("0.8.0")
+ raise RuntimeError, 'The version of SimpleCov you are using is too old. Please update with `gem install simplecov` or `bundle update simplecov`'
+end
-module Simplecov::Formatter
+module SimpleCov::Formatter
class TeamcitySummaryFormatter
def format(simplecov_results)
puts format_teamcity(simplecov_results)
end
\ No newline at end of file