coverage/index.html in elf_manifesto-1.1.0 vs coverage/index.html in elf_manifesto-1.1.1
- old
+ new
@@ -21,31 +21,31 @@
<body>
<div id="loading">
<img src="./assets/0.5.3/loading.gif" alt="loading"/>
</div>
<div id="wrapper" style="display:none;">
- <div class="timestamp">Generated <abbr class="timeago" title="2011-12-23T10:57:38+00:00">2011-12-23T10:57:38+00:00</abbr></div>
+ <div class="timestamp">Generated <abbr class="timeago" title="2011-12-23T11:55:47+00:00">2011-12-23T11:55:47+00:00</abbr></div>
<ul class="group_tabs"></ul>
<div id="content">
<div class="file_list_container" id="AllFiles">
<h2>
<span class="group_name">All Files</span>
(<span class="covered_percent"><span class="green">100.0%</span></span>
covered at
<span class="covered_strength">
- <span class="red">
- 0.0
+ <span class="green">
+ 11.3
</span>
</span> hits/line)
</h2>
<a name="AllFiles"></a>
<div>
- <b>0</b> files in total.
- <b>0.0</b> relevant lines.
- <span class="green"><b>0.0</b> lines covered</span> and
- <span class="red"><b>0.0</b> lines missed </span>
+ <b>1</b> files in total.
+ <b>28</b> relevant lines.
+ <span class="green"><b>28</b> lines covered</span> and
+ <span class="red"><b>0</b> lines missed </span>
</div>
<table class="file_list">
<thead>
<tr>
<th>File</th>
@@ -57,10 +57,20 @@
<th>Avg. Hits / Line</th>
</tr>
</thead>
<tbody>
+ <tr>
+ <td class="strong"><a href="#a3bc23d7ade7c947e2252b0b22bf21d60d77633d" class="src_link" title="lib/elf_manifesto/manifest_maker.rb">lib/elf_manifesto/manifest_maker.rb</a></td>
+ <td class="green strong">100.0 %</td>
+ <td>65</td>
+ <td>28</td>
+ <td>28</td>
+ <td>0</td>
+ <td>11.3</td>
+ </tr>
+
</tbody>
</table>
</div>
@@ -106,21 +116,21 @@
<h2>
<span class="group_name">Workers</span>
(<span class="covered_percent"><span class="green">100.0%</span></span>
covered at
<span class="covered_strength">
- <span class="red">
- 0.0
+ <span class="green">
+ 11.3
</span>
</span> hits/line)
</h2>
<a name="Workers"></a>
<div>
- <b>0</b> files in total.
- <b>0.0</b> relevant lines.
- <span class="green"><b>0.0</b> lines covered</span> and
- <span class="red"><b>0.0</b> lines missed </span>
+ <b>1</b> files in total.
+ <b>28</b> relevant lines.
+ <span class="green"><b>28</b> lines covered</span> and
+ <span class="red"><b>0</b> lines missed </span>
</div>
<table class="file_list">
<thead>
<tr>
<th>File</th>
@@ -132,23 +142,441 @@
<th>Avg. Hits / Line</th>
</tr>
</thead>
<tbody>
+ <tr>
+ <td class="strong"><a href="#a3bc23d7ade7c947e2252b0b22bf21d60d77633d" class="src_link" title="lib/elf_manifesto/manifest_maker.rb">lib/elf_manifesto/manifest_maker.rb</a></td>
+ <td class="green strong">100.0 %</td>
+ <td>65</td>
+ <td>28</td>
+ <td>28</td>
+ <td>0</td>
+ <td>11.3</td>
+ </tr>
+
</tbody>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.5.4
and simplecov-html v0.5.3<br/>
- using Cucumber Features
+ using Cucumber Features, RSpec
</div>
<div class="source_files">
+
+ <div class="source_table" id="a3bc23d7ade7c947e2252b0b22bf21d60d77633d">
+ <div class="header">
+ <h3>lib/elf_manifesto/manifest_maker.rb</h3>
+ <h4><span class="green">100.0 %</span> covered</h4>
+ <div>
+ <b>28</b> relevant lines.
+ <span class="green"><b>28</b> lines covered</span> and
+ <span class="red"><b>0</b> lines missed.</span>
+ </div>
+ </div>
+
+ <pre>
+ <ol>
+
+ <li class="covered" data-hits="1" data-linenumber="1">
+ <span class="hits">1</span>
+
+ <code class="ruby">require 'mustache'</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="2">
+ <span class="hits">1</span>
+
+ <code class="ruby">require 'uri'</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="3">
+
+
+ <code class="ruby"></code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="4">
+ <span class="hits">1</span>
+
+ <code class="ruby">module ElfManifesto</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="5">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="6">
+ <span class="hits">1</span>
+
+ <code class="ruby"> class ManifestMaker</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="7">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="8">
+ <span class="hits">1</span>
+
+ <code class="ruby"> attr_reader :file_groups, :result </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="9">
+
+
+ <code class="ruby"> # *Args*</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="10">
+
+
+ <code class="ruby"> # * ops:: +Hash+ -> Hash of options</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="11">
+
+
+ <code class="ruby"> # </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="12">
+
+
+ <code class="ruby"> # ops = { </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="13">
+
+
+ <code class="ruby"> # template: 'path/to/template.file',</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="14">
+
+
+ <code class="ruby"> # properties: { prop1: 'foobar' },</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="15">
+
+
+ <code class="ruby"> # globs: ['*.*', '*.jpg'], </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="16">
+
+
+ <code class="ruby"> # }</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="17">
+
+
+ <code class="ruby"> #</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="18">
+
+
+ <code class="ruby"> # ElfManifesto::ManifestMaker.new(ops)</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="19">
+
+
+ <code class="ruby"> # </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="20">
+
+
+ <code class="ruby"> # [+template+] +String+ -> template file to load</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="21">
+
+
+ <code class="ruby"> # [+properties+] +Hash+ -> arbitrary properties to supply to template</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="22">
+
+
+ <code class="ruby"> # [+globs+] +Array+ -> list of file globs to evaluate</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="23">
+ <span class="hits">1</span>
+
+ <code class="ruby"> def initialize(ops)</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="24">
+ <span class="hits">9</span>
+
+ <code class="ruby"> @file_groups = get_file_groups(ops[:globs]) # evaluate the globs and create the file groups</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="25">
+ <span class="hits">9</span>
+
+ <code class="ruby"> @file_groups[:props] = ops[:props] unless ops[:props].nil?</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="26">
+ <span class="hits">9</span>
+
+ <code class="ruby"> template_file = File.open ops[:template], 'rb'</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="27">
+ <span class="hits">9</span>
+
+ <code class="ruby"> @template = template_file.read</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="28">
+ <span class="hits">9</span>
+
+ <code class="ruby"> @result = Mustache.render @template, @file_groups</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="29">
+ <span class="hits">9</span>
+
+ <code class="ruby"> message = ""</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="30">
+ <span class="hits">9</span>
+
+ <code class="ruby"> pos = 1</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="31">
+
+
+ <code class="ruby"> # puts "#{message}\n\n\n"</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="32">
+ <span class="hits">9</span>
+
+ <code class="ruby"> puts @result</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="33">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="34">
+
+
+ <code class="ruby"></code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="35">
+ <span class="hits">1</span>
+
+ <code class="ruby"> private</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="36">
+
+
+ <code class="ruby"> # get_file_groups</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="37">
+
+
+ <code class="ruby"> # Evaluate the globs array and populate the file_groups object.</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="38">
+
+
+ <code class="ruby"> # It's the file_groups object that is used to populate the template.</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="39">
+
+
+ <code class="ruby"> #</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="40">
+
+
+ <code class="ruby"> # * *Args* :</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="41">
+
+
+ <code class="ruby"> # globs - +Array+ -> list of strings to use as file searches</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="42">
+
+
+ <code class="ruby"> # * *Returns* :</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="43">
+
+
+ <code class="ruby"> # - dictionary of file group arrays</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="44">
+ <span class="hits">1</span>
+
+ <code class="ruby"> def get_file_groups globs</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="45">
+ <span class="hits">9</span>
+
+ <code class="ruby"> pos = 1</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="46">
+ <span class="hits">9</span>
+
+ <code class="ruby"> file_groups = { groups: [] }</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="47">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="48">
+ <span class="hits">9</span>
+
+ <code class="ruby"> globs.each do |glob|</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="49">
+
+
+ <code class="ruby"> # e.g { group1: { path: '*.*', files: [file1, file2]} }</code>
+ </li>
+
+ <li class="covered" data-hits="19" data-linenumber="50">
+ <span class="hits">19</span>
+
+ <code class="ruby"> group_name = "group#{pos}"</code>
+ </li>
+
+ <li class="covered" data-hits="19" data-linenumber="51">
+ <span class="hits">19</span>
+
+ <code class="ruby"> files_raw = Dir.glob(glob)</code>
+ </li>
+
+ <li class="covered" data-hits="19" data-linenumber="52">
+ <span class="hits">19</span>
+
+ <code class="ruby"> files = files_raw.map do |f|</code>
+ </li>
+
+ <li class="covered" data-hits="68" data-linenumber="53">
+ <span class="hits">68</span>
+
+ <code class="ruby"> URI.escape f</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="54">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="covered" data-hits="19" data-linenumber="55">
+ <span class="hits">19</span>
+
+ <code class="ruby"> file_group_object = { name: group_name, path: glob, files: files , files_raw: files_raw}</code>
+ </li>
+
+ <li class="covered" data-hits="19" data-linenumber="56">
+ <span class="hits">19</span>
+
+ <code class="ruby"> file_groups[group_name.to_sym] = file_group_object</code>
+ </li>
+
+ <li class="covered" data-hits="19" data-linenumber="57">
+ <span class="hits">19</span>
+
+ <code class="ruby"> file_groups[:groups].push file_group_object</code>
+ </li>
+
+ <li class="covered" data-hits="19" data-linenumber="58">
+ <span class="hits">19</span>
+
+ <code class="ruby"> pos += 1 </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="59">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="covered" data-hits="9" data-linenumber="60">
+ <span class="hits">9</span>
+
+ <code class="ruby"> file_groups</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="61">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="62">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="63">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="64">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="65">
+
+
+ <code class="ruby">end</code>
+ </li>
+
+ </ol>
+ </pre>
+</div>
</div>
</div>
</body>
</html>