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

Commit

Permalink
add hex2bin & bin2hex
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Apr 13, 2020
1 parent 6efb6c7 commit 2759c3e
Show file tree
Hide file tree
Showing 17 changed files with 613 additions and 34 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Layout/HashAlignment:
Layout/LineLength:
Include:
- 'lib/**/*.rb'
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
Expand Down
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:
ctf-party (1.1.0)
ctf-party (1.2.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +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
- hex: `hex2dec`, `dec2hex`, `to_hex`, `from_hex`, `hex2bin`, `bin2hex` and bang versions

## References

Expand Down
11 changes: 11 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [1.2.0]

- new hexadecimal methods:
- normal: `hex2bin`, `bin2hex`
- in-place: `hex2bin!`, `bin2hex!`

**Chore**

- Updated dependencies
- Updated rubocop rules

## [1.1.0]

**Features**
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +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
- hex: `hex2dec`, `dec2hex`, `to_hex`, `from_hex`, `hex2bin`, `bin2hex` and bang versions

## References

Expand Down
Loading

0 comments on commit 2759c3e

Please sign in to comment.