Small fixes before publish (#16)
Fix dartlang URLs in README
Fix long line in pubspec
Validate hints and warnings on Travis
Remove `new` from Example
diff --git a/.travis.yml b/.travis.yml
index 158bb89..8590a67 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,7 @@
xvfb: false
# Set concurrency to 1 to avoid flakes on Travis
- test: -p firefox -j 1
- - dartanalyzer
+ - dartanalyzer: --fatal-infos --fatal-warnings .
matrix:
include:
diff --git a/README.md b/README.md
index c073fab..33c2eb5 100644
--- a/README.md
+++ b/README.md
@@ -21,9 +21,9 @@
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';
diff --git a/example/example.dart b/example/example.dart
index 4089a3d..35548e4 100644
--- a/example/example.dart
+++ b/example/example.dart
@@ -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)));
}
diff --git a/pubspec.yaml b/pubspec.yaml
index 9b36986..4b4a313 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -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 <misc@dartlang.org>
homepage: https://github.com/dart-lang/boolean_selector