ruby-bepasty-client 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bepasty-client/version.rb +1 -1
- data/man/man1/bepastyrb.1 +88 -0
- data/ruby-bepasty-client.gemspec +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b2410289960a01207f8bd7a5827c1f8053761add9d5ea602d400e3d127847cb
|
|
4
|
+
data.tar.gz: '0183d04caa5fcf9ec62d44a976bcd7639e47be3d8c5fdab3dcb3ade532748fcb'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c5f5f931fd76de040e0516530ceadf6c1dc6e93525e43bb7c262324c71e0e506579a2cf6381ff93a47ca94443795811631e38e94fffcb09e619f208bdbb1455
|
|
7
|
+
data.tar.gz: 196fa7caf6a00bef269e0ee8f6367126466b306f3ccbfea34d3400a74d4aad7e5eb53efc5c0e209757ea0d9876a152c35448acf0483d78927cdb8cd1f4e7b355
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.TH bepastyrb 8 2023\-05\-14 1.0.0
|
|
2
|
+
.SH NAME
|
|
3
|
+
.PP
|
|
4
|
+
\fB\fCbepastyrb\fR \- upload files to bepasty servers
|
|
5
|
+
.SH SYNOPSIS
|
|
6
|
+
.PP
|
|
7
|
+
\fB\fCbepastyrb\fR [\fIoptions\fP] [\fIfile\fP\&...]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
.PP
|
|
10
|
+
\fB\fCbepastyrb\fR uploads one or more files to bepasty servers. If no \fIfile\fP is given
|
|
11
|
+
as an argument, \fB\fCbepastyrb\fR will read from standard input.
|
|
12
|
+
.PP
|
|
13
|
+
bepasty server URL needs to be given using option \fB\fC\-s\fR, \fB\fC\-\-server\fR or can be
|
|
14
|
+
set in a config file, see \fB\fCCONFIG FILES\fR\&.
|
|
15
|
+
.PP
|
|
16
|
+
If no life time is set, it defaults to one day.
|
|
17
|
+
.SH OPTIONS
|
|
18
|
+
.TP
|
|
19
|
+
\fB\fC\-v\fR, \fB\fC\-\-verbose\fR
|
|
20
|
+
Enable verbose output.
|
|
21
|
+
.TP
|
|
22
|
+
\fB\fC\-s\fR, \fB\fC\-\-server\fR=\fISERVER\fP
|
|
23
|
+
bepasty server URL.
|
|
24
|
+
.TP
|
|
25
|
+
\fB\fC\-p\fR, \fB\fC\-\-password\fR=\fIPASSWORD\fP
|
|
26
|
+
bepasty server password.
|
|
27
|
+
.TP
|
|
28
|
+
\fB\fC\-\-password\-file\fR=\fIFILE\fP
|
|
29
|
+
Read bepasty server password from a file.
|
|
30
|
+
.TP
|
|
31
|
+
\fB\fC\-f\fR, \fB\fC\-\-filename\fR=\fINAME\fP
|
|
32
|
+
File name including extension. Can be used to provide name for files read
|
|
33
|
+
from standard input or to override given file name.
|
|
34
|
+
.TP
|
|
35
|
+
\fB\fC\-t\fR, \fB\fC\-\-content\-type\fR=\fITYPE\fP
|
|
36
|
+
Content mime type. If not given, the mime type is guessed by the bepasty server
|
|
37
|
+
based on file name.
|
|
38
|
+
.TP
|
|
39
|
+
\fB\fC\-\-minute\fR=[\fIN\fP]
|
|
40
|
+
Keep the file for \fIN\fP minutes, defaults to 30 minutes.
|
|
41
|
+
.TP
|
|
42
|
+
\fB\fC\-\-hour\fR=[\fIN\fP]
|
|
43
|
+
Keep the file for \fIN\fP hours, defaults to 1 hour.
|
|
44
|
+
.TP
|
|
45
|
+
\fB\fC\-\-day\fR=[\fIN\fP]
|
|
46
|
+
Keep the file for \fIN\fP days, defaults to 1 day.
|
|
47
|
+
.TP
|
|
48
|
+
\fB\fC\-\-week\fR=[\fIN\fP]
|
|
49
|
+
Keep the file for \fIN\fP weeks, defaults to 1 week.
|
|
50
|
+
.TP
|
|
51
|
+
\fB\fC\-\-month\fR=[\fIN\fP]
|
|
52
|
+
Keep the file for \fIN\fP months, defaults to 1 month.
|
|
53
|
+
.TP
|
|
54
|
+
\fB\fC\-\-forever\fR
|
|
55
|
+
Keep the file as long as possible.
|
|
56
|
+
.SH CONFIG FILES
|
|
57
|
+
.PP
|
|
58
|
+
Config files can be used to provide default values for certain options.
|
|
59
|
+
Command\-line options override settings found in config files. Config files are
|
|
60
|
+
read from the following locations:
|
|
61
|
+
.RS
|
|
62
|
+
.IP \(bu 2
|
|
63
|
+
\fB\fC/etc/bepastyrb.yml\fR
|
|
64
|
+
.IP \(bu 2
|
|
65
|
+
\fB\fC$XDG_CONFIG_HOME/bepastyrb.yml\fR or \fB\fC~/.config/bepastyrb.yml\fR
|
|
66
|
+
.RE
|
|
67
|
+
.PP
|
|
68
|
+
Settings from user's config will override settings in \fB\fC/etc\fR\&.
|
|
69
|
+
.PP
|
|
70
|
+
Example configuration:
|
|
71
|
+
.PP
|
|
72
|
+
.RS
|
|
73
|
+
.nf
|
|
74
|
+
# bepasty config file in YAML
|
|
75
|
+
server: https://bepasty.yourserver.tld
|
|
76
|
+
# password: optional password if the server uses it
|
|
77
|
+
# password_file: read password from a file
|
|
78
|
+
# max_life:
|
|
79
|
+
# unit: minutes|hours|days|weeks|months|forever
|
|
80
|
+
# value: 14
|
|
81
|
+
.fi
|
|
82
|
+
.RE
|
|
83
|
+
.SH SEE ALSO
|
|
84
|
+
.PP
|
|
85
|
+
bepasty server: \[la]https://bepasty-server.readthedocs.org/\[ra]
|
|
86
|
+
.SH BUGS
|
|
87
|
+
.PP
|
|
88
|
+
Report bugs to \[la]https://github.com/aither64/ruby-bepasty-client\[ra]\&.
|
data/ruby-bepasty-client.gemspec
CHANGED
|
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.license = 'MIT'
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
|
17
|
+
spec.files += Dir['man/man?/*.?']
|
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
20
|
spec.require_paths = ['lib']
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-bepasty-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jakub Skokan
|
|
@@ -71,6 +71,7 @@ files:
|
|
|
71
71
|
- lib/bepasty-client/cli.rb
|
|
72
72
|
- lib/bepasty-client/client.rb
|
|
73
73
|
- lib/bepasty-client/version.rb
|
|
74
|
+
- man/man1/bepastyrb.1
|
|
74
75
|
- man/man1/bepastyrb.1.md
|
|
75
76
|
- ruby-bepasty-client.gemspec
|
|
76
77
|
- shell.nix
|