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.
@@ -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-remove 1 "2022-01-01" Ronin DB "User Manuals"
3
+ .TH ronin-db-remove 1 "2023-02-01" Ronin DB "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -25,22 +25,29 @@ The database entry to remove\.
25
25
  \fB-h\fR, \fB--help\fR
26
26
  Print help information\.
27
27
  .LP
28
- .SH FILES
28
+ .SH ENVIRONMENT
29
29
  .LP
30
30
  .TP
31
- \fI\[ti]\[sl]\.config\[sl]ronin\-db\[sl]database\.yml\fP
32
- The \fBronin-db\fR database(s) configuration file\.
31
+ \fIHOME\fP
32
+ Alternate location for the user\[cq]s home directory\.
33
33
  .LP
34
- .SH ENVIRONMENT
34
+ .TP
35
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
36
+ Alternate location for the \fB~/.config\fR directory\.
35
37
  .LP
36
- .PP
37
- HOME
38
- Specifies the home directory of the user\. Ronin will search for the
39
- \fI\[ti]\[sl]\.config\[sl]ronin\-db\fP cache directory within the home directory\.
38
+ .TP
39
+ \fIXDG\[ru]DATA\[ru]HOME\fP
40
+ Alternate location for the \fB~/.local/share\fR directory\.
40
41
  .LP
41
- .PP
42
- XDG\[ru]CONFIG\[ru]HOME
43
- Specifies the cache directory to use\. Defaults to \fI\[Do]HOME\[sl]\.config\fP\.
42
+ .SH FILES
43
+ .LP
44
+ .TP
45
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
46
+ The default sqlite3 database file\.
47
+ .LP
48
+ .TP
49
+ \fB~/.config/ronin-db/database.yml\fR
50
+ Optional database configuration\.
44
51
  .LP
45
52
  .SH AUTHOR
46
53
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-db-remove 1 "2022-01-01" Ronin DB "User Manuals"
1
+ # ronin-db-remove 1 "2023-02-01" Ronin DB "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -19,19 +19,24 @@ configuration file.
19
19
  `-h`, `--help`
20
20
  Print help information.
21
21
 
22
- ## FILES
22
+ ## ENVIRONMENT
23
23
 
24
- *~/.config/ronin-db/database.yml*
25
- The `ronin-db` database(s) configuration file.
24
+ *HOME*
25
+ Alternate location for the user's home directory.
26
26
 
27
- ## ENVIRONMENT
27
+ *XDG_CONFIG_HOME*
28
+ Alternate location for the `~/.config` directory.
29
+
30
+ *XDG_DATA_HOME*
31
+ Alternate location for the `~/.local/share` directory.
32
+
33
+ ## FILES
28
34
 
29
- HOME
30
- Specifies the home directory of the user. Ronin will search for the
31
- *~/.config/ronin-db* cache directory within the home directory.
35
+ `~/.local/share/ronin-db/database.sqlite3`
36
+ The default sqlite3 database file.
32
37
 
33
- XDG_CONFIG_HOME
34
- Specifies the cache directory to use. Defaults to *$HOME/.config*.
38
+ `~/.config/ronin-db/database.yml`
39
+ Optional database configuration.
35
40
 
36
41
  ## AUTHOR
37
42
 
data/man/ronin-db-urls.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-urls 1 "April 2012" Ronin "User Manuals"
3
+ .TH ronin-db-urls 1 "2023-02-01" Ronin "User Manuals"
4
4
  .LP
5
5
  .SH SYNOPSIS
6
6
  .LP
@@ -28,20 +28,20 @@ The explicit database URI to connect to
28
28
  Enable verbose output\.
29
29
  .LP
30
30
  .TP
31
- \fB--add\fR \fIUSER\fP:\fIPASSWORD\fP
32
- Adds the \fIUSER\fP and \fIPASSWORD\fP to the database\.
31
+ \fB--add\fR \fIVALUE\fP
32
+ Adds the URL to the database\.
33
33
  .LP
34
34
  .TP
35
35
  \fB--import\fR \fIFILE\fP
36
- Imports the credentials from the given \fIFILE\fP\.
36
+ Imports the URLs 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 the URL 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 URL from the database\.
45
45
  .LP
46
46
  .TP
47
47
  \fB--http\fR
@@ -71,23 +71,29 @@ Searches for URLs containing the query\-param NAME\.
71
71
  \fB-Q\fR, \fB--with-query-value\fR \fIVALUE\fP \[lB]\.\.\.\[rB]
72
72
  Searches for URLs containing the query\-param VALUE\.
73
73
  .LP
74
- .SH FILES
74
+ .SH ENVIRONMENT
75
+ .LP
76
+ .TP
77
+ \fIHOME\fP
78
+ Alternate location for the user\[cq]s home directory\.
75
79
  .LP
76
80
  .TP
77
- \fI\[ti]\[sl]\.ronin\[sl]\fP
78
- Ronin configuration directory\.
81
+ \fIXDG\[ru]CONFIG\[ru]HOME\fP
82
+ Alternate location for the \fB~/.config\fR directory\.
79
83
  .LP
