hash-that-tree 0.0.3 → 0.0.4

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.
Files changed (53) hide show
  1. data/.gitignore +1 -1
  2. data/README.md +8 -0
  3. data/hash-that-tree.gemspec +4 -2
  4. data/lib/{hashthattree.rb → compare.rb} +8 -9
  5. data/lib/version.rb +1 -1
  6. metadata +22 -53
  7. data/doc/Gemfile.html +0 -96
  8. data/doc/HashThatTree.html +0 -171
  9. data/doc/HashThatTree/FileHashResults.html +0 -258
  10. data/doc/HashThatTree/MD5Compare.html +0 -386
  11. data/doc/LICENSE_txt.html +0 -114
  12. data/doc/Rakefile.html +0 -94
  13. data/doc/created.rid +0 -6
  14. data/doc/images/brick.png +0 -0
  15. data/doc/images/brick_link.png +0 -0
  16. data/doc/images/bug.png +0 -0
  17. data/doc/images/bullet_black.png +0 -0
  18. data/doc/images/bullet_toggle_minus.png +0 -0
  19. data/doc/images/bullet_toggle_plus.png +0 -0
  20. data/doc/images/date.png +0 -0
  21. data/doc/images/find.png +0 -0
  22. data/doc/images/loadingAnimation.gif +0 -0
  23. data/doc/images/macFFBgHack.png +0 -0
  24. data/doc/images/package.png +0 -0
  25. data/doc/images/page_green.png +0 -0
  26. data/doc/images/page_white_text.png +0 -0
  27. data/doc/images/page_white_width.png +0 -0
  28. data/doc/images/plugin.png +0 -0
  29. data/doc/images/ruby.png +0 -0
  30. data/doc/images/tag_green.png +0 -0
  31. data/doc/images/wrench.png +0 -0
  32. data/doc/images/wrench_orange.png +0 -0
  33. data/doc/images/zoom.png +0 -0
  34. data/doc/index.html +0 -74
  35. data/doc/js/darkfish.js +0 -116
  36. data/doc/js/jquery.js +0 -32
  37. data/doc/js/quicksearch.js +0 -114
  38. data/doc/js/thickbox-compressed.js +0 -10
  39. data/doc/lib/hashthattree_rb.html +0 -54
  40. data/doc/lib/version_rb.html +0 -52
  41. data/doc/rdoc.css +0 -763
  42. data/doc/spec/file3_txt~.html +0 -118
  43. data/doc/spec/file4_txt~.html +0 -118
  44. data/doc/spec/testfiles/1/file1_txt.html +0 -112
  45. data/doc/spec/testfiles/1/file2_txt.html +0 -112
  46. data/doc/spec/testfiles/1/file3_txt.html +0 -114
  47. data/doc/spec/testfiles/1/file4_txt.html +0 -114
  48. data/doc/spec/testfiles/2/file1_txt.html +0 -112
  49. data/doc/spec/testfiles/2/file2_txt.html +0 -112
  50. data/doc/spec/testfiles/2/file3_txt.html +0 -114
  51. data/doc/spec/testfiles/2/file4_txt.html +0 -114
  52. data/doc/spec/testfiles/2/fileA_txt.html +0 -112
  53. data/doc/spec/testfiles/2/fileB_txt.html +0 -112
data/doc/LICENSE_txt.html DELETED
@@ -1,114 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: LICENSE.txt [RDoc Documentation]</title>
10
-
11
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
-
13
- <script src="./js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="./js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="./js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="./js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file">
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="project-metadata">
36
-
37
-
38
- <div id="fileindex-section" class="section project-section">
39
- <h3 class="section-header">Files</h3>
40
- <ul>
41
-
42
- <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
43
-
44
- <li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
45
-
46
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
47
-
48
- </ul>
49
- </div>
50
-
51
-
52
- <div id="classindex-section" class="section project-section">
53
- <h3 class="section-header">Class Index
54
- <span class="search-toggle"><img src="./images/find.png"
55
- height="16" width="16" alt="[+]"
56
- title="show/hide quicksearch" /></span></h3>
57
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
58
- <fieldset>
59
- <legend>Quicksearch</legend>
60
- <input type="text" name="quicksearch" value=""
61
- class="quicksearch-field" />
62
- </fieldset>
63
- </form>
64
-
65
- <ul class="link-list">
66
-
67
- <li><a href="./HashThatTree.html">HashThatTree</a></li>
68
-
69
- <li><a href="./HashThatTree/FileHashResults.html">HashThatTree::FileHashResults</a></li>
70
-
71
- <li><a href="./HashThatTree/MD5Compare.html">HashThatTree::MD5Compare</a></li>
72
-
73
- </ul>
74
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
75
- </div>
76
-
77
-
78
- </div>
79
- </div>
80
-
81
- <div id="documentation">
82
-
83
- <p>Copyright © 2012 John Ryan</p>
84
-
85
- <p>MIT License</p>
86
-
87
- <p>Permission is hereby granted, free of charge, to any person obtaining a
88
- copy of this software and associated documentation files (the “Software”),
89
- to deal in the Software without restriction, including without limitation
90
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
91
- and/or sell copies of the Software, and to permit persons to whom the
92
- Software is furnished to do so, subject to the following conditions:</p>
93
-
94
- <p>The above copyright notice and this permission notice shall be included in
95
- all copies or substantial portions of the Software.</p>
96
-
97
- <p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
99
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
100
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
101
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
102
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
103
- DEALINGS IN THE SOFTWARE.</p>
104
-
105
- </div>
106
-
107
- <div id="validator-badges">
108
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
109
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
110
- Rdoc Generator</a> 2</small>.</p>
111
- </div>
112
- </body>
113
- </html>
114
-
data/doc/Rakefile.html DELETED
@@ -1,94 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: Rakefile [RDoc Documentation]</title>
10
-
11
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
-
13
- <script src="./js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="./js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="./js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="./js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file">
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="./index.html">Home</a>
29
- <a href="./index.html#classes">Classes</a>
30
- <a href="./index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="project-metadata">
36
-
37
-
38
- <div id="fileindex-section" class="section project-section">
39
- <h3 class="section-header">Files</h3>
40
- <ul>
41
-
42
- <li class="file"><a href="./Gemfile.html">Gemfile</a></li>
43
-
44
- <li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
45
-
46
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
47
-
48
- </ul>
49
- </div>
50
-
51
-
52
- <div id="classindex-section" class="section project-section">
53
- <h3 class="section-header">Class Index
54
- <span class="search-toggle"><img src="./images/find.png"
55
- height="16" width="16" alt="[+]"
56
- title="show/hide quicksearch" /></span></h3>
57
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
58
- <fieldset>
59
- <legend>Quicksearch</legend>
60
- <input type="text" name="quicksearch" value=""
61
- class="quicksearch-field" />
62
- </fieldset>
63
- </form>
64
-
65
- <ul class="link-list">
66
-
67
- <li><a href="./HashThatTree.html">HashThatTree</a></li>
68
-
69
- <li><a href="./HashThatTree/FileHashResults.html">HashThatTree::FileHashResults</a></li>
70
-
71
- <li><a href="./HashThatTree/MD5Compare.html">HashThatTree::MD5Compare</a></li>
72
-
73
- </ul>
74
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
75
- </div>
76
-
77
-
78
- </div>
79
- </div>
80
-
81
- <div id="documentation">
82
-
83
- <p>require “bundler/gem_tasks”</p>
84
-
85
- </div>
86
-
87
- <div id="validator-badges">
88
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
89
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
90
- Rdoc Generator</a> 2</small>.</p>
91
- </div>
92
- </body>
93
- </html>
94
-
data/doc/created.rid DELETED
@@ -1,6 +0,0 @@
1
- Mon, 05 Nov 2012 11:43:37 +0000
2
- ./Rakefile Mon, 05 Nov 2012 09:29:11 +0000
3
- ./lib/hashthattree.rb Mon, 05 Nov 2012 11:40:27 +0000
4
- ./lib/version.rb Mon, 05 Nov 2012 11:43:30 +0000
5
- ./LICENSE.txt Mon, 05 Nov 2012 09:29:11 +0000
6
- ./Gemfile Mon, 05 Nov 2012 09:29:11 +0000
data/doc/images/brick.png DELETED
Binary file
Binary file
data/doc/images/bug.png DELETED
Binary file
Binary file
Binary file
Binary file
data/doc/images/date.png DELETED
Binary file
data/doc/images/find.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/doc/images/ruby.png DELETED
Binary file
Binary file
Binary file
Binary file
data/doc/images/zoom.png DELETED
Binary file
data/doc/index.html DELETED
@@ -1,74 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>RDoc Documentation</title>
10
-
11
- <link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
12
-
13
- <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
16
- <script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
17
-
18
- </head>
19
- <body class="indexpage">
20
-
21
-
22
- <h1>RDoc Documentation</h1>
23
-
24
-
25
- <p>This is the API documentation for 'RDoc Documentation'.</p>
26
-
27
-
28
-
29
-
30
- <h2>Files</h2>
31
- <ul>
32
-
33
- <li class="file"><a href="Gemfile.html">Gemfile</a></li>
34
-
35
- <li class="file"><a href="LICENSE_txt.html">LICENSE.txt</a></li>
36
-
37
- <li class="file"><a href="Rakefile.html">Rakefile</a></li>
38
-
39
- </ul>
40
-
41
-
42
- <h2 id="classes">Classes/Modules</h2>
43
- <ul>
44
-
45
- <li class="module"><a href="HashThatTree.html">HashThatTree</a></li>
46
-
47
- <li class="class"><a href="HashThatTree/FileHashResults.html">HashThatTree::FileHashResults</a></li>
48
-
49
- <li class="class"><a href="HashThatTree/MD5Compare.html">HashThatTree::MD5Compare</a></li>
50
-
51
- </ul>
52
-
53
- <h2 id="methods">Methods</h2>
54
- <ul>
55
-
56
- <li><a href="HashThatTree/MD5Compare.html#method-c-new">::new &mdash; HashThatTree::MD5Compare</a></li>
57
-
58
- <li><a href="HashThatTree/FileHashResults.html#method-c-new">::new &mdash; HashThatTree::FileHashResults</a></li>
59
-
60
- <li><a href="HashThatTree/MD5Compare.html#method-i-compare">#compare &mdash; HashThatTree::MD5Compare</a></li>
61
-
62
- <li><a href="HashThatTree/MD5Compare.html#method-i-display_results">#display_results &mdash; HashThatTree::MD5Compare</a></li>
63
-
64
- <li><a href="HashThatTree/MD5Compare.html#method-i-validate">#validate &mdash; HashThatTree::MD5Compare</a></li>
65
-
66
- </ul>
67
-
68
- <div id="validator-badges">
69
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
70
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
71
- Rdoc Generator</a> 2</small>.</p>
72
- </div>
73
- </body>
74
- </html>
data/doc/js/darkfish.js DELETED
@@ -1,116 +0,0 @@
1
- /**
2
- *
3
- * Darkfish Page Functions
4
- * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
5
- *
6
- * Author: Michael Granger <mgranger@laika.com>
7
- *
8
- */
9
-
10
- /* Provide console simulation for firebug-less environments */
11
- if (!("console" in window) || !("firebug" in console)) {
12
- var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
13
- "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
14
-
15
- window.console = {};
16
- for (var i = 0; i < names.length; ++i)
17
- window.console[names[i]] = function() {};
18
- };
19
-
20
-
21
- /**
22
- * Unwrap the first element that matches the given @expr@ from the targets and return them.
23
- */
24
- $.fn.unwrap = function( expr ) {
25
- return this.each( function() {
26
- $(this).parents( expr ).eq( 0 ).after( this ).remove();
27
- });
28
- };
29
-
30
-
31
- function showSource( e ) {
32
- var target = e.target;
33
- var codeSections = $(target).
34
- parents('.method-detail').
35
- find('.method-source-code');
36
-
37
- $(target).
38
- parents('.method-detail').
39
- find('.method-source-code').
40
- slideToggle();
41
- };
42
-
43
- function hookSourceViews() {
44
- $('.method-description,.method-heading').click( showSource );
45
- };
46
-
47
- function toggleDebuggingSection() {
48
- $('.debugging-section').slideToggle();
49
- };
50
-
51
- function hookDebuggingToggle() {
52
- $('#debugging-toggle img').click( toggleDebuggingSection );
53
- };
54
-
55
- function hookQuickSearch() {
56
- $('.quicksearch-field').each( function() {
57
- var searchElems = $(this).parents('.section').find( 'li' );
58
- var toggle = $(this).parents('.section').find('h3 .search-toggle');
59
- // console.debug( "Toggle is: %o", toggle );
60
- var qsbox = $(this).parents('form').get( 0 );
61
-
62
- $(this).quicksearch( this, searchElems, {
63
- noSearchResultsIndicator: 'no-class-search-results',
64
- focusOnLoad: false
65
- });
66
- $(toggle).click( function() {
67
- // console.debug( "Toggling qsbox: %o", qsbox );
68
- $(qsbox).toggle();
69
- });
70
- });
71
- };
72
-
73
- function highlightTarget( anchor ) {
74
- console.debug( "Highlighting target '%s'.", anchor );
75
-
76
- $("a[name=" + anchor + "]").each( function() {
77
- if ( !$(this).parent().parent().hasClass('target-section') ) {
78
- console.debug( "Wrapping the target-section" );
79
- $('div.method-detail').unwrap( 'div.target-section' );
80
- $(this).parent().wrap( '<div class="target-section"></div>' );
81
- } else {
82
- console.debug( "Already wrapped." );
83
- }
84
- });
85
- };
86
-
87
- function highlightLocationTarget() {
88
- console.debug( "Location hash: %s", window.location.hash );
89
- if ( ! window.location.hash || window.location.hash.length == 0 ) return;
90
-
91
- var anchor = window.location.hash.substring(1);
92
- console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
93
-
94
- highlightTarget( anchor );
95
- };
96
-
97
- function highlightClickTarget( event ) {
98
- console.debug( "Highlighting click target for event %o", event.target );
99
- try {
100
- var anchor = $(event.target).attr( 'href' ).substring(1);
101
- console.debug( "Found target anchor: %s", anchor );
102
- highlightTarget( anchor );
103
- } catch ( err ) {
104
- console.error( "Exception while highlighting: %o", err );
105
- };
106
- };
107
-
108
-
109
- $(document).ready( function() {
110
- hookSourceViews();
111
- hookDebuggingToggle();
112
- hookQuickSearch();
113
- highlightLocationTarget();
114
-
115
- $('ul.link-list a').bind( "click", highlightClickTarget );
116
- });