diff --git a/debian/changelog b/debian/changelog index 4163e3e..d720ac7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +ruby-gitlab (4.5.0-2) unstable; urgency=medium + + [ Sébastien Delafond ] + * Rename /usr/bin/gitlab to /usr/bin/ruby-gitlab (Closes: #910228) + * Add myself to Uploaders + + -- Sebastien Delafond Mon, 26 Nov 2018 17:30:03 +0100 + ruby-gitlab (4.5.0-1) unstable; urgency=medium * Team upload diff --git a/debian/control b/debian/control index f397366..9e5432e 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers -Uploaders: Sophie Brun +Uploaders: Sophie Brun , Sebastien Delafond Build-Depends: debhelper (>= 11~), gem2deb, rake, diff --git a/debian/gitlab.1 b/debian/gitlab.1 deleted file mode 100644 index d6c9e6b..0000000 --- a/debian/gitlab.1 +++ /dev/null @@ -1,51 +0,0 @@ -.TH GITLAB 1 "2017-09-22" "0.1" "" -.SH NAME -gitlab \- command line interface to gitlab -.SH SYNOPSIS -.br -.B gitlab -.I command -.br -.SH DESCRIPTION -.B gitlab -is a command line interface to gitlab based on the gem gitlab. -It requires to set a few environment variables (see configuration). -.PP -For a complete list of supported CLI commands, see: -.P -<\fI\%http://www.rubydoc.info/gems/gitlab/Gitlab/Client\fP> -.P -Any of those methods can be called as a command by passing the parameters -of the commands as parameters of -.B gitlab. -.SH CONFIGURATION -.TP -A few environment variables needs to be set: -.sp -export GITLAB_API_ENDPOINT=https://gitlab.yourcompany.com/api/v4 -.sp -export GITLAB_API_PRIVATE_TOKEN= -.TP -The variable GITLAB_API_HTTPARTY_OPTIONS is optional. It can be used to set any HTTParty option you may need using YAML hash syntax. For example SSL verification can be disabled with: -.sp -export GITLAB_API_HTTPARTY_OPTIONS="{verify: false}" -. -.SH EXAMPLES -.TP -To list users: -.B gitlab users -.TP -To get current user: -.B gitlab user -.TP -The result can be filtered: -.B gitlab user \-\-only=id,username - -.B gitlab user \-\-except=email,bio -.SH SEE ALSO -.IP \(bu 2 -gem documentation -.IP \(bu 2 -/usr/share/doc/ruby\-gitlab/README.md.gz -.SH AUTHOR -Sophie Brun diff --git a/debian/ruby-gitlab.1 b/debian/ruby-gitlab.1 new file mode 100644 index 0000000..1516032 --- /dev/null +++ b/debian/ruby-gitlab.1 @@ -0,0 +1,51 @@ +.TH RUBY-GITLAB 1 "2017-09-22" "0.1" "" +.SH NAME +ruby-gitlab \- command line interface to gitlab +.SH SYNOPSIS +.br +.B ruby-gitlab +.I command +.br +.SH DESCRIPTION +.B ruby-gitlab +is a command line interface to gitlab based on the gem gitlab. +It requires to set a few environment variables (see configuration). +.PP +For a complete list of supported CLI commands, see: +.P +<\fI\%http://www.rubydoc.info/gems/gitlab/Gitlab/Client\fP> +.P +Any of those methods can be called as a command by passing the parameters +of the commands as parameters of +.B ruby-gitlab. +.SH CONFIGURATION +.TP +A few environment variables needs to be set: +.sp +export GITLAB_API_ENDPOINT=https://gitlab.yourcompany.com/api/v4 +.sp +export GITLAB_API_PRIVATE_TOKEN= +.TP +The variable GITLAB_API_HTTPARTY_OPTIONS is optional. It can be used to set any HTTParty option you may need using YAML hash syntax. For example SSL verification can be disabled with: +.sp +export GITLAB_API_HTTPARTY_OPTIONS="{verify: false}" +. +.SH EXAMPLES +.TP +To list users: +.B ruby-gitlab users +.TP +To get current user: +.B ruby-gitlab user +.TP +The result can be filtered: +.B ruby-gitlab user \-\-only=id,username + +.B ruby-gitlab user \-\-except=email,bio +.SH SEE ALSO +.IP \(bu 2 +gem documentation +.IP \(bu 2 +/usr/share/doc/ruby\-gitlab/README.md.gz +.SH AUTHOR +Sophie Brun diff --git a/debian/ruby-gitlab.manpages b/debian/ruby-gitlab.manpages index 2270ff9..eb77a22 100644 --- a/debian/ruby-gitlab.manpages +++ b/debian/ruby-gitlab.manpages @@ -1 +1 @@ -debian/gitlab.1 +debian/ruby-gitlab.1 diff --git a/debian/rules b/debian/rules index 3454d59..95900b6 100755 --- a/debian/rules +++ b/debian/rules @@ -4,3 +4,7 @@ %: dh $@ --buildsystem=ruby --with ruby + +override_dh_auto_install: + dh_auto_install $@ + mv debian/ruby-gitlab/usr/bin/gitlab debian/ruby-gitlab/usr/bin/ruby-gitlab