From 15fc38d22a14e0c5d651da325786bd363fa50f8a Mon Sep 17 00:00:00 2001 From: thosakwe Date: Tue, 11 Jul 2017 16:48:19 -0400 Subject: [PATCH] Swapped to angel_model --- .idea/libraries/Dart_Packages.xml | 8 + .../All_Tests__PRODUCTION_2.xml | 2 +- .idea/workspace.xml | 166 +++++++++--------- CHANGELOG.md | 3 + lib/common.dart | 9 +- pubspec.yaml | 3 +- 6 files changed, 94 insertions(+), 97 deletions(-) diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml index 14dea75e..06615469 100644 --- a/.idea/libraries/Dart_Packages.xml +++ b/.idea/libraries/Dart_Packages.xml @@ -9,6 +9,13 @@ + + + + + + @@ -391,6 +398,7 @@ + diff --git a/.idea/runConfigurations/All_Tests__PRODUCTION_2.xml b/.idea/runConfigurations/All_Tests__PRODUCTION_2.xml index 732a10e5..27a10c9c 100644 --- a/.idea/runConfigurations/All_Tests__PRODUCTION_2.xml +++ b/.idea/runConfigurations/All_Tests__PRODUCTION_2.xml @@ -5,7 +5,7 @@ @@ -576,7 +563,8 @@ - + + 1481237183504 @@ -739,19 +727,29 @@ - - - - - - - + + + + + + + + + @@ -761,9 +759,6 @@ - - - @@ -775,7 +770,7 @@ - @@ -788,17 +783,17 @@ + - + - - + @@ -810,6 +805,7 @@ + @@ -914,13 +910,6 @@ - - - - - - - @@ -1114,7 +1103,6 @@ - @@ -1130,7 +1118,6 @@ - @@ -1138,15 +1125,12 @@ - - - - + @@ -1154,16 +1138,16 @@ - - + + - - + + @@ -1173,14 +1157,14 @@ - + - + @@ -1188,25 +1172,17 @@ - + - - - - - - - - - + @@ -1215,11 +1191,27 @@ + + + + + + + + + + + + + + + + - - + + diff --git a/CHANGELOG.md b/CHANGELOG.md index f55f08bc..b4ee3959 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.0.7+1 +Moved the `Model` class into `package:angel_model`. No functionality was added or removed. + # 1.0.7 Added an `accepts` method to `RequestContext`. It's now a lot easier to tell which content types the user accepts via the `Accept` header. \ No newline at end of file diff --git a/lib/common.dart b/lib/common.dart index c07e0596..33b1bc80 100644 --- a/lib/common.dart +++ b/lib/common.dart @@ -1,8 +1 @@ -/// Represents arbitrary data, with an associated ID and timestamps. -class Model { - String id; - DateTime createdAt; - DateTime updatedAt; - - Model({this.id, this.createdAt, this.updatedAt}); -} \ No newline at end of file +export 'package:angel_model/angel_model.dart'; \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index eb465f9f..7f3e4c7e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,12 @@ name: angel_framework -version: 1.0.7 +version: 1.0.7+1 description: A high-powered HTTP server with DI, routing and more. author: Tobe O homepage: https://github.com/angel-dart/angel_framework environment: sdk: ">=1.19.0" dependencies: + angel_model: ^1.0.0 angel_route: ^1.0.0-dev body_parser: ^1.0.0-dev container: ^0.1.2