doc/coverage/index.html in mattock-0.1.1 vs doc/coverage/index.html in mattock-0.1.2

- 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="2012-02-01T11:53:33-08:00">2012-02-01T11:53:33-08:00</abbr></div> + <div class="timestamp">Generated <abbr class="timeago" title="2012-02-04T10:44:02-08:00">2012-02-04T10:44:02-08: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">92.84%</span></span> + (<span class="covered_percent"><span class="green">92.15%</span></span> covered at <span class="covered_strength"> <span class="green"> - 2.63 + 2.62 </span> </span> hits/line) </h2> <a name="AllFiles"></a> <div> <b>12</b> files in total. - <b>419</b> relevant lines. - <span class="green"><b>389</b> lines covered</span> and - <span class="red"><b>30</b> lines missed </span> + <b>433</b> relevant lines. + <span class="green"><b>399</b> lines covered</span> and + <span class="red"><b>34</b> lines missed </span> </div> <table class="file_list"> <thead> <tr> <th>File</th> @@ -99,16 +99,16 @@ <td>1.2</td> </tr> <tr> <td class="strong"><a href="#151b5abc8f09f0fc2932ac98c07e3b516a518e3e" class="src_link" title="lib/mattock/configurable.rb">lib/mattock/configurable.rb</a></td> - <td class="green strong">96.67 %</td> - <td>157</td> - <td>90</td> - <td>87</td> - <td>3</td> - <td>8.1</td> + <td class="green strong">95.7 %</td> + <td>162</td> + <td>93</td> + <td>89</td> + <td>4</td> + <td>8.0</td> </tr> <tr> <td class="strong"><a href="#dbfbe3e96d32b3e7eea8b666117072d5da6e3e60" class="src_link" title="lib/mattock/remote-command-task.rb">lib/mattock/remote-command-task.rb</a></td> <td class="yellow strong">88.89 %</td> @@ -119,15 +119,15 @@ <td>1.4</td> </tr> <tr> <td class="strong"><a href="#7cc8f09739f0b95d0fd16321baf73b5d3c6eb35b" class="src_link" title="lib/mattock/task.rb">lib/mattock/task.rb</a></td> - <td class="green strong">94.74 %</td> - <td>35</td> - <td>19</td> - <td>18</td> - <td>1</td> + <td class="yellow strong">86.67 %</td> + <td>53</td> + <td>30</td> + <td>26</td> + <td>4</td> <td>0.9</td> </tr> <tr> <td class="strong"><a href="#a2c73f0ba96e60116ee8696673802b6ebaddc38c" class="src_link" title="lib/mattock/tasklib.rb">lib/mattock/tasklib.rb</a></td> @@ -1654,15 +1654,15 @@ </div> <div class="source_table" id="151b5abc8f09f0fc2932ac98c07e3b516a518e3e"> <div class="header"> <h3>lib/mattock/configurable.rb</h3> - <h4><span class="green">96.67 %</span> covered</h4> + <h4><span class="green">95.7 %</span> covered</h4> <div> - <b>90</b> relevant lines. - <span class="green"><b>87</b> lines covered</span> and - <span class="red"><b>3</b> lines missed.</span> + <b>93</b> relevant lines. + <span class="green"><b>89</b> lines covered</span> and + <span class="red"><b>4</b> lines missed.</span> </div> </div> <pre> <ol> @@ -1767,12 +1767,12 @@ <span class="hits">1</span> <code class="ruby"> def default_values</code> </li> - <li class="covered" data-hits="97" data-linenumber="18"> - <span class="hits">97</span> + <li class="covered" data-hits="99" data-linenumber="18"> + <span class="hits">99</span> <code class="ruby"> @default_values ||= {}</code> </li> <li class="never" data-hits="" data-linenumber="19"> @@ -1815,18 +1815,18 @@ <span class="hits">31</span> <code class="ruby"> default_values.each_pair do |name,value|</code> </li> - <li class="covered" data-hits="43" data-linenumber="26"> - <span class="hits">43</span> + <li class="covered" data-hits="44" data-linenumber="26"> + <span class="hits">44</span> <code class="ruby"> instance.__send__(&quot;#{name}=&quot;, value)</code> </li> - <li class="covered" data-hits="43" data-linenumber="27"> - <span class="hits">43</span> + <li class="covered" data-hits="44" data-linenumber="27"> + <span class="hits">44</span> <code class="ruby"> if Configurable === value</code> </li> <li class="covered" data-hits="5" data-linenumber="28"> @@ -1893,18 +1893,18 @@ <span class="hits">27</span> <code class="ruby"> default_values.each_pair do |name,value|</code> </li> - <li class="covered" data-hits="36" data-linenumber="39"> - <span class="hits">36</span> + <li class="covered" data-hits="37" data-linenumber="39"> + <span class="hits">37</span> <code class="ruby"> set_value = instance.__send__(name)</code> </li> - <li class="covered" data-hits="36" data-linenumber="40"> - <span class="hits">36</span> + <li class="covered" data-hits="37" data-linenumber="40"> + <span class="hits">37</span> <code class="ruby"> if value == RequiredField and set_value == RequiredField</code> </li> <li class="covered" data-hits="3" data-linenumber="41"> @@ -1923,12 +1923,12 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="33" data-linenumber="44"> - <span class="hits">33</span> + <li class="covered" data-hits="34" data-linenumber="44"> + <span class="hits">34</span> <code class="ruby"> if Configurable === set_value</code> </li> <li class="covered" data-hits="4" data-linenumber="45"> @@ -2007,18 +2007,18 @@ <span class="hits">3</span> <code class="ruby"> default_values.keys.each do |field|</code> </li> - <li class="covered" data-hits="8" data-linenumber="58"> - <span class="hits">8</span> + <li class="covered" data-hits="9" data-linenumber="58"> + <span class="hits">9</span> <code class="ruby"> begin</code> </li> - <li class="covered" data-hits="8" data-linenumber="59"> - <span class="hits">8</span> + <li class="covered" data-hits="9" data-linenumber="59"> + <span class="hits">9</span> <code class="ruby"> to.__send__(&quot;#{field}=&quot;, from.__send__(field))</code> </li> <li class="never" data-hits="" data-linenumber="60"> @@ -2205,24 +2205,24 @@ <span class="hits">1</span> <code class="ruby"> def setting(name, default_value = RequiredField)</code> </li> - <li class="covered" data-hits="18" data-linenumber="91"> - <span class="hits">18</span> + <li class="covered" data-hits="19" data-linenumber="91"> + <span class="hits">19</span> <code class="ruby"> name = name.to_sym</code> </li> - <li class="covered" data-hits="18" data-linenumber="92"> - <span class="hits">18</span> + <li class="covered" data-hits="19" data-linenumber="92"> + <span class="hits">19</span> <code class="ruby"> attr_accessor(name)</code> </li> - <li class="covered" data-hits="18" data-linenumber="93"> - <span class="hits">18</span> + <li class="covered" data-hits="19" data-linenumber="93"> + <span class="hits">19</span> <code class="ruby"> if default_values.has_key?(name) and default_values[name] != default_value</code> </li> <li class="missed" data-hits="0" data-linenumber="94"> @@ -2235,12 +2235,12 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="18" data-linenumber="96"> - <span class="hits">18</span> + <li class="covered" data-hits="19" data-linenumber="96"> + <span class="hits">19</span> <code class="ruby"> default_values[name] = default_value</code> </li> <li class="never" data-hits="" data-linenumber="97"> @@ -2343,269 +2343,299 @@ <span class="hits">1</span> <code class="ruby"> self.class.copy_settings(self, other)</code> </li> - <li class="never" data-hits="" data-linenumber="114"> + <li class="covered" data-hits="1" data-linenumber="114"> + <span class="hits">1</span> + <code class="ruby"> self</code> + </li> + + <li class="never" data-hits="" data-linenumber="115"> + <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="115"> + <li class="never" data-hits="" data-linenumber="116"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="116"> + <li class="covered" data-hits="1" data-linenumber="117"> <span class="hits">1</span> <code class="ruby"> def setup_defaults</code> </li> - <li class="covered" data-hits="10" data-linenumber="117"> + <li class="covered" data-hits="10" data-linenumber="118"> <span class="hits">10</span> <code class="ruby"> self.class.set_defaults_on(self)</code> </li> - <li class="covered" data-hits="10" data-linenumber="118"> + <li class="covered" data-hits="10" data-linenumber="119"> <span class="hits">10</span> <code class="ruby"> self</code> </li> - <li class="never" data-hits="" data-linenumber="119"> + <li class="never" data-hits="" data-linenumber="120"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="120"> + <li class="never" data-hits="" data-linenumber="121"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="121"> + <li class="covered" data-hits="1" data-linenumber="122"> <span class="hits">1</span> <code class="ruby"> def check_required</code> </li> - <li class="covered" data-hits="9" data-linenumber="122"> + <li class="covered" data-hits="9" data-linenumber="123"> <span class="hits">9</span> <code class="ruby"> missing = self.class.missing_required_fields_on(self)</code> </li> - <li class="covered" data-hits="9" data-linenumber="123"> + <li class="covered" data-hits="9" data-linenumber="124"> <span class="hits">9</span> <code class="ruby"> unless missing.empty?</code> </li> - <li class="covered" data-hits="5" data-linenumber="124"> + <li class="covered" data-hits="5" data-linenumber="125"> <span class="hits">5</span> <code class="ruby"> raise &quot;Required field#{missing.length &gt; 1 ? &quot;s&quot; : &quot;&quot;} #{missing.map{|field| field.to_s.inspect}.join(&quot;, &quot;)} unset on #{self.inspect}&quot;</code> </li> - <li class="never" data-hits="" data-linenumber="125"> + <li class="never" data-hits="" data-linenumber="126"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="7" data-linenumber="126"> + <li class="covered" data-hits="7" data-linenumber="127"> <span class="hits">7</span> <code class="ruby"> self</code> </li> - <li class="never" data-hits="" data-linenumber="127"> + <li class="never" data-hits="" data-linenumber="128"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="128"> + <li class="never" data-hits="" data-linenumber="129"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="129"> + <li class="covered" data-hits="1" data-linenumber="130"> <span class="hits">1</span> + <code class="ruby"> def unset?(value)</code> + </li> + + <li class="missed" data-hits="0" data-linenumber="131"> + + + <code class="ruby"> value == RequiredField</code> + </li> + + <li class="never" data-hits="" data-linenumber="132"> + + + <code class="ruby"> end</code> + </li> + + <li class="never" data-hits="" data-linenumber="133"> + + + <code class="ruby"></code> + </li> + + <li class="covered" data-hits="1" data-linenumber="134"> + <span class="hits">1</span> + <code class="ruby"> def setting(name, default_value = nil)</code> </li> - <li class="covered" data-hits="3" data-linenumber="130"> + <li class="covered" data-hits="3" data-linenumber="135"> <span class="hits">3</span> <code class="ruby"> self.class.setting(name, default_value)</code> </li> - <li class="covered" data-hits="3" data-linenumber="131"> + <li class="covered" data-hits="3" data-linenumber="136"> <span class="hits">3</span> <code class="ruby"> instance_variable_set(&quot;@#{name}&quot;, default_value)</code> </li> - <li class="never" data-hits="" data-linenumber="132"> + <li class="never" data-hits="" data-linenumber="137"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="133"> + <li class="never" data-hits="" data-linenumber="138"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="134"> + <li class="covered" data-hits="1" data-linenumber="139"> <span class="hits">1</span> <code class="ruby"> def settings(hash)</code> </li> - <li class="covered" data-hits="2" data-linenumber="135"> + <li class="covered" data-hits="2" data-linenumber="140"> <span class="hits">2</span> <code class="ruby"> hash.each_pair do |name, value|</code> </li> - <li class="covered" data-hits="3" data-linenumber="136"> + <li class="covered" data-hits="3" data-linenumber="141"> <span class="hits">3</span> <code class="ruby"> setting(name, value)</code> </li> - <li class="never" data-hits="" data-linenumber="137"> + <li class="never" data-hits="" data-linenumber="142"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="2" data-linenumber="138"> + <li class="covered" data-hits="2" data-linenumber="143"> <span class="hits">2</span> <code class="ruby"> return self</code> </li> - <li class="never" data-hits="" data-linenumber="139"> + <li class="never" data-hits="" data-linenumber="144"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="140"> + <li class="never" data-hits="" data-linenumber="145"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="141"> + <li class="covered" data-hits="1" data-linenumber="146"> <span class="hits">1</span> <code class="ruby"> def required_fields(*names)</code> </li> - <li class="covered" data-hits="1" data-linenumber="142"> + <li class="covered" data-hits="1" data-linenumber="147"> <span class="hits">1</span> <code class="ruby"> self.class.required_fields(*names)</code> </li> - <li class="covered" data-hits="1" data-linenumber="143"> + <li class="covered" data-hits="1" data-linenumber="148"> <span class="hits">1</span> <code class="ruby"> self</code> </li> - <li class="never" data-hits="" data-linenumber="144"> + <li class="never" data-hits="" data-linenumber="149"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="1" data-linenumber="145"> + <li class="covered" data-hits="1" data-linenumber="150"> <span class="hits">1</span> <code class="ruby"> alias required_field required_fields</code> </li> - <li class="never" data-hits="" data-linenumber="146"> + <li class="never" data-hits="" data-linenumber="151"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="147"> + <li class="covered" data-hits="1" data-linenumber="152"> <span class="hits">1</span> <code class="ruby"> def nil_fields(*names)</code> </li> - <li class="missed" data-hits="0" data-linenumber="148"> + <li class="missed" data-hits="0" data-linenumber="153"> <code class="ruby"> self.class.nil_fields(*names)</code> </li> - <li class="missed" data-hits="0" data-linenumber="149"> + <li class="missed" data-hits="0" data-linenumber="154"> <code class="ruby"> self</code> </li> - <li class="never" data-hits="" data-linenumber="150"> + <li class="never" data-hits="" data-linenumber="155"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="1" data-linenumber="151"> + <li class="covered" data-hits="1" data-linenumber="156"> <span class="hits">1</span> <code class="ruby"> alias nil_field nil_fields</code> </li> - <li class="never" data-hits="" data-linenumber="152"> + <li class="never" data-hits="" data-linenumber="157"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="153"> + <li class="covered" data-hits="1" data-linenumber="158"> <span class="hits">1</span> <code class="ruby"> class Struct</code> </li> - <li class="covered" data-hits="1" data-linenumber="154"> + <li class="covered" data-hits="1" data-linenumber="159"> <span class="hits">1</span> <code class="ruby"> include Configurable</code> </li> - <li class="never" data-hits="" data-linenumber="155"> + <li class="never" data-hits="" data-linenumber="160"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="156"> + <li class="never" data-hits="" data-linenumber="161"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="157"> + <li class="never" data-hits="" data-linenumber="162"> <code class="ruby">end</code> </li> @@ -2812,15 +2842,15 @@ </div> <div class="source_table" id="7cc8f09739f0b95d0fd16321baf73b5d3c6eb35b"> <div class="header"> <h3>lib/mattock/task.rb</h3> - <h4><span class="green">94.74 %</span> covered</h4> + <h4><span class="yellow">86.67 %</span> covered</h4> <div> - <b>19</b> relevant lines. - <span class="green"><b>18</b> lines covered</span> and - <span class="red"><b>1</b> lines missed.</span> + <b>30</b> relevant lines. + <span class="green"><b>26</b> lines covered</span> and + <span class="red"><b>4</b> lines missed.</span> </div> </div> <pre> <ol> @@ -2871,166 +2901,274 @@ <span class="hits">1</span> <code class="ruby"> setting :task_name</code> </li> - <li class="never" data-hits="" data-linenumber="9"> + <li class="covered" data-hits="1" data-linenumber="9"> + <span class="hits">1</span> + <code class="ruby"> setting :task_args</code> + </li> + + <li class="never" data-hits="" data-linenumber="10"> + <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="10"> + <li class="covered" data-hits="1" data-linenumber="11"> <span class="hits">1</span> - <code class="ruby"> def action</code> + <code class="ruby"> def self.default_taskname(name)</code> </li> - <li class="never" data-hits="" data-linenumber="11"> + <li class="missed" data-hits="0" data-linenumber="12"> + <code class="ruby"> setting(:task_name, name)</code> + </li> + + <li class="never" data-hits="" data-linenumber="13"> + + <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="12"> + <li class="never" data-hits="" data-linenumber="14"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="13"> + <li class="covered" data-hits="1" data-linenumber="15"> <span class="hits">1</span> - <code class="ruby"> def task_args</code> + <code class="ruby"> def initialize(*args)</code> </li> - <li class="covered" data-hits="1" data-linenumber="14"> + <li class="covered" data-hits="1" data-linenumber="16"> <span class="hits">1</span> - <code class="ruby"> [task_name]</code> + <code class="ruby"> configs = args.take_while{|arg| Configurable === arg}</code> </li> - <li class="never" data-hits="" data-linenumber="15"> + <li class="covered" data-hits="1" data-linenumber="17"> + <span class="hits">1</span> + <code class="ruby"> @extracted_task_args = args[configs.length..-1]</code> + </li> + + <li class="covered" data-hits="1" data-linenumber="18"> + <span class="hits">1</span> + <code class="ruby"> if @extracted_task_args.any?{|arg| Configurable === arg}</code> + </li> + + <li class="missed" data-hits="0" data-linenumber="19"> + + + <code class="ruby"> raise &quot;Mattock::Task classes should be created with parent configs, then Rake task args&quot;</code> + </li> + + <li class="never" data-hits="" data-linenumber="20"> + + + <code class="ruby"> end</code> + </li> + + <li class="covered" data-hits="1" data-linenumber="21"> + <span class="hits">1</span> + + <code class="ruby"> super(*configs)</code> + </li> + + <li class="never" data-hits="" data-linenumber="22"> + + <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="16"> + <li class="never" data-hits="" data-linenumber="23"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="17"> + <li class="covered" data-hits="1" data-linenumber="24"> <span class="hits">1</span> + <code class="ruby"> def resolve_configuration</code> + </li> + + <li class="covered" data-hits="1" data-linenumber="25"> + <span class="hits">1</span> + + <code class="ruby"> if @extracted_task_args.empty?</code> + </li> + + <li class="covered" data-hits="1" data-linenumber="26"> + <span class="hits">1</span> + + <code class="ruby"> self.task_args = [task_name]</code> + </li> + + <li class="never" data-hits="" data-linenumber="27"> + + + <code class="ruby"> else</code> + </li> + + <li class="missed" data-hits="0" data-linenumber="28"> + + + <code class="ruby"> self.task_args = @extracted_task_args</code> + </li> + + <li class="never" data-hits="" data-linenumber="29"> + + + <code class="ruby"> end</code> + </li> + + <li class="never" data-hits="" data-linenumber="30"> + + + <code class="ruby"> end</code> + </li> + + <li class="never" data-hits="" data-linenumber="31"> + + + <code class="ruby"></code> + </li> + + <li class="covered" data-hits="1" data-linenumber="32"> + <span class="hits">1</span> + + <code class="ruby"> def action</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"> def task_class</code> </li> - <li class="covered" data-hits="1" data-linenumber="18"> + <li class="covered" data-hits="1" data-linenumber="36"> <span class="hits">1</span> <code class="ruby"> return @task_class if @task_class</code> </li> - <li class="covered" data-hits="1" data-linenumber="19"> + <li class="covered" data-hits="1" data-linenumber="37"> <span class="hits">1</span> <code class="ruby"> @task_class = Class.new(self.class) do</code> </li> - <li class="covered" data-hits="1" data-linenumber="20"> + <li class="covered" data-hits="1" data-linenumber="38"> <span class="hits">1</span> <code class="ruby"> define_method :initialize, Rake::Task.instance_method(:initialize)</code> </li> - <li class="never" data-hits="" data-linenumber="21"> + <li class="never" data-hits="" data-linenumber="39"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="22"> + <li class="never" data-hits="" data-linenumber="40"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="23"> + <li class="never" data-hits="" data-linenumber="41"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="24"> + <li class="covered" data-hits="1" data-linenumber="42"> <span class="hits">1</span> <code class="ruby"> def inspect</code> </li> - <li class="missed" data-hits="0" data-linenumber="25"> + <li class="missed" data-hits="0" data-linenumber="43"> - <code class="ruby"> &quot;Mattock::Task&quot;</code> + <code class="ruby"> &quot;#{self.class.name}: #{self.task_args.inspect}&quot;</code> </li> - <li class="never" data-hits="" data-linenumber="26"> + <li class="never" data-hits="" data-linenumber="44"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="27"> + <li class="never" data-hits="" data-linenumber="45"> <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="28"> + <li class="covered" data-hits="1" data-linenumber="46"> <span class="hits">1</span> <code class="ruby"> def define</code> </li> - <li class="covered" data-hits="1" data-linenumber="29"> + <li class="covered" data-hits="1" data-linenumber="47"> <span class="hits">1</span> <code class="ruby"> task = task_class.define_task(*task_args) do</code> </li> - <li class="covered" data-hits="1" data-linenumber="30"> + <li class="covered" data-hits="1" data-linenumber="48"> <span class="hits">1</span> <code class="ruby"> action</code> </li> - <li class="never" data-hits="" data-linenumber="31"> + <li class="never" data-hits="" data-linenumber="49"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="1" data-linenumber="32"> + <li class="covered" data-hits="1" data-linenumber="50"> <span class="hits">1</span> <code class="ruby"> copy_settings_to(task)</code> </li> - <li class="never" data-hits="" data-linenumber="33"> + <li class="never" data-hits="" data-linenumber="51"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="34"> + <li class="never" data-hits="" data-linenumber="52"> <code class="ruby"> end</code> </li> - <li class="never" data-hits="" data-linenumber="35"> + <li class="never" data-hits="" data-linenumber="53"> <code class="ruby">end</code> </li>