ronin-db 0.1.0.beta1 → 0.1.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +1 -0
  3. data/.yardopts +1 -1
  4. data/Gemfile +1 -6
  5. data/README.md +4 -2
  6. data/gemspec.yml +9 -2
  7. data/lib/ronin/db/cli/command.rb +1 -1
  8. data/lib/ronin/db/cli/commands/add.rb +1 -1
  9. data/lib/ronin/db/cli/commands/asn.rb +3 -3
  10. data/lib/ronin/db/cli/commands/creds.rb +1 -1
  11. data/lib/ronin/db/cli/commands/edit.rb +1 -1
  12. data/lib/ronin/db/cli/commands/emails.rb +1 -1
  13. data/lib/ronin/db/cli/commands/hosts.rb +1 -1
  14. data/lib/ronin/db/cli/commands/ips.rb +4 -2
  15. data/lib/ronin/db/cli/commands/irb.rb +1 -1
  16. data/lib/ronin/db/cli/commands/list.rb +1 -1
  17. data/lib/ronin/db/cli/commands/migrate.rb +1 -1
  18. data/lib/ronin/db/cli/commands/remove.rb +1 -1
  19. data/lib/ronin/db/cli/commands/urls.rb +1 -1
  20. data/lib/ronin/db/cli/database_command.rb +1 -1
  21. data/lib/ronin/db/cli/model_command.rb +1 -1
  22. data/lib/ronin/db/cli/modifiable.rb +2 -2
  23. data/lib/ronin/db/cli/resources_command.rb +1 -1
  24. data/lib/ronin/db/cli/ruby_shell.rb +1 -1
  25. data/lib/ronin/db/cli/uri_methods.rb +1 -1
  26. data/lib/ronin/db/cli.rb +6 -1
  27. data/lib/ronin/db/config_file.rb +1 -1
  28. data/lib/ronin/db/exceptions.rb +1 -1
  29. data/lib/ronin/db/home.rb +1 -1
  30. data/lib/ronin/db/root.rb +1 -1
  31. data/lib/ronin/db/version.rb +2 -2
  32. data/lib/ronin/db.rb +3 -3
  33. data/man/ronin-db-asn.1 +1 -1
  34. data/man/ronin-db-asn.1.md +1 -1
  35. data/ronin-db.gemspec +2 -1
  36. metadata +12 -22
  37. data/spec/cli/commands/add_spec.rb +0 -220
  38. data/spec/cli/commands/edit_spec.rb +0 -12
  39. data/spec/cli/commands/irb_spec.rb +0 -26
  40. data/spec/cli/database_command_spec.rb +0 -53
  41. data/spec/cli/model_command_spec.rb +0 -237
  42. data/spec/cli/ruby_shell_spec.rb +0 -14
  43. data/spec/cli/uri_methods_spec.rb +0 -190
  44. data/spec/spec_helper.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4f57bb04bf0c801058eac58f81ea47a012ae09fd436844aff792fbbc4a4d167
4
- data.tar.gz: 95b54bb12c66525fb558ef99e4189ef3bf87a4cf55c70eab95aa75b082e73699
3
+ metadata.gz: 468f70b82eba7138ce3c1ea282d220ad87a9d865da7c9f13ed4f5a307661b67c
4
+ data.tar.gz: 3efe49444483be7ce3b869f90d6703d305332a044ea29012899c084fa34c4737
5
5
  SHA512:
6
- metadata.gz: 16f1f97387b3b74a23c074d41fc0d91dfd5b4bc79d980666adb1b2f089904b471a777c5836abf729459cd2ef1664cf9fef2ab939fd6cb1ceccffe445535284ee
7
- data.tar.gz: a0fc97bb5026c89cb3d81e850d3eac919f37cbb9b225b3437f4cc937e1c3d96f5152c1cd50fbd03501b5f9afd207f2d5e2ee2df1f3a90338440f8e6ddad8b9ac
6
+ metadata.gz: 24a973e7288ab98d6fda7b2656dfa4c8b1a77c77f748d9c503b919c060ca4bfa99265633ea78e9ed8c440227a648d1e9c73cad945125ff04e052e066b7749924
7
+ data.tar.gz: 159845dfb488e516923af6d630639d886671aef9be41da0c2d5a572594638fa0d33b8f7de391ef075db78449260ca81daa0f5e2a6a40b2bc9ba7ba37d097c99e
@@ -21,6 +21,7 @@ jobs:
21
21
  uses: ruby/setup-ruby@v1
