From febd6939ffeee99274fd47b57879f9473565cea7 Mon Sep 17 00:00:00 2001 From: Ehsan Aramide Date: Thu, 27 May 2021 11:19:25 +0430 Subject: [PATCH] chore(package): changed name and description --- .test | 2 +- README.md | 2 +- example/example_add_ordinal_suffix.dart | 2 +- example/example_bill.dart | 2 +- example/example_commas_methods.dart | 2 +- example/example_digits_methods.dart | 2 +- example/example_get_bank_from_card_number.dart | 2 +- example/example_get_place_by_national_id.dart | 2 +- example/example_ispersian_methods.dart | 2 +- example/example_national_id.dart | 2 +- example/example_phone_number.dart | 2 +- example/example_sheba_methods.dart | 2 +- example/example_url_fix.dart | 2 +- example/example_validate_card_number.dart | 2 +- example/example_vehicle_plate_classes.dart | 2 +- lib/{dart_persian_tools.dart => persian_tools.dart} | 4 ++-- .../get_bank_name_from_card_number/constants.dart | 2 +- .../national_id_place_constants.dart | 2 +- .../get_place_by_national_id/province_constants.dart | 2 +- lib/src/constants/phone_number/constants.dart | 2 +- .../get_bank_name_from_card_number.dart | 2 +- .../get_place_by_national_id.dart | 8 ++++---- lib/src/core/phone_number/phone_number.dart | 2 +- pubspec.yaml | 8 +++++--- test/test_add_ordinal_suffix.dart | 2 +- test/test_bill.dart | 2 +- test/test_commas.dart | 2 +- test/test_digits_methods.dart | 2 +- test/test_get_bank_name_from_card_number.dart | 2 +- test/test_get_place_by_national_id.dart | 2 +- test/test_ispersian_methods.dart | 2 +- test/test_national_id.dart | 2 +- test/test_phone_number.dart | 4 ++-- test/test_sheba_methods.dart | 2 +- test/test_url_fix.dart | 2 +- test/test_validate_card_number.dart | 2 +- test/test_vehicle_plate.dart | 6 +++--- 37 files changed, 48 insertions(+), 46 deletions(-) rename lib/{dart_persian_tools.dart => persian_tools.dart} (94%) diff --git a/.test b/.test index 5fdbd6a..d8a1a89 100644 --- a/.test +++ b/.test @@ -1 +1 @@ -dart_persian_tools:lib/ \ No newline at end of file +persian_tools:lib/ \ No newline at end of file diff --git a/README.md b/README.md index a181730..0e6473c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![codecov](https://codecov.io/gh/persian-tools/dart-persian-tools/branch/master/graph/badge.svg?token=2O5UD1VRHN)](https://codecov.io/gh/persian-tools/dart-persian-tools) [![CI/CD](https://github.com/persian-tools/dart-persian-tools/workflows/Test%20master/badge.svg)]() [![Dart Version](https://img.shields.io/badge/Dart->=2.12.0%20<3.0.0-lightblue)](https://dart.dev) -[![pub version](https://img.shields.io/pub/v/dart_persian_tools)](https://pub.dev/packages/dart_persian_tools) +[![pub version](https://img.shields.io/pub/v/persian_tools)](https://pub.dev/packages/persian_tools) ![status](https://img.shields.io/badge/under_development-lightblue.svg)
diff --git a/example/example_add_ordinal_suffix.dart b/example/example_add_ordinal_suffix.dart index 3bc90f1..28ae241 100644 --- a/example/example_add_ordinal_suffix.dart +++ b/example/example_add_ordinal_suffix.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { var number = 'سی سه'; // سی | شصت | پنجاه دو diff --git a/example/example_bill.dart b/example/example_bill.dart index 4c80ac2..6fd87cd 100644 --- a/example/example_bill.dart +++ b/example/example_bill.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { var bill = Bill(billId: 9174639504124, paymentId: 12908197, currency: 'rial'); diff --git a/example/example_commas_methods.dart b/example/example_commas_methods.dart index 4f708bb..e82ee74 100644 --- a/example/example_commas_methods.dart +++ b/example/example_commas_methods.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { print(addCommas('3333')); // 3,333 diff --git a/example/example_digits_methods.dart b/example/example_digits_methods.dart index 7daa2b4..c22f0ce 100644 --- a/example/example_digits_methods.dart +++ b/example/example_digits_methods.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { print(convertArToFa('السلام علیکم 14۱۲۳6٤٥')); // السلام علیکم 14۱۲۳6۴۵ diff --git a/example/example_get_bank_from_card_number.dart b/example/example_get_bank_from_card_number.dart index 75a8f9e..395fcaf 100644 --- a/example/example_get_bank_from_card_number.dart +++ b/example/example_get_bank_from_card_number.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { final cardNumber = '6037701689095443'; diff --git a/example/example_get_place_by_national_id.dart b/example/example_get_place_by_national_id.dart index 0158096..bc67f11 100644 --- a/example/example_get_place_by_national_id.dart +++ b/example/example_get_place_by_national_id.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { final place = getPlaceByIranNationalId('0084575948'); diff --git a/example/example_ispersian_methods.dart b/example/example_ispersian_methods.dart index ae63051..909b59e 100644 --- a/example/example_ispersian_methods.dart +++ b/example/example_ispersian_methods.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { print(isPersian('این یک متن فارسی است؟')); // true diff --git a/example/example_national_id.dart b/example/example_national_id.dart index 908bd3c..7e1313d 100644 --- a/example/example_national_id.dart +++ b/example/example_national_id.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { var nationalID = '0684159414'; diff --git a/example/example_phone_number.dart b/example/example_phone_number.dart index f40d87f..2b36485 100644 --- a/example/example_phone_number.dart +++ b/example/example_phone_number.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { final phoneNumber = '09022002580'; diff --git a/example/example_sheba_methods.dart b/example/example_sheba_methods.dart index 59575f3..70241e0 100644 --- a/example/example_sheba_methods.dart +++ b/example/example_sheba_methods.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { var sheba = Sheba('IR820540102680020817909002'); diff --git a/example/example_url_fix.dart b/example/example_url_fix.dart index 9d72fb6..4eedb54 100644 --- a/example/example_url_fix.dart +++ b/example/example_url_fix.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { var url = 'wss://hostname.domain/?q=i am a wrong query'; diff --git a/example/example_validate_card_number.dart b/example/example_validate_card_number.dart index 58e1cb5..5c652cb 100644 --- a/example/example_validate_card_number.dart +++ b/example/example_validate_card_number.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { print(validateCardNumber('6219861034529007')); // true diff --git a/example/example_vehicle_plate_classes.dart b/example/example_vehicle_plate_classes.dart index b0ac2a0..ea161fe 100644 --- a/example/example_vehicle_plate_classes.dart +++ b/example/example_vehicle_plate_classes.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; void main() { var motorcyclePlate = Plate(plate: '12345678'); diff --git a/lib/dart_persian_tools.dart b/lib/persian_tools.dart similarity index 94% rename from lib/dart_persian_tools.dart rename to lib/persian_tools.dart index 013c474..2eea00d 100644 --- a/lib/dart_persian_tools.dart +++ b/lib/persian_tools.dart @@ -1,5 +1,5 @@ -/// dart_persian_tools is main lib -library dart_persian_tools; +/// persian_tools is main lib +library persian_tools; // exports [addOrdinalSuffix] method and [AddOrdinalSuffix] extension export 'src/core/add_ordinal_suffix/add_ordinal_suffix.dart'; diff --git a/lib/src/constants/get_bank_name_from_card_number/constants.dart b/lib/src/constants/get_bank_name_from_card_number/constants.dart index 3d40f4c..cc53db0 100644 --- a/lib/src/constants/get_bank_name_from_card_number/constants.dart +++ b/lib/src/constants/get_bank_name_from_card_number/constants.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/src/core/get_bank_name_from_card_number/models.dart'; +import 'package:persian_tools/src/core/get_bank_name_from_card_number/models.dart'; const bankInformation = [ Bank( diff --git a/lib/src/constants/get_place_by_national_id/national_id_place_constants.dart b/lib/src/constants/get_place_by_national_id/national_id_place_constants.dart index 0695893..1aeb4e0 100644 --- a/lib/src/constants/get_place_by_national_id/national_id_place_constants.dart +++ b/lib/src/constants/get_place_by_national_id/national_id_place_constants.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/src/core/get_place_by_national_id/models.dart'; +import 'package:persian_tools/src/core/get_place_by_national_id/models.dart'; final nationalIdPlaces = [ NationalIdPlace.fromStringCodes( diff --git a/lib/src/constants/get_place_by_national_id/province_constants.dart b/lib/src/constants/get_place_by_national_id/province_constants.dart index 4e23ce3..a9f2aae 100644 --- a/lib/src/constants/get_place_by_national_id/province_constants.dart +++ b/lib/src/constants/get_place_by_national_id/province_constants.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/src/core/get_place_by_national_id/models.dart'; +import 'package:persian_tools/src/core/get_place_by_national_id/models.dart'; const provinces = [ Province( diff --git a/lib/src/constants/phone_number/constants.dart b/lib/src/constants/phone_number/constants.dart index 3dbcf82..3a2ea90 100644 --- a/lib/src/constants/phone_number/constants.dart +++ b/lib/src/constants/phone_number/constants.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/src/core/phone_number/models.dart'; +import 'package:persian_tools/src/core/phone_number/models.dart'; final mobileRegex = RegExp(r'^(?:[+|0{2}]?98)?(?:0)?(\d{3})+(\d{3})+(\d{4})$'); diff --git a/lib/src/core/get_bank_name_from_card_number/get_bank_name_from_card_number.dart b/lib/src/core/get_bank_name_from_card_number/get_bank_name_from_card_number.dart index a1b0b42..7ed95f2 100644 --- a/lib/src/core/get_bank_name_from_card_number/get_bank_name_from_card_number.dart +++ b/lib/src/core/get_bank_name_from_card_number/get_bank_name_from_card_number.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/src/constants/get_bank_name_from_card_number/constants.dart'; +import 'package:persian_tools/src/constants/get_bank_name_from_card_number/constants.dart'; import 'models.dart'; diff --git a/lib/src/core/get_place_by_national_id/get_place_by_national_id.dart b/lib/src/core/get_place_by_national_id/get_place_by_national_id.dart index 1146902..2f71647 100644 --- a/lib/src/core/get_place_by_national_id/get_place_by_national_id.dart +++ b/lib/src/core/get_place_by_national_id/get_place_by_national_id.dart @@ -1,7 +1,7 @@ -import 'package:dart_persian_tools/src/constants/get_place_by_national_id/national_id_place_constants.dart'; -import 'package:dart_persian_tools/src/constants/get_place_by_national_id/province_constants.dart'; -import 'package:dart_persian_tools/src/core/get_place_by_national_id/models.dart'; -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/src/constants/get_place_by_national_id/national_id_place_constants.dart'; +import 'package:persian_tools/src/constants/get_place_by_national_id/province_constants.dart'; +import 'package:persian_tools/src/core/get_place_by_national_id/models.dart'; +import 'package:persian_tools/persian_tools.dart'; NationalIdPlace? getPlaceByIranNationalId(String nationalId) { if (!nationalId.isIranianNationalId) return null; diff --git a/lib/src/core/phone_number/phone_number.dart b/lib/src/core/phone_number/phone_number.dart index 79ebee4..6938e21 100644 --- a/lib/src/core/phone_number/phone_number.dart +++ b/lib/src/core/phone_number/phone_number.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/src/constants/phone_number/constants.dart'; +import 'package:persian_tools/src/constants/phone_number/constants.dart'; import 'models.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 7023b1c..55e34e8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,7 @@ -name: dart_persian_tools -description: Dart language version of Persian-Tools +name: persian_tools +description: > + An anthology of a variety of tools for the Persian language + which you can use in all platform that dart supports version: 0.1.0 homepage: https://github.com/persian-tools/dart-persian-tools @@ -7,7 +9,7 @@ repository: https://github.com/persian-tools/dart-persian-tools issue_tracker: https://github.com/persian-tools/dart-persian-tools/issues environment: - sdk: '>=2.12.0 <3.0.0' + sdk: ">=2.12.0 <3.0.0" dev_dependencies: pedantic: ^1.9.0 diff --git a/test/test_add_ordinal_suffix.dart b/test/test_add_ordinal_suffix.dart index 6445071..0f0c85c 100644 --- a/test/test_add_ordinal_suffix.dart +++ b/test/test_add_ordinal_suffix.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_bill.dart b/test/test_bill.dart index f6fe375..1a768df 100644 --- a/test/test_bill.dart +++ b/test/test_bill.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_commas.dart b/test/test_commas.dart index 43ebd17..7428d14 100644 --- a/test/test_commas.dart +++ b/test/test_commas.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_digits_methods.dart b/test/test_digits_methods.dart index 37588f6..ef13ad3 100644 --- a/test/test_digits_methods.dart +++ b/test/test_digits_methods.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_get_bank_name_from_card_number.dart b/test/test_get_bank_name_from_card_number.dart index d827554..670c0a9 100644 --- a/test/test_get_bank_name_from_card_number.dart +++ b/test/test_get_bank_name_from_card_number.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_get_place_by_national_id.dart b/test/test_get_place_by_national_id.dart index c0f33d1..9d9e21c 100644 --- a/test/test_get_place_by_national_id.dart +++ b/test/test_get_place_by_national_id.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_ispersian_methods.dart b/test/test_ispersian_methods.dart index fd152ce..17c2b28 100644 --- a/test/test_ispersian_methods.dart +++ b/test/test_ispersian_methods.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_national_id.dart b/test/test_national_id.dart index 97f06ea..bcfe541 100644 --- a/test/test_national_id.dart +++ b/test/test_national_id.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_phone_number.dart b/test/test_phone_number.dart index ffc4fa2..5da6a39 100644 --- a/test/test_phone_number.dart +++ b/test/test_phone_number.dart @@ -1,5 +1,5 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; -import 'package:dart_persian_tools/src/core/phone_number/models.dart'; +import 'package:persian_tools/persian_tools.dart'; +import 'package:persian_tools/src/core/phone_number/models.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_sheba_methods.dart b/test/test_sheba_methods.dart index fd0916f..8f071fa 100644 --- a/test/test_sheba_methods.dart +++ b/test/test_sheba_methods.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_url_fix.dart b/test/test_url_fix.dart index dc43659..26d93c0 100644 --- a/test/test_url_fix.dart +++ b/test/test_url_fix.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_validate_card_number.dart b/test/test_validate_card_number.dart index ac967ad..876f7da 100644 --- a/test/test_validate_card_number.dart +++ b/test/test_validate_card_number.dart @@ -1,4 +1,4 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; +import 'package:persian_tools/persian_tools.dart'; import 'package:test/test.dart'; void main() { diff --git a/test/test_vehicle_plate.dart b/test/test_vehicle_plate.dart index 6b80db1..8eab2e6 100644 --- a/test/test_vehicle_plate.dart +++ b/test/test_vehicle_plate.dart @@ -1,6 +1,6 @@ -import 'package:dart_persian_tools/dart_persian_tools.dart'; -import 'package:dart_persian_tools/src/core/vehicle_plate/helper_classes.dart'; -import 'package:dart_persian_tools/src/core/vehicle_plate/helper_methods.dart'; +import 'package:persian_tools/persian_tools.dart'; +import 'package:persian_tools/src/core/vehicle_plate/helper_classes.dart'; +import 'package:persian_tools/src/core/vehicle_plate/helper_methods.dart'; import 'package:test/test.dart'; void main() {