Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: sdk/lib/_internal/pub/lib/src/pubspec.dart

Issue 463203002: "publishTo" -> "publish_to". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/pubspec.dart
diff --git a/sdk/lib/_internal/pub/lib/src/pubspec.dart b/sdk/lib/_internal/pub/lib/src/pubspec.dart
index e9ea59669a88fb5b7d53774b912a4e28da38e3da..2ab26b21cdf4731023598d3124e9e0775b1f43c2 100644
--- a/sdk/lib/_internal/pub/lib/src/pubspec.dart
+++ b/sdk/lib/_internal/pub/lib/src/pubspec.dart
@@ -217,17 +217,17 @@ class Pubspec {
String get publishTo {
if (_parsedPublishTo) return _publishTo;
- var publishTo = fields['publishTo'];
+ var publishTo = fields['publish_to'];
if (publishTo != null) {
- var span = fields.nodes['publishTo'].span;
+ var span = fields.nodes['publish_to'].span;
if (publishTo is! String) {
- _error('"publishTo" field must be a string.', span);
+ _error('"publish_to" field must be a string.', span);
}
// It must be "none" or a valid URL.
if (publishTo != "none") {
- _wrapFormatException('"publishTo" field', span,
+ _wrapFormatException('"publish_to" field', span,
() => Uri.parse(publishTo));
}
}
@@ -241,7 +241,7 @@ class Pubspec {
/// Whether the package is private and cannot be published.
///
- /// This is specified in the pubspec by setting "publishTo" to "none".
+ /// This is specified in the pubspec by setting "publish_to" to "none".
bool get isPrivate => publishTo == "none";
/// Whether or not the pubspec has no contents.
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command/lish.dart ('k') | sdk/lib/_internal/pub/test/lish/does_not_publish_if_private_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698