File tree Expand file tree Collapse file tree 10 files changed +19
-22
lines changed Expand file tree Collapse file tree 10 files changed +19
-22
lines changed Original file line number Diff line number Diff line change 9
9
steps :
10
10
- uses : actions/checkout@v4
11
11
12
+ # testing is simpler with Flutter
12
13
- uses : subosito/flutter-action@v2
13
14
14
15
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -27,3 +27,6 @@ migrate_working_dir/
27
27
** /doc /api /
28
28
.dart_tool /
29
29
build /
30
+
31
+ # Coverage
32
+ coverage /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ## 0.1.1
2
+
3
+ - removes Flutter dependency
4
+
1
5
## 0.1.0
2
6
3
7
- initial release
Original file line number Diff line number Diff line change 5
5
[ ![ likes] ( https://img.shields.io/pub/likes/token_bucket_algorithm )] ( https://pub.dev/packages/token_bucket_algorithm/score )
6
6
[ ![ popularity] ( https://img.shields.io/pub/popularity/token_bucket_algorithm )] ( https://pub.dev/packages/token_bucket_algorithm/score )
7
7
[ ![ pub points] ( https://img.shields.io/pub/points/token_bucket_algorithm )] ( https://pub.dev/packages/token_bucket_algorithm/score )
8
- [ ![ license] ( https://img.shields.io/github/license/splashbyte/dart_token_bucket_algorithm.svg )] ( https://github.com/SplashByte /dart_token_bucket_algorithm/blob/main/LICENSE )
8
+ [ ![ license] ( https://img.shields.io/github/license/splashbyte/dart_token_bucket_algorithm.svg )] ( https://github.com/splashbyte /dart_token_bucket_algorithm/blob/main/LICENSE )
9
9
[ ![ codecov] ( https://codecov.io/gh/splashbyte/dart_token_bucket_algorithm/branch/main/graph/badge.svg?token=NY1D6W88H2 )] ( https://codecov.io/gh/splashbyte/dart_token_bucket_algorithm )
10
10
11
11
This Dart package provides rate limiting by using an implementation of the token bucket algorithm.
Original file line number Diff line number Diff line change 1
- include : package:flutter_lints/flutter .yaml
1
+ include : package:lints/recommended .yaml
2
2
3
3
analyzer :
4
4
language :
Original file line number Diff line number Diff line change 1
1
name : token_bucket_algorithm
2
2
description : " Implementation of the token bucket algorithm."
3
- version : 0.1.0
3
+ version : 0.1.1
4
4
repository : https://github.com/splashbyte/dart_token_bucket_algorithm
5
5
issue_tracker : https://github.com/splashbyte/dart_token_bucket_algorithm/issues
6
6
@@ -12,16 +12,12 @@ topics:
12
12
13
13
environment :
14
14
sdk : ' >=3.0.0 <4.0.0'
15
- flutter : " >=1.17.0"
16
15
17
16
dependencies :
18
- flutter :
19
- sdk : flutter
20
17
clock : ^1.1.1
21
18
22
19
dev_dependencies :
23
- flutter_test :
24
- sdk : flutter
25
- flutter_lints : ^3.0.0
20
+ test : ' >=1.15.0 <2.0.0'
21
+ lints : ^4.0.0
26
22
fake_async : ^1.3.1
27
23
mocktail : ^1.0.4
Original file line number Diff line number Diff line change 1
- import 'package:flutter_test/flutter_test.dart' ;
1
+ import 'package:test/expect.dart' ;
2
+ import 'package:test/scaffolding.dart' ;
2
3
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart' ;
3
4
4
5
void main () {
Original file line number Diff line number Diff line change 1
- import 'package:flutter_test/flutter_test.dart' ;
1
+ import 'package:test/expect.dart' ;
2
+ import 'package:test/scaffolding.dart' ;
2
3
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart' ;
3
4
4
5
void _testStorage (TokenBucketStorage storage) {
Original file line number Diff line number Diff line change 1
1
import 'package:clock/clock.dart' ;
2
2
import 'package:fake_async/fake_async.dart' ;
3
- import 'package:flutter_test/flutter_test.dart' ;
4
3
import 'package:mocktail/mocktail.dart' ;
4
+ import 'package:test/expect.dart' ;
5
+ import 'package:test/scaffolding.dart' ;
5
6
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart' ;
6
7
7
8
import 'mocks.dart' ;
You can’t perform that action at this time.
0 commit comments