Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Jul 13, 2020
1 parent c2c61db commit b9f2168
Show file tree
Hide file tree
Showing 30 changed files with 195 additions and 129 deletions.
61 changes: 53 additions & 8 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,76 @@
# Metrics
AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.7

# ~~~ Layout ~~~
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/HashAlignment:
Include:
- 'lib/**/*.rb'
Layout/LineLength:
Include:
- 'lib/**/*.rb'
Layout/SpaceAroundMethodCallOperator:
Enabled: true
# ~~~ Lint ~~~
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/DuplicateElsifCondition:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride :
Enabled: true
# ~~~ Metrics ~~~
Metrics/AbcSize:
Enabled: false
Metrics/BlockNesting:
Exclude:
- 'bin/*'
Metrics/ClassLength:
Max: 200
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/BlockNesting:
Exclude:
- 'bin/*'
Metrics/MethodLength:
Max: 25
Max: 30
Metrics/PerceivedComplexity:
Max: 10
# ~~~ Style ~~~
Style/AccessorGrouping:
Enabled: false # for yard
Style/ArrayCoercion:
Enabled: true
Style/BisectedAttrAccessor:
Enabled: false # for yard
Style/CaseLikeIf:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/FormatStringToken:
Enabled: false # https://github.com/rubocop-hq/rubocop/issues/7944
Style/HashAsLastArrayItem:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/RedundantReturn:
Enabled: false
Style/HashLikeCase:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RedundantAssignment:
Enabled: true
Style/RedundantFetchBlock:
Enabled: true
Style/RedundantFileExtensionInRequire:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/RedundantReturn:
Enabled: false
Style/SlicingWithRange:
Enabled: true
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.7.1
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
haiti-hash (1.0.0)
haiti-hash (1.0.1)
docopt (~> 0.6)
paint (~> 2.2)

Expand Down
3 changes: 2 additions & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2019-2020 Alexandre ZANNI
Copyright (c) 2020-2020 Alexandre ZANNI
Copyright (c) 2019-2020 Alexandre ZANNI at Orange Cyberdefense

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# HAITI

