Skip to content

Commit

Permalink
rugrep & 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
azi-acceis committed Oct 18, 2023
1 parent 74c4af3 commit b4129b4
Show file tree
Hide file tree
Showing 57 changed files with 45,783 additions and 173 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.2.0
ruby 3.2.2
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:
unisec (0.0.2)
unisec (0.0.3)
ctf-party (~> 2.3)
dry-cli (~> 1.0)
paint (~> 2.3)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ A CLI tool and library to play with Unicode security.
- Get all properties of a given Unicode character
- List code points matching a Unicode property
- List all Unicode properties name
- **Regexp search**
- Search for Unicode code point names by regular expression
- **Size**
- Code point, grapheme, UTF-8/UTF-16/UTF-32 byte/unit size
- **Surrogates**
- Code point ↔️ Surrogates conversion
- **Versions**
- Version of Unicode, ICU, CLDR, gems used in Unisec
- Version of Unicode, ICU, CLDR, UCD, gems used in Unisec

## Installation

Expand Down
44,181 changes: 44,181 additions & 0 deletions data/DerivedName.txt

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
## [unreleased]

## [0.0.3]

**Features**

- Add a new class `Unisec::Rugrep` and CLI command `grep` to search for Unicode code point names by regular expression
- Add a new method `Unisec::Properties.deccp2stdhexcp`: Convert from decimal code point to standardized format hexadecimal code point

**Chore**

- Enhance tests: `assert_equal(true, test)` ➡️ `assert(test)`
- Enhance SEO: better description

## [0.0.2]

