diff --git a/packages/framework/.gitignore b/packages/framework/.gitignore index 0104b702..24d68312 100644 --- a/packages/framework/.gitignore +++ b/packages/framework/.gitignore @@ -1,41 +1,64 @@ -# Created by .ignore support plugin (hsz.mobi) +# See https://www.dartlang.org/tools/private-files.html + +# Files and directories created by pub +.dart_tool +.packages +.pub/ +build/ + +# If you're building an application, you may want to check-in your pubspec.lock +pubspec.lock + +# Directory created by dartdoc +# If you don't generate documentation locally you can remove this line. +doc/api/ + +### Dart template +# See https://www.dartlang.org/tools/private-files.html + +# Files and directories created by pub + +# SDK 1.20 and later (no longer creates packages directories) + +# Older SDK versions +# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20) +.project +.buildlog +**/packages/ + + +# Files created by dart2js +# (Most Dart developers will use pub build to compile Dart, use/modify these +# rules if you intend to use dart2js directly +# Convention is to use extension '.dart.js' for Dart compiled to Javascript to +# differentiate from explicit Javascript files) +*.dart.js +*.part.js +*.js.deps +*.js.map +*.info.json + +# Directory created by dartdoc + +# Don't commit pubspec lock file +# (Library packages only! Remove pattern if developing an application package) ### JetBrains template -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio - -*.iml - -## Directory-based project format: -# if you remove the above rule, at least ignore the following: +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff: -# .idea/workspace.xml -# .idea/tasks.xml -# .idea/dictionaries -# Sensitive or high-churn files: -# .idea/dataSources.ids -# .idea/dataSources.xml -# .idea/sqlDataSources.xml -# .idea/dynamic.xml -# .idea/uiDesigner.xml - -# Gradle: -# .idea/gradle.xml -# .idea/libraries - -# Mongo Explorer plugin: -# .idea/mongoSettings.xml +## VsCode +.vscode/ ## File-based project format: -*.ipr *.iws ## Plugin-specific files: # IntelliJ +.idea/ /out/ - -# mpeltonen/sbt-idea plugin .idea_modules/ # JIRA plugin @@ -45,22 +68,4 @@ atlassian-ide-plugin.xml com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties -### Dart template -# Don’t commit the following directories created by pub. -.buildlog -.pub/ -build/ -packages -.packages - -# Or the files created by dart2js. -*.dart.js -*.js_ -*.js.deps -*.js.map - -# Include when developing application packages. -pubspec.lock - -doc/api -.dart_tool \ No newline at end of file +fabric.properties diff --git a/packages/framework/AUTHORS.md b/packages/framework/AUTHORS.md index 2a973de6..ac95ab58 100644 --- a/packages/framework/AUTHORS.md +++ b/packages/framework/AUTHORS.md @@ -1,2 +1,12 @@ -Tobe O -Thomas Hii \ No newline at end of file +Primary Authors +=============== + +* __[Thomas Hii](dukefirehawk.apps@gmail.com)__ + + Thomas is the current maintainer of the code base. He has refactored and migrated the + code base to support NNBD. + +* __[Tobe O](thosakwe@gmail.com)__ + + Tobe has written much of the original code prior to NNBD migration. He has moved on and + is no longer involved with the project. diff --git a/packages/framework/LICENSE b/packages/framework/LICENSE index 32e25c1c..b593ac86 100644 --- a/packages/framework/LICENSE +++ b/packages/framework/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016 The Angel Framework +Copyright (c) 2021 dukefirehawk.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/packages/merge_map/.gitignore b/packages/merge_map/.gitignore index 3707b1e0..24d68312 100644 --- a/packages/merge_map/.gitignore +++ b/packages/merge_map/.gitignore @@ -1,60 +1,32 @@ -# Created by .ignore support plugin (hsz.mobi) -### JetBrains template -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 +# See https://www.dartlang.org/tools/private-files.html -# User-specific stuff: -.idea/workspace.xml -.idea/tasks.xml -.idea/dictionaries -.idea/vcs.xml -.idea/jsLibraryMappings.xml +# Files and directories created by pub +.dart_tool +.packages +.pub/ +build/ -# Sensitive or high-churn files: -.idea/dataSources.ids -.idea/dataSources.xml -.idea/dataSources.local.xml -.idea/sqlDataSources.xml -.idea/dynamic.xml -.idea/uiDesigner.xml +# If you're building an application, you may want to check-in your pubspec.lock +pubspec.lock -# Gradle: -.idea/gradle.xml -.idea/libraries +# Directory created by dartdoc +# If you don't generate documentation locally you can remove this line. +doc/api/ -# Mongo Explorer plugin: -.idea/mongoSettings.xml - -## File-based project format: -*.iws - -## Plugin-specific files: - -# IntelliJ -/out/ - -# mpeltonen/sbt-idea plugin -.idea_modules/ - -# JIRA plugin -atlassian-ide-plugin.xml - -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties ### Dart template # See https://www.dartlang.org/tools/private-files.html # Files and directories created by pub -.buildlog -.packages + +# SDK 1.20 and later (no longer creates packages directories) + +# Older SDK versions +# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20) .project -.pub/ -build/ +.buildlog **/packages/ + # Files created by dart2js # (Most Dart developers will use pub build to compile Dart, use/modify these # rules if you intend to use dart2js directly @@ -67,10 +39,33 @@ build/ *.info.json # Directory created by dartdoc -doc/api/ # Don't commit pubspec lock file # (Library packages only! Remove pattern if developing an application package) -pubspec.lock +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 -.dart_tool +# User-specific stuff: + +## VsCode +.vscode/ + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +.idea/ +/out/ +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties diff --git a/packages/merge_map/AUTHORS.md b/packages/merge_map/AUTHORS.md index 2a973de6..ac95ab58 100644 --- a/packages/merge_map/AUTHORS.md +++ b/packages/merge_map/AUTHORS.md @@ -1,2 +1,12 @@ -Tobe O -Thomas Hii \ No newline at end of file +Primary Authors +=============== + +* __[Thomas Hii](dukefirehawk.apps@gmail.com)__ + + Thomas is the current maintainer of the code base. He has refactored and migrated the + code base to support NNBD. + +* __[Tobe O](thosakwe@gmail.com)__ + + Tobe has written much of the original code prior to NNBD migration. He has moved on and + is no longer involved with the project. diff --git a/packages/merge_map/LICENSE b/packages/merge_map/LICENSE index 5ee3381f..b593ac86 100644 --- a/packages/merge_map/LICENSE +++ b/packages/merge_map/LICENSE @@ -1,6 +1,6 @@ -The MIT License (MIT) +MIT License -Copyright (c) 2016 Tobe O +Copyright (c) 2021 dukefirehawk.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/merge_map/README.md b/packages/merge_map/README.md index dcc3cfeb..ee3ff402 100644 --- a/packages/merge_map/README.md +++ b/packages/merge_map/README.md @@ -1,4 +1,9 @@ -# merge_map +# angel3_merge_map +[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_merge_map) +[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) + +[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/merge_map) + Combine multiple Maps into one. Equivalent to [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) in JS. @@ -6,9 +11,9 @@ in JS. # Example ```dart -import "package:merge_map/merge_map.dart"; +import "package:angel3_merge_map/angel3_merge_map.dart"; -main() { +void main() { Map map1 = {'hello': 'world'}; Map map2 = {'foo': {'bar': 'baz', 'this': 'will be overwritten'}}; Map map3 = {'foo': {'john': 'doe', 'this': 'overrides previous maps'}}; diff --git a/packages/merge_map/example/main.dart b/packages/merge_map/example/main.dart index 00b74c0d..30d315f5 100644 --- a/packages/merge_map/example/main.dart +++ b/packages/merge_map/example/main.dart @@ -1,11 +1,15 @@ -import 'package:merge_map/merge_map.dart'; +import 'package:angel3_merge_map/angel3_merge_map.dart'; -main() { - Map map1 = {'hello': 'world'}; - Map map2 = {'foo': {'bar': 'baz', 'this': 'will be overwritten'}}; - Map map3 = {'foo': {'john': 'doe', 'this': 'overrides previous maps'}}; - Map merged = mergeMap([map1, map2, map3]); - print(merged); +void main() { + Map map1 = {'hello': 'world'}; + Map map2 = { + 'foo': {'bar': 'baz', 'this': 'will be overwritten'} + }; + Map map3 = { + 'foo': {'john': 'doe', 'this': 'overrides previous maps'} + }; + Map merged = mergeMap([map1, map2, map3]); + print(merged); - // {hello: world, foo: {bar: baz, john: doe, this: overrides previous maps}} -} \ No newline at end of file + // {hello: world, foo: {bar: baz, john: doe, this: overrides previous maps}} +} diff --git a/packages/merge_map/lib/merge_map.dart b/packages/merge_map/lib/angel3_merge_map.dart similarity index 92% rename from packages/merge_map/lib/merge_map.dart rename to packages/merge_map/lib/angel3_merge_map.dart index c9d20ebf..7d681d36 100644 --- a/packages/merge_map/lib/merge_map.dart +++ b/packages/merge_map/lib/angel3_merge_map.dart @@ -1,5 +1,5 @@ /// Exposes the [mergeMap] function, which... merges Maps. -library merge_map; +library angel3_merge_map; _copyValues( Map from, Map? to, bool recursive, bool acceptNull) { @@ -28,7 +28,7 @@ Map mergeMap(Iterable> maps, {bool recursive: true, bool acceptNull: false}) { Map result = {}; maps.forEach((Map map) { - if (map != null) _copyValues(map, result, recursive, acceptNull); + _copyValues(map, result, recursive, acceptNull); }); return result; } diff --git a/packages/merge_map/pubspec.yaml b/packages/merge_map/pubspec.yaml index ee826344..c11572e2 100644 --- a/packages/merge_map/pubspec.yaml +++ b/packages/merge_map/pubspec.yaml @@ -1,8 +1,8 @@ -name: merge_map -description: Combine multiple Maps into one. Equivalent to Object.assign in JS. +name: angel3_merge_map version: 2.0.0 -homepage: https://github.com/thosakwe/merge_map +description: Combine multiple Maps into one. Equivalent to Object.assign in JS. +homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/merge_map environment: sdk: '>=2.12.0 <3.0.0' dev_dependencies: - test: ^1.17.3 + test: ^1.17.4 diff --git a/packages/merge_map/test/all_test.dart b/packages/merge_map/test/all_test.dart index 6ce20bd0..ad3097c2 100644 --- a/packages/merge_map/test/all_test.dart +++ b/packages/merge_map/test/all_test.dart @@ -1,4 +1,4 @@ -import "package:merge_map/merge_map.dart"; +import "package:angel3_merge_map/angel3_merge_map.dart"; import "package:test/test.dart"; void main() { diff --git a/packages/mock_request/.gitignore b/packages/mock_request/.gitignore index 8fff3906..24d68312 100644 --- a/packages/mock_request/.gitignore +++ b/packages/mock_request/.gitignore @@ -1,15 +1,34 @@ # See https://www.dartlang.org/tools/private-files.html # Files and directories created by pub -.buildlog +.dart_tool .packages -.project .pub/ build/ + +# If you're building an application, you may want to check-in your pubspec.lock +pubspec.lock + +# Directory created by dartdoc +# If you don't generate documentation locally you can remove this line. +doc/api/ + +### Dart template +# See https://www.dartlang.org/tools/private-files.html + +# Files and directories created by pub + +# SDK 1.20 and later (no longer creates packages directories) + +# Older SDK versions +# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20) +.project +.buildlog **/packages/ + # Files created by dart2js -# (Most Dart developers will use pub build to compile Dart, use/modify these +# (Most Dart developers will use pub build to compile Dart, use/modify these # rules if you intend to use dart2js directly # Convention is to use extension '.dart.js' for Dart compiled to Javascript to # differentiate from explicit Javascript files) @@ -20,35 +39,17 @@ build/ *.info.json # Directory created by dartdoc -doc/api/ -# Don't commit pubspec lock file +# Don't commit pubspec lock file # (Library packages only! Remove pattern if developing an application package) -pubspec.lock ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # User-specific stuff: -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/dictionaries -# Sensitive or high-churn files: -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.xml -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml - -# Gradle: -.idea/**/gradle.xml -.idea/**/libraries - -# Mongo Explorer plugin: -.idea/**/mongoSettings.xml +## VsCode +.vscode/ ## File-based project format: *.iws @@ -56,9 +57,8 @@ pubspec.lock ## Plugin-specific files: # IntelliJ +.idea/ /out/ - -# mpeltonen/sbt-idea plugin .idea_modules/ # JIRA plugin @@ -69,4 +69,3 @@ com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties fabric.properties -.dart_tool \ No newline at end of file diff --git a/packages/mock_request/AUTHORS.md b/packages/mock_request/AUTHORS.md index 2a973de6..ac95ab58 100644 --- a/packages/mock_request/AUTHORS.md +++ b/packages/mock_request/AUTHORS.md @@ -1,2 +1,12 @@ -Tobe O -Thomas Hii \ No newline at end of file +Primary Authors +=============== + +* __[Thomas Hii](dukefirehawk.apps@gmail.com)__ + + Thomas is the current maintainer of the code base. He has refactored and migrated the + code base to support NNBD. + +* __[Tobe O](thosakwe@gmail.com)__ + + Tobe has written much of the original code prior to NNBD migration. He has moved on and + is no longer involved with the project. diff --git a/packages/mock_request/LICENSE b/packages/mock_request/LICENSE index 3de28325..b593ac86 100644 --- a/packages/mock_request/LICENSE +++ b/packages/mock_request/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Tobe O +Copyright (c) 2021 dukefirehawk.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/mock_request/README.md b/packages/mock_request/README.md index 8074b907..d15cf1d8 100644 --- a/packages/mock_request/README.md +++ b/packages/mock_request/README.md @@ -1,19 +1,20 @@ -# mock_request +# angel3_mock_request +[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_mock_request) +[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) -[![Pub](https://img.shields.io/pub/v/mock_request.svg)](https://pub.dartlang.org/packages/mock_request) -[![build status](https://travis-ci.org/thosakwe/mock_request.svg)](https://travis-ci.org/thosakwe/mock_request) +[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/mock_request) Manufacture dart:io HttpRequests, HttpResponses, HttpHeaders, etc. This makes it possible to test server-side Dart applications without having to ever bind to a port. This package was originally designed to testing -[Angel](https://github.com/angel-dart/angel/wiki) +[Angel](https://github.com/dukefirehawk/angel) applications smoother, but works with any Dart-based server. :) # Usage ```dart -var rq = new MockHttpRequest('GET', Uri.parse('/foo')); +var rq = MockHttpRequest('GET', Uri.parse('/foo')); await rq.close(); await app.handleRequest(rq); // Run within your server-side application var rs = rq.response; diff --git a/packages/mock_request/example/main.dart b/packages/mock_request/example/main.dart index cb41b329..455e2728 100644 --- a/packages/mock_request/example/main.dart +++ b/packages/mock_request/example/main.dart @@ -1,5 +1,5 @@ import 'dart:async'; -import 'package:mock_request/mock_request.dart'; +import 'package:angel3_mock_request/angel3_mock_request.dart'; Future main() async { var rq = diff --git a/packages/mock_request/lib/mock_request.dart b/packages/mock_request/lib/angel3_mock_request.dart similarity index 100% rename from packages/mock_request/lib/mock_request.dart rename to packages/mock_request/lib/angel3_mock_request.dart diff --git a/packages/mock_request/pubspec.yaml b/packages/mock_request/pubspec.yaml index b0e8265a..8bd1eb10 100644 --- a/packages/mock_request/pubspec.yaml +++ b/packages/mock_request/pubspec.yaml @@ -1,13 +1,12 @@ -name: mock_request +name: angel3_mock_request version: 2.0.0 description: Manufacture dart:io HttpRequests, HttpResponses, HttpHeaders, etc. -author: Tobe O -homepage: https://github.com/thosakwe/mock_request +homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/mock_request environment: sdk: '>=2.12.0 <3.0.0' dependencies: charcode: ^1.2.0 dev_dependencies: #angel_framework: ^2.1.0 - http: ^0.13.0 - test: ^1.16.8 + http: ^0.13.2 + test: ^1.17.4