Skip to content

Commit b4129b4

Browse files
committed
rugrep & 0.0.3
1 parent 74c4af3 commit b4129b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+45783
-173
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 3.2.0
1+
ruby 3.2.2

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-
unisec (0.0.2)
4+
unisec (0.0.3)
55
ctf-party (~> 2.3)
66
dry-cli (~> 1.0)
77
paint (~> 2.3)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ A CLI tool and library to play with Unicode security.
2727
- Get all properties of a given Unicode character
2828
- List code points matching a Unicode property
2929
- List all Unicode properties name
30+
- **Regexp search**
31+
- Search for Unicode code point names by regular expression
3032
- **Size**
3133
- Code point, grapheme, UTF-8/UTF-16/UTF-32 byte/unit size
3234
- **Surrogates**
3335
- Code point ↔️ Surrogates conversion
3436
- **Versions**
35-
- Version of Unicode, ICU, CLDR, gems used in Unisec
37+
- Version of Unicode, ICU, CLDR, UCD, gems used in Unisec
3638

3739
## Installation
3840

data/DerivedName.txt

Lines changed: 44181 additions & 0 deletions
Large diffs are not rendered by default.

docs/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
## [unreleased]
22

3+
## [0.0.3]
4+
5+
**Features**
6+
7+
- Add a new class `Unisec::Rugrep` and CLI command `grep` to search for Unicode code point names by regular expression
8+
- Add a new method `Unisec::Properties.deccp2stdhexcp`: Convert from decimal code point to standardized format hexadecimal code point
9+
10+
**Chore**
11+
12+
- Enhance tests: `assert_equal(true, test)` ➡️ `assert(test)`
13+
- Enhance SEO: better description
14+
315
## [0.0.2]
416

517
- Add 2 new classes (and corresponding CLI command):

docs/pages/usage.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ List commands:
1010
$ unisec --help
1111
Commands:
1212
unisec confusables [SUBCOMMAND]
13+
unisec grep REGEXP # Search for Unicode code point names by regular expression
1314
unisec hexdump INPUT # Hexdump in all Unicode encodings
1415
unisec properties [SUBCOMMAND]
16+
unisec size INPUT # All kinf of size information about a Unicode string
1517
unisec surrogates [SUBCOMMAND]
18+
unisec versions # Version of anything related to Unicode as used in unisec
1619
```
1720

1821
List sub-commands:
@@ -50,6 +53,7 @@ Options:
5053
- **Confusables**
5154
- [List](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Confusables/List)
5255
- [Randomize](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Confusables/Randomize)
56+
- [Grep](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Grep)
5357
- [Hexdump](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Hexdump)
5458
- **Properties**
5559
- [Char](https://acceis.github.io/unisec/yard/Unisec/CLI/Commands/Properties/Char)
@@ -70,6 +74,7 @@ See examples in [the library documentation](https://acceis.github.io/unisec/yard
7074
- [Unisec::Confusables](https://acceis.github.io/unisec/yard/Unisec/Confusables)
7175
- [Unisec::Hexdump](https://acceis.github.io/unisec/yard/Unisec/Hexdump)
7276
- [Unisec::Properties](https://acceis.github.io/unisec/yard/Unisec/Properties)
77+
[Unisec::Rugrep](https://acceis.github.io/unisec/yard/Unisec/Rugrep)
7378
- [Unisec::Size](https://acceis.github.io/unisec/yard/Unisec/Size)
7479
- [Unisec::Surrogates](https://acceis.github.io/unisec/yard/Unisec/Surrogates)
7580
- [Unisec::Versions](https://acceis.github.io/unisec/yard/Unisec/Versions)

docs/yard/Integer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ <h3 class="signature " id="to_hex-instance_method">
304304
</div>
305305

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

312312
</div>

docs/yard/Unisec.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<dl>
8080
<dt>Defined in:</dt>
8181
<dd>lib/unisec/size.rb<span class="defines">,<br />
82-
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>
82+
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>
8383
</dd>
8484
</dl>
8585

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

9494

9595

96-
<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>
96+
<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>
9797

9898

9999
</p>
@@ -119,7 +119,7 @@ <h2>
119119

120120
</div>
121121
</dt>
122-
<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>
122+
<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>
123123

124124
</dl>
125125

@@ -135,9 +135,9 @@ <h2>
135135
</div>
136136

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

143143
</div>

docs/yard/Unisec/CLI.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<dl>
8080
<dt>Defined in:</dt>
8181
<dd>lib/unisec/cli/cli.rb<span class="defines">,<br />
82-
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>
82+
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>
8383
</dd>
8484
</dl>
8585

@@ -117,9 +117,9 @@ <h2>Overview</h2><div class="docstring">
117117
</div>
118118

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

125125
</div>

docs/yard/Unisec/CLI/Commands.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<dl>
8585
<dt>Defined in:</dt>
8686
<dd>lib/unisec/cli/cli.rb<span class="defines">,<br />
87-
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>
87+
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>
8888
</dd>
8989
</dl>
9090

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

109109

110110

111-
<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>
111+
<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>
112112

113113

114114
</p>
@@ -125,9 +125,9 @@ <h2>Overview</h2><div class="docstring">
125125
</div>
126126

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

133133
</div>

0 commit comments

Comments
 (0)