haiti-hash 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea489f10f5c1dbe663cde1ff954aa0883f4a8c75e317a5a88bba47a6bc806524
4
- data.tar.gz: 79c1620f169053f58a53a45dc2727bb6cbf180aa75c9de0969909a7ac1946e98
3
+ metadata.gz: 83a76bf35790ea28f13c07002017de77173607742efb4e07ac36b6593c2523ef
4
+ data.tar.gz: e24e527024e10fb6d963a3d4c219350f5e0e6672d2d0402b9116969600257685
5
5
  SHA512:
6
- metadata.gz: 6cc3b6b014785fe7fee794af3a90c812b42bcb3a5eb50a413736faac263f1f5e2c1093bc2d589f57a9cb009794082e692cff15a4d6cbb2d10619c80cfc99c1bf
7
- data.tar.gz: f1d02e7486b9126b997a198fd3ffcb889686378c227da43fc8c03cc2d3e9cae1174a9af32afa5355afa6c4c6ad74f9a6bc8dc5258d0f3f422f489abe225d233f
6
+ metadata.gz: a32fbcb484a2ebed6158255ad0d23741918ef6f3c5572165da3ec5c04b20d931b204cf74c5029b42cc2a9bd3e350b5b028e75242b8569646b8e35373cf3fc78f
7
+ data.tar.gz: 2d7620a42d9144b80a19d046e6da09690ac5d23cd527c5bfb0fdc1cb101681c4abb2b6a6f810db4c649f4e2b4030b28e4ff5f85388938d8e90401b7b6797e6af
data/Gemfile.lock CHANGED
@@ -17,15 +17,15 @@ GEM
17
17
  i18n (1.7.0)
18
18
  concurrent-ruby (~> 1.0)
19
19
  jaro_winkler (1.5.3)
20
- minitest (5.12.2)
20
+ minitest (5.13.0)
21
21
  paint (2.1.1)
22
22
  parallel (1.18.0)
23
23
  parser (2.6.5.0)
24
24
  ast (~> 2.4.0)
25
25
  rainbow (3.0.0)
26
- rake (13.0.0)
26
+ rake (13.0.1)
27
27
  redcarpet (3.5.0)
28
- rubocop (0.75.1)
28
+ rubocop (0.76.0)
29
29
  jaro_winkler (~> 1.5.1)
30
30
  parallel (~> 1.10)
31
31
  parser (>= 2.6)
