Skip to content

Commit 2c6afe7

Browse files
authored
Merge branch 'main' into renovate/major-semantic-release-monorepo
2 parents a2d780c + 7da7b74 commit 2c6afe7

11 files changed

+279
-229
lines changed

.fvmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "stable"
3+
}

.github/workflows/release-ghr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
sdk: [stable]
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- uses: dart-lang/setup-dart@v1
2222
with:
2323
sdk: ${{ matrix.sdk }}
@@ -38,7 +38,7 @@ jobs:
3838
needs: tests
3939
runs-on: ubuntu-latest
4040
steps:
41-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4242
- uses: dart-lang/setup-dart@v1
4343
with:
4444
sdk: stable

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ coverage
1515
.semrel
1616
.failed_tracker
1717
node_modules/
18+
19+
# FVM Version Cache
20+
.fvm/

.releaserc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"assets": [
1414
"package.json",
1515
"package-lock.json",
16-
"CHANGELOG.md"
16+
"CHANGELOG.md",
17+
"pubspec.yaml"
1718
],
1819
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}\n\n\nskip-checks: true"
1920
}

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# [1.2.0](https://github.com/SphericalKat/dart-fuzzywuzzy/compare/v1.1.7...v1.2.0) (2024-08-15)
2+
3+
4+
### Bug Fixes
5+
6+
* **releaserc:** include pubspec yaml in git update ([f60fd44](https://github.com/SphericalKat/dart-fuzzywuzzy/commit/f60fd44a3dc146b836ff7e99ba77450af4c28f4a))
7+
8+
9+
### Features
10+
11+
* **packages:** bump major versions for lints and analyzer ([2013cee](https://github.com/SphericalKat/dart-fuzzywuzzy/commit/2013cee5a7c560ff3a5028166024da69134037b9))
12+
13+
## [1.1.7](https://github.com/SphericalKat/dart-fuzzywuzzy/compare/v1.1.6...v1.1.7) (2024-08-15)
14+
15+
16+
### Bug Fixes
17+
18+
* **ratio:** handle NaNs ([5a79f53](https://github.com/SphericalKat/dart-fuzzywuzzy/commit/5a79f535c8562c489434a14fb758ff6eba4cb3f9))
19+
120
## [1.1.6](https://github.com/SphericalKat/dart-fuzzywuzzy/compare/v1.1.5...v1.1.6) (2023-06-23)
221

322

lib/ratios/simple_ratio.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import '../diffutils/diff_utils.dart';
44
class SimpleRatio implements Applicable {
55
@override
66
int apply(String s1, String s2) {
7-
return (100 * DiffUtils.getRatio(s1, s2)).round();
7+
final diff = DiffUtils.getRatio(s1, s2);
8+
if (diff.isNaN) {
9+
return 0;
10+
}
11+
return (diff * 100).round();
812
}
913
}

0 commit comments

Comments
 (0)