22
22
  with:
23
23
  ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
24
25
  - name: Install libsqlite3
25
26
  run: |
26
27
  sudo apt update -y && \
data/.yardopts CHANGED
@@ -1 +1 @@
1
- --markup markdown --title 'Ronin DB Documentation' --protected
1
+ --markup markdown --title 'Ronin::DB Documentation' --protected
data/Gemfile CHANGED
@@ -2,12 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'sqlite3', '~> 1.0', platform: :mri
6
-
7
- platform :jruby do
8
- gem 'jruby-openssl', '~> 0.7'
9
- gem 'activerecord-jdbcsqlite3-adapter', '~> 70.0.pre'
10
- end
5
+ gem 'jruby-openssl', '~> 0.7', platform: :jruby
11
6
 
12
7
  # gem 'command_kit', '0.4.0', github: 'postmodern/command_kit',
13
8
  # branch: 'main'
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![CI](https://github.com/ronin-rb/ronin-db/actions/workflows/ruby.yml/badge.svg)](https://github.com/ronin-rb/ronin-db/actions/workflows/ruby.yml)
4
4
  [![Code Climate](https://codeclimate.com/github/ronin-rb/ronin-db.svg)](https://codeclimate.com/github/ronin-rb/ronin-db)
5
+ [![Gem Version](https://badge.fury.io/rb/ronin-db.svg)](https://badge.fury.io/rb/ronin-db)
5
6
 
6
7
  * [Website](https://ronin-rb.dev)
7
8
  * [Source](https://github.com/ronin-rb/ronin-db)
@@ -204,7 +205,8 @@ and [ronin-db-activerecord].
204
205
  ## Requirements
205
206
 
206
207
  * [Ruby] >= 3.0.0
207
- * [libsqlite3][sqlite] ~> 1.0
208
+ * [libsqlite3][sqlite]
209
+ * [sqlite3][sqlite3]
208
210
  (or [activerecord-jdbcsqlite3-adapter] ~> 70.0.pre on JRuby)
209
211
  * [ronin-db-activerecord] ~> 0.1
210
212
  * [ronin-support] ~> 1.0
@@ -244,7 +246,7 @@ local database console.
244
246
 
245
247
  ## License
246
248
 
247
- Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
249
+ Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
248
250
 
249
251
  ronin-db is free software: you can redistribute it and/or modify
250
252
  it under the terms of the GNU Lesser General Public License as published
data/gemspec.yml CHANGED
@@ -13,6 +13,13 @@ email: postmodern.mod3@gmail.com
13
13
  homepage: https://ronin-rb.dev
14
14
  has_yard: true
15
15
 
16
+ metadata:
17
+ documentation_uri: https://ronin-rb.dev/docs/ronin-db
18
+ source_code_uri: https://github.com/ronin-rb/ronin-db
19
+ bug_tracker_uri: https://github.com/ronin-rb/ronin-db/issues
20
+ changelog_uri: https://github.com/ronin-rb/ronin-db/blob/main/ChangeLog.md
21
+ rubygems_mfa_required: 'true'
22
+
16
23
  generated_files:
17
24
  - man/ronin-db-add.1
18
25
  - man/ronin-db-asn.1
@@ -31,14 +38,14 @@ generated_files:
31
38
  required_ruby_version: ">= 3.0.0"
32
39
 
33
40
  ruby_dependencies:
34
- sqlite: ~> 1.0
41
+ sqlite3: ~> 1.0
35
42
 
36
43
  jruby_dependencies:
37
44
  activerecord-jdbcsqlite3-adapter: ~> 70.0.pre
38
45
 
39
46
  dependencies:
40
47
  # Ronin dependencies:
41
- ronin-db-activerecord: ~> 0.1.0.beta1
48
+ ronin-db-activerecord: ~> 0.1.0.beta2
42
49
  ronin-support: ~> 1.0.0.beta1
43
50
  ronin-core: ~> 0.1.0.beta1
44
51
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -41,7 +41,7 @@ module Ronin
41
41
  # --db-uri URI The database URI to connect to
42
42
  # -v, --verbose Enables verbose output
43
43
  # -n, --number INT Searches for all ASN records with the AS number
44
- # -C XX|None|Uknown, Searches for all ASN records with the country code
44
+ # -C XX|None|Unknown, Searches for all ASN records with the country code
45
45
  # --country-code
46
46
  # -N, --name NAME Searches for all ASN records with the matching name
47
47
  # -I, --ip IP Queries the ASN record for the IP
@@ -70,7 +70,7 @@ module Ronin
70
70
  option :country_code, short: '-C',
71
71
  value: {
72
72
  type: /[A-Z]{2}|None|Unknown/,
73
- usage: 'XX|None|Uknown'
73
+ usage: 'XX|None|Unknown'
74
74
  },
75
75
  desc: 'Searches for all ASN records with the country code' do |cc|
76
76
  @query_method_calls << [:with_country_code, [cc]]
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -26,7 +26,7 @@ module Ronin
26
26
  class CLI
27
27
  module Commands
28
28
  #
29
- # Manages {IPAddress IPAddresses}.
29
+ # Manages IP addresses in the database.
30
30
  #
31
31
  # ## Usage
32
32
  #
@@ -93,6 +93,8 @@ module Ronin
93
93
 
94
94
  description 'Manages IP addresses'
95
95
 
96
+ man_page 'ronin-db-ips.1'
97
+
96
98
  end
97
99
  end
98
100
  end
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -92,7 +92,7 @@ module Ronin
92
92
  end
93
93
 
94
94
  #
95
- # Imports the values from the givne file.
95
+ # Imports the values from the given file.
96
96
  #
97
97
  # @param [String] path
98
98
  # The path to the file.
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
data/lib/ronin/db/cli.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,11 @@
18
18
  # along with ronin-db. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
+ require 'ronin/db/version'
22
+
21
23
  require 'command_kit/commands'
22
24
  require 'command_kit/commands/auto_load'
25
+ require 'command_kit/options/version'
23
26
 
24
27
  module Ronin
25
28
  module DB
@@ -30,8 +33,10 @@ module Ronin
30
33
  dir: "#{__dir__}/cli/commands",
31
34
  namespace: "#{self}::Commands"
32
35
  )
36
+ include CommandKit::Options::Version
33
37
 
34
38
  command_name 'ronin-db'
39
+ version Ronin::DB::VERSION
35
40
 
36
41
  end
37
42
  end
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
data/lib/ronin/db/home.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
data/lib/ronin/db/root.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -21,6 +21,6 @@
21
21
  module Ronin
22
22
  module DB
23
23
  # ronin-db version
24
- VERSION = '0.1.0.beta1'
24
+ VERSION = '0.1.0.beta3'
25
25
  end
26
26
  end
data/lib/ronin/db.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-db - A common database library for managing and querying security data.
4
4
  #
5
- # Copyright (c) 2006-2022 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-db is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -73,8 +73,8 @@ module Ronin
73
73
  #
74
74
  # Connects to the Database.
75
75
  #
76
- # @param [Symbol, Hash] uri
77
- # The optional default repository to setup instead of {repositories}.
76
+ # @param [Symbol, Hash] database
77
+ # The optional database name or Hash of database information.
78
78
  #
79
79
  # @param [Boolean] migrate
80
80
  # Specifies whether to hard or lazy migrate the database.
data/man/ronin-db-asn.1 CHANGED
@@ -32,7 +32,7 @@ Enables verbose output
32
32
  Searches for all ASN records with the AS number\.
33
33
  .LP
34
34
  .TP
35
- \fB-C\fR, \fB--country-code\fR \fIXX\fP\[or]\fBNone\fR\[or]\fBUknown\fR
35
+ \fB-C\fR, \fB--country-code\fR \fIXX\fP\[or]\fBNone\fR\[or]\fBUnknown\fR
36
36
  Searches for all ASN records with the country code\.
37
37
  .LP
38
38
  .TP
@@ -23,7 +23,7 @@ Queries or updates Autonomous System Numbers (ASNs) in the database.
23
23
  `-n`, `--number` *INT*
24
24
  Searches for all ASN records with the AS number.
25
25
 
26
- `-C`, `--country-code` *XX*\|`None`\|`Uknown`
26
+ `-C`, `--country-code` *XX*\|`None`\|`Unknown`
27
27
  Searches for all ASN records with the country code.
28
28
 
29
29
  `-N`, `--name` *NAME*
data/ronin-db.gemspec CHANGED
@@ -27,6 +27,8 @@ Gem::Specification.new do |gem|
27
27
  gem.files = `git ls-files`.split($/)
28
28
  gem.files = glob[gemspec['files']] if gemspec['files']
29
29
  gem.files += Array(gemspec['generated_files'])
30
+ # exclude test files from the packages gem
31
+ gem.files -= glob[gemspec['test_files'] || 'spec/{**/}*']
30
32
 
31
33
  gem.executables = gemspec.fetch('executables') do
32
34
  glob['bin/*'].map { |path| File.basename(path) }
@@ -34,7 +36,6 @@ Gem::Specification.new do |gem|
34
36
  gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
35
37
 
36
38
  gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
37
- gem.test_files = glob[gemspec['test_files'] || 'spec/{**/}*_spec.rb']
38
39
  gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}']
39
40
 
40
41
  gem.require_paths = Array(gemspec.fetch('require_paths') {
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta1
4
+ version: 0.1.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-01 00:00:00.000000000 Z
11
+ date: 2023-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sqlite
14
+ name: sqlite3
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.0.beta1
33
+ version: 0.1.0.beta2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.0.beta1
40
+ version: 0.1.0.beta2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ronin-support
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -159,18 +159,15 @@ files:
159
159
  - man/ronin-db-urls.1
160
160
  - man/ronin-db-urls.1.md
161
161
  - ronin-db.gemspec
162
- - spec/cli/commands/add_spec.rb
163
- - spec/cli/commands/edit_spec.rb
164
- - spec/cli/commands/irb_spec.rb
165
- - spec/cli/database_command_spec.rb
166
- - spec/cli/model_command_spec.rb
167
- - spec/cli/ruby_shell_spec.rb
168
- - spec/cli/uri_methods_spec.rb
169
- - spec/spec_helper.rb
170
162
  homepage: https://ronin-rb.dev
171
163
  licenses:
172
164
  - LGPL-3.0
173
- metadata: {}
165
+ metadata:
166
+ documentation_uri: https://ronin-rb.dev/docs/ronin-db
167
+ source_code_uri: https://github.com/ronin-rb/ronin-db
168
+ bug_tracker_uri: https://github.com/ronin-rb/ronin-db/issues
169
+ changelog_uri: https://github.com/ronin-rb/ronin-db/blob/main/ChangeLog.md
170
+ rubygems_mfa_required: 'true'
174
171
  post_install_message:
175
172
  rdoc_options: []
176
173
  require_paths:
@@ -190,11 +187,4 @@ rubygems_version: 3.3.26
190
187
  signing_key:
191
188
  specification_version: 4
192
189
  summary: A common database library for managing and querying security data
193
- test_files:
194
- - spec/cli/commands/add_spec.rb
195
- - spec/cli/commands/edit_spec.rb
196
- - spec/cli/commands/irb_spec.rb
197
- - spec/cli/database_command_spec.rb
198
- - spec/cli/model_command_spec.rb
199
- - spec/cli/ruby_shell_spec.rb
200
- - spec/cli/uri_methods_spec.rb
190
+ test_files: []