Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
- lib: Fix a file loading path of prototypes
- doc: Fix gem name
- bin: remove useless haiti_setup
  • Loading branch information
noraj committed Nov 20, 2019
1 parent de1a5ff commit 6af320d
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 28 deletions.
7 changes: 0 additions & 7 deletions bin/haiti_setup

This file was deleted.

6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.0.0]

- lib: Fix a file loading path of prototypes
- doc: Fix gem name
- bin: remove useless haiti_setup

## [0.0.1]

- Initial version
2 changes: 1 addition & 1 deletion docs/pages/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Quick install

```
$ gem install haiti
$ gem install haiti-hash
```

## Default usage: CLI
Expand Down
6 changes: 3 additions & 3 deletions docs/yard/HashIdentifier.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h2>
<dt id="PROTOTYPES-constant" class="">PROTOTYPES =

</dt>
<dd><pre class="code"><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>data/prototypes.json</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span></pre></dd>
<dd><pre class="code"><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid___dir__'>__dir__</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>../data/prototypes.json</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span></pre></dd>

</dl>

Expand Down Expand Up @@ -469,9 +469,9 @@ <h3 class="signature " id="type-instance_method">
</div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/HashIdentifier/Chf.html
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ <h3 class="signature " id="name-instance_method">
</div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/Version.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ <h2>
</div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ <h2>Namespace Listing A-Z</h2>
</div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/file.LICENSE.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<div id="content"><div id='filecontents'>The MIT License (MIT)<br/><br/>Copyright (c) 2019 Alexandre ZANNI<br/><br/>Permission is hereby granted, free of charge, to any person obtaining a copy<br/>of this software and associated documentation files (the &quot;Software&quot;), to deal<br/>in the Software without restriction, including without limitation the rights<br/>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br/>copies of the Software, and to permit persons to whom the Software is<br/>furnished to do so, subject to the following conditions:<br/><br/>The above copyright notice and this permission notice shall be included in<br/>all copies or substantial portions of the Software.<br/><br/>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br/>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br/>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br/>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br/>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br/>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br/>THE SOFTWARE.</div></div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/yard/file.README.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<div id="content"><div id='filecontents'><h1>HAITI</h1>

<p><a href="https://badge.fury.io/rb/haiti"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
<p><a href="https://badge.fury.io/rb/haiti-hash"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
<img src="https://img.shields.io/github/tag/Orange-Cyberdefense/haiti" alt="GitHub tag (latest SemVer)">
<a href="https://github.com/Orange-Cyberdefense/haiti/network"><img src="https://img.shields.io/github/forks/Orange-Cyberdefense/haiti" alt="GitHub forks"></a>
<a href="https://github.com/Orange-Cyberdefense/haiti/stargazers"><img src="https://img.shields.io/github/stars/Orange-Cyberdefense/haiti" alt="GitHub stars"></a>
Expand Down Expand Up @@ -96,9 +96,9 @@ <h2>Author</h2>
</div></div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/yard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<div id="content"><div id='filecontents'><h1>HAITI</h1>

<p><a href="https://badge.fury.io/rb/haiti"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
<p><a href="https://badge.fury.io/rb/haiti-hash"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
<img src="https://img.shields.io/github/tag/Orange-Cyberdefense/haiti" alt="GitHub tag (latest SemVer)">
<a href="https://github.com/Orange-Cyberdefense/haiti/network"><img src="https://img.shields.io/github/forks/Orange-Cyberdefense/haiti" alt="GitHub forks"></a>
<a href="https://github.com/Orange-Cyberdefense/haiti/stargazers"><img src="https://img.shields.io/github/stars/Orange-Cyberdefense/haiti" alt="GitHub stars"></a>
Expand Down Expand Up @@ -96,9 +96,9 @@ <h2>Author</h2>
</div></div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/top-level-namespace.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ <h2>Defined Under Namespace</h2>
</div>

<div id="footer">
Generated on Wed Oct 16 18:50:31 2019 by
Generated on Wed Nov 20 23:12:28 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.2).
0.9.20 (ruby-2.6.0).
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/haiti.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class HashIdentifier
# Constants
include Version
PROTOTYPES = JSON.parse(File.read('data/prototypes.json'))
PROTOTYPES = JSON.parse(File.read(File.join(__dir__, '../data/prototypes.json')))

# @return [String] the hash (as provided)
# @example
Expand Down

0 comments on commit 6af320d

Please sign in to comment.