- Add 2 new classes (and corresponding CLI command):
Expand Down
5 changes: 5 additions & 0 deletions docs/pages/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ List commands:
$ unisec --help
Commands:
unisec confusables [SUBCOMMAND]
unisec grep REGEXP # Search for Unicode code point names by regular expression
unisec hexdump INPUT # Hexdump in all Unicode encodings
unisec properties [SUBCOMMAND]
unisec size INPUT # All kinf of size information about a Unicode string
unisec surrogates [SUBCOMMAND]
unisec versions # Version of anything related to Unicode as used in unisec
```

List sub-commands:
Expand Down Expand Up @@ -50,6 +53,7 @@ Options:
- **Confusables**
- [List](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Confusables/List)
- [Randomize](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Confusables/Randomize)
- [Grep](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Grep)
- [Hexdump](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Hexdump)
- **Properties**
- [Char](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Properties/Char)
Expand All @@ -70,6 +74,7 @@ See examples in [the library documentation](https://acceis.github.io/unisec/yard
- [Unisec::Confusables](https://acceis.github.io/unisec/yard/Unisec/Confusables)
- [Unisec::Hexdump](https://acceis.github.io/unisec/yard/Unisec/Hexdump)
- [Unisec::Properties](https://acceis.github.io/unisec/yard/Unisec/Properties)
[Unisec::Rugrep](https://acceis.github.io/unisec/yard/Unisec/Rugrep)
- [Unisec::Size](https://acceis.github.io/unisec/yard/Unisec/Size)
- [Unisec::Surrogates](https://acceis.github.io/unisec/yard/Unisec/Surrogates)
- [Unisec::Versions](https://acceis.github.io/unisec/yard/Unisec/Versions)
4 changes: 2 additions & 2 deletions docs/yard/Integer.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ <h3 class="signature " id="to_hex-instance_method">
</div>

<div id="footer">
Generated on Fri Aug 18 09:49:54 2023 by
Generated on Wed Oct 18 17:02:20 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.0).
0.9.34 (ruby-3.2.2).
</div>

</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/yard/Unisec.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<dl>
<dt>Defined in:</dt>
<dd>lib/unisec/size.rb<span class="defines">,<br />
lib/unisec/utils.rb,<br /> lib/unisec/cli/cli.rb,<br /> lib/unisec/hexdump.rb,<br /> lib/unisec/version.rb,<br /> lib/unisec/cli/size.rb,<br /> lib/unisec/versions.rb,<br /> lib/unisec/properties.rb,<br /> lib/unisec/surrogates.rb,<br /> lib/unisec/cli/hexdump.rb,<br /> lib/unisec/confusables.rb,<br /> lib/unisec/cli/versions.rb,<br /> lib/unisec/cli/properties.rb,<br /> lib/unisec/cli/surrogates.rb,<br /> lib/unisec/cli/confusables.rb</span>
lib/unisec/utils.rb,<br /> lib/unisec/rugrep.rb,<br /> lib/unisec/cli/cli.rb,<br /> lib/unisec/hexdump.rb,<br /> lib/unisec/version.rb,<br /> lib/unisec/cli/size.rb,<br /> lib/unisec/versions.rb,<br /> lib/unisec/cli/rugrep.rb,<br /> lib/unisec/properties.rb,<br /> lib/unisec/surrogates.rb,<br /> lib/unisec/cli/hexdump.rb,<br /> lib/unisec/confusables.rb,<br /> lib/unisec/cli/versions.rb,<br /> lib/unisec/cli/properties.rb,<br /> lib/unisec/cli/surrogates.rb,<br /> lib/unisec/cli/confusables.rb</span>
</dd>
</dl>

Expand All @@ -93,7 +93,7 @@ <h2>Defined Under Namespace</h2>



<strong class="classes">Classes:</strong> <span class='object_link'><a href="Unisec/Confusables.html" title="Unisec::Confusables (class)">Confusables</a></span>, <span class='object_link'><a href="Unisec/Hexdump.html" title="Unisec::Hexdump (class)">Hexdump</a></span>, <span class='object_link'><a href="Unisec/Properties.html" title="Unisec::Properties (class)">Properties</a></span>, <span class='object_link'><a href="Unisec/Size.html" title="Unisec::Size (class)">Size</a></span>, <span class='object_link'><a href="Unisec/Surrogates.html" title="Unisec::Surrogates (class)">Surrogates</a></span>, <span class='object_link'><a href="Unisec/Versions.html" title="Unisec::Versions (class)">Versions</a></span>
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Unisec/Confusables.html" title="Unisec::Confusables (class)">Confusables</a></span>, <span class='object_link'><a href="Unisec/Hexdump.html" title="Unisec::Hexdump (class)">Hexdump</a></span>, <span class='object_link'><a href="Unisec/Properties.html" title="Unisec::Properties (class)">Properties</a></span>, <span class='object_link'><a href="Unisec/Rugrep.html" title="Unisec::Rugrep (class)">Rugrep</a></span>, <span class='object_link'><a href="Unisec/Size.html" title="Unisec::Size (class)">Size</a></span>, <span class='object_link'><a href="Unisec/Surrogates.html" title="Unisec::Surrogates (class)">Surrogates</a></span>, <span class='object_link'><a href="Unisec/Versions.html" title="Unisec::Versions (class)">Versions</a></span>


</p>
Expand All @@ -119,7 +119,7 @@ <h2>

</div>
</dt>
<dd><pre class="code"><span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">0.0.2</span><span style="color:#710">'</span></span></pre></dd>
<dd><pre class="code"><span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">0.0.3</span><span style="color:#710">'</span></span></pre></dd>

</dl>

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

<div id="footer">
Generated on Fri Aug 18 09:49:54 2023 by
Generated on Wed Oct 18 17:02:20 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.0).
0.9.34 (ruby-3.2.2).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/yard/Unisec/CLI.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<dl>
<dt>Defined in:</dt>
<dd>lib/unisec/cli/cli.rb<span class="defines">,<br />
lib/unisec/cli/size.rb,<br /> lib/unisec/cli/hexdump.rb,<br /> lib/unisec/cli/versions.rb,<br /> lib/unisec/cli/properties.rb,<br /> lib/unisec/cli/surrogates.rb,<br /> lib/unisec/cli/confusables.rb</span>
lib/unisec/cli/size.rb,<br /> lib/unisec/cli/rugrep.rb,<br /> lib/unisec/cli/hexdump.rb,<br /> lib/unisec/cli/versions.rb,<br /> lib/unisec/cli/properties.rb,<br /> lib/unisec/cli/surrogates.rb,<br /> lib/unisec/cli/confusables.rb</span>
</dd>
</dl>

Expand Down Expand Up @@ -117,9 +117,9 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Fri Aug 18 09:49:54 2023 by
Generated on Wed Oct 18 17:02:20 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.0).
0.9.34 (ruby-3.2.2).
</div>

</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/yard/Unisec/CLI/Commands.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<dl>
<dt>Defined in:</dt>
<dd>lib/unisec/cli/cli.rb<span class="defines">,<br />
lib/unisec/cli/size.rb,<br /> lib/unisec/cli/hexdump.rb,<br /> lib/unisec/cli/versions.rb,<br /> lib/unisec/cli/properties.rb,<br /> lib/unisec/cli/surrogates.rb,<br /> lib/unisec/cli/confusables.rb</span>
lib/unisec/cli/size.rb,<br /> lib/unisec/cli/rugrep.rb,<br /> lib/unisec/cli/hexdump.rb,<br /> lib/unisec/cli/versions.rb,<br /> lib/unisec/cli/properties.rb,<br /> lib/unisec/cli/surrogates.rb,<br /> lib/unisec/cli/confusables.rb</span>
</dd>
</dl>

Expand All @@ -108,7 +108,7 @@ <h2>Overview</h2><div class="docstring">



<strong class="classes">Classes:</strong> <span class='object_link'><a href="Commands/Hexdump.html" title="Unisec::CLI::Commands::Hexdump (class)">Hexdump</a></span>, <span class='object_link'><a href="Commands/Size.html" title="Unisec::CLI::Commands::Size (class)">Size</a></span>, <span class='object_link'><a href="Commands/Versions.html" title="Unisec::CLI::Commands::Versions (class)">Versions</a></span>
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Commands/Grep.html" title="Unisec::CLI::Commands::Grep (class)">Grep</a></span>, <span class='object_link'><a href="Commands/Hexdump.html" title="Unisec::CLI::Commands::Hexdump (class)">Hexdump</a></span>, <span class='object_link'><a href="Commands/Size.html" title="Unisec::CLI::Commands::Size (class)">Size</a></span>, <span class='object_link'><a href="Commands/Versions.html" title="Unisec::CLI::Commands::Versions (class)">Versions</a></span>


</p>
Expand All @@ -125,9 +125,9 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Fri Aug 18 09:49:54 2023 by
Generated on Wed Oct 18 17:02:20 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.0).
0.9.34 (ruby-3.2.2).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/Unisec/CLI/Commands/Confusables.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ <h2>Overview</h2><div class="docstring">
</div>

<div id="footer">
Generated on Fri Aug 18 09:49:54 2023 by
Generated on Wed Oct 18 17:02:20 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.0).
0.9.34 (ruby-3.2.2).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/Unisec/CLI/Commands/Confusables/List.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ <h3 class="signature first" id="call-instance_method">
</div>

<div id="footer">
Generated on Fri Aug 18 09:49:54 2023 by
Generated on Wed Oct 18 17:02:21 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.0).
0.9.34 (ruby-3.2.2).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/Unisec/CLI/Commands/Confusables/Randomize.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ <h3 class="signature first" id="call-instance_method">
</div>

<div id="footer">
Generated on Fri Aug 18 09:49:54 2023 by
Generated on Wed Oct 18 17:02:21 2023 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.34 (ruby-3.2.0).
0.9.34 (ruby-3.2.2).
</div>

</div>
Expand Down
Loading

0 comments on commit b4129b4

Please sign in to comment.