Skip to content

Commit

Permalink
Release 0.4.0 (#38)
Browse files Browse the repository at this point in the history
* Update dependencies

* Replace rstest_parametrize with rstest

* Update integration test for new version of assert_cmd

* Update changelog
  • Loading branch information
noeddl committed Dec 23, 2019
1 parent 07d0a79 commit fd93513
Show file tree
Hide file tree
Showing 10 changed files with 114 additions and 126 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Changelog

## [0.4.0] - 2019-12-23

* Add a bunch of new chord types ([#31](https://github.com/noeddl/ukebox/issues/31)).
* Remove incorrect chord shapes for `D7` and `Dm7` ([#34](https://github.com/noeddl/ukebox/issues/34)).

## [0.3.0] - 2019-11-24

* Set up CI for the repo.
* Add command line option `--tuning` to specify a tuning (`C`, `D` or `G`).
* Add command line option `--tuning` to specify a tuning (`C`, `D` or `G`) ([#1](https://github.com/noeddl/ukebox/issues/1)).

## [0.2.0] - 2019-10-13

Expand Down
127 changes: 55 additions & 72 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ukebox"
version = "0.3.0"
version = "0.4.0"
authors = ["Anett Seeker"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -18,7 +18,7 @@ regex = "1"
structopt = "0.3"

[dev-dependencies]
assert_cmd = "0.10"
assert_cmd = "0.12"
indoc = "0.3"
predicates = "1"
rstest = "0.3"
rstest = "0.5"
34 changes: 17 additions & 17 deletions src/chord/chord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ impl FromStr for Chord {
mod tests {
#![allow(clippy::many_single_char_names)]
use super::*;
use rstest::rstest_parametrize;
use rstest::rstest;

#[rstest_parametrize(
#[rstest(
chord,
case("Z"),
case("c"),
Expand All @@ -219,7 +219,7 @@ mod tests {
assert!(Chord::from_str(chord).is_err())
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -251,7 +251,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::Major);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -283,7 +283,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::Minor);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -315,7 +315,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::SuspendedSecond);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -347,7 +347,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::SuspendedFourth);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -379,7 +379,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::Augmented);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -411,7 +411,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::Diminished);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -451,7 +451,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::DominantSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -491,7 +491,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::MinorSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -531,7 +531,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::MajorSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -571,7 +571,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::MinorMajorSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -611,7 +611,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::AugmentedSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -651,7 +651,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::AugmentedMajorSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -691,7 +691,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::DiminishedSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
root,
third,
Expand Down Expand Up @@ -731,7 +731,7 @@ mod tests {
assert_eq!(c.chord_type, ChordType::HalfDiminishedSeventh);
}

#[rstest_parametrize(
#[rstest(
chord,
note,
contains,
Expand Down
4 changes: 2 additions & 2 deletions src/diagram/chord_diagram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ impl fmt::Display for ChordDiagram {
mod tests {
use super::*;
use indoc::indoc;
use rstest::rstest_parametrize;
use rstest::rstest;
use std::str::FromStr;

#[rstest_parametrize(chord_name, min_fret, tuning, diagram,
#[rstest(chord_name, min_fret, tuning, diagram,
case(
"C",
0,
Expand Down
4 changes: 2 additions & 2 deletions src/diagram/string_diagram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ impl fmt::Display for StringDiagram {
#[cfg(test)]
mod tests {
use super::*;
use rstest::rstest_parametrize;
use rstest::rstest;
use std::str::FromStr;

#[rstest_parametrize(
#[rstest(
root_name,
base_fret,
fret,
Expand Down
6 changes: 3 additions & 3 deletions src/note/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ impl Add<Interval> for Note {
#[cfg(test)]
mod tests {
use super::*;
use rstest::rstest_parametrize;
use rstest::rstest;
use Interval::*;

#[rstest_parametrize(
#[rstest(
s,
case("C"),
case("C#"),
Expand All @@ -170,7 +170,7 @@ mod tests {
assert_eq!(format!("{}", note), s);
}

#[rstest_parametrize(
#[rstest(
note_name,
interval,
result_name,
Expand Down
10 changes: 5 additions & 5 deletions src/note/pitch_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ impl Sub<Semitones> for PitchClass {
#[cfg(test)]
mod tests {
use super::*;
use rstest::rstest_parametrize;
use rstest::rstest;
use PitchClass::*;

#[rstest_parametrize(
#[rstest(
n,
pitch_class,
case(0, C),
Expand All @@ -143,7 +143,7 @@ mod tests {
assert_eq!(PitchClass::from(n), pitch_class);
}

#[rstest_parametrize(
#[rstest(
pitch_class,
n,
result,
Expand All @@ -158,7 +158,7 @@ mod tests {
assert_eq!(pitch_class + n, result);
}

#[rstest_parametrize(
#[rstest(
pc1,
pc2,
n,
Expand All @@ -171,7 +171,7 @@ mod tests {
assert_eq!(pc1 - pc2, n);
}

#[rstest_parametrize(
#[rstest(
pc1,
n,
pc2,
Expand Down
6 changes: 3 additions & 3 deletions src/note/staff_position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ impl Add<StaffSteps> for StaffPosition {
#[cfg(test)]
mod tests {
use super::*;
use rstest::rstest_parametrize;
use rstest::rstest;
use StaffPosition::*;

#[rstest_parametrize(
#[rstest(
n,
staff_position,
case(0, CPos),
Expand All @@ -76,7 +76,7 @@ mod tests {
assert_eq!(StaffPosition::from(n), staff_position);
}

#[rstest_parametrize(
#[rstest(
staff_position,
n,
result,
Expand Down
Loading

0 comments on commit fd93513

Please sign in to comment.