80
84
  .TP
81
- \fI\[ti]\[sl]\.ronin\[sl]database\.log\fP
82
- Database log\.
85
+ \fIXDG\[ru]DATA\[ru]HOME\fP
86
+ Alternate location for the \fB~/.local/share\fR directory\.
87
+ .LP
88
+ .SH FILES
83
89
  .LP
84
90
  .TP
85
- \fI\[ti]\[sl]\.ronin\[sl]database\.sqlite3\fP
86
- The default sqlite3 Database file\.
91
+ \fB~/.local/share/ronin-db/database.sqlite3\fR
92
+ The default sqlite3 database file\.
87
93
  .LP
88
94
  .TP
89
- \fI\[ti]\[sl]\.ronin\[sl]database\.yml\fP
90
- Optional Database configuration\.
95
+ \fB~/.config/ronin-db/database.yml\fR
96
+ Optional database configuration\.
91
97
  .LP
92
98
  .SH AUTHOR
93
99
  .LP
@@ -1,4 +1,4 @@
1
- # ronin-db-urls 1 "April 2012" Ronin "User Manuals"
1
+ # ronin-db-urls 1 "2023-02-01" Ronin "User Manuals"
2
2
 
3
3
  ## SYNOPSIS
4
4
 
@@ -20,17 +20,17 @@ Manages URLs.
20
20
  `-v`, `--verbose`
21
21
  Enable verbose output.
22
22
 
23
- `--add` *USER*:*PASSWORD*
24
- Adds the *USER* and *PASSWORD* to the database.
23
+ `--add` *VALUE*
24
+ Adds the URL to the database.
25
25
 
26
26
  `--import` *FILE*
27
- Imports the credentials from the given *FILE*.
27
+ Imports the URLs from the given *FILE*.
28
28
 
29
29
  `--delete` *VALUE*
30
- Deletes a value from the database.
30
+ Deletes the URL from the database.
31
31
 
32
32
  `--delete-all`
33
- Deletes every value from the database.
33
+ Deletes every URL from the database.
34
34
 
35
35
  `--http`
36
36
  Searches for `http://` URLs.
@@ -53,19 +53,24 @@ Manages URLs.
53
53
  `-Q`, `--with-query-value` *VALUE* [...]
54
54
  Searches for URLs containing the query-param VALUE.
55
55
 
56
- ## FILES
56
+ ## ENVIRONMENT
57
+
58
+ *HOME*
59
+ Alternate location for the user's home directory.
57
60
 
58
- *~/.ronin/*
59
- Ronin configuration directory.
61
+ *XDG_CONFIG_HOME*
62
+ Alternate location for the `~/.config` directory.
60
63
 
61
- *~/.ronin/database.log*
62
- Database log.
64
+ *XDG_DATA_HOME*
65
+ Alternate location for the `~/.local/share` directory.
66
+
67
+ ## FILES
63
68
 
64
- *~/.ronin/database.sqlite3*
65
- The default sqlite3 Database file.
69
+ `~/.local/share/ronin-db/database.sqlite3`
70
+ The default sqlite3 database file.
66
71
 
67
- *~/.ronin/database.yml*
68
- Optional Database configuration.
72
+ `~/.config/ronin-db/database.yml`
73
+ Optional database configuration.
69
74
 
70
75
  ## AUTHOR
71
76
 
data/ronin-db.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  require 'yaml'
4
4
 
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
22
22
  gem.homepage = gemspec['homepage']
23
23
  gem.metadata = gemspec['metadata'] if gemspec['metadata']
24
24
 
25
- glob = lambda { |patterns| gem.files & Dir[*patterns] }
25
+ glob = ->(patterns) { gem.files & Dir[*patterns] }
26
26
 
27
27
  gem.files = `git ls-files`.split($/)
28
28
  gem.files = glob[gemspec['files']] if gemspec['files']
@@ -33,6 +33,7 @@ Gem::Specification.new do |gem|
33
33
  gem.executables = gemspec.fetch('executables') do
34
34
  glob['bin/*'].map { |path| File.basename(path) }
35
35
  end
36
+
36
37
  gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
37
38
 
38
39
  gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
@@ -47,7 +48,7 @@ Gem::Specification.new do |gem|
47
48
  gem.required_rubygems_version = gemspec['required_rubygems_version']
48
49
  gem.post_install_message = gemspec['post_install_message']
49
50
 
50
- split = lambda { |string| string.split(/,\s*/) }
51
+ split = ->(string) { string.split(/,\s*/) }
51
52
 
52
53
  if RUBY_PLATFORM =~ /java/
53
54
  gem.platform = Gem::Platform.new("java")
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
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -99,6 +99,7 @@ files:
99
99
  - ".github/workflows/ruby.yml"
100
100
  - ".gitignore"
101
101
  - ".rspec"
102
+ - ".rubocop.yml"
102
103
  - ".ruby-version"
103
104
  - ".yardopts"
104
105
  - COPYING.txt