bqm 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/{bqm.rb → bin/bqm} +4 -4
  3. metadata +4 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e2f3d5208930a05737b9a4a7689d4e3fd8a3b75c7d2c914169008386c9fce38
4
- data.tar.gz: 349dfdeb788a612d2a4231a8a8ee05ead1631bb0d4743b28daad92d5f35d55f2
3
+ metadata.gz: 348a96aed509a774a1848651efa6a17d52aac51e47b2e229daeba4fb933771a6
4
+ data.tar.gz: b2262ae4e6b24773b97cd4e19e2f4ba4bcf9e1f2dc8d4af6da2653d30b02e56a
5
5
  SHA512:
6
- metadata.gz: 6a6089672981c16b887f00815e4f8ea9b3819792c12503cb862d3149cb75ed6c1422955cf2d6893d5bd4d9905dffaf55106c1982a88f82857af10591019611c3
7
- data.tar.gz: 4cce267816043816f8fd56046b6aa481e3d6d920274462b77da4766d5c23bfda99977aa4fb02256975f3dd8beb77d4b883c0171994019dc50b94843c33af0023
6
+ metadata.gz: 9dc21de90441bfc6add73d79b01c52ce5e530b28c94c62560913dea39805cb2615139a41da329ebba966d8aa964262ff6aaefc352b3c8246c43a2f9dc43465e5
7
+ data.tar.gz: ca1d114fdb1d024d4565d061ef669ecedaf89ecfe89be730658c8823b739a40ce2d9cadce380a47c6ed9079587b302c5b7ebb2773e9f7a2208e3040790a3866a
data/{bqm.rb → bin/bqm} RENAMED
@@ -6,7 +6,7 @@ require 'net/http'
6
6
 
7
7
  def find_dataset
8
8
  source_file = 'query-sets.json'
9
- source_file_paths = ['./data', '/usr/share/bqm/data', '~/.local/share/bqm/data']
9
+ source_file_paths = ['./data', "#{__dir__}/../data", '/usr/share/bqm/data', '~/.local/share/bqm/data']
10
10
  source_file_paths.each do |path|
11
11
  candidate = "#{path}/#{source_file}"
12
12
  return candidate if File.file?(candidate) && File.readable?(candidate)
@@ -54,11 +54,11 @@ if __FILE__ == $PROGRAM_NAME
54
54
  require 'optparse'
55
55
  options = {}
56
56
  OptionParser.new do |parser|
57
- parser.banner = 'Usage: bqm.rb [options]'
57
+ parser.banner = 'Usage: bqm [options]'
58
58
 
59
59
  parser.on('-o', '--output-path PATH', 'Path where to store the query file')
60
60
  parser.separator ''
61
- parser.separator 'Example: bqm.rb -o ~/.config/bloodhound/customqueries.json'
61
+ parser.separator 'Example: bqm -o ~/.config/bloodhound/customqueries.json'
62
62
  end.parse!(into: options)
63
63
 
64
64
  out = options[:'output-path']
@@ -68,6 +68,6 @@ if __FILE__ == $PROGRAM_NAME
68
68
  file.write(json)
69
69
  end
70
70
  else
71
- puts 'Help: bqm.rb -h'
71
+ puts 'Help: bqm -h'
72
72
  end
73
73
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bqm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre ZANNI
8
8
  autorequire:
9
- bindir: "."
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-11-04 00:00:00.000000000 Z
12
12
  dependencies: []
@@ -14,13 +14,12 @@ description: Deduplicate custom BloudHound queries from different datasets and m
14
14
  them in one customqueries.json file.
15
15
  email: alexandre.zanni@europe.com
16
16
  executables:
17
- - bqm.rb
17
+ - bqm
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - "./bqm.rb"
22
21
  - LICENSE
23
- - bqm.rb
22
+ - bin/bqm
24
23
  - data/query-sets.json
25
24
  homepage: https://github.com/Acceis/bqm
26
25
  licenses: