Skip to content

Commit

Permalink
Small fixes before publish (flutter#16)
Browse files Browse the repository at this point in the history
Fix dartlang URLs in README
Fix long line in pubspec
Validate hints and warnings on Travis
Remove `new` from Example
  • Loading branch information
kevmoo authored Jun 19, 2019
1 parent a08c875 commit 9c662bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dart_task:
xvfb: false
# Set concurrency to 1 to avoid flakes on Travis
- test: -p firefox -j 1
- dartanalyzer
- dartanalyzer: --fatal-infos --fatal-warnings .

matrix:
include:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ using [`BooleanSelector.evaluate()`][evaluate]. The variables may be supplied as
a list of strings, or as a function that takes a variable name and returns its
value. For example:

[parse]: https://www.dartdocs.org/documentation/boolean_selector/latest/boolean_selector/BooleanSelector/BooleanSelector.parse.html
[parse]: https://pub.dev/documentation/boolean_selector/latest/boolean_selector/BooleanSelector/BooleanSelector.parse.html

[evaluate]: https://www.dartdocs.org/documentation/boolean_selector/latest/boolean_selector/BooleanSelector/evaluate.html
[evaluate]: https://pub.dev/documentation/boolean_selector/latest/boolean_selector/BooleanSelector/evaluate.html

```dart
import 'package:boolean_selector/boolean_selector.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/example.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:boolean_selector/boolean_selector.dart';

void main(List<String> args) {
var selector = new BooleanSelector.parse("(x && y) || z");
var selector = BooleanSelector.parse("(x && y) || z");
print(selector.evaluate((variable) => args.contains(variable)));
}
4 changes: 3 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: boolean_selector
version: 1.0.5
description: A flexible syntax for boolean expressions, based on a simplified version of Dart's expression syntax.
description: >-
A flexible syntax for boolean expressions, based on a simplified version of
Dart's expression syntax.
author: Dart Team <[email protected]>
homepage: https://github.com/dart-lang/boolean_selector

Expand Down

0 comments on commit 9c662bc

Please sign in to comment.