diff options
| author | Klaumi Klingsporn <klaumikli@gmx.de> | 2021-01-30 17:55:32 +0100 |
|---|---|---|
| committer | git-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com> | 2021-02-05 22:43:13 +0000 |
| commit | 3b69a9b641460c40380615477b1f5ab63edc2e1b (patch) | |
| tree | e13182c9ace95da4ebaa7f79023edceee3b651b3 | |
| parent | f46e99432f122aa48ffd7a82fcc3a62b2b6f7a29 (diff) | |
3.0.7-1 (patches unapplied)import/3.0.7-1ubuntu/mantic-develubuntu/manticubuntu/lunar-develubuntu/lunarubuntu/kinetic-develubuntu/kineticubuntu/jammy-develubuntu/jammyubuntu/impish-develubuntu/impishubuntu/hirsute-proposedubuntu/hirsute-develubuntu/hirsutedebian/bullseyedebian/bookworm
Imported using git-ubuntu import.
Notes
Notes:
* Team Upload
* New upstream version 3.0.7
[ Klaumi Klingsporn ]
* d/control: Bump Standards-Version to 4.5.1 and
debhelper-compat to 13.
[ Debian Janitor ]
* Apply multi-arch hints.
+ ruby-cmdparse: Add Multi-Arch: foreign.
| -rw-r--r-- | Rakefile | 1 | ||||
| -rw-r--r-- | VERSION | 2 | ||||
| -rw-r--r-- | cmdparse.gemspec | 6 | ||||
| -rw-r--r-- | debian/changelog | 15 | ||||
| -rw-r--r-- | debian/control | 5 | ||||
| -rw-r--r-- | debian/salsa-ci.yml | 4 | ||||
| -rw-r--r-- | doc/default.template | 2 | ||||
| -rw-r--r-- | doc/news.page | 8 | ||||
| -rw-r--r-- | lib/cmdparse.rb | 6 |
9 files changed, 40 insertions, 9 deletions
@@ -107,7 +107,6 @@ namespace :dev do s.add_development_dependency "webgen", "~> 1.4" #### Documentation - s.has_rdoc = true s.rdoc_options = ['--line-numbers', '--main', 'CmdParse::CommandParser'] #### Author and project details @@ -1 +1 @@ -3.0.6 +3.0.7 diff --git a/cmdparse.gemspec b/cmdparse.gemspec index 7a3dfc4..b6ea3a9 100644 --- a/cmdparse.gemspec +++ b/cmdparse.gemspec @@ -2,16 +2,16 @@ # This file has been automatically generated by gem2tgz # ######################################################### # -*- encoding: utf-8 -*- -# stub: cmdparse 3.0.6 ruby lib +# stub: cmdparse 3.0.7 ruby lib Gem::Specification.new do |s| s.name = "cmdparse".freeze - s.version = "3.0.6" + s.version = "3.0.7" s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Thomas Leitner".freeze] - s.date = "2020-05-02" + s.date = "2020-12-08" s.description = " cmdparse provides classes for parsing (possibly nested) commands on the command line;\n command line options themselves are parsed using optparse.\n".freeze s.email = "t_leitner@gmx.at".freeze s.files = ["COPYING".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "doc/api.api".freeze, "doc/api.template".freeze, "doc/default.scss".freeze, "doc/default.template".freeze, "doc/images/bg01.png".freeze, "doc/images/bg02.png".freeze, "doc/index.page".freeze, "doc/installation.page".freeze, "doc/metainfo".freeze, "doc/news.page".freeze, "doc/sitemap.sitemap".freeze, "doc/tutorial.page".freeze, "doc/virtual".freeze, "example/net.rb".freeze, "lib/cmdparse.rb".freeze, "setup.rb".freeze, "webgen.config".freeze] diff --git a/debian/changelog b/debian/changelog index 5e72350..e914f75 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,18 @@ +ruby-cmdparse (3.0.7-1) unstable; urgency=medium + + * Team Upload + * New upstream version 3.0.7 + + [ Klaumi Klingsporn ] + * d/control: Bump Standards-Version to 4.5.1 and + debhelper-compat to 13. + + [ Debian Janitor ] + * Apply multi-arch hints. + + ruby-cmdparse: Add Multi-Arch: foreign. + + -- Klaumi Klingsporn <klaumikli@gmx.de> Sat, 30 Jan 2021 17:55:32 +0100 + ruby-cmdparse (3.0.6-1) unstable; urgency=medium * Team Upload diff --git a/debian/control b/debian/control index 720d321..3cef09f 100644 --- a/debian/control +++ b/debian/control @@ -4,9 +4,9 @@ Priority: optional Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org> Uploaders: Paul van Tilburg <paulvt@debian.org>, Cédric Boutillier <boutil@debian.org> -Build-Depends: debhelper-compat (= 12), +Build-Depends: debhelper-compat (= 13), gem2deb, -Standards-Version: 4.5.0 +Standards-Version: 4.5.1 Vcs-Git: https://salsa.debian.org/ruby-team/ruby-cmdparse.git Vcs-Browser: https://salsa.debian.org/ruby-team/ruby-cmdparse Homepage: https://cmdparse.gettalong.org @@ -20,6 +20,7 @@ XB-Ruby-Versions: ${ruby:Versions} Depends: ${ruby:Depends}, ${misc:Depends}, ${shlibs:Depends} +Multi-Arch: foreign Description: advanced command line parsing Ruby module supporting sub-commands It allows the creation of command style programs, that perform different functions depending on which command is invoked. Additionally, nesting diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..33c3a64 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/doc/default.template b/doc/default.template index bef9142..2fe3599 100644 --- a/doc/default.template +++ b/doc/default.template @@ -24,7 +24,7 @@ <!-- Sidebar --> <div id="sidebar"> - <h1 id="logo"><a href="{relocatable: /}">cmdparse</a><br /><span>v 3.0.6</span></h1> + <h1 id="logo"><a href="{relocatable: /}">cmdparse</a><br /><span>v 3.0.7</span></h1> <!-- Nav --> <nav id="nav"> diff --git a/doc/news.page b/doc/news.page index e5d80f3..f6fc468 100644 --- a/doc/news.page +++ b/doc/news.page @@ -5,6 +5,14 @@ sort_info: 8 --- ## News +### 2020-12-08 cmdparse 3.0.7 released! + +Changes: + +* Behave well when interrupted via <kbd>Control+C</kbd> and when used in a pipe that gets closed + (thanks to postmodern) + + ### 2020-05-02 cmdparse 3.0.6 released! Changes: diff --git a/lib/cmdparse.rb b/lib/cmdparse.rb index 060992f..cbe4e94 100644 --- a/lib/cmdparse.rb +++ b/lib/cmdparse.rb @@ -47,7 +47,7 @@ end module CmdParse # The version of this cmdparse implemention - VERSION = '3.0.6'.freeze + VERSION = '3.0.7'.freeze # Base class for all cmdparse errors. @@ -898,6 +898,10 @@ module CmdParse @main_command.commands['help'].execute(*@current_command.command_chain.map(&:name)) end exit(64) # FreeBSD standard exit error for "command was used incorrectly" + rescue Interrupt + exit(128 + 2) + rescue Errno::EPIPE + # Behave well when used in a pipe ensure @current_command = nil end |
