ronin-db 0.1.0.beta1-java → 0.1.0.beta3-java

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 +11 -21
  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: fda62542d7e3cc84f8d6d835cdaca71db0a9e1f38bbee3022935b17039fc95fd
4
- data.tar.gz: 271084207abc32d30e9a47f6cc39b371fbf81d5d3d43a4487c4a948da204bc9b
3
+ metadata.gz: 8a1fd6f813989f03da5abf216142db2db9a788c15e177c48f3abbc3d1cd5eb33
4
+ data.tar.gz: df1a62c7d8cbddf3ed141435125595f20fcc4ef8d94cb8d081882650b555560e
5
5
  SHA512:
6
- metadata.gz: 5a4e7262739d0115ab9dbf11e88e899ca71f0a4f266dd9c4e49f6fcad506cd3cd223d5f580cda07c6ec779dc00c9475a3774fd8d4a28554b99ad9287e1593ac0
7
- data.tar.gz: 64016ad8d5be6b2a7d0b392ae3b976b88b629395c546570ce9c914dee465ff7353b846d5b4570ced210c98cb13da6f88e0ce1a5d44d153b08da76befddadce2a
6
+ metadata.gz: 87f9f0c1e514c786199f6e11b654a2584ddb8b9a298ba20e96226d56686812d8cb7bb8d7f918e964c0e3ecf7612d4edafe505a66908c54f010ec2141bbd57278
7
+ data.tar.gz: 4e3b1b38a64379605773d5965794aba7c07ed151788f12c0ac3653771221e854a75a08d0509806b4aed73f20d1361e2ecd2f149db6fa3a3337c81719d94d9fa0
@@ -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,14 +1,14 @@
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: java
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
14
  requirement: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 0.1.0.beta1
32
+ version: 0.1.0.beta2
33
33
  name: ronin-db-activerecord
34
34
  prerelease: false
35
35
  type: :runtime
@@ -37,7 +37,7 @@ dependencies:
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
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
@@ -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.25
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: []