Handle merge

This commit is contained in:
Tobe O 2018-08-20 15:33:06 -04:00
commit b729908447
12 changed files with 29 additions and 49 deletions

4
.gitignore vendored
View file

@ -71,3 +71,7 @@ crashlytics.properties
crashlytics-build.properties crashlytics-build.properties
fabric.properties fabric.properties
.idea
.dart_tool
*.iml

View file

@ -1,28 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="JavaScriptSettings"> <component name="ProjectRootManager">
<option name="languageLevel" value="ES6" /> <output url="file://$PROJECT_DIR$/out" />
</component>
<component name="ProjectInspectionProfilesVisibleTreeState">
<entry key="Project Default">
<profile-state>
<expanded-state>
<State>
<id />
</State>
<State>
<id>General</id>
</State>
<State>
<id>XPath</id>
</State>
</expanded-state>
<selected-state>
<State>
<id>AngularJS</id>
</State>
</selected-state>
</profile-state>
</entry>
</component> </component>
</project> </project>

View file

@ -2,7 +2,7 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/.idea/angel_route.iml" filepath="$PROJECT_DIR$/.idea/angel_route.iml" /> <module fileurl="file://$PROJECT_DIR$/route.iml" filepath="$PROJECT_DIR$/route.iml" />
</modules> </modules>
</component> </component>
</project> </project>

View file

@ -1,6 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Navigate Tests" type="DartTestRunConfigurationType" factoryName="Dart Test" singleton="true">
<option name="filePath" value="$PROJECT_DIR$/test/navigate_test.dart" />
<method />
</configuration>
</component>

View file

@ -1,6 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Params Tests" type="DartTestRunConfigurationType" factoryName="Dart Test" singleton="true">
<option name="filePath" value="$PROJECT_DIR$/test/params_test.dart" />
<method />
</configuration>
</component>

View file

@ -1,6 +0,0 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Server Tests" type="DartTestRunConfigurationType" factoryName="Dart Test" singleton="true">
<option name="filePath" value="$PROJECT_DIR$/test/server_test.dart" />
<method />
</configuration>
</component>

View file

@ -1 +1,4 @@
language: dart language: dart
dart:
- dev
- stable

View file

@ -6,3 +6,9 @@
an `Iterable<RoutingResult>`, instead of just a `List`. an `Iterable<RoutingResult>`, instead of just a `List`.
* Removed deprecated `Route.as`, as well as `Router.registerMiddleware`. * Removed deprecated `Route.as`, as well as `Router.registerMiddleware`.
* Completely removed `Route.requestMiddleware`. * Completely removed `Route.requestMiddleware`.
# 2.0.7
* Minor strong mode updates to work with stricter Dart 2.
# 2.0.5
* Patch to work with `combinator@1.0.0`.

View file

@ -1,3 +1,7 @@
analyzer: analyzer:
strong-mode: strong-mode:
<<<<<<< HEAD
implicit-casts: false implicit-casts: false
=======
implicit-casts: false
>>>>>>> 6bf72feffc1af269e2ebfa5d1fbcd4f08ba3ea90

View file

@ -1,6 +1,7 @@
part of angel_route.src.router; part of angel_route.src.router;
class RouteGrammar { class RouteGrammar {
static final RegExp rgx = new RegExp(r'\((.+)\)');
static final Parser<String> notSlash = static final Parser<String> notSlash =
match<String>(new RegExp(r'[^/]+')).value((r) => r.span.text); match<String>(new RegExp(r'[^/]+')).value((r) => r.span.text);
@ -13,7 +14,7 @@ class RouteGrammar {
static final Parser<ParameterSegment> parameterSegment = chain([ static final Parser<ParameterSegment> parameterSegment = chain([
parameterName, parameterName,
match('?').value((r) => true).opt(), match<bool>('?').value((r) => true).opt(),
regExp.opt(), regExp.opt(),
]).map((r) { ]).map((r) {
var s = new ParameterSegment(r.value[0] as String, r.value[2] as RegExp); var s = new ParameterSegment(r.value[0] as String, r.value[2] as RegExp);
@ -45,7 +46,7 @@ class RouteGrammar {
static final Parser<RouteDefinition> routeDefinition = routeSegment static final Parser<RouteDefinition> routeDefinition = routeSegment
.separatedBy(match('/')) .separatedBy(match('/'))
.map((r) => new RouteDefinition(r.value ?? [])) .map<RouteDefinition>((r) => new RouteDefinition(r.value ?? []))
.surroundedBy(match('/').star().opt()); .surroundedBy(match('/').star().opt());
} }

View file

@ -18,5 +18,6 @@ class MiddlewarePipeline<T> {
return _handlers = handlers; return _handlers = handlers;
} }
MiddlewarePipeline(this.routingResults); MiddlewarePipeline(Iterable<RoutingResult> routingResults)
: this.routingResults = routingResults.toList();
} }

View file

@ -2,6 +2,7 @@ import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:angel_route/angel_route.dart'; import 'package:angel_route/angel_route.dart';
import 'package:dart2_constant/convert.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:test/test.dart'; import 'package:test/test.dart';