Repository: tobie/specref
Pull request #657 (2021-05-04 13:44:37)

Spelling code
This is a subset of #655


Patch:
diff --git a/README.md b/README.md
index 199ab07c1..f3f76275f 100644
--- a/README.md
+++ b/README.md
@@ -108,7 +108,7 @@ returns: a JSON object indexed by IDs
 }
 ```
 
-Used to get a set of bibliographic references that include the search term in any of their attributes. This is usefull to find specs related to a given area of study, specs by a given editor, etc.
+Used to get a set of bibliographic references that include the search term in any of their attributes. This is useful to find specs related to a given area of study, specs by a given editor, etc.
     
 ### Reverse lookup
 
@@ -150,7 +150,7 @@ This is by design.
 
 ### Aliases
 
-Because of legacy references, case sensivity issues and taste, many entries have multiple identifiers. Thus an aliasing system was put in place. It isn't _that_ complicated really: an identifier either points directly to the reference object or to another identifier (through the `aliasOf` property), recursively. All aliases are resolved (there are tests for that) and when you query the API for a reference you always get all the objects necessary to resolve it in the same response. So for example, https://api.specref.org/bibrefs?refs=rfc7230 responds with:
+Because of legacy references, case sensitivity issues and taste, many entries have multiple identifiers. Thus an aliasing system was put in place. It isn't _that_ complicated really: an identifier either points directly to the reference object or to another identifier (through the `aliasOf` property), recursively. All aliases are resolved (there are tests for that) and when you query the API for a reference you always get all the objects necessary to resolve it in the same response. So for example, https://api.specref.org/bibrefs?refs=rfc7230 responds with:
 
 ```json
 {
@@ -229,7 +229,7 @@ If you need to find a reference ID (for either bibliographic or cross-references
 
 ### Commit rights
 
-Specref loosely follows the process described in [The Pull Request Hack](http://felixge.de/2013/03/11/the-pull-request-hack.html). Contributors are generally granted commit access to the repo after their first pull request is sucessfully merged.
+Specref loosely follows the process described in [The Pull Request Hack](http://felixge.de/2013/03/11/the-pull-request-hack.html). Contributors are generally granted commit access to the repo after their first pull request is successfully merged.
 
 It's expected contributors read-up on how to make [manual changes](https://github.com/tobie/specref#manual-changes) and follow the [review policy](https://github.com/tobie/specref#review-policy) described below.
 
@@ -243,7 +243,7 @@ The review policy has three key principles:
 
 We trust contributors to be a good judge of what is trivial, what isn't, and how long to wait before merging a trivial fix. Generally, the more trivial the fix, the shorter the wait.
 
-Similalry, the more a commit message explains the _why_ of a slightly unexpected fix, the less it requires a review.
+Similarly, the more a commit message explains the _why_ of a slightly unexpected fix, the less it requires a review.
 
 For example, for a fix that changes an existing HTTPS url to an HTTP one:
 
@@ -257,20 +257,20 @@ Updating URL.
 ```
 There now exists a Persistent URI Registry of EU Institutions and Bodies[1]
 which is to be used when referencing such documents.
-Unfortuntaly it doesn't use HTTPS yet.
+Unfortunately it doesn't use HTTPS yet.
 
 [1]: http://data.europa.eu/
 ```
 
 ### Hourly auto-updating
 
-There are scripts that pull fresh data from IETF, W3C, and WHATWG, and update their relevant files in the `refs` directory. These are now run hourly. Their output is tested, comitted and deployed without human intervention. Content should now always be up to date.
+There are scripts that pull fresh data from IETF, W3C, and WHATWG, and update their relevant files in the `refs` directory. These are now run hourly. Their output is tested, committed and deployed without human intervention. Content should now always be up to date.
 
 ### Manual changes
 
 Generally, manual changes should be limited to the `refs/biblio.json` file.
 
-If you have commit rights, please don't commit to main directly. Commit to a seperate branch (preferably to your fork) and send a pull request.
+If you have commit rights, please don't commit to main directly. Commit to a separate branch (preferably to your fork) and send a pull request.
 
 All changes are automatically tested using [travis](https://travis-ci.org/tobie/specref/) and automatically deployed within minutes if all tests pass. You can check that your changes have been properly deployed on [www.specref.org](http://www.specref.org/), @-mention @tobie in a pull request comment if they haven't.
 
diff --git a/lib/bibref.js b/lib/bibref.js
index 9634ce586..f1ab10cef 100644
--- a/lib/bibref.js
+++ b/lib/bibref.js
@@ -102,7 +102,7 @@ function doneAddingRefs() {
 function _merge(target, source) {
     for (var k in source) {
         if (k in target) {
-            throw new Error("Dupliate entry " + k);
+            throw new Error("Duplicate entry " + k);
         } else {
             target[k] = source[k];
         }
diff --git a/refs/w3c.json b/refs/w3c.json
index 437e42abf..6a26cd75b 100644
--- a/refs/w3c.json
+++ b/refs/w3c.json
@@ -33293,7 +33293,7 @@
         ],
         "href": "https://www.w3.org/TR/did-spec-registries/",
         "title": "DID Specification Registries",
-        "rawDate": "2021-04-28",
+        "rawDate": "2021-05-04",
         "status": "NOTE",
         "publisher": "W3C",
         "edDraft": "https://w3c.github.io/did-spec-registries/",
@@ -33751,6 +33751,21 @@
                     "https://www.w3.org/2019/did-wg/"
                 ],
                 "source": "https://www.w3.org/2002/01/tr-automation/tr.rdf"
+            },
+            "20210504": {
+                "authors": [
+                    "Orie Steele",
+                    "Manu Sporny"
+                ],
+                "href": "https://www.w3.org/TR/2021/NOTE-did-spec-registries-20210504/",
+                "title": "DID Specification Registries",
+                "rawDate": "2021-05-04",
+                "status": "NOTE",
+                "publisher": "W3C",
+                "deliveredBy": [
+                    "https://www.w3.org/2019/did-wg/"
+                ],
+                "source": "https://www.w3.org/2002/01/tr-automation/tr.rdf"
             }
         },
         "repository": "https://github.com/w3c/did-spec-registries"
@@ -56476,7 +56491,7 @@
             "https://www.w3.org/media-wg/"
         ],
         "repository": "https://github.com/w3c/mediasession",
-        "rawDate": "2020-01-30",
+        "rawDate": "2021-05-04",
         "edDraft": "https://w3c.github.io/mediasession/",
         "source": "https://www.w3.org/2002/01/tr-automation/tr.rdf",
         "versions": {
@@ -56494,6 +56509,21 @@
                     "https://www.w3.org/media-wg/"
                 ],
                 "source": "https://www.w3.org/2002/01/tr-automation/tr.rdf"
+            },
+            "20210504": {
+                "authors": [
+                    "Mounir Lamouri",
+                    "Becca Hughes"
+                ],
+                "href": "https://www.w3.org/TR/2021/WD-mediasession-20210504/",
+                "title": "Media Session Standard",
+                "rawDate": "2021-05-04",
+                "status": "WD",
+                "publisher": "W3C",
+                "deliveredBy": [
+                    "https://www.w3.org/media-wg/"
+                ],
+                "source": "https://www.w3.org/2002/01/tr-automation/tr.rdf"
             }
         }
     },
