Skip to content

Commit

Permalink
chore(package): changed name and description
Browse files Browse the repository at this point in the history
  • Loading branch information
EhsanAramide committed May 27, 2021
1 parent 50e8b7c commit febd693
Show file tree
Hide file tree
Showing 37 changed files with 48 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .test
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dart_persian_tools:lib/
persian_tools:lib/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
</div>
<hr/>
Expand Down
2 changes: 1 addition & 1 deletion example/example_add_ordinal_suffix.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:dart_persian_tools/dart_persian_tools.dart';
import 'package:persian_tools/persian_tools.dart';

void main() {
var number = 'سی سه'; // سی | شصت | پنجاه دو
Expand Down
2 changes: 1 addition & 1 deletion example/example_bill.dart
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion example/example_commas_methods.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/example_digits_methods.dart
Original file line number Diff line number Diff line change
@@ -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۴۵
Expand Down
2 changes: 1 addition & 1 deletion example/example_get_bank_from_card_number.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion example/example_get_place_by_national_id.dart
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion example/example_ispersian_methods.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/example_national_id.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion example/example_phone_number.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion example/example_sheba_methods.dart
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion example/example_url_fix.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion example/example_validate_card_number.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion example/example_vehicle_plate_classes.dart
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
4 changes: 2 additions & 2 deletions lib/dart_persian_tools.dart → lib/persian_tools.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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?>[
Bank(
Expand Down
Original file line number Diff line number Diff line change
@@ -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?>[
NationalIdPlace.fromStringCodes(
Expand Down
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/constants/phone_number/constants.dart
Original file line number Diff line number Diff line change
@@ -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})$');

Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/phone_number/phone_number.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
8 changes: 5 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
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
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
Expand Down
2 changes: 1 addition & 1 deletion test/test_add_ordinal_suffix.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_bill.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_commas.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_digits_methods.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_get_bank_name_from_card_number.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_get_place_by_national_id.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_ispersian_methods.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_national_id.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions test/test_phone_number.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_sheba_methods.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_url_fix.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_validate_card_number.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions test/test_vehicle_plate.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit febd693

Please sign in to comment.