data/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # HAITI
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/haiti.svg)](https://badge.fury.io/rb/haiti-hash)
3
+ [![Gem Version](https://badge.fury.io/rb/haiti-hash.svg)](https://badge.fury.io/rb/haiti-hash)
4
4
  ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/Orange-Cyberdefense/haiti)
5
5
  [![GitHub forks](https://img.shields.io/github/forks/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/network)
6
6
  [![GitHub stars](https://img.shields.io/github/stars/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/stargazers)
7
7
  [![GitHub license](https://img.shields.io/github/license/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/blob/master/LICENSE.txt)
8
+ [![Rawsec's CyberSecurity Inventory](https://inventory.rawsec.ml/img/badges/Rawsec-inventoried-FF5050_flat.svg)](https://inventory.rawsec.ml/tools.html#Haiti)
8
9
 
9
10
  [![Packaging status](https://repology.org/badge/vertical-allrepos/haiti.svg)](https://repology.org/project/haiti/versions)
10
11
 
data/docs/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.0.0]
2
+
3
+ - lib: Fix a file loading path of prototypes
4
+ - doc: Fix gem name
5
+ - bin: remove useless haiti_setup
6
+
1
7
  ## [0.0.1]
2
8
 
3
9
  - Initial version
@@ -3,7 +3,7 @@
3
3
  ## Quick install
4
4
 
5
5
  ```
6
- $ gem install haiti
6
+ $ gem install haiti-hash
7
7
  ```
8
8
 
9
9
  ## Default usage: CLI
@@ -139,7 +139,7 @@
139
139
  <dt id="PROTOTYPES-constant" class="">PROTOTYPES =
140
140
 
141
141
  </dt>
142
- <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>
142
+ <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>
143
143
 
144
144
  </dl>
145
145
 
@@ -469,9 +469,9 @@
469
469
  </div>
470
470
 
471
471
  <div id="footer">
472
- Generated on Wed Oct 16 18:50:31 2019 by
472
+ Generated on Wed Nov 20 23:12:28 2019 by
473
473
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
474
- 0.9.20 (ruby-2.6.2).
474
+ 0.9.20 (ruby-2.6.0).
475
475
  </div>
476
476
 
477
477
  </div>
@@ -580,9 +580,9 @@
580
580
  </div>
581
581
 
582
582
  <div id="footer">
583
- Generated on Wed Oct 16 18:50:31 2019 by
583
+ Generated on Wed Nov 20 23:12:28 2019 by
584
584
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
585
- 0.9.20 (ruby-2.6.2).
585
+ 0.9.20 (ruby-2.6.0).
586
586
  </div>
587
587
 
588
588
  </div>
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Wed Oct 16 18:50:31 2019 by
119
+ Generated on Wed Nov 20 23:12:28 2019 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.9.20 (ruby-2.6.2).
121
+ 0.9.20 (ruby-2.6.0).
122
122
  </div>
123
123
 
124
124
  </div>
@@ -128,9 +128,9 @@
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Wed Oct 16 18:50:31 2019 by
131
+ Generated on Wed Nov 20 23:12:28 2019 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
- 0.9.20 (ruby-2.6.2).
133
+ 0.9.20 (ruby-2.6.0).
134
134
  </div>
135
135
 
136
136
  </div>
@@ -60,9 +60,9 @@
60
60
  <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>
61
61
 
62
62
  <div id="footer">
63
- Generated on Wed Oct 16 18:50:31 2019 by
63
+ Generated on Wed Nov 20 23:12:28 2019 by
64
64
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
65
- 0.9.20 (ruby-2.6.2).
65
+ 0.9.20 (ruby-2.6.0).
66
66
  </div>
67
67
 
68
68
  </div>
@@ -59,7 +59,7 @@
59
59
 
60
60
  <div id="content"><div id='filecontents'><h1>HAITI</h1>
61
61
 
62
- <p><a href="https://badge.fury.io/rb/haiti"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
62
+ <p><a href="https://badge.fury.io/rb/haiti-hash"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
63
63
  <img src="https://img.shields.io/github/tag/Orange-Cyberdefense/haiti" alt="GitHub tag (latest SemVer)">
64
64
  <a href="https://github.com/Orange-Cyberdefense/haiti/network"><img src="https://img.shields.io/github/forks/Orange-Cyberdefense/haiti" alt="GitHub forks"></a>
65
65
  <a href="https://github.com/Orange-Cyberdefense/haiti/stargazers"><img src="https://img.shields.io/github/stars/Orange-Cyberdefense/haiti" alt="GitHub stars"></a>
@@ -96,9 +96,9 @@
96
96
  </div></div>
97
97
 
98
98
  <div id="footer">
99
- Generated on Wed Oct 16 18:50:31 2019 by
99
+ Generated on Wed Nov 20 23:12:28 2019 by
100
100
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
101
- 0.9.20 (ruby-2.6.2).
101
+ 0.9.20 (ruby-2.6.0).
102
102
  </div>
103
103
 
104
104
  </div>
data/docs/yard/index.html CHANGED
@@ -59,7 +59,7 @@
59
59
 
60
60
  <div id="content"><div id='filecontents'><h1>HAITI</h1>
61
61
 
62
- <p><a href="https://badge.fury.io/rb/haiti"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
62
+ <p><a href="https://badge.fury.io/rb/haiti-hash"><img src="https://badge.fury.io/rb/haiti.svg" alt="Gem Version"></a>
63
63
  <img src="https://img.shields.io/github/tag/Orange-Cyberdefense/haiti" alt="GitHub tag (latest SemVer)">
64
64
  <a href="https://github.com/Orange-Cyberdefense/haiti/network"><img src="https://img.shields.io/github/forks/Orange-Cyberdefense/haiti" alt="GitHub forks"></a>
65
65
  <a href="https://github.com/Orange-Cyberdefense/haiti/stargazers"><img src="https://img.shields.io/github/stars/Orange-Cyberdefense/haiti" alt="GitHub stars"></a>
@@ -96,9 +96,9 @@
96
96
  </div></div>
97
97
 
98
98
  <div id="footer">
99
- Generated on Wed Oct 16 18:50:31 2019 by
99
+ Generated on Wed Nov 20 23:12:28 2019 by
100
100
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
101
- 0.9.20 (ruby-2.6.2).
101
+ 0.9.20 (ruby-2.6.0).
102
102
  </div>
103
103
 
104
104
  </div>
@@ -102,9 +102,9 @@
102
102
  </div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Wed Oct 16 18:50:31 2019 by
105
+ Generated on Wed Nov 20 23:12:28 2019 by
106
106
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
- 0.9.20 (ruby-2.6.2).
107
+ 0.9.20 (ruby-2.6.0).
108
108
  </div>
109
109
 
110
110
  </div>
data/lib/haiti.rb CHANGED
@@ -10,7 +10,7 @@ require 'haiti/hash'
10
10
  class HashIdentifier
11
11
  # Constants
12
12
  include Version
13
- PROTOTYPES = JSON.parse(File.read('data/prototypes.json'))
13
+ PROTOTYPES = JSON.parse(File.read(File.join(__dir__, '../data/prototypes.json')))
14
14
 
15
15
  # @return [String] the hash (as provided)
16
16
  # @example
data/lib/haiti/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Version
4
- VERSION = '0.0.1'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haiti-hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre ZANNI
@@ -155,7 +155,6 @@ email: alexandre.zanni@engineer.com
155
155
  executables:
156
156
  - haiti
157
157
  - haiti_console
158
- - haiti_setup
159
158
  extensions: []
160
159
  extra_rdoc_files: []
161
160
  files:
@@ -171,7 +170,6 @@ files:
171
170
  - Rakefile
172
171
  - bin/haiti
173
172
  - bin/haiti_console
174
- - bin/haiti_setup
175
173
  - data/prototypes.json
176
174
  - docs/.nojekyll
177
175
  - docs/CHANGELOG.md
data/bin/haiti_setup DELETED
@@ -1,7 +0,0 @@
1
-
2
- #!/usr/bin/env bash
3
- set -euo pipefail
4
- IFS=$'\n\t'
5
- set -vx
6
-
7
- bundle install