cover_me 1.1.1 → 1.1.2
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/lib/cover_me/config.rb
CHANGED
|
@@ -40,7 +40,19 @@ module CoverMe
|
|
|
40
40
|
if CoverMe.config.formatter == CoverMe::HtmlFormatter
|
|
41
41
|
index = File.join(CoverMe.config.html_formatter.output_path, 'index.html')
|
|
42
42
|
if File.exists?(index)
|
|
43
|
-
|
|
43
|
+
cmd = case RUBY_PLATFORM
|
|
44
|
+
when /darwin/
|
|
45
|
+
'open'
|
|
46
|
+
when /linux/
|
|
47
|
+
'/etc/alternatives/x-www-browser'
|
|
48
|
+
when /mswin|mingw/
|
|
49
|
+
'start'
|
|
50
|
+
when /cygwin/
|
|
51
|
+
'cygstart'
|
|
52
|
+
else
|
|
53
|
+
'firefox'
|
|
54
|
+
end
|
|
55
|
+
`#{cmd} #{index}`
|
|
44
56
|
end
|
|
45
57
|
end
|
|
46
58
|
})
|
|
@@ -53,4 +65,4 @@ module CoverMe
|
|
|
53
65
|
|
|
54
66
|
end
|
|
55
67
|
|
|
56
|
-
end
|
|
68
|
+
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: cover_me
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 1.1.
|
|
5
|
+
version: 1.1.2
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- markbates
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
13
|
+
date: 2011-08-17 00:00:00 -04:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|