From 35f4424656f3b7a7f0a6b1722029ac48f69e044d Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Fri, 16 Oct 2015 09:16:31 -0700 Subject: [PATCH] re-gen sources --- CHANGELOG.md | 8 ++++---- lib/generators/console_full_data.dart | 2 +- lib/generators/console_simple_data.dart | 2 +- lib/generators/package_simple_data.dart | 2 +- lib/generators/server_appengine_data.dart | 13 ++++++------- lib/generators/server_shelf_data.dart | 2 +- lib/generators/web_polymer_data.dart | 2 +- lib/generators/web_simple_data.dart | 2 +- templates/server-appengine/lib/memcache.dart | 14 +++++--------- tool/grind.dart | 2 +- 10 files changed, 22 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85bccf7d..68a7ab49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,14 @@ # CHANGELOG ## 0.2.4 -- Improved layout of `server-appengine`. +- Improved layout of `server-appengine` ## 0.2.3+1 -- fixed an issue with the Polymer template +- Fixed an issue with the Polymer template ## 0.2.3 - Updated the Polymer sample to the latest version (`1.0.0-rc.1`) -- Removed the web-full example. Was not maintained. +- Removed the web-full example (it had not been maintained) ## 0.2.2+1 - Moved the script tags for the web templates into the head section @@ -21,7 +21,7 @@ - All templates updated to use the latest `test` package ## 0.2.0+1 -- Update the template descriptions +- Updated the template descriptions - The `web-full` sample now reverses the text on page load ## 0.2.0 diff --git a/lib/generators/console_full_data.dart b/lib/generators/console_full_data.dart index 7b8f18f2..8af183df 100644 --- a/lib/generators/console_full_data.dart +++ b/lib/generators/console_full_data.dart @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ ".gitignore", "text", """LmJ1aWxkbG9nCi5EU19TdG9yZQouaWRlYQoucGFja2FnZXMKLnB1Yi8KYnVpbGQvCnBhY2thZ2Vz diff --git a/lib/generators/console_simple_data.dart b/lib/generators/console_simple_data.dart index f169b94f..a6328fe1 100644 --- a/lib/generators/console_simple_data.dart +++ b/lib/generators/console_simple_data.dart @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ "bin/main.dart", "text", "bWFpbihMaXN0PFN0cmluZz4gYXJncykgewogIHByaW50KCdIZWxsbyB3b3JsZCEnKTsKfQo=", diff --git a/lib/generators/package_simple_data.dart b/lib/generators/package_simple_data.dart index 7e80219f..eee50d84 100644 --- a/lib/generators/package_simple_data.dart +++ b/lib/generators/package_simple_data.dart @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ ".gitignore", "text", """LmJ1aWxkbG9nCi5EU19TdG9yZQouaWRlYQoucGFja2FnZXMKLnB1Yi8KYnVpbGQvCnBhY2thZ2Vz diff --git a/lib/generators/server_appengine_data.dart b/lib/generators/server_appengine_data.dart index 0057aa04..62a520b0 100644 --- a/lib/generators/server_appengine_data.dart +++ b/lib/generators/server_appengine_data.dart @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ ".gitignore", "text", """LmJ1aWxkbG9nCi5EU19TdG9yZQouaWRlYQoucGFja2FnZXMKLnB1Yi8KYnVpbGQvCnBhY2thZ2Vz @@ -149,12 +149,11 @@ IHJlc3BvbnNlLndyaXRlbG4oJyIke2tleX0iOiAiJHt2YWx1ZX0iJykpOwogIH0pLndoZW5Db21w bGV0ZShyZXNwb25zZS5jbG9zZSk7Cn0KCi8vLyBIZWxwZXIgbWV0aG9kIHRvIHJlYWQgYSBzZXQg b2YgdmFsdWVzIGZyb20gdGhlIG1lbWNhY2hlLgp2b2lkIHJlYWQoSHR0cFJlc3BvbnNlIHJlc3Bv bnNlLCBJdGVyYWJsZTxTdHJpbmc+IGtleXMpIHsKICB2YXIgbWVtY2FjaGUgPSBjb250ZXh0LnNl -cnZpY2VzLm1lbWNhY2hlOwogIEZ1dHVyZQogICAgICAuZm9yRWFjaCgKICAgICAgICAgIGtleXMs -CiAgICAgICAgICAoa2V5KSA9PiBtZW1jYWNoZQogICAgICAgICAgICAgIC5nZXQoa2V5KQogICAg -ICAgICAgICAgIC50aGVuKCh2YWx1ZSkgPT4gcmVzcG9uc2Uud3JpdGVsbignIiR7a2V5fSI6ICIk -e3ZhbHVlfSInKSkKICAgICAgICAgICAgICAuY2F0Y2hFcnJvcigKICAgICAgICAgICAgICAgICAg -KF8pID0+IHJlc3BvbnNlLndyaXRlbG4oJyIke2tleX0iOiB2YWx1ZSBub3QgZm91bmQhJykpKQog -ICAgICAud2hlbkNvbXBsZXRlKHJlc3BvbnNlLmNsb3NlKTsKfQo=""", +cnZpY2VzLm1lbWNhY2hlOwogIHZhciBoYW5kbGVLZXkgPSAoa2V5KSA9PiBtZW1jYWNoZQogICAg +ICAuZ2V0KGtleSkKICAgICAgLnRoZW4oKHZhbHVlKSA9PiByZXNwb25zZS53cml0ZWxuKCciJHtr +ZXl9IjogIiR7dmFsdWV9IicpKQogICAgICAuY2F0Y2hFcnJvcigoXykgPT4gcmVzcG9uc2Uud3Jp +dGVsbignIiR7a2V5fSI6IHZhbHVlIG5vdCBmb3VuZCEnKSk7CiAgRnV0dXJlLmZvckVhY2goa2V5 +cywgaGFuZGxlS2V5KS53aGVuQ29tcGxldGUocmVzcG9uc2UuY2xvc2UpOwp9Cg==""", "pubspec.yaml", "text", """bmFtZToge3twcm9qZWN0TmFtZX19CnZlcnNpb246IDAuMC4xCmRlc2NyaXB0aW9uOiBBIHNpbXBs diff --git a/lib/generators/server_shelf_data.dart b/lib/generators/server_shelf_data.dart index 524c0caa..862d3e13 100644 --- a/lib/generators/server_shelf_data.dart +++ b/lib/generators/server_shelf_data.dart @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ ".gitignore", "text", """LmJ1aWxkbG9nCi5EU19TdG9yZQouaWRlYQoucGFja2FnZXMKLnB1Yi8KYnVpbGQvCnBhY2thZ2Vz diff --git a/lib/generators/web_polymer_data.dart b/lib/generators/web_polymer_data.dart index 1f24b52c..3cf4f700 100644 --- a/lib/generators/web_polymer_data.dart +++ b/lib/generators/web_polymer_data.dart @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ ".gitignore", "text", """LmJ1aWxkbG9nCi5EU19TdG9yZQouaWRlYQoucGFja2FnZXMKLnB1Yi8KYnVpbGQvCnBhY2thZ2Vz diff --git a/lib/generators/web_simple_data.dart b/lib/generators/web_simple_data.dart index d914eef4..462fc12d 100644 --- a/lib/generators/web_simple_data.dart +++ b/lib/generators/web_simple_data.dart @@ -2,7 +2,7 @@ // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ ".gitignore", "text", """LmJ1aWxkbG9nCi5EU19TdG9yZQouaWRlYQoucGFja2FnZXMKLnB1Yi8KYnVpbGQvCnBhY2thZ2Vz diff --git a/templates/server-appengine/lib/memcache.dart b/templates/server-appengine/lib/memcache.dart index aeb58052..4e97eae9 100644 --- a/templates/server-appengine/lib/memcache.dart +++ b/templates/server-appengine/lib/memcache.dart @@ -46,13 +46,9 @@ void write(HttpResponse response, Map valueMap) { /// Helper method to read a set of values from the memcache. void read(HttpResponse response, Iterable keys) { var memcache = context.services.memcache; - Future - .forEach( - keys, - (key) => memcache - .get(key) - .then((value) => response.writeln('"${key}": "${value}"')) - .catchError( - (_) => response.writeln('"${key}": value not found!'))) - .whenComplete(response.close); + var handleKey = (key) => memcache + .get(key) + .then((value) => response.writeln('"${key}": "${value}"')) + .catchError((_) => response.writeln('"${key}": value not found!')); + Future.forEach(keys, handleKey).whenComplete(response.close); } diff --git a/tool/grind.dart b/tool/grind.dart index 17534070..200473c4 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -67,7 +67,7 @@ void _concatenateFiles(Directory src, File target) { // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -const List data = const [ +const List data = const [ ${str} ]; """);