@@ -91763,7 +91793,7 @@
         ],
         "href": "https://www.w3.org/TR/vocab-dcat-3/",
         "title": "Data Catalog Vocabulary (DCAT) - Version 3",
-        "rawDate": "2020-12-17",
+        "rawDate": "2021-05-04",
         "status": "WD",
         "publisher": "W3C",
         "edDraft": "https://w3c.github.io/dxwg/dcat/",
@@ -91792,6 +91822,25 @@
                 ],
                 "hasErrata": "https://w3c.github.io/dxwg/errata/",
                 "source": "https://www.w3.org/2002/01/tr-automation/tr.rdf"
+            },
+            "20210504": {
+                "authors": [
+                    "Riccardo Albertoni",
+                    "David Browning",
+                    "Simon Cox",
+                    "Alejandra Gonzalez Beltran",
+                    "Andrea Perego",
+                    "Peter Winstanley"
+                ],
+                "href": "https://www.w3.org/TR/2021/WD-vocab-dcat-3-20210504/",
+                "title": "Data Catalog Vocabulary (DCAT) - Version 3",
+                "rawDate": "2021-05-04",
+                "status": "WD",
+                "publisher": "W3C",
+                "deliveredBy": [
+                    "https://www.w3.org/2017/dxwg/"
+                ],
+                "source": "https://www.w3.org/2002/01/tr-automation/tr.rdf"
             }
         },
         "repository": "https://github.com/w3c/dxwg"
