ronin-db 0.1.0 → 0.1.1

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: c4b43b9a27235b5f27c1c8eac976121fb6d207fa5732ece4346c16eeea9e2614
4
- data.tar.gz: 4a9bbb30e223ed07cc457e2f78e4a502aa1b2f9888903fb0f299389617a4cf52
3
+ metadata.gz: d310dd9211968ccd20e1f7f7962673217fac978bb9d1698a443db713196be894
4
+ data.tar.gz: a279d215f78d2e40d04a2ff6519537ed275be707d1adeba2450bbe805a688009
5
5
  SHA512:
6
- metadata.gz: ccc855cd8baf3f69497d49cf553c2a1afec91bc0bbf2b7a0c6346740ad71da85a21b62449bd845e5f817317775c3fa254cf8e9adfa00782fac6b477c0e258a5a
7
- data.tar.gz: 1ebfb16680d714807171106c3510ae4256573f7c7feca27937c76cf382fa91928e4a17e2ecaef276bd7befaed5977d84c12e25fd4dae4f1c19e0f6e62348e64c
6
+ metadata.gz: 73778356b09c0ec1f7ff37f7faba38c64c46d23d5b44aeed49a78248bd5c72794e2057a690c1bacdced48d522f2cdec4dc65b628e64580dc0a9d640d5a6968c6
7
+ data.tar.gz: 18edf72f11d0748f17b4a8f18541fdcdc45b541053231cbf3b75c40f5dbb68a8a943e19654b8081a28b5d3348c9772304ead95f38810825fc448e5ed6ceb442b
@@ -30,3 +30,17 @@ jobs:
30
30
  run: bundle install --jobs 4 --retry 3
31
31
  - name: Run tests
32
32
  run: bundle exec rake test
33
+
34
+ # rubocop linting
35
+ rubocop:
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: actions/checkout@v2
39
+ - name: Set up Ruby
40
+ uses: ruby/setup-ruby@v1
41
+ with:
42
+ ruby-version: 3.0
43
+ - name: Install dependencies
44
+ run: bundle install --jobs 4 --retry 3
45
+ - name: Run rubocop
46
+ run: bundle exec rubocop --parallel
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+ TargetRubyVersion: 3.1
5
+
6
+ inherit_gem:
7
+ rubocop-ronin: rubocop.yml
8
+
9
+ #
10
+ # ronin-db specific exceptions
11
+ #
12
+
13
+ # This looks like a rubocop bug.
14
+ Lint/ShadowingOuterLocalVariable:
15
+ Exclude:
16
+ - 'lib/ronin/db/cli/commands/list.rb'
data/ChangeLog.md CHANGED
@@ -1,4 +1,12 @@
1
- ### 0.1.0 / 2023-XX-XX
1
+ ### 0.1.1 / 2023-06-09
2
+
3
+ #### CLI
4
+
5
+ * Fixed typos in the `ronin-db add` man-page.
6
+ * Fixed typos in the `ronin-db creds` man-page.
7
+ * Fixed formatting of man-pages.
8
+
9
+ ### 0.1.0 / 2023-02-01
2
10
 
3
11
  * Initial release:
4
12
  * Uses a [sqlite] database by default.
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
@@ -8,11 +10,11 @@ gem 'jruby-openssl', '~> 0.7', platform: :jruby
8
10
  # branch: 'main'
9
11
 
10
12
  # Library dependencies
11
- # gem 'ronin-db-activerecord', '~> 0.1', github: "ronin-rb/ronin-db-activerecord",
13
+ # gem 'ronin-db-activerecord', '~> 0.1', github: 'ronin-rb/ronin-db-activerecord',
12
14
  # branch: 'main'
13
- # gem 'ronin-support', '~> 1.0', github: "ronin-rb/ronin-support",
15
+ # gem 'ronin-support', '~> 1.0', github: 'ronin-rb/ronin-support',
14
16
  # branch: '1.0.0'
15
- # gem 'ronin-core', '~> 0.1', github: "ronin-rb/ronin-core",
17
+ # gem 'ronin-core', '~> 0.1', github: 'ronin-rb/ronin-core',
16
18
  # branch: 'main'
17
19
 
18
20
  group :development do
