Permalink
Browse files

Removed counts till they are perfect

  • Loading branch information...
1 parent 9050055 commit 3ba97eb7ffe50323a2638e5bbb6a37f715b41ee5 @zquestz committed Apr 11, 2011
Showing with 40 additions and 115 deletions.
  1. +37 −102 coverage/index.html
  2. +2 −7 coverage/resultset.yml
  3. BIN db/test.sqlite3
  4. +1 −6 lib/shortened_url.rb
View
@@ -21,7 +21,7 @@
<img src="./assets/0.4.4/loading.gif" alt="loading"/>
</div>
<div id="wrapper" style="display:none;">
- <div class="timestamp">Generated <abbr class="timeago" title="2011-04-11T00:29:24-07:00">2011-04-11T00:29:24-07:00</abbr></div>
+ <div class="timestamp">Generated <abbr class="timeago" title="2011-04-11T00:56:09-07:00">2011-04-11T00:56:09-07:00</abbr></div>
<ul class="group_tabs"></ul>
<div id="content">
@@ -71,7 +71,7 @@
<tr>
<td><a href="#e694f285bf494d501abc8ac8788d18ec798d6394" class="src_link" title="./lib/shortened_url.rb">./lib/shortened_url.rb</a></td>
<td class="green">100.0 %</td>
- <td>73</td>
+ <td>68</td>
<td>32</td>
<td>32</td>
<td>0</td>
@@ -1305,15 +1305,15 @@
</tr>
- <tr class="hit" data-hits="34">
+ <tr class="hit" data-hits="16">
<td class="line_number">
<pre>30</pre>
</td>
<td>
<pre> redirect_count + json_count + xml_count + yaml_count</pre>
</td>
<td class="hits">
- 34
+ 16
</td>
</tr>
@@ -1396,77 +1396,12 @@
</tr>
- <tr class="never" >
- <td class="line_number">
- <pre>37</pre>
- </td>
- <td>
- <pre> :short_url =&gt; &quot;#{base_url}/#{self.shorten}&quot;, </pre>
- </td>
- <td class="hits">
-
- </td>
- </tr>
-
-
- <tr class="never" >
- <td class="line_number">
- <pre>38</pre>
- </td>
- <td>
- <pre> :json_count =&gt; self.json_count,</pre>
- </td>
- <td class="hits">
-
- </td>
- </tr>
-
-
- <tr class="never" >
- <td class="line_number">
- <pre>39</pre>
- </td>
- <td>
- <pre> :xml_count =&gt; self.xml_count,</pre>
- </td>
- <td class="hits">
-
- </td>
- </tr>
-
-
- <tr class="never" >
- <td class="line_number">
- <pre>40</pre>
- </td>
- <td>
- <pre> :yaml_count =&gt; self.yaml_count,</pre>
- </td>
- <td class="hits">
-
- </td>
- </tr>
-
-
- <tr class="never" >
- <td class="line_number">
- <pre>41</pre>
- </td>
- <td>
- <pre> :redirect_count =&gt; self.redirect_count,</pre>
- </td>
- <td class="hits">
-
- </td>
- </tr>
-
-
<tr class="hit" data-hits="18">
<td class="line_number">
- <pre>42</pre>
+ <pre>37</pre>
</td>
<td>
- <pre> :total_count =&gt; self.total_count }</pre>
+ <pre> :short_url =&gt; &quot;#{base_url}/#{self.shorten}&quot; }</pre>
</td>
<td class="hits">
18
@@ -1476,7 +1411,7 @@
<tr class="never" >
<td class="line_number">
- <pre>43</pre>
+ <pre>38</pre>
</td>
<td>
<pre> end</pre>
@@ -1489,7 +1424,7 @@
<tr class="never" >
<td class="line_number">
- <pre>44</pre>
+ <pre>39</pre>
</td>
<td>
<pre> </pre>
@@ -1502,7 +1437,7 @@
<tr class="never" >
<td class="line_number">
- <pre>45</pre>
+ <pre>40</pre>
</td>
<td>
<pre> # Find url by its alphadecimal value</pre>
@@ -1515,7 +1450,7 @@
<tr class="hit" data-hits="1">
<td class="line_number">
- <pre>46</pre>
+ <pre>41</pre>
</td>
<td>
<pre> def self.find_by_shortened(shortened)</pre>
@@ -1528,7 +1463,7 @@
<tr class="hit" data-hits="9">
<td class="line_number">
- <pre>47</pre>
+ <pre>42</pre>
</td>
<td>
<pre> find(shortened.alphadecimal)</pre>
@@ -1541,7 +1476,7 @@
<tr class="never" >
<td class="line_number">
- <pre>48</pre>
+ <pre>43</pre>
</td>
<td>
<pre> rescue ActiveRecord::RecordNotFound</pre>
@@ -1554,7 +1489,7 @@
<tr class="hit" data-hits="4">
<td class="line_number">
- <pre>49</pre>
+ <pre>44</pre>
</td>
<td>
<pre> nil</pre>
@@ -1567,7 +1502,7 @@
<tr class="never" >
<td class="line_number">
- <pre>50</pre>
+ <pre>45</pre>
</td>
<td>
<pre> end</pre>
@@ -1580,7 +1515,7 @@
<tr class="never" >
<td class="line_number">
- <pre>51</pre>
+ <pre>46</pre>
</td>
<td>
<pre> </pre>
@@ -1593,7 +1528,7 @@
<tr class="hit" data-hits="1">
<td class="line_number">
- <pre>52</pre>
+ <pre>47</pre>
</td>
<td>
<pre> def self.find_by_url(url)</pre>
@@ -1606,7 +1541,7 @@
<tr class="hit" data-hits="36">
<td class="line_number">
- <pre>53</pre>
+ <pre>48</pre>
</td>
<td>
<pre> find(:first, :conditions =&gt; {:url =&gt; normalize_url(url)})</pre>
@@ -1619,7 +1554,7 @@
<tr class="never" >
<td class="line_number">
- <pre>54</pre>
+ <pre>49</pre>
</td>
<td>
<pre> end</pre>
@@ -1632,7 +1567,7 @@
<tr class="never" >
<td class="line_number">
- <pre>55</pre>
+ <pre>50</pre>
</td>
<td>
<pre> </pre>
@@ -1645,7 +1580,7 @@
<tr class="hit" data-hits="1">
<td class="line_number">
- <pre>56</pre>
+ <pre>51</pre>
</td>
<td>
<pre> def self.find_or_create_by_url(url)</pre>
@@ -1658,7 +1593,7 @@
<tr class="hit" data-hits="22">
<td class="line_number">
- <pre>57</pre>
+ <pre>52</pre>
</td>
<td>
<pre> ret_url = find_by_url(url)</pre>
@@ -1671,7 +1606,7 @@
<tr class="hit" data-hits="22">
<td class="line_number">
- <pre>58</pre>
+ <pre>53</pre>
</td>
<td>
<pre> ret_url ||= self.create(:url =&gt; url)</pre>
@@ -1684,7 +1619,7 @@
<tr class="never" >
<td class="line_number">
- <pre>59</pre>
+ <pre>54</pre>
</td>
<td>
<pre> end</pre>
@@ -1697,7 +1632,7 @@
<tr class="never" >
<td class="line_number">
- <pre>60</pre>
+ <pre>55</pre>
</td>
<td>
<pre> </pre>
@@ -1710,7 +1645,7 @@
<tr class="never" >
<td class="line_number">
- <pre>61</pre>
+ <pre>56</pre>
</td>
<td>
<pre> # Real url for our system. Everything is filtered.</pre>
@@ -1723,7 +1658,7 @@
<tr class="hit" data-hits="1">
<td class="line_number">
- <pre>62</pre>
+ <pre>57</pre>
</td>
<td>
<pre> def self.normalize_url(url)</pre>
@@ -1736,7 +1671,7 @@
<tr class="hit" data-hits="38">
<td class="line_number">
- <pre>63</pre>
+ <pre>58</pre>
</td>
<td>
<pre> parse_url(url).to_s</pre>
@@ -1749,7 +1684,7 @@
<tr class="never" >
<td class="line_number">
- <pre>64</pre>
+ <pre>59</pre>
</td>
<td>
<pre> end</pre>
@@ -1762,7 +1697,7 @@
<tr class="never" >
<td class="line_number">
- <pre>65</pre>
+ <pre>60</pre>
</td>
<td>
<pre> </pre>
@@ -1775,7 +1710,7 @@
<tr class="hit" data-hits="1">
<td class="line_number">
- <pre>66</pre>
+ <pre>61</pre>
</td>
<td>
<pre> protected</pre>
@@ -1788,7 +1723,7 @@
<tr class="never" >
<td class="line_number">
- <pre>67</pre>
+ <pre>62</pre>
</td>
<td>
<pre> </pre>
@@ -1801,7 +1736,7 @@
<tr class="never" >
<td class="line_number">
- <pre>68</pre>
+ <pre>63</pre>
</td>
<td>
<pre> # Use addressable to parse the url</pre>
@@ -1814,7 +1749,7 @@
<tr class="hit" data-hits="1">
<td class="line_number">
- <pre>69</pre>
+ <pre>64</pre>
</td>
<td>
<pre> def self.parse_url(url)</pre>
@@ -1827,7 +1762,7 @@
<tr class="hit" data-hits="98">
<td class="line_number">
- <pre>70</pre>
+ <pre>65</pre>
</td>
<td>
<pre> Addressable::URI.heuristic_parse(url).normalize rescue nil</pre>
@@ -1840,7 +1775,7 @@
<tr class="never" >
<td class="line_number">
- <pre>71</pre>
+ <pre>66</pre>
</td>
<td>
<pre> end</pre>
@@ -1853,7 +1788,7 @@
<tr class="never" >
<td class="line_number">
- <pre>72</pre>
+ <pre>67</pre>
</td>
<td>
<pre> </pre>
@@ -1866,7 +1801,7 @@
<tr class="never" >
<td class="line_number">
- <pre>73</pre>
+ <pre>68</pre>
</td>
<td>
<pre>end</pre>
Oops, something went wrong.

0 comments on commit 3ba97eb

Please sign in to comment.