Update to 0.3.2

epel9
Josh Stone 5 years ago
parent f22e71f0ea
commit d381e94a48

1
.gitignore vendored

@ -1 +1,2 @@
/pico-args-0.3.1.crate
/pico-args-0.3.2.crate

@ -1,41 +0,0 @@
From 73eb2098180c460e24eeb575efc545bdc8efcf84 Mon Sep 17 00:00:00 2001
From: Evgeniy Reizner <razrfalcon@gmail.com>
Date: Thu, 20 Feb 2020 03:18:57 +0200
Subject: [PATCH] Ignore debug related tests in release mode.
Closes #9
---
tests/tests.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/tests.rs b/tests/tests.rs
index 3ce69640caf7..bc4004344d72 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -49,6 +49,7 @@ fn invalid_flag_01() {
assert!(args.contains("v"));
}
+#[cfg(debug_assertions)]
#[test]
#[should_panic]
fn invalid_flag_02() {
@@ -56,6 +57,7 @@ fn invalid_flag_02() {
assert!(args.contains(["v", "--version"]));
}
+#[cfg(debug_assertions)]
#[test]
#[should_panic]
fn invalid_flag_03() {
@@ -63,6 +65,7 @@ fn invalid_flag_03() {
assert!(args.contains(["-v", "-version"]));
}
+#[cfg(debug_assertions)]
#[test]
#[should_panic]
fn invalid_flag_04() {
--
2.24.1

@ -5,7 +5,7 @@
%global crate pico-args
Name: rust-%{crate}
Version: 0.3.1
Version: 0.3.2
Release: 1%{?dist}
Summary: Ultra simple CLI arguments parser
@ -14,11 +14,6 @@ License: MIT
URL: https://crates.io/crates/pico-args
Source: %{crates_source}
# Some tests don't work in --release mode
# https://github.com/RazrFalcon/pico-args/issues/9
# https://github.com/RazrFalcon/pico-args/commit/73eb2098180c460e24eeb575efc545bdc8efcf84
Patch0001: 0001-Ignore-debug-related-tests-in-release-mode.patch
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
@ -57,6 +52,18 @@ which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+eq-separator-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+eq-separator-devel %{_description}
This package contains library source intended for building other packages
which use "eq-separator" feature of "%{crate}" crate.
%files -n %{name}+eq-separator-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
@ -76,5 +83,8 @@ which use "default" feature of "%{crate}" crate.
%endif
%changelog
* Fri Jun 19 2020 Josh Stone <jistone@redhat.com> - 0.3.2-1
- Update to 0.3.2
* Wed Feb 19 16:28:49 PST 2020 Josh Stone <jistone@redhat.com> - 0.3.1-1
- Initial package

@ -1 +1 @@
SHA512 (pico-args-0.3.1.crate) = a227cbe22bf8efe6fcdf5e8917d04c902ed31f0cdce3c431e1fef1c74f468daf2af599bb167036a0cc4c1a91a249d85068bab567de5f7cfbf2a1e1958c2b905d
SHA512 (pico-args-0.3.2.crate) = 77ffd1c281dbd0f7615a99f54ace605819e5a90baf18ac93a6f545070a0095a4ffde4d78f60fe5bb2c47778ec80785ba5cec17c78a773f4ccda688756dd8b165

Loading…
Cancel
Save