@@ -31,4 +33,6 @@ group :development do
31
33
  gem 'dead_end', require: false
32
34
  gem 'sord', require: false, platform: :mri
33
35
  gem 'stackprof', require: false, platform: :mri
36
+ gem 'rubocop', require: false, platform: :mri
37
+ gem 'rubocop-ronin', require: false, platform: :mri
34
38
  end
data/Rakefile CHANGED
@@ -1,11 +1,11 @@
1
- require 'rubygems'
1
+ # frozen_string_literal: true
2
2
 
3
3
  begin
4
4
  require 'bundler'
5
5
  rescue LoadError => e
6
6
  warn e.message
7
7
  warn "Run `gem install bundler` to install Bundler"
8
- exit -1
8
+ exit(-1)
9
9
  end
10
10
 
11
11
  begin
@@ -35,7 +35,6 @@ task :docs => :yara
35
35
  require 'kramdown/man/task'
36
36
  Kramdown::Man::Task.new
37
37
 
38
-
39
38
  directory 'db'
40
39
  file 'db/dev.sqlite3' => %w[db db:migrate]
41
40
 
data/bin/ronin-db CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
  #
3
4
  # Copyright (c) 2021 Hal Brodigan (postmodern.mod3 at gmail.com)
4
5
  #
@@ -21,13 +22,11 @@
21
22
  root = File.expand_path(File.join(__dir__,'..'))
22
23
  if File.file?(File.join(root,'Gemfile.lock'))
23
24
  Dir.chdir(root) do
24
- begin
25
- require 'bundler/setup'
26
- rescue LoadError => e
27
- warn e.message
28
- warn "Run `gem install bundler` to install Bundler"
29
- exit -1
30
- end
25
+ require 'bundler/setup'
26
+ rescue LoadError => e
27
+ warn e.message
28
+ warn "Run `gem install bundler` to install Bundler"
29
+ exit(-1)
31
30
  end
32
31
  end
33
32
 
@@ -25,6 +25,9 @@ require 'ronin/core/cli/command'
25
25
  module Ronin
26
26
  module DB
27
27
  class CLI
28
+ #
29
+ # Base class for all `ronin-db` commands.
30
+ #
28
31
  class Command < Core::CLI::Command
29
32
 
30
33
  man_dir File.join(ROOT,'man')
@@ -61,7 +61,7 @@ module Ronin
61
61
 
62
62
  option :number, short: '-n',
63
63
  value: {
64
- type: Integer,
64
+ type: Integer
65
65
  },
66
66
  desc: 'Searches for all ASN records with the AS number' do |number|
67
67
  @query_method_calls << [:with_number, [number]]
@@ -37,7 +37,7 @@ module Ronin
37
37
  # --db NAME The database to connect to (Default: default)
38
38
  # --db-uri URI The database URI to connect to
39
39
  # -h, --help Print help information
40
- #
40
+ #
41
41
  class Migrate < DatabaseCommand
42
42
 
43
43
  usage '[options]'
@@ -122,7 +122,7 @@ module Ronin
122
122
  option :query_string, short: '-q',
123
123
  value: {
124
124
  type: String,
125
- usage: 'STRING',
125
+ usage: 'STRING'
126
126
  },
127
127
  desc: 'Searches for all URLs with the query string' do |string|
128
128
  @query_method_calls << [:where, [], {query: string}]
@@ -136,11 +136,11 @@ module Ronin
136
136
  desc: 'Searches for the associated query-param NAME(s)' do |string|
137
137
  name, value = string.split('=',2)
138
138
 
139
- if value
140
- @query_method_calls << [:with_query_param, [name, value]]
141
- else
142
- @query_method_calls << [:with_query_param_name, [name]]
143
- end
139
+ @query_method_calls << if value
140
+ [:with_query_param, [name, value]]
141
+ else
142
+ [:with_query_param_name, [name]]
143
+ end
144
144
  end
145
145
 
