Skip to content

Commit b9f2168

Browse files
committed
v1.0.1
1 parent c2c61db commit b9f2168

30 files changed

+195
-129
lines changed

.rubocop.yml

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,76 @@
1-
# Metrics
21
AllCops:
3-
TargetRubyVersion: 2.4
2+
TargetRubyVersion: 2.7
43

4+
# ~~~ Layout ~~~
5+
Layout/EmptyLinesAroundAttributeAccessor:
6+
Enabled: true
57
Layout/HashAlignment:
68
Include:
79
- 'lib/**/*.rb'
810
Layout/LineLength:
911
Include:
1012
- 'lib/**/*.rb'
13+
Layout/SpaceAroundMethodCallOperator:
14+
Enabled: true
15+
# ~~~ Lint ~~~
16+
Lint/DeprecatedOpenSSLConstant:
17+
Enabled: true
18+
Lint/DuplicateElsifCondition:
19+
Enabled: true
20+
Lint/MixedRegexpCaptureTypes:
21+
Enabled: true
22+
Lint/RaiseException:
23+
Enabled: true
24+
Lint/StructNewOverride :
25+
Enabled: true
26+
# ~~~ Metrics ~~~
1127
Metrics/AbcSize:
1228
Enabled: false
29+
Metrics/BlockNesting:
30+
Exclude:
31+
- 'bin/*'
1332
Metrics/ClassLength:
1433
Max: 200
1534
Metrics/CyclomaticComplexity:
1635
Enabled: false
17-
Metrics/BlockNesting:
18-
Exclude:
19-
- 'bin/*'
2036
Metrics/MethodLength:
21-
Max: 25
37+
Max: 30
2238
Metrics/PerceivedComplexity:
2339
Max: 10
40+
# ~~~ Style ~~~
41+
Style/AccessorGrouping:
42+
Enabled: false # for yard
43+
Style/ArrayCoercion:
44+
Enabled: true
45+
Style/BisectedAttrAccessor:
46+
Enabled: false # for yard
47+
Style/CaseLikeIf:
48+
Enabled: true
49+
Style/ExponentialNotation:
50+
Enabled: true
51+
Style/FormatStringToken:
52+
Enabled: false # https://github.com/rubocop-hq/rubocop/issues/7944
53+
Style/HashAsLastArrayItem:
54+
Enabled: true
2455
Style/HashEachMethods:
2556
Enabled: true
26-
Style/RedundantReturn:
27-
Enabled: false
57+
Style/HashLikeCase:
58+
Enabled: true
2859
Style/HashTransformKeys:
2960
Enabled: true
3061
Style/HashTransformValues:
3162
Enabled: true
63+
Style/RedundantAssignment:
64+
Enabled: true
65+
Style/RedundantFetchBlock:
66+
Enabled: true
67+
Style/RedundantFileExtensionInRequire:
68+
Enabled: true
69+
Style/RedundantRegexpCharacterClass:
70+
Enabled: true
71+
Style/RedundantRegexpEscape:
72+
Enabled: true
73+
Style/RedundantReturn:
74+
Enabled: false
75+
Style/SlicingWithRange:
76+
Enabled: true

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.7.1

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
haiti-hash (1.0.0)
4+
haiti-hash (1.0.1)
55
docopt (~> 0.6)
66
paint (~> 2.2)
77

LICENSE.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019-2020 Alexandre ZANNI
3+
Copyright (c) 2020-2020 Alexandre ZANNI
4+
Copyright (c) 2019-2020 Alexandre ZANNI at Orange Cyberdefense
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# HAITI
22

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

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

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

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

2727
## References
2828

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

3131
## Author
3232

33-
Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
33+
Made by Alexandre ZANNI ([@noraj](https://pwn.by/noraj/)).

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
## [Unreleased]
22

3+
## [1.0.1]
4+
35
- bin: code simplification & lint
6+
- test: code lint
7+
- repo: From from [Orange-Cyberdefense/rabid](https://github.com/Orange-Cyberdefense/rabid) to [noraj/rabid](https://github.com/noraj/rabid/)
8+
- dependencies: update
9+
- rubocop: new rules for new cops
10+
- deprecation: now requires ruby 2.7+ instead of 2.4+
411

512
## [1.0.0]
613

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ A CLI tool to identify the hash type of a given hash.
1515

1616
## References
1717

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

2020
## Author
2121

22-
Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
22+
Made by Alexandre ZANNI ([@noraj](https://pwn.by/noraj/)).

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- CLI tool & library
1010
- Hackable
1111

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

1515
![color](#ffffff)

docs/_navbar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
- [Home](/)
2-
- [Source](https://github.com/Orange-Cyberdefense/haiti/)
2+
- [Source](https://github.com/noraj/haiti/)

0 commit comments

Comments
 (0)