Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
v1.1.0 : added hex methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre ZANNI committed Jan 9, 2020
1 parent 0ac7f8d commit e1771ef
Show file tree
Hide file tree
Showing 28 changed files with 1,446 additions and 227 deletions.
8 changes: 4 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
AllCops:
TargetRubyVersion: 2.4

Layout/AlignHash:
Layout/HashAlignment:
Include:
- 'lib/**/*.rb'
Layout/LineLength:
Include:
- 'lib/**/*.rb'
Metrics/AbcSize:
Expand All @@ -11,9 +14,6 @@ Metrics/ClassLength:
Max: 200
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/LineLength:
Include:
- 'lib/**/*.rb'
Metrics/BlockNesting:
Exclude:
- 'bin/*'
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.0
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ctf-party (1.0.0)
ctf-party (1.1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -38,15 +38,15 @@ PLATFORMS
ruby

DEPENDENCIES
bundler (~> 2.0)
bundler (~> 2.1)
commonmarker (~> 0.20)
ctf-party!
github-markup (~> 3.0)
minitest (~> 5.11)
minitest (~> 5)
rake (~> 13.0)
redcarpet (~> 3.4)
rubocop (~> 0.63)
redcarpet (~> 3.5)
rubocop (~> 0.79)
yard (~> 0.9)

BUNDLED WITH
2.0.2
2.1.4
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ security researchers, bug bounty hunters, pentesters but mostly focused on CTF)
by patching the String class to add a short syntax of usual code patterns.
The philosophy is also to keep the library to be pure ruby (no dependencies)
and not to re-implement what another library is already doing well
(eg.[xorcist] for xor).
(eg. [xorcist] for xor).

[xorcist]:https://github.com/fny/xorcist

Expand Down Expand Up @@ -47,6 +47,7 @@ myvar.to_b64!
- digest: `md5`, `md5!`, `sha1`, `sha1!`, etc.
- flag: `flag`, `flag!`, `flag?` (apply/check a flag format)
- rot: `rot`, `rot!`, `rot13`, `rot13!`
- hex: `hex2dec`, `dec2hex`, `to_hex`, `from_hex` and bang versions

## References

Expand Down
8 changes: 4 additions & 4 deletions ctf_party.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ Gem::Specification.new do |s|

s.required_ruby_version = '~> 2.4'

s.add_development_dependency('bundler', '~> 2.0')
s.add_development_dependency('bundler', '~> 2.1')
s.add_development_dependency('commonmarker', '~> 0.20') # for GMF support in YARD
s.add_development_dependency('github-markup', '~> 3.0') # for GMF support in YARD
s.add_development_dependency('minitest', '~> 5.11')
s.add_development_dependency('minitest', '~> 5')
s.add_development_dependency('rake', '~> 13.0')
s.add_development_dependency('redcarpet', '~> 3.4') # for GMF support in YARD
s.add_development_dependency('rubocop', '~> 0.63')
s.add_development_dependency('redcarpet', '~> 3.5') # for GMF support in YARD
s.add_development_dependency('rubocop', '~> 0.79')
s.add_development_dependency('yard', '~> 0.9')
end
18 changes: 18 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## [1.1.0]

**Features**

- new hexadecimal methods:
- normal: `hex2dec`, `dec2hex`, `to_hex`, `from_hex`
- in-place: `hex2dec!`, `dec2hex!`, `to_hex!`, `from_hex!`

**Code**

- `to_b64!` and `from_b64!` code simplification
- yard internal references from implicit to explicit

**Chore**

- Updated dependencies
- Updated rubocop rules

## [1.0.0]

- Initial version
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ security researchers, bug bounty hunters, pentesters but mostly focused on CTF)
by patching the String class to add a short syntax of usual code patterns.
The philosophy is also to keep the library to be pure ruby (no dependencies)
and not to re-implement what another library is already doing well
(eg.[xorcist] for xor).
(eg. [xorcist] for xor).

[xorcist]:https://github.com/fny/xorcist

Expand Down Expand Up @@ -42,6 +42,7 @@ myvar.to_b64!
- digest: `md5`, `md5!`, `sha1`, `sha1!`, etc.
- flag: `flag`, `flag!`, `flag?` (apply/check a flag format)
- rot: `rot`, `rot!`, `rot13`, `rot13!`
- hex: `hex2dec`, `dec2hex`, `to_hex`, `from_hex` and bang versions

## References

Expand Down
Loading

0 comments on commit e1771ef

Please sign in to comment.