diff --git a/schemas/raw-reference.json b/schemas/raw-reference.json
index ee4203cda..517490068 100644
--- a/schemas/raw-reference.json
+++ b/schemas/raw-reference.json
@@ -151,7 +151,7 @@
                     "$ref": "#/definitions/nonEmptyString"
                 },
                 "date": {
-                    "description": "Date of publication in humand readable form, favor rawDate instead.",
+                    "description": "Date of publication in human readable form, favor rawDate instead.",
                     "$ref": "#/definitions/nonEmptyString"
                 },
                 "deliveredBy": {
diff --git a/schemas/reference.json b/schemas/reference.json
index b63e482fb..655c2d374 100644
--- a/schemas/reference.json
+++ b/schemas/reference.json
@@ -61,7 +61,7 @@
                     "$ref": "#/definitions/url"
                 },
                 "shortname": {
-                    "description": "The WG's shorname.",
+                    "description": "The WG's shortname.",
                     "$ref": "#/definitions/id"
                 }
             },
@@ -86,7 +86,7 @@
                     "$ref": "#/definitions/id"
                 },
                 "id": {
-                    "description": "The aliase's ID.",
+                    "description": "The alias's ID.",
                     "$ref": "#/definitions/id"
                 }
             },
@@ -119,7 +119,7 @@
                     "$ref": "#/definitions/nonEmptyString"
                 },
                 "date": {
-                    "description": "Date of publication in humand readable form, favor rawDate instead.",
+                    "description": "Date of publication in human readable form, favor rawDate instead.",
                     "type": "string",
                     "pattern": "^([1-3]?\\d\\s)?((?:January|February|March|April|May|June|July|August|September|October|November|December)\\s)?\\d+$"
                 },
@@ -135,7 +135,7 @@
                     "$ref": "#/definitions/nonEmptyString"
                 },
                 "obsoletes": {
-                    "description": "An array of specifications obsoloted by this specification.",
+                    "description": "An array of specifications obsoleted by this specification.",
                     "$ref": "#/definitions/idList"
                 },
                 "obsoletedBy": {
diff --git a/scripts/helper.js b/scripts/helper.js
index 3d83afd5c..63c5d84b8 100644
--- a/scripts/helper.js
+++ b/scripts/helper.js
@@ -48,7 +48,7 @@ function parseURL(url) {
 exports.readBiblio = readBiblio;
 function readBiblio(f) {
     var filepath = path.join(DIR_PATH, f || DEFAULT_FILE);
-    console.log("Loadind and parsing " + filepath + "...");
+    console.log("Loading and parsing " + filepath + "...");
     var input = fs.readFileSync(filepath, 'utf8');
     return JSON.parse(input);
 }


Test patch:
diff --git a/test/bibref.js b/test/bibref.js
index be07ef7ef..13ef3e4ba 100644
--- a/test/bibref.js
+++ b/test/bibref.js
@@ -57,7 +57,7 @@ suite('Test bibref api', function() {
     });
 
     test('bibref.cleanupRefs modifies the refs correctly', function() {
-        var cleanedup = bibref.cleanupRefs({
+        var cleaned = bibref.cleanupRefs({
             foo: {
                 versions: {},
                 rawDate: "2012-1-1",
@@ -65,7 +65,7 @@ suite('Test bibref api', function() {
                 bar: 123
             }
         });
-        var foo = cleanedup.foo;
+        var foo = cleaned.foo;
         assert.ok(typeof foo.versions == "object", "The versions property is an array of identifiers.");
         assert.ok(!('rawDate' in foo));
         assert.ok('date' in foo);
diff --git a/test/ref-list.json b/test/ref-list.json
index b18fd2778..dfa38880b 100644
--- a/test/ref-list.json
+++ b/test/ref-list.json
@@ -8026,6 +8026,8 @@
     "DID-SPEC-REGISTRIES-20210427",
     "did-spec-registries-20210428",
     "DID-SPEC-REGISTRIES-20210428",
+    "did-spec-registries-20210504",
+    "DID-SPEC-REGISTRIES-20210504",
     "did-use-cases",
     "DID-USE-CASES",
     "did-use-cases-20191128",
@@ -41873,6 +41875,8 @@
     "MEDIASESSION",
     "mediasession-20200130",
     "MEDIASESSION-20200130",
+    "mediasession-20210504",
+    "MEDIASESSION-20210504",
     "mediastream-recording",
     "MEDIASTREAM-RECORDING",
     "mediastream-recording-20130205",
@@ -76885,6 +76889,8 @@
     "VOCAB-DCAT-3",
     "vocab-dcat-3-20201217",
     "VOCAB-DCAT-3-20201217",
+    "vocab-dcat-3-20210504",
+    "VOCAB-DCAT-3-20210504",
     "vocab-dqv",
     "VOCAB-DQV",
     "vocab-dqv-20150625",