Skip to content

Commit

Permalink
fix: improve detection of BSD license files (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
sstadick authored Jan 8, 2025
1 parent 09d8442 commit d986e11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.2.0
- [fix](https://github.com/sstadick/cargo-bundle-licenses/pull/45) closes [issue 44](https://github.com/sstadick/cargo-bundle-licenses/issues/44), improve detection of BSD license files.

# v2.1.1
- [feature](https://github.com/sstadick/cargo-bundle-licenses/pull/41) Add Unicode-3.0 License from @jwodder

# v2.0.0
- [feature](https://github.com/sstadick/cargo-bundle-licenses/pull/32) Climb path and check workspace directory for LICENSE file from @BlueGreenMagick
- [feature](https://github.com/sstadick/cargo-bundle-licenses/pull/33) Add MPL-2.0 License from @BlueGreenMagick
Expand Down
3 changes: 3 additions & 0 deletions src/license.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ impl License {
String::from("apache2"),
String::from("apache-2"),
],
License::BSD_0_Clause => vec![String::from("bsd")],
License::BSD_2_Clause => vec![String::from("bsd")],
License::BSD_3_Clause => vec![String::from("bsd")],
License::BSL_1_0 => vec![
slugify(self.to_string()).to_lowercase(),
String::from("boost"),
Expand Down

0 comments on commit d986e11

Please sign in to comment.