haiti-hash 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +2 -1
  3. data/bin/haiti +9 -15
  4. data/lib/haiti/version.rb +1 -1
  5. metadata +22 -72
  6. data/.editorconfig +0 -21
  7. data/.gitignore +0 -8
  8. data/.rubocop.yml +0 -25
  9. data/.yardopts +0 -4
  10. data/.yardopts-dev +0 -6
  11. data/Gemfile +0 -6
  12. data/Gemfile.lock +0 -56
  13. data/README.md +0 -33
  14. data/Rakefile +0 -10
  15. data/docs/.nojekyll +0 -0
  16. data/docs/CHANGELOG.md +0 -9
  17. data/docs/README.md +0 -22
  18. data/docs/_coverpage.md +0 -15
  19. data/docs/_media/logo.png +0 -0
  20. data/docs/_navbar.md +0 -2
  21. data/docs/_sidebar.md +0 -15
  22. data/docs/about.md +0 -5
  23. data/docs/index.html +0 -31
  24. data/docs/pages/demo.md +0 -3
  25. data/docs/pages/documentation.md +0 -34
  26. data/docs/pages/install.md +0 -90
  27. data/docs/pages/publishing.md +0 -39
  28. data/docs/pages/quick-start.md +0 -39
  29. data/docs/pages/usage.md +0 -58
  30. data/docs/vendor/docsify.js +0 -1
  31. data/docs/vendor/plugins/emoji.min.js +0 -1
  32. data/docs/vendor/plugins/search.min.js +0 -1
  33. data/docs/vendor/prismjs/components/prism-ruby.min.js +0 -1
  34. data/docs/vendor/themes/vue.css +0 -1
  35. data/docs/why.md +0 -35
  36. data/docs/yard/HashIdentifier.html +0 -479
  37. data/docs/yard/HashIdentifier/Chf.html +0 -590
  38. data/docs/yard/Version.html +0 -126
  39. data/docs/yard/_index.html +0 -138
  40. data/docs/yard/class_list.html +0 -51
  41. data/docs/yard/css/common.css +0 -1
  42. data/docs/yard/css/full_list.css +0 -58
  43. data/docs/yard/css/style.css +0 -496
  44. data/docs/yard/file.LICENSE.html +0 -70
  45. data/docs/yard/file.README.html +0 -106
  46. data/docs/yard/file_list.html +0 -61
  47. data/docs/yard/frames.html +0 -17
  48. data/docs/yard/index.html +0 -106
  49. data/docs/yard/js/app.js +0 -303
  50. data/docs/yard/js/full_list.js +0 -216
  51. data/docs/yard/js/jquery.js +0 -4
  52. data/docs/yard/method_list.html +0 -115
  53. data/docs/yard/top-level-namespace.html +0 -112
  54. data/test/test_haiti.rb +0 -33
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'minitest/autorun'
4
- require 'haiti'
5
-
6
- class HaitiTest < Minitest::Test
7
- def setup
8
- @hash = '5f4dcc3b5aa765d61d8327deb882cf99'
9
- @hi = HashIdentifier.new(@hash)
10
- end
11
-
12
- def test_hashidentifier_hash
13
- assert_equal(@hash, @hi.hash)
14
- end
15
-
16
- def test_hashidentifier_type
17
- assert_instance_of(Array, @hi.type)
18
- assert_instance_of(HashIdentifier:: Chf, @hi.type[0])
19
- end
20
-
21
- def test_hashidentifier_type_non_existing
22
- hash = 'uuu'
23
- hi = HashIdentifier.new(hash)
24
- assert_empty(hi.type)
25
- end
26
-
27
- def test_chf
28
- assert_equal('MD2', @hi.type[0].name)
29
- assert_equal('md2', @hi.type[0].john)
30
- assert_nil(@hi.type[0].hashcat)
31
- assert_equal(false, @hi.type[0].extended)
32
- end
33
- end