cover_me 1.0.0.rc4 → 1.0.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -34,7 +34,7 @@ After spending a morning playing with it, I was quickly able to grow the idea in
34
34
 
35
35
  CoverMe is pretty easy to use, and has been tested with Ruby 1.9.2 and Rails 3. First, add CoverMe to your Gemfile:
36
36
 
37
- gem 'cover_me', '>= 1.0.0.rc2', :group => :test
37
+ gem 'cover_me', '>= 1.0.0.rc5', :group => :test
38
38
 
39
39
  Now make sure to install the gem with Bundler:
40
40
 
@@ -46,6 +46,12 @@ All that's left now is to require it as the first line of your 'spec_helper.rb'
46
46
 
47
47
  Now the next time your run your test suite it will create a series of HTML files in the _coverage_ folder at the root of your project. Open _coverage/index.html_ and you're off and running.
48
48
 
49
+ ===Rails 3
50
+
51
+ If you are using CoverMe with Rails 3 run the following to get the cover me Rake task:
52
+
53
+ $ rails g cover_me:install
54
+
49
55
  ==Configuration
50
56
 
51
57
  CoverMe is easily configurable, under the covers it uses the "Configatron":http://github.com/markbates/configatron library. Here are a few quick config options you might want to play with:
@@ -77,4 +83,5 @@ CoverMe is easily configurable, under the covers it uses the "Configatron":http:
77
83
  * Alex Crichton
78
84
  * Andrea Campi
79
85
  * Rob Zolkos
80
- * jmthomas
86
+ * jmthomas
87
+ * Lasse Koskela
@@ -21,7 +21,7 @@ class CoverMe::EmmaFormatter < CoverMe::Formatter
21
21
 
22
22
  protected
23
23
  def write_file(filename, extension = '.xml', &block) # :nodoc:
24
- path = File.join(self.options.output_path, filename)
24
+ path = File.join(self.options[:output_path], filename)
25
25
  FileUtils.mkdir_p(File.dirname(path))
26
26
  File.open(path + extension, 'w', &block)
27
27
  end
@@ -32,7 +32,7 @@ class CoverMe::HtmlFormatter < CoverMe::Formatter
32
32
 
33
33
  protected
34
34
  def write_file(filename, extension = '.html', &block) # :nodoc:
35
- path = File.join(self.options.output_path, filename)
35
+ path = File.join(self.options[:output_path], filename)
36
36
  FileUtils.mkdir_p(File.dirname(path))
37
37
  File.open(path + extension, 'w', &block)
38
38
  end
@@ -18,7 +18,7 @@ class CoverMe::Processor
18
18
  # details.
19
19
  def process!
20
20
  self.coverage_results.map do |filename, coverage|
21
- if filename.match(self.options.pattern)
21
+ if filename.match(self.options[:pattern])
22
22
  report = CoverMe::Report.new(filename, coverage)
23
23
  if report.exists?
24
24
  self.index.reports << report
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 0
8
8
  - 0
9
- - rc4
10
- version: 1.0.0.rc4
9
+ - rc5
10
+ version: 1.0.0.rc5
11
11
  platform: ruby
12
12
  authors:
13
13
  - markbates
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-28 00:00:00 -04:00
18
+ date: 2011-01-05 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency