hash-that-tree 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/.gitignore +0 -1
  2. data/README.md +15 -1
  3. data/doc/Gemfile.html +96 -0
  4. data/doc/HashThatTree/FileHashResults.html +258 -0
  5. data/doc/HashThatTree/MD5Compare.html +385 -0
  6. data/doc/HashThatTree.html +177 -0
  7. data/doc/LICENSE_txt.html +114 -0
  8. data/doc/Rakefile.html +94 -0
  9. data/doc/created.rid +6 -0
  10. data/doc/images/brick.png +0 -0
  11. data/doc/images/brick_link.png +0 -0
  12. data/doc/images/bug.png +0 -0
  13. data/doc/images/bullet_black.png +0 -0
  14. data/doc/images/bullet_toggle_minus.png +0 -0
  15. data/doc/images/bullet_toggle_plus.png +0 -0
  16. data/doc/images/date.png +0 -0
  17. data/doc/images/find.png +0 -0
  18. data/doc/images/loadingAnimation.gif +0 -0
  19. data/doc/images/macFFBgHack.png +0 -0
  20. data/doc/images/package.png +0 -0
  21. data/doc/images/page_green.png +0 -0
  22. data/doc/images/page_white_text.png +0 -0
  23. data/doc/images/page_white_width.png +0 -0
  24. data/doc/images/plugin.png +0 -0
  25. data/doc/images/ruby.png +0 -0
  26. data/doc/images/tag_green.png +0 -0
  27. data/doc/images/wrench.png +0 -0
  28. data/doc/images/wrench_orange.png +0 -0
  29. data/doc/images/zoom.png +0 -0
  30. data/doc/index.html +74 -0
  31. data/doc/js/darkfish.js +116 -0
  32. data/doc/js/jquery.js +32 -0
  33. data/doc/js/quicksearch.js +114 -0
  34. data/doc/js/thickbox-compressed.js +10 -0
  35. data/doc/lib/hashthattree_rb.html +54 -0
  36. data/doc/lib/version_rb.html +52 -0
  37. data/doc/rdoc.css +763 -0
  38. data/doc/spec/file3_txt~.html +118 -0
  39. data/doc/spec/file4_txt~.html +118 -0
  40. data/doc/spec/testfiles/1/file1_txt.html +112 -0
  41. data/doc/spec/testfiles/1/file2_txt.html +112 -0
  42. data/doc/spec/testfiles/1/file3_txt.html +114 -0
  43. data/doc/spec/testfiles/1/file4_txt.html +114 -0
  44. data/doc/spec/testfiles/2/file1_txt.html +112 -0
  45. data/doc/spec/testfiles/2/file2_txt.html +112 -0
  46. data/doc/spec/testfiles/2/file3_txt.html +114 -0
  47. data/doc/spec/testfiles/2/file4_txt.html +114 -0
  48. data/doc/spec/testfiles/2/fileA_txt.html +112 -0
  49. data/doc/spec/testfiles/2/fileB_txt.html +112 -0
  50. data/hash-that-tree.gemspec +1 -1
  51. data/lib/hashthattree.rb +46 -20
  52. data/lib/version.rb +1 -1
  53. data/spec/doc/created.rid +11 -0
  54. data/spec/doc/images/brick.png +0 -0
  55. data/spec/doc/images/brick_link.png +0 -0
  56. data/spec/doc/images/bug.png +0 -0
  57. data/spec/doc/images/bullet_black.png +0 -0
  58. data/spec/doc/images/bullet_toggle_minus.png +0 -0
  59. data/spec/doc/images/bullet_toggle_plus.png +0 -0
  60. data/spec/doc/images/date.png +0 -0
  61. data/spec/doc/images/find.png +0 -0
  62. data/spec/doc/images/loadingAnimation.gif +0 -0
  63. data/spec/doc/images/macFFBgHack.png +0 -0
  64. data/spec/doc/images/package.png +0 -0
  65. data/spec/doc/images/page_green.png +0 -0
  66. data/spec/doc/images/page_white_text.png +0 -0
  67. data/spec/doc/images/page_white_width.png +0 -0
  68. data/spec/doc/images/plugin.png +0 -0
  69. data/spec/doc/images/ruby.png +0 -0
  70. data/spec/doc/images/tag_green.png +0 -0
  71. data/spec/doc/images/wrench.png +0 -0
  72. data/spec/doc/images/wrench_orange.png +0 -0
  73. data/spec/doc/images/zoom.png +0 -0
  74. data/spec/doc/index.html +72 -0
  75. data/spec/doc/js/darkfish.js +116 -0
  76. data/spec/doc/js/jquery.js +32 -0
  77. data/spec/doc/js/quicksearch.js +114 -0
  78. data/spec/doc/js/thickbox-compressed.js +10 -0
  79. data/spec/doc/rdoc.css +763 -0
  80. data/spec/doc/testfiles/1/file1_txt.html +100 -0
  81. data/spec/doc/testfiles/1/file2_txt.html +100 -0
  82. data/spec/doc/testfiles/1/file3_txt.html +102 -0
  83. data/spec/doc/testfiles/1/file4_txt.html +102 -0
  84. data/spec/doc/testfiles/2/file1_txt.html +100 -0
  85. data/spec/doc/testfiles/2/file2_txt.html +100 -0
  86. data/spec/doc/testfiles/2/file3_txt.html +102 -0
  87. data/spec/doc/testfiles/2/file4_txt.html +102 -0
  88. data/spec/doc/testfiles/2/fileA_txt.html +100 -0
  89. data/spec/doc/testfiles/2/fileB_txt.html +100 -0
  90. data/spec/testfiles/1/file1.txt +0 -0
  91. data/spec/testfiles/1/file2.txt +0 -0
  92. data/spec/testfiles/1/file3.txt +1 -0
  93. data/spec/testfiles/1/file4.txt +1 -0
  94. data/spec/testfiles/2/file1.txt +0 -0
  95. data/spec/testfiles/2/file2.txt +0 -0
  96. data/spec/testfiles/2/file3.txt +2 -0
  97. data/spec/testfiles/2/file4.txt +2 -0
  98. data/spec/testfiles/2/fileA.txt +0 -0
  99. data/spec/testfiles/2/fileB.txt +0 -0
  100. metadata +144 -3
