diff --git a/CHANGELOG.md b/CHANGELOG.md index ecf8b67..53e4d8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.1 + +* _Minor pub updates and tested with dart `2.10`._ + ## 0.2.0 * **NYSIIS** implemented (original and modified). diff --git a/README.md b/README.md index 741fbda..1b2d851 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://travis-ci.com/raycardillo/dart_phonetics.svg?branch=master)](https://travis-ci.com/raycardillo/dart_phonetics) [![Pub package](https://img.shields.io/pub/v/dart_phonetics)](https://pub.dev/packages/dart_phonetics) [![Dartdoc reference](https://img.shields.io/badge/dartdoc-reference-blue)](https://pub.dev/documentation/dart_phonetics/latest/) -[![Project license](https://img.shields.io/badge/license-Apache%202.0-informational)](http://www.apache.org/licenses/LICENSE-2.0) +[![Project license](https://img.shields.io/badge/license-Apache%202.0-informational)](https://www.apache.org/licenses/LICENSE-2.0) A collection of phonetic algorithms for [Dart](https://dart.dev/) and [Flutter](https://flutter.dev/). These algorithms help find words or names that sound similar by generating an encoding that can be compared or indexed for fuzzy searching. diff --git a/pubspec.lock b/pubspec.lock index 6b85b08..90513b6 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,49 +7,56 @@ packages: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted - version: "1.0.1" + version: "11.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "0.39.2+1" + version: "0.40.4" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted - version: "1.5.2" + version: "1.6.0" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.4.0" + version: "2.4.2" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "1.0.5" + version: "2.0.0" charcode: dependency: "direct main" description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.1.2" + version: "1.1.3" + cli_util: + dependency: transitive + description: + name: cli_util + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.0" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.12" + version: "1.14.13" convert: dependency: transitive description: @@ -63,21 +70,14 @@ packages: name: coverage url: "https://pub.dartlang.org" source: hosted - version: "0.13.3+3" + version: "0.14.1" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "2.1.4" - csslib: - dependency: transitive - description: - name: csslib - url: "https://pub.dartlang.org" - source: hosted - version: "0.16.1" + version: "2.1.5" glob: dependency: transitive description: @@ -85,132 +85,111 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.2.0" - html: - dependency: transitive - description: - name: html - url: "https://pub.dartlang.org" - source: hosted - version: "0.14.0+3" http: dependency: transitive description: name: http url: "https://pub.dartlang.org" source: hosted - version: "0.12.0+2" + version: "0.12.2" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted - version: "3.1.3" + version: "3.1.4" io: dependency: transitive description: name: io url: "https://pub.dartlang.org" source: hosted - version: "0.3.3" + version: "0.3.4" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted - version: "0.6.1+1" + version: "0.6.2" logging: dependency: transitive description: name: logging url: "https://pub.dartlang.org" source: hosted - version: "0.11.3+2" + version: "0.11.4" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.6" + version: "0.12.9" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.8" + version: "1.2.3" mime: dependency: transitive description: name: mime url: "https://pub.dartlang.org" source: hosted - version: "0.9.6+3" - multi_server_socket: - dependency: transitive - description: - name: multi_server_socket - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.2" + version: "0.9.7" node_interop: dependency: transitive description: name: node_interop url: "https://pub.dartlang.org" source: hosted - version: "1.0.3" + version: "1.1.1" node_io: dependency: transitive description: name: node_io url: "https://pub.dartlang.org" source: hosted - version: "1.0.1+2" + version: "1.1.1" node_preamble: dependency: transitive description: name: node_preamble url: "https://pub.dartlang.org" source: hosted - version: "1.4.8" + version: "1.4.12" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" - package_resolver: - dependency: transitive - description: - name: package_resolver - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.10" + version: "1.9.3" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.6.4" + version: "1.7.0" pedantic: dependency: "direct dev" description: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.9.0" + version: "1.9.2" pool: dependency: transitive description: @@ -224,21 +203,21 @@ packages: name: pub_semver url: "https://pub.dartlang.org" source: hosted - version: "1.4.2" + version: "1.4.4" shelf: dependency: transitive description: name: shelf url: "https://pub.dartlang.org" source: hosted - version: "0.7.5" + version: "0.7.9" shelf_packages_handler: dependency: transitive description: name: shelf_packages_handler url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "2.0.0" shelf_static: dependency: transitive description: @@ -259,28 +238,28 @@ packages: name: source_map_stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.1.5" + version: "2.0.0" source_maps: dependency: transitive description: name: source_maps url: "https://pub.dartlang.org" source: hosted - version: "0.10.8" + version: "0.10.9" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.5.5" + version: "1.7.0" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.9.3" + version: "1.9.5" stream_channel: dependency: transitive description: @@ -308,42 +287,42 @@ packages: name: test url: "https://pub.dartlang.org" source: hosted - version: "1.9.4" + version: "1.15.4" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.11" + version: "0.2.18" test_core: dependency: transitive description: name: test_core url: "https://pub.dartlang.org" source: hosted - version: "0.2.15" + version: "0.3.11+1" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.2.0" vm_service: dependency: transitive description: name: vm_service url: "https://pub.dartlang.org" source: hosted - version: "2.1.4" + version: "4.2.0" watcher: dependency: transitive description: name: watcher url: "https://pub.dartlang.org" source: hosted - version: "0.9.7+13" + version: "0.9.7+15" web_socket_channel: dependency: transitive description: @@ -351,12 +330,19 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.0" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + url: "https://pub.dartlang.org" + source: hosted + version: "0.7.3" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted - version: "2.2.0" + version: "2.2.1" sdks: - dart: ">=2.3.0 <3.0.0" + dart: ">=2.7.0 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index d294130..548a6b9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dart_phonetics description: A collection of phonetic algorithms. These algorithms help find words or names that sound similar by generating an encoding that can be compared or indexed for fuzzy searching. -version: 0.2.0 +version: 0.2.1 homepage: https://github.com/raycardillo/dart_phonetics repository: https://github.com/raycardillo/dart_phonetics @@ -8,8 +8,8 @@ environment: sdk: ">=2.2.2 <3.0.0" dependencies: - charcode: ^1.1.2 + charcode: ^1.1.3 dev_dependencies: - test: ^1.9.4 - pedantic: ^1.8.0+1 + test: ^1.15.4 + pedantic: ^1.9.2 diff --git a/test/double_metaphone_test.dart b/test/double_metaphone_test.dart index 97cf165..5155cd3 100644 --- a/test/double_metaphone_test.dart +++ b/test/double_metaphone_test.dart @@ -1256,9 +1256,9 @@ void main() { group('Special Prefixes', () { test('test A prefixes', () { final encoder = DoubleMetaphone.defaultEncoder; - expectEncoding(encoder, "ab Wennonwen", 'APNN', ['APNN']); - expectEncoding(encoder, "ap Llewellyn", 'APLL', ['APLL']); - expectEncoding(encoder, "ap Lorwerth", 'APLR', ['APLR']); + expectEncoding(encoder, 'ab Wennonwen', 'APNN', ['APNN']); + expectEncoding(encoder, 'ap Llewellyn', 'APLL', ['APLL']); + expectEncoding(encoder, 'ap Lorwerth', 'APLR', ['APLR']); }); test('test D prefixes', () { diff --git a/test/nysiis_test.dart b/test/nysiis_test.dart index 16a5742..3c7a2be 100644 --- a/test/nysiis_test.dart +++ b/test/nysiis_test.dart @@ -110,9 +110,9 @@ void main() { final encoder = Nysiis.originalEncoder; expectEncoding(encoder, "O'Daniel", 'ODANAL'); expectEncoding(encoder, "O'Donnel", 'ODANAL'); - expectEncoding(encoder, "Cory", 'CARY'); - expectEncoding(encoder, "Corey", 'CARY'); - expectEncoding(encoder, "Kory", 'CARY'); + expectEncoding(encoder, 'Cory', 'CARY'); + expectEncoding(encoder, 'Corey', 'CARY'); + expectEncoding(encoder, 'Kory', 'CARY'); }); // http://ntz-develop.blogspot.com/2011/03/phonetic-algorithms.html diff --git a/test/soundex_test.dart b/test/soundex_test.dart index f0e757b..2ba99d6 100644 --- a/test/soundex_test.dart +++ b/test/soundex_test.dart @@ -557,15 +557,15 @@ void main() { // https://www.ics.uci.edu/~dan/genealogy/Miller/javascrp/soundex.htm expectEncoding(encoder, 'vanDever', 'V531', ['D160']); - expectEncoding(encoder, "Conway", 'C500', ['W000']); + expectEncoding(encoder, 'Conway', 'C500', ['W000']); expectEncoding(encoder, 'DeHunt', 'D530', ['H530']); expectEncoding(encoder, 'De Hunt', 'D530', ['H530']); expectEncoding(encoder, 'DelaHunt', 'D453', ['H530']); expectEncoding(encoder, 'Dela Hunt', 'D453', ['H530']); expectEncoding(encoder, 'De la Hunt', 'D453', ['H530']); - expectEncoding(encoder, "DiOrio", 'D600', ['O600']); - expectEncoding(encoder, "Dupont", 'D153', ['P530']); - expectEncoding(encoder, "DeCicco", 'D220', ['C200']); + expectEncoding(encoder, 'DiOrio', 'D600', ['O600']); + expectEncoding(encoder, 'Dupont', 'D153', ['P530']); + expectEncoding(encoder, 'DeCicco', 'D220', ['C200']); expectEncoding(encoder, "D'Asti", 'D230', ['A230']); expectEncoding(encoder, 'la Cruz', 'L262', ['C620']); expectEncoding(encoder, 'LaFontaine', 'L153', ['F535']); diff --git a/tool/sed-example.sh b/tool/sed-example.sh old mode 100644 new mode 100755