[![Gem Version](https://badge.fury.io/rb/haiti-hash.svg)](https://badge.fury.io/rb/haiti-hash)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/Orange-Cyberdefense/haiti)
[![GitHub forks](https://img.shields.io/github/forks/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/network)
[![GitHub stars](https://img.shields.io/github/stars/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/stargazers)
[![GitHub license](https://img.shields.io/github/license/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/blob/master/LICENSE.txt)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/noraj/haiti)
[![GitHub forks](https://img.shields.io/github/forks/noraj/haiti)](https://github.com/noraj/haiti/network)
[![GitHub stars](https://img.shields.io/github/stars/noraj/haiti)](https://github.com/noraj/haiti/stargazers)
[![GitHub license](https://img.shields.io/github/license/noraj/haiti)](https://github.com/noraj/haiti/blob/master/LICENSE.txt)
[![Rawsec's CyberSecurity Inventory](https://inventory.rawsec.ml/img/badges/Rawsec-inventoried-FF5050_flat.svg)](https://inventory.rawsec.ml/tools.html#Haiti)

[![Packaging status](https://repology.org/badge/vertical-allrepos/haiti.svg)](https://repology.org/project/haiti/versions)

![](https://orange-cyberdefense.github.io/haiti/_media/logo.png)
![](https://noraj.github.io/haiti/_media/logo.png)

> _**HA**sh **I**den**T**if**I**er_
Expand All @@ -26,8 +26,8 @@ A CLI tool to identify the hash type of a given hash.

## References

Homepage / Documentation: https://orange-cyberdefense.github.io/haiti/
Homepage / Documentation: https://noraj.github.io/haiti/

## Author

Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
Made by Alexandre ZANNI ([@noraj](https://pwn.by/noraj/)).
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
## [Unreleased]

## [1.0.1]

- bin: code simplification & lint
- test: code lint
- repo: From from [Orange-Cyberdefense/rabid](https://github.com/Orange-Cyberdefense/rabid) to [noraj/rabid](https://github.com/noraj/rabid/)
- dependencies: update
- rubocop: new rules for new cops
- deprecation: now requires ruby 2.7+ instead of 2.4+

## [1.0.0]

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ A CLI tool to identify the hash type of a given hash.

## References

Homepage / Documentation: https://orange-cyberdefense.github.io/haiti/
Homepage / Documentation: https://noraj.github.io/haiti/

## Author

Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
Made by Alexandre ZANNI ([@noraj](https://pwn.by/noraj/)).
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- CLI tool & library
- Hackable

[GitHub](https://github.com/Orange-Cyberdefense/haiti/)
[GitHub](https://github.com/noraj/haiti/)
[Get Started](pages/quick-start?id=quick-start)

![color](#ffffff)
2 changes: 1 addition & 1 deletion docs/_navbar.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- [Home](/)
- [Source](https://github.com/Orange-Cyberdefense/haiti/)
- [Source](https://github.com/noraj/haiti/)
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script>
window.$docsify = {
name: 'HAITI',
repo: 'https://github.com/Orange-Cyberdefense/haiti/',
repo: 'https://github.com/noraj/haiti/',
loadSidebar: true,
subMaxLevel: 2,
loadNavbar: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ docsify serve docs

The output directory of the library documentation will be `docs/yard`.

You can consult it online [here](https://orange-cyberdefense.github.io/haiti/yard/).
You can consult it online [here](https://noraj.github.io/haiti/yard/).

### Building locally: for library users

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ gem install --development haiti-hash
Just replace `x.x.x` with the gem version you see after `gem build`.

```
$ git clone https://github.com/Orange-Cyberdefense/haiti.git haiti
$ git clone https://github.com/noraj/haiti.git haiti
$ cd haiti
$ gem install bundler
$ bundler install
Expand Down
16 changes: 8 additions & 8 deletions docs/yard/HashIdentifier.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<title>
Class: HashIdentifier

&mdash; Documentation by YARD 0.9.20
&mdash; Documentation by YARD 0.9.25

</title>

<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" />

<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />

<script type="text/javascript" charset="utf-8">
<script type="text/javascript">
pathId = "HashIdentifier";
relpath = '';
</script>
Expand Down Expand Up @@ -347,7 +347,7 @@ <h3 class="signature first" id="hash-instance_method">
</h3><div class="docstring">
<div class="discussion">

<p>Returns the hash (as provided)</p>
<p>Returns the hash (as provided).</p>


</div>
Expand Down Expand Up @@ -416,7 +416,7 @@ <h3 class="signature " id="type-instance_method">
</h3><div class="docstring">
<div class="discussion">

<p>Returns list of <span class='object_link'><a href="HashIdentifier/Chf.html" title="HashIdentifier::Chf (class)">Chf</a></span> objects, representing the identified hashes</p>
<p>Returns list of <span class='object_link'><a href="HashIdentifier/Chf.html" title="HashIdentifier::Chf (class)">Chf</a></span> objects, representing the identified hashes.</p>


</div>
Expand Down Expand Up @@ -469,9 +469,9 @@ <h3 class="signature " id="type-instance_method">
</div>

<div id="footer">
Generated on Wed Nov 20 23:12:28 2019 by
Generated on Mon Jul 13 23:16:37 2020 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.0).
0.9.25 (ruby-2.7.1).
</div>

</div>
Expand Down
16 changes: 8 additions & 8 deletions docs/yard/HashIdentifier/Chf.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<title>
Class: HashIdentifier::Chf

&mdash; Documentation by YARD 0.9.20
&mdash; Documentation by YARD 0.9.25

</title>

<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="../css/style.css" type="text/css" />

<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />

<script type="text/javascript" charset="utf-8">
<script type="text/javascript">
pathId = "HashIdentifier::Chf";
relpath = '../';
</script>
Expand Down Expand Up @@ -290,7 +290,7 @@ <h3 class="signature first" id="initialize-instance_method">
</h3><div class="docstring">
<div class="discussion">

<p>Returns a new instance of Chf</p>
<p>Returns a new instance of Chf.</p>


</div>
Expand Down Expand Up @@ -527,7 +527,7 @@ <h3 class="signature " id="name-instance_method">
</h3><div class="docstring">
<div class="discussion">

<p>Returns name of the identified hash type</p>
<p>Returns name of the identified hash type.</p>


</div>
Expand Down Expand Up @@ -580,9 +580,9 @@ <h3 class="signature " id="name-instance_method">
</div>

<div id="footer">
Generated on Wed Nov 20 23:12:28 2019 by
Generated on Mon Jul 13 23:16:37 2020 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.0).
0.9.25 (ruby-2.7.1).
</div>

</div>
Expand Down
14 changes: 7 additions & 7 deletions docs/yard/Version.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<title>
Module: Version

&mdash; Documentation by YARD 0.9.20
&mdash; Documentation by YARD 0.9.25

</title>

<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" />

<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />

<script type="text/javascript" charset="utf-8">
<script type="text/javascript">
pathId = "Version";
relpath = '';
</script>
Expand Down Expand Up @@ -100,7 +100,7 @@ <h2>
<dt id="VERSION-constant" class="">VERSION =

</dt>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.0.1</span><span class='tstring_end'>&#39;</span></span></pre></dd>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.0.1</span><span class='tstring_end'>&#39;</span></span></pre></dd>

</dl>

Expand All @@ -116,9 +116,9 @@ <h2>
</div>

<div id="footer">
Generated on Wed Nov 20 23:12:28 2019 by
Generated on Mon Jul 13 23:16:37 2020 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.0).
0.9.25 (ruby-2.7.1).
</div>

</div>
Expand Down
14 changes: 7 additions & 7 deletions docs/yard/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Documentation by YARD 0.9.20
Documentation by YARD 0.9.25

</title>

<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" />

<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />

<script type="text/javascript" charset="utf-8">
<script type="text/javascript">
pathId = null;
relpath = '';
</script>
Expand Down Expand Up @@ -52,7 +52,7 @@
<div class="clear"></div>
</div>

<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.20</h1>
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.25</h1>
<div id="listing">
<h1 class="alphaindex">Alphabetic Index</h1>

Expand Down Expand Up @@ -128,9 +128,9 @@ <h2>Namespace Listing A-Z</h2>
</div>

<div id="footer">
Generated on Wed Nov 20 23:12:28 2019 by
Generated on Mon Jul 13 23:16:37 2020 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.0).
0.9.25 (ruby-2.7.1).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/class_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8" />

<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" />

<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />



Expand Down
Loading

0 comments on commit b9f2168

Please sign in to comment.