data/.gitignore CHANGED
@@ -15,6 +15,5 @@ tmp
15
15
  # YARD artifacts
16
16
  .yardoc
17
17
  _yardoc
18
- doc/
19
18
  .project
20
19
  *~
data/README.md CHANGED
@@ -18,9 +18,23 @@ Or install it yourself as:
18
18
  $ gem install hash-that-tree
19
19
 
20
20
  ## Usage
21
-
21
+ e.g
22
22
  hashthattree.rb c:/testfiles/folder1 c:/testfiles/folder2
23
23
 
24
+ to test the app
25
+ ruby lib/hashthattree.rb spec/testfiles/1 spec/testfiles/2
26
+
27
+ ## Creating Documentation
28
+ Run the following command to generate the documantation
29
+
30
+ rdoc --exclude spec/testfiles
31
+
32
+ ## Create a gem
33
+
34
+ gem update --system
35
+ gem build hash-that-tree.gemspec
36
+ gem push hash-that-tree-0.0.1.gem
37
+
24
38
  ## Contributing
25
39
 
26
40
  1. Fork it
data/doc/Gemfile.html ADDED
@@ -0,0 +1,96 @@
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: Gemfile [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>source ‘<a href="https://rubygems.org">rubygems.org</a>’</p>
84
+
85
+ <p># Specify your gem’s dependencies in hash-that-tree.gemspec gemspec</p>
86
+
87
+ </div>
88
+
89
+ <div id="validator-badges">
90
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
91
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
92
+ Rdoc Generator</a> 2</small>.</p>
93
+ </div>
94
+ </body>
95
+ </html>
96
+
@@ -0,0 +1,258 @@
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
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: HashThatTree::FileHashResults</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="../index.html">Home</a>
25
+ <a href="../index.html#classes">Classes</a>
26
+ <a href="../index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="../lib/hashthattree_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/hashthattree.rb">lib/hashthattree.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-new">::new</a></li>
69
+
70
+ </ul>
71
+ </div>
72
+
73
+
74
+
75
+ </div>
76
+
77
+ <div id="project-metadata">
78
+
79
+
80
+ <div id="fileindex-section" class="section project-section">
81
+ <h3 class="section-header">Files</h3>
82
+ <ul>
83
+
84
+ <li class="file"><a href="../Gemfile.html">Gemfile</a></li>
85
+
86
+ <li class="file"><a href="../LICENSE_txt.html">LICENSE.txt</a></li>
87
+
88
+ <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
89
+
90
+ </ul>
91
+ </div>
92
+
93
+
94
+ <div id="classindex-section" class="section project-section">
95
+ <h3 class="section-header">Class/Module Index
96
+ <span class="search-toggle"><img src="../images/find.png"
97
+ height="16" width="16" alt="[+]"
98
+ title="show/hide quicksearch" /></span></h3>
99
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
100
+ <fieldset>
101
+ <legend>Quicksearch</legend>
102
+ <input type="text" name="quicksearch" value=""
103
+ class="quicksearch-field" />
104
+ </fieldset>
105
+ </form>
106
+
107
+ <ul class="link-list">
108
+
109
+ <li><a href="../HashThatTree.html">HashThatTree</a></li>
110
+
111
+ <li><a href="../HashThatTree/FileHashResults.html">HashThatTree::FileHashResults</a></li>
112
+
113
+ <li><a href="../HashThatTree/MD5Compare.html">HashThatTree::MD5Compare</a></li>
114
+
115
+ </ul>
116
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
117
+ </div>
118
+
119
+
120
+ </div>
121
+ </div>
122
+
123
+ <div id="documentation">
124
+ <h1 class="class">HashThatTree::FileHashResults</h1>
125
+
126
+ <div id="description" class="description">
127
+
128
+ <p>Container for the results of the file comparisson</p>
129
+
130
+ </div><!-- description -->
131
+
132
+
133
+
134
+
135
+ <div id="5Buntitled-5D" class="documentation-section">
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+ <!-- Attributes -->
144
+ <div id="attribute-method-details" class="method-section section">
145
+ <h3 class="section-header">Attributes</h3>
146
+
147
+
148
+ <div id="file_hash1-attribute-method" class="method-detail">
149
+ <a name="file_hash1"></a>
150
+
151
+ <a name="file_hash1="></a>
152
+
153
+ <div class="method-heading attribute-method-heading">
154
+ <span class="method-name">file_hash1</span><span
155
+ class="attribute-access-type">[RW]</span>
156
+ </div>
157
+
158
+ <div class="method-description">
159
+
160
+
161
+
162
+ </div>
163
+ </div>
164
+
165
+ <div id="file_hash2-attribute-method" class="method-detail">
166
+ <a name="file_hash2"></a>
167
+
168
+ <a name="file_hash2="></a>
169
+
170
+ <div class="method-heading attribute-method-heading">
171
+ <span class="method-name">file_hash2</span><span
172
+ class="attribute-access-type">[RW]</span>
173
+ </div>
174
+
175
+ <div class="method-description">
176
+
177
+
178
+
179
+ </div>
180
+ </div>
181
+
182
+ <div id="file_name-attribute-method" class="method-detail">
183
+ <a name="file_name"></a>
184
+
185
+ <a name="file_name="></a>
186
+
187
+ <div class="method-heading attribute-method-heading">
188
+ <span class="method-name">file_name</span><span
189
+ class="attribute-access-type">[RW]</span>
190
+ </div>
191
+
192
+ <div class="method-description">
193
+
194
+
195
+
196
+ </div>
197
+ </div>
198
+
199
+ </div><!-- attribute-method-details -->
200
+
201
+
202
+ <!-- Methods -->
203
+
204
+ <div id="public-class-method-details" class="method-section section">
205
+ <h3 class="section-header">Public Class Methods</h3>
206
+
207
+
208
+ <div id="new-method" class="method-detail ">
209
+ <a name="method-c-new"></a>
210
+
211
+
212
+ <div class="method-heading">
213
+ <span class="method-name">new</span><span
214
+ class="method-args">(file_name, file_hash1, file_hash2)</span>
215
+ <span class="method-click-advice">click to toggle source</span>
216
+ </div>
217
+
218
+
219
+ <div class="method-description">
220
+
221
+
222
+
223
+
224
+
225
+ <div class="method-source-code" id="new-source">
226
+ <pre>
227
+ <span class="ruby-comment"># File lib/hashthattree.rb, line 80</span>
228
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file_name</span>, <span class="ruby-identifier">file_hash1</span>, <span class="ruby-identifier">file_hash2</span>)
229
+ <span class="ruby-ivar">@file_name</span> = <span class="ruby-identifier">file_name</span>
230
+ <span class="ruby-ivar">@file_hash1</span> = <span class="ruby-identifier">file_hash1</span>
231
+ <span class="ruby-ivar">@file_hash2</span> = <span class="ruby-identifier">file_hash2</span>
232
+ <span class="ruby-keyword">end</span></pre>
233
+ </div><!-- new-source -->
234
+
235
+ </div>
236
+
237
+
238
+
239
+
240
+ </div><!-- new-method -->
241
+
242
+
243
+ </div><!-- public-class-method-details -->
244
+
245
+ </div><!-- 5Buntitled-5D -->
246
+
247
+
248
+ </div><!-- documentation -->
249
+
250
+ <div id="validator-badges">
251
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
252
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
253
+ Rdoc Generator</a> 2</small>.</p>
254
+ </div>
255
+
256
+ </body>
257
+ </html>
258
+