146
146
  option :with_query_param_name, value: {
@@ -60,8 +60,6 @@ module Ronin
60
60
  end
61
61
  end
62
62
 
63
- protected
64
-
65
63
  #
66
64
  # Sets the model used by the command.
67
65
  #
@@ -24,6 +24,10 @@ require 'ronin/db'
24
24
  module Ronin
25
25
  module DB
26
26
  class CLI
27
+ #
28
+ # Mixin which adds methods for parsing database URIs
29
+ # (ex: `sqlite3:path/to/db.sqlite3`).
30
+ #
27
31
  module URIMethods
28
32
  # Common database adapter names and their ActiveRecord equivalents.
29
33
  ADAPTER_ALIASES = {
@@ -57,8 +61,8 @@ module Ronin
57
61
  # The expanded path or `":memory:"` if the path was `":memory:"`.
58
62
  #
59
63
  def normalize_sqlite3_path(path)
60
- if path== ':memory:' then path
61
- else File.expand_path(path)
64
+ if path == ':memory:' then path
65
+ else File.expand_path(path)
62
66
  end
63
67
  end
64
68
 
@@ -72,7 +76,7 @@ module Ronin
72
76
  # The database configuration Hash.
73
77
  #
74
78
  def parse_uri(uri)
75
- if (match = uri.match(/\Asqlite[3]?:(.+)\z/))
79
+ if (match = uri.match(/\Asqlite(?:3)?:(.+)\z/))
76
80
  {
77
81
  adapter: 'sqlite3',
78
82
  database: normalize_sqlite3_path(match[1])
@@ -82,6 +86,7 @@ module Ronin
82
86
  adapter = normalize_adapter(uri.scheme)
83
87
 
84
88
  hash = {adapter: adapter}
89
+
85
90
  hash[:host] = uri.host if uri.host
86
91
  hash[:port] = uri.port if uri.port
87
92
  hash[:username] = uri.user if uri.user
data/lib/ronin/db/cli.rb CHANGED
@@ -26,6 +26,11 @@ require 'command_kit/options/version'
26
26
 
27
27
  module Ronin
28
28
  module DB
29
+ #
30
+ # The `ronin-db` command-line interface (CLI).
31
+ #
32
+ # @api private
33
+ #
29
34
  class CLI
30
35
 
31
36
  include CommandKit::Commands
@@ -35,7 +35,8 @@ module Ronin
35
35
  # Path to the `~/.config/ronin-db/databases.yml` configuration file.
36
36
  PATH = File.join(DB::Home::CONFIG_DIR,'databases.yml')
37
37
 
38
- # Path to the default sqlite3 database file.
38
+ # Path to the default sqlite3 database file
39
+ # (`~/.local/share/ronin-db/default.sqlite3`).
39
40
  DEFAULT_DB_FILE = File.join(DB::Home::LOCAL_SHARE_DIR,'default.sqlite3')
40
41
 
41
42
  # Default database configuration.
@@ -21,6 +21,6 @@
21
21
  module Ronin
22
22
  module DB
23
23
  # ronin-db version
24
- VERSION = '0.1.0'
24
+ VERSION = '0.1.1'
25
25
  end
26
26
  end
data/lib/ronin/db.rb CHANGED
@@ -23,6 +23,9 @@ require 'ronin/db/config_file'
23
23
  require 'ronin/db/version'
24
24
 
25
25
  module Ronin
26
+ #
27
+ # Manages the Ronin database.
28
+ #
26
29
  module DB
27
30
  #
28
31
  # Sets up the Database logger.
data/man/ronin-db-add.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-add 1 "2022-01-01" Ronin DB "User Manuals"
3
+ .TH ronin-db-add 1 "2023-02-01" Ronin DB "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -10,7 +10,8 @@
10
10
  .SH DESCRIPTION
11
11
  .LP
12
12
  .PP
13
- Lists entries in the \fB~/.config/ronin-db/database.yml\fR configuration file\.
13
+ Adds a pre\-existing database to the \fB~/.config/ronin-db/database.yml\fR
14
+ configuration file\.
14
15
  .LP
15
16
  .SH ARGUMENTS
16
17
  .LP
@@ -69,22 +70,52 @@ may be given instead\.
69
70
  \fB-h\fR, \fB--help\fR
70
71
  Print help information\.
71
72
  .LP
72
- .SH FILES
73
+ .SH EXAMPLES
73
74
  .LP
74
- .TP
75
- \fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
76
- The \fBronin-db\fR database(s) configuration file\.
75
+ .PP
76
+ Add a sqlite3 database file:
77
77
  .LP
78
- .SH ENVIRONMENT
78
+ .nf
79
+ \[Do] ronin\-db add other\[ru]db \-\-sqlite3 path\[sl]to\[sl]db\.sqlite3
80
+ .fi
79
81
  .LP
80
82
  .PP
81
- HOME
82
- Specifies the home directory of the user\. Ronin will search for the
83
- \fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
83
+ Add a PostgeSQL database:
84
+ .LP
85
+ .nf
86
+ \[Do] ronin\-db add other\[ru]db \-\-postgres \-\-host example\.com \-\-port 5432 \-\-username ronin \-\-password s3r3t \-\-database ronin\[ru]db
87
+ .fi
84
88
  .LP
85
89
  .PP
86
- XDG\[ru]CONFIG\[ru]HOME
87
- Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
90
+ Add a MySQL database:
91
+ .LP
92
+ .nf
93
+ \[Do] ronin\-db add other\[ru]db \-\-mysql2 \-\-host example\.com \-\-port 3306 \-\-username ronin \-\-password s3r3t \-\-database ronin\[ru]db
94
+ .fi
95
+ .LP
96
+ .SH ENVIRONMENT
97
+ .LP
98
+ .TP
99
+ \fIHOME\fP
100
+ Alternate location for the user\[cq]s home directory\.
101
+ .LP
102
+ .TP
103
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
104
+ Alternate location for the \fB~/.config\fR directory\.
105
+ .LP
106
+ .TP
107
+ \fIXDG\[ru]DATA\[ru]HOME\fP
108
+ Alternate location for the \fB~/.local/share\fR directory\.
109
+ .LP
110
+ .SH FILES
111
+ .LP
112
+ .TP
113
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
114
+ The default sqlite3 database file\.
115
+ .LP
116
+ .TP
117
+ \fB~/.config/ronin-db/database.yml\fR
118
+ Optional database configuration\.
88
119
  .LP
89
120
  .SH AUTHOR
90
121
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-db-add 1 "2022-01-01" Ronin DB "User Manuals"
1
+ # ronin-db-add 1 "2023-02-01" Ronin DB "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -6,7 +6,8 @@
6
6
 
7
7
  ## DESCRIPTION
8
8
 
9
- Lists entries in the `~/.config/ronin-db/database.yml` configuration file.
9
+ Adds a pre-existing database to the `~/.config/ronin-db/database.yml`
10
+ configuration file.
10
11
 
11
12
  ## ARGUMENTS
12
13
 
@@ -52,19 +53,38 @@ Lists entries in the `~/.config/ronin-db/database.yml` configuration file.
52
53
  `-h`, `--help`
53
54
  Print help information.
54
55
 
55
- ## FILES
56
+ ## EXAMPLES
57
+
58
+ Add a sqlite3 database file:
59
+
60
+ $ ronin-db add other_db --sqlite3 path/to/db.sqlite3
61
+
62
+ Add a PostgeSQL database:
63
+
64
+ $ ronin-db add other_db --postgres --host example.com --port 5432 --username ronin --password s3r3t --database ronin_db
65
+
66
+ Add a MySQL database:
56
67
 
57
- *~/.config/ronin-db/database.yml*
58
- The `ronin-db` database(s) configuration file.
68
+ $ ronin-db add other_db --mysql2 --host example.com --port 3306 --username ronin --password s3r3t --database ronin_db
59
69
 
60
70
  ## ENVIRONMENT
61
71
 
62
- HOME
63
- Specifies the home directory of the user. Ronin will search for the
64
- *~/.config/ronin-db* cache directory within the home directory.
72
+ *HOME*
73
+ Alternate location for the user's home directory.
74
+
75
+ *XDG_CONFIG_HOME*
76
+ Alternate location for the `~/.config` directory.
77
+
78
+ *XDG_DATA_HOME*
79
+ Alternate location for the `~/.local/share` directory.
80
+
81
+ ## FILES
82
+
83
+ `~/.local/share/ronin-db/database.sqlite3`
84
+ The default sqlite3 database file.
65
85
 
66
- XDG_CONFIG_HOME
67
- Specifies the cache directory to use. Defaults to *$HOME/.config*.
86
+ `~/.config/ronin-db/database.yml`
87
+ Optional database configuration.
68
88
 
69
89
  ## AUTHOR
70
90
 
data/man/ronin-db-asn.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-asn 1 "April 2012" Ronin "User Manuals"
3
+ .TH ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -70,6 +70,30 @@ if not given\.
70
70
  \fB-h\fR, \fB--help\fR
71
71
  Print help information\.
72
72
  .LP
73
+ .SH ENVIRONMENT
74
+ .LP
75
+ .TP
76
+ \fIHOME\fP
77
+ Alternate location for the user\[cq]s home directory\.
78
+ .LP
79
+ .TP
80
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
81
+ Alternate location for the \fB~/.config\fR directory\.
82
+ .LP
83
+ .TP
84
+ \fIXDG\[ru]DATA\[ru]HOME\fP
85
+ Alternate location for the \fB~/.local/share\fR directory\.
86
+ .LP
87
+ .SH FILES
88
+ .LP
89
+ .TP
90
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
91
+ The default sqlite3 database file\.
92
+ .LP
93
+ .TP
94
+ \fB~/.config/ronin-db/database.yml\fR
95
+ Optional database configuration\.
96
+ .LP
73
97
  .SH AUTHOR
74
98
  .LP
75
99
  .PP
@@ -1,4 +1,4 @@
1
- # ronin-db-asn 1 "April 2012" Ronin "User Manuals"
1
+ # ronin-db-asn 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -53,6 +53,25 @@ Queries or updates Autonomous System Numbers (ASNs) in the database.
53
53
  `-h`, `--help`
54
54
  Print help information.
55
55
 
56
+ ## ENVIRONMENT
57
+
58
+ *HOME*
59
+ Alternate location for the user's home directory.
60
+
61
+ *XDG_CONFIG_HOME*
62
+ Alternate location for the `~/.config` directory.
63
+
64
+ *XDG_DATA_HOME*
65
+ Alternate location for the `~/.local/share` directory.
66
+
67
+ ## FILES
68
+
69
+ `~/.local/share/ronin-db/database.sqlite3`
70
+ The default sqlite3 database file.
71
+
72
+ `~/.config/ronin-db/database.yml`
73
+ Optional database configuration.
74
+
56
75
  ## AUTHOR
57
76
 
58
77
  Postmodern <postmodern.mod3@gmail.com>
data/man/ronin-db-creds.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-creds 1 "April 2012" Ronin "User Manuals"
3
+ .TH ronin-db-creds 1 "2023-01-02" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -37,37 +37,43 @@ Imports the credentials from the given \fIFILE\fP\.
37
37
  .LP
38
38
  .TP
39
39
  \fB--delete\fR \fIVALUE\fP
40
- Deletes a value from the database\.
40
+ Deletes a credential value from the database\.
41
41
  .LP
42
42
  .TP
43
43
  \fB--delete-all\fR
44
- Deletes every value from the database\.
44
+ Deletes every credential from the database\.
45
45
  .LP
46
46
  .TP
47
47
  \fB-u\fR, \fB--for-user\fR \fIUSER\fP
48
- Searches for Credentials associated with the USER\.
48
+ Searches for credentials associated with the USER\.
49
49
  .LP
50
50
  .TP
51
51
  \fB-p\fR, \fB--with-password\fR \fIPASSWORD\fP
52
- Searches for Credentials that have the PASSWORD\.
52
+ Searches for credentials that have the PASSWORD\.
53
53
  .LP
54
- .SH FILES
54
+ .SH ENVIRONMENT
55
+ .LP
56
+ .TP
57
+ \fIHOME\fP
58
+ Alternate location for the user\[cq]s home directory\.
55
59
  .LP
56
60
  .TP
57
- \fI\[ti]\[sl]\.ronin\[sl]\fP
58
- Ronin configuration directory\.
61
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
62
+ Alternate location for the \fB~/.config\fR directory\.
59
63
  .LP
60
64
  .TP
61
- \fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
62
- Database log\.
65
+ \fIXDG\[ru]DATA\[ru]HOME\fP
66
+ Alternate location for the \fB~/.local/share\fR directory\.
67
+ .LP
68
+ .SH FILES
63
69
  .LP
64
70
  .TP
65
- \fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
66
- The default sqlite3 Database file\.
71
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
72
+ The default sqlite3 database file\.
67
73
  .LP
68
74
  .TP
69
- \fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
70
- Optional Database configuration\.
75
+ \fB~/.config/ronin-db/database.yml\fR
76
+ Optional database configuration\.
71
77
  .LP
72
78
  .SH AUTHOR
73
79
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-db-creds 1 "April 2012" Ronin "User Manuals"
1
+ # ronin-db-creds 1 "2023-01-02" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -27,30 +27,35 @@ Manages credentials.
27
27
  Imports the credentials from the given *FILE*.
28
28
 
29
29
  `--delete` *VALUE*
30
- Deletes a value from the database.
30
+ Deletes a credential value from the database.
31
31
 
32
32
  `--delete-all`
33
- Deletes every value from the database.
33
+ Deletes every credential from the database.
34
34
 
35
35
  `-u`, `--for-user` *USER*
36
- Searches for Credentials associated with the USER.
36
+ Searches for credentials associated with the USER.
37
37
 
38
38
  `-p`, `--with-password` *PASSWORD*
39
- Searches for Credentials that have the PASSWORD.
39
+ Searches for credentials that have the PASSWORD.
40
40
 
41
- ## FILES
41
+ ## ENVIRONMENT
42
+
43
+ *HOME*
44
+ Alternate location for the user's home directory.
42
45
 
43
- *~/.ronin/*
44
- Ronin configuration directory.
46
+ *XDG_CONFIG_HOME*
47
+ Alternate location for the `~/.config` directory.
45
48
 
46
- *~/.ronin/database.log*
47
- Database log.
49
+ *XDG_DATA_HOME*
50
+ Alternate location for the `~/.local/share` directory.
51
+
52
+ ## FILES
48
53
 
49
- *~/.ronin/database.sqlite3*
50
- The default sqlite3 Database file.
54
+ `~/.local/share/ronin-db/database.sqlite3`
55
+ The default sqlite3 database file.
51
56
 
52
- *~/.ronin/database.yml*
53
- Optional Database configuration.
57
+ `~/.config/ronin-db/database.yml`
58
+ Optional database configuration.
54
59
 
55
60
  ## AUTHOR
56
61
 
data/man/ronin-db-edit.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Generated by kramdown-man 0.1.8
2
2
  .\" https://github.com/postmodern/kramdown-man#readme
3
- .TH ronin-db-edit 1 "2022-01-01" Ronin DB "User Manuals"
3
+ .TH ronin-db-edit 1 "2023-02-01" Ronin DB "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -18,22 +18,29 @@ Manually edits the \fB~/.config/ronin-db/database.yml\fR configuration file\.
18
18
  \fB-h\fR, \fB--help\fR
19
19
  Print help information\.
20
20
  .LP
21
- .SH FILES
21
+ .SH ENVIRONMENT
22
22
  .LP
23
23
  .TP
24
- \fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
25
- The \fBronin-db\fR database(s) configuration file\.
24
+ \fIHOME\fP
25
+ Alternate location for the user\[cq]s home directory\.
26
26
  .LP
27
- .SH ENVIRONMENT
27
+ .TP
28
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
29
+ Alternate location for the \fB~/.config\fR directory\.
28
30
  .LP
29
- .PP
30
- HOME
31
- Specifies the home directory of the user\. Ronin will search for the
32
- \fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
31
+ .TP
32
+ \fIXDG\[ru]DATA\[ru]HOME\fP
33
+ Alternate location for the \fB~/.local/share\fR directory\.
33
34
  .LP
34
- .PP
35
- XDG\[ru]CONFIG\[ru]HOME
36
- Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
35
+ .SH FILES
36
+ .LP
37
+ .TP
38
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
39
+ The default sqlite3 database file\.
40
+ .LP
41
+ .TP
42
+ \fB~/.config/ronin-db/database.yml\fR
43
+ Optional database configuration\.
37
44
  .LP
38
45
  .SH AUTHOR
39
46
  .LP