rev to 0.3.1 in preparation for publishing (#45)

rev to 0.3.1 in preparation for publishing
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 55b37cd..d1e8ef0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
 # Changelog
 
+## 0.3.1
+- Update the Windows search path to also look in LOCALAPPDATA.
+
 ## 0.3.0
 - Updated to null safety
 
diff --git a/lib/pub_cache.dart b/lib/pub_cache.dart
index 191a28e..3d867f8 100644
--- a/lib/pub_cache.dart
+++ b/lib/pub_cache.dart
@@ -22,6 +22,8 @@
     if (env.containsKey('PUB_CACHE')) {
       return new Directory(env['PUB_CACHE']);
     } else if (Platform.isWindows) {
+      // See https://github.com/dart-lang/pub/blob/master/lib/src/system_cache.dart.
+
       // %LOCALAPPDATA% is preferred as the cache location over %APPDATA%, because the latter is synchronised between
       // devices when the user roams between them, whereas the former is not.
       // The default cache dir used to be in %APPDATA%, so to avoid breaking old installs,
diff --git a/pubspec.yaml b/pubspec.yaml
index 93cbb2b..d34c830 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: pub_cache
-version: 0.3.0
+version: 0.3.1
 description: A library to reflect on the local pub cache.
 homepage: https://github.com/google/pub_cache
 
diff --git a/test/pub_cache_test.dart b/test/pub_cache_test.dart
index 4a1ddc5..0b0ff85 100644
--- a/test/pub_cache_test.dart
+++ b/test/pub_cache_test.dart
@@ -126,7 +126,7 @@
   });
 
   group('PackageRef', () {
-    PubCache cache;
+    late PubCache cache;
     late Application app;
     late PackageRef ref;
 
@@ -141,6 +141,9 @@
     });
 
     test('==', () {
+      Application app = cache
+          .getGlobalApplications()
+          .firstWhere((app) => app.getPackageRefs().length > 1);
       PackageRef ref0 = app.getPackageRefs()[0];
       PackageRef ref1 = app.getPackageRefs()[1];