Permalink
Browse files

remove manifest_vesion.

  • Loading branch information...
1 parent 1b4ea30 commit e7ce3cb30c8e22ff61a564e6a8bc4466d37a35df @lloyd lloyd committed Jan 31, 2011
View
@@ -1,4 +1,4 @@
-### The Application Manifest v0.2
+### The Application Manifest
See also the [wiki page on Application Manifests](http://wiki.mozilla.org/Labs/Apps/Manifest).
@@ -15,8 +15,6 @@ For a discussion of the security and privacy considerations around the applicati
#### An Example Manifest
{
- "manifest_version": "0.2",
-
"version": "1.0",
"name": "MozillaBall",
@@ -66,8 +64,6 @@ For a discussion of the security and privacy considerations around the applicati
For detailed technical discussion of the manifest, please visit [the wiki](http://wiki.mozilla.org/Labs/Apps/Manifest). Informally, the meanings of the fields are:
-* [**manifest_version**](http://wiki.mozilla.org/Labs/Apps/Manifest#name): The version of this specification that a manifest conforms to.
-
* [**name**](http://wiki.mozilla.org/Labs/Apps/Manifest#name): A human-readable name for the application.
* [**description**](http://wiki.mozilla.org/Labs/Apps/Manifest#description): (optional) A human-readable description of the application.
@@ -1,5 +1,4 @@
{
- "manifest_version": "0.2",
"name":"MozillaBall",
"base_url": "https://mozillaball.mozillalabs.com/",
"launch_path": "",
View
@@ -237,13 +237,6 @@
}
}
},
- manifest_version: {
- required: true,
- check: function (x) {
- if (!((typeof x === 'string') && /^\d+.\d+$/.test(x))) errorThrow();
- if (x !== '0.2') errorThrow("unsupported manifest version: " + x + " (expected 0.2)");
- }
- },
name: {
may_overlay: true,
required: true,
@@ -25,7 +25,6 @@
<div id="content">
<div id="main">
<div id="editor" class="bespin" data-bespinoptions='{ "settings": { "tabstop": 4 }, "syntax": "js", "stealFocus": true }'>{
- "manifest_version": "0.2",
"version": "1.0",
"name": "MozillaBall",
"description": "Exciting Open Web development action!",
View
@@ -77,7 +77,6 @@
<pre class="doctest">
$ var manifest = {
-> "manifest_version": "0.2",
> "name":"FakeApp",
> "base_url": "http://fakea.pp/",
> "launch_path": "",
View
@@ -22,7 +22,6 @@
<pre class="doctest">
$ writeln(null !== Manifest.validate({
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> base_url: "http://simple.mozillalabs.com/",
> default_locale: "en",
@@ -48,16 +47,7 @@
<pre class="doctest">
$ writeln(null !== Manifest.validate({
> base_url: "http://simple.mozillalabs.com/",
-> default_locale: "en"
-> }));
-Error: missing "manifest_version" property
-</pre>
-
-<pre class="doctest">
-$ writeln(null !== Manifest.validate({
-> base_url: "http://simple.mozillalabs.com/",
> default_locale: "en",
-> manifest_version: "0.2"
> }));
Error: missing "name" property
</pre>
@@ -66,34 +56,14 @@
$ writeln(null !== Manifest.validate({
> base_url: "http://simple.mozillalabs.com/",
> default_locale: "en",
-> manifest_version: "0.2",
> name: "AManifestBooYah"
> }));
true
</pre>
-<h3>Property: version</h3>
-<pre class="doctest">
-$ var m = {
-> manifest_version: "0.2",
-> name: "SimplestPossibleManifest",
-> base_url: "http://simple.mozillalabs.com/",
-> default_locale: "en",
-> };
-> writeln(null !== Manifest.validate(m));
-true
-$ m.manifest_version = "1"
-> Manifest.validate(m);
-Error: (manifest_version) invalid value: 1
-$ m.manifest_version = ".1"
-> Manifest.validate(m);
-Error: (manifest_version) invalid value: .1
-</pre>
-
<h3>Property: name</h3>
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> base_url: "http://simple.mozillalabs.com/",
> default_locale: "en",
@@ -117,7 +87,6 @@
<h3>Property: base_url</h3>
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> base_url: "http://simple.mozillalabs.com/",
> default_locale: "en",
@@ -150,7 +119,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> base_url: "http://simple.mozillalabs.com/",
> default_locale: "en",
@@ -171,7 +139,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> description: "Well, not the simplest *possible*, really",
> base_url: "http://simple.mozillalabs.com/",
@@ -194,7 +161,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> description: "Well, not the simplest *possible*, really",
> base_url: "http://mozillalabs.com/simple/",
@@ -221,7 +187,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> capabilities: ["a", "b", "c", "d" ],
> base_url: "http://mozillalabs.com/simple/",
@@ -244,7 +209,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> icons: {
> 16: "images/icon_16.png",
@@ -274,7 +238,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> developer: {
> name: "Mozilla Labs, yay!",
@@ -297,7 +260,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> developer: {
> name: "Mozilla Labs, yay!",
@@ -325,7 +287,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> base_url: "http://mozillalabs.com/simple/",
> default_locale: "en",
@@ -353,7 +314,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> base_url: "http://mozillalabs.com/simple/",
> default_locale: "en",
@@ -373,7 +333,6 @@
<pre class="doctest">
$ var m = {
-> manifest_version: "0.2",
> name: "SimplestPossibleManifest",
> base_url: "http://simple.mozillalabs.com/",
> default_locale: "en",
@@ -1,5 +1,4 @@
{
- "manifest_version": "0.2",
"name":"MozillaBall",
"base_url": "https://mozillaball.mozillalabs.com/",
"launch_path": "",
@@ -94,7 +94,6 @@
<script>
var gManifest = {
- "manifest_version": "0.2",
"name":"MozillaBall",
"base_url": "https://mozillaball.mozillalabs.com/",
"launch_path": "",
View
@@ -367,7 +367,6 @@ def get(self):
TaskTrackerApp = {
- "manifest_version": "0.2",
"default_locale": "en-US",
"name":"Task Tracker",
"description":"Manage tasks with ease using this flexible task management application.\n\nCreate To Do lists or manage complex hierarchical tasks chains.\n\nIntegrates with many web-based calendars and notification systems.\n\n(Not really, this is only a demo)",

0 comments on commit e7ce3cb

Please sign in to comment.