Skip to content

Commit

Permalink
Merge pull request #4 from KINTO-JP/v0.1.5
Browse files Browse the repository at this point in the history
[chore] Update Dependency Libraries
  • Loading branch information
KINTO-JP authored Nov 21, 2024
2 parents 17a3d38 + 7b0f940 commit 710e6b7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.5

* Update Dependency Libraries.

## 0.1.4

* Resolve the warning on the pub.dev score.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void main() async {
final OgpData? ogpData = await OgpDataExtract.execute(url);
print(ogpData?.url); // https://pub.dev/
print(ogpData?.type); // website
print(ogpData?.title); // Dart packages
print(ogpData?.title); // The official repository for Dart and Flutter packages.
print(ogpData?.description); // Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter, AngularDart, and general Dart programs.
print(ogpData?.image); // https://pub.dev/static/img/pub-dev-icon-cover-image.png?hash=vg86r2r3mbs62hiv4ldop0ife5um2g5g
print(ogpData?.siteName); // Dart packages
Expand Down
2 changes: 1 addition & 1 deletion example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ void main() async {
final OgpData? ogpData = await OgpDataExtract.execute(url);
print(ogpData?.url); // https://pub.dev/
print(ogpData?.type); // website
print(ogpData?.title); // Dart packages
print(ogpData?.title); // The official repository for Dart and Flutter packages.
print(ogpData
?.description); // Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter, AngularDart, and general Dart programs.
print(ogpData
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ogp_data_extract
description: This is a new package project for extracting ogp data on web pages. This library allows you to retrieve metadata items defined in "The Open Graph protocol".
version: 0.1.4
version: 0.1.5
homepage: https://github.com/KINTO-JP/ogp_data_extract

environment:
Expand All @@ -9,11 +9,11 @@ environment:
dependencies:
flutter:
sdk: flutter
html: ^0.15.4
http: ^1.0.0
string_validator: ^1.0.0
html: ^0.15.5
http: ^1.2.2
string_validator: ^1.1.0

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.1
flutter_lints: ^5.0.0
6 changes: 3 additions & 3 deletions test/ogp_data_extract_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ void main() {
expect(ogpData, isNotNull);
expect(ogpData!.url, 'https://pub.dev/');
expect(ogpData.type, 'website');
expect(ogpData.title, 'Dart packages');
expect(ogpData.title, 'The official repository for Dart and Flutter packages.');
expect(ogpData.description,
'Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter and general Dart programs.');
expect(ogpData.image,
'https://pub.dev/static/hash-a7li5m3f/img/pub-dev-icon-cover-image.png');
'https://pub.dev/static/hash-qgm0u739/img/pub-dev-icon-cover-image.png');
expect(ogpData.siteName, 'Dart packages');
});

Expand All @@ -42,7 +42,7 @@ void main() {
test('Twitter Test', () async {
String url = 'https://twitter.com/FlutterDev/status/1468747974792540163';
final OgpData? ogpData = await OgpDataExtract.execute(url);
expect(ogpData!.title, 'Flutter on Twitter');
expect(ogpData!.title, 'Flutter (@FlutterDev) on X');
expect(ogpData.type, 'article');
expect(ogpData.image,
'https://pbs.twimg.com/tweet_video_thumb/FGII52MVkAQN-Sj.jpg:large');
Expand Down

0 comments on commit 710e6b7

Please sign in to comment.