diff --git a/LICENSE.txt b/LICENSE.txt index d0b5c86..67f9a18 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -4,4 +4,4 @@ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/LICENSE_DE.txt b/LICENSE_DE.txt index 5478579..9b1afe0 100644 --- a/LICENSE_DE.txt +++ b/LICENSE_DE.txt @@ -4,4 +4,4 @@ Der obige Urheberrechtsvermerk und dieser Erlaubnisvermerk sind in allen Kopien oder Teilkopien der Software beizulegen. -DIE SOFTWARE WIRD OHNE JEDE AUSDR�CKLICHE ODER IMPLIZIERTE GARANTIE BEREITGESTELLT, EINSCHLIESSLICH DER GARANTIE ZUR BENUTZUNG F�R DEN VORGESEHENEN ODER EINEM BESTIMMTEN ZWECK SOWIE JEGLICHER RECHTSVERLETZUNG, JEDOCH NICHT DARAUF BESCHR�NKT. IN KEINEM FALL SIND DIE AUTOREN ODER COPYRIGHTINHABER F�R JEGLICHEN SCHADEN ODER SONSTIGE ANSPR�CHE HAFTBAR ZU MACHEN, OB INFOLGE DER ERF�LLUNG EINES VERTRAGES, EINES DELIKTES ODER ANDERS IM ZUSAMMENHANG MIT DER SOFTWARE ODER SONSTIGER VERWENDUNG DER SOFTWARE ENTSTANDEN. \ No newline at end of file +DIE SOFTWARE WIRD OHNE JEDE AUSDR�CKLICHE ODER IMPLIZIERTE GARANTIE BEREITGESTELLT, EINSCHLIESSLICH DER GARANTIE ZUR BENUTZUNG F�R DEN VORGESEHENEN ODER EINEM BESTIMMTEN ZWECK SOWIE JEGLICHER RECHTSVERLETZUNG, JEDOCH NICHT DARAUF BESCHR�NKT. IN KEINEM FALL SIND DIE AUTOREN ODER COPYRIGHTINHABER F�R JEGLICHEN SCHADEN ODER SONSTIGE ANSPR�CHE HAFTBAR ZU MACHEN, OB INFOLGE DER ERF�LLUNG EINES VERTRAGES, EINES DELIKTES ODER ANDERS IM ZUSAMMENHANG MIT DER SOFTWARE ODER SONSTIGER VERWENDUNG DER SOFTWARE ENTSTANDEN. diff --git a/README.md b/README.md index ccbe0f0..4cefe22 100644 --- a/README.md +++ b/README.md @@ -63,4 +63,4 @@ Using DUB as a library ---------------------- -The [DUB package of DUB](http://code.dlang.org/packages/dub) can be used as a library to load or manipulate packages, or to resemble any functionality of the command line tool. The former task can be achieved by using the [Package class](https://github.com/rejectedsoftware/dub/blob/master/source/dub/package_.d#L40). For examples on how to replicate the command line functionality, see [commandline.d](https://github.com/rejectedsoftware/dub/blob/master/source/dub/commandline.d). \ No newline at end of file +The [DUB package of DUB](http://code.dlang.org/packages/dub) can be used as a library to load or manipulate packages, or to resemble any functionality of the command line tool. The former task can be achieved by using the [Package class](https://github.com/rejectedsoftware/dub/blob/master/source/dub/package_.d#L40). For examples on how to replicate the command line functionality, see [commandline.d](https://github.com/rejectedsoftware/dub/blob/master/source/dub/commandline.d). diff --git a/build-files.txt b/build-files.txt index 981fea8..ab0aa1e 100644 --- a/build-files.txt +++ b/build-files.txt @@ -24,4 +24,4 @@ source/dub/internal/vibecompat/data/json.d source/dub/internal/vibecompat/data/utils.d source/dub/internal/vibecompat/inet/path.d -source/dub/internal/vibecompat/inet/url.d \ No newline at end of file +source/dub/internal/vibecompat/inet/url.d diff --git a/dub.json b/dub.json index 65ff628..3d5c3a3 100644 --- a/dub.json +++ b/dub.json @@ -34,4 +34,4 @@ "excludedSourceFiles": ["source/app.d"] } ] -} \ No newline at end of file +} diff --git a/examples/mixed/source/lib.d b/examples/mixed/source/lib.d index bb7e819..a55d57a 100644 --- a/examples/mixed/source/lib.d +++ b/examples/mixed/source/lib.d @@ -5,4 +5,4 @@ void test() { writeln("Hello, World!"); -} \ No newline at end of file +} diff --git a/examples/vibed-main/source/app.d b/examples/vibed-main/source/app.d index 30fd3e8..5eff19f 100644 --- a/examples/vibed-main/source/app.d +++ b/examples/vibed-main/source/app.d @@ -10,4 +10,4 @@ void handleRequest(HTTPServerRequest req, HTTPServerResponse res) { res.writeBody("Hello, World!"); -} \ No newline at end of file +} diff --git a/examples/vibed/source/app.d b/examples/vibed/source/app.d index 1a7d8de..8838d9c 100644 --- a/examples/vibed/source/app.d +++ b/examples/vibed/source/app.d @@ -8,4 +8,4 @@ void handleRequest(HTTPServerRequest req, HTTPServerResponse res) { res.writeBody("Hello, World!"); -} \ No newline at end of file +} diff --git a/source/dub/compilers/compiler.d b/source/dub/compilers/compiler.d index 44d4e08..3005e40 100644 --- a/source/dub/compilers/compiler.d +++ b/source/dub/compilers/compiler.d @@ -280,12 +280,12 @@ if (platform.canFind(splitted.front)) { splitted.popFront(); if(splitted.empty) - return true; + return true; } if (architecture.canFind(splitted.front)) { splitted.popFront(); if(splitted.empty) - return true; + return true; } if (compiler == splitted.front) { splitted.popFront(); diff --git a/source/dub/compilers/gdc.d b/source/dub/compilers/gdc.d index 71625f8..56952b3 100644 --- a/source/dub/compilers/gdc.d +++ b/source/dub/compilers/gdc.d @@ -203,4 +203,4 @@ } } return ret.data; -} \ No newline at end of file +} diff --git a/source/dub/dub.d b/source/dub/dub.d index 8fe58d2..3b468b9 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -365,7 +365,7 @@ } - /// Returns all cached packages as a "packageId" = "version" associative array + /// Returns all cached packages as a "packageId" = "version" associative array string[string] cachedPackages() const { return m_project.cachedPackagesIDs(); } /// Fetches the package matching the dependency and places it in the specified location. diff --git a/source/dub/init.d b/source/dub/init.d index 5a4edd6..f1121ee 100644 --- a/source/dub/init.d +++ b/source/dub/init.d @@ -106,4 +106,4 @@ fil.formattedWrite("\n\t}"); if (versions.length) fil.formattedWrite(",\n\t\"versions\": [%s]", versions.map!(v => `"`~v~`"`).join(", ")); fil.write("\n}\n"); -} \ No newline at end of file +} diff --git a/source/dub/internal/utils.d b/source/dub/internal/utils.d index 759466c..9613553 100644 --- a/source/dub/internal/utils.d +++ b/source/dub/internal/utils.d @@ -211,9 +211,9 @@ } /** - Get the closest match of $(D input) in the $(D array), where $(D distance) - is the maximum levenshtein distance allowed between the compared strings. - Returns $(D null) if no closest match is found. + Get the closest match of $(D input) in the $(D array), where $(D distance) + is the maximum levenshtein distance allowed between the compared strings. + Returns $(D null) if no closest match is found. */ string getClosestMatch(string[] array, string input, size_t distance) { diff --git a/source/dub/internal/vibecompat/data/json.d b/source/dub/internal/vibecompat/data/json.d index d6832f5..b07d2e1 100644 --- a/source/dub/internal/vibecompat/data/json.d +++ b/source/dub/internal/vibecompat/data/json.d @@ -667,7 +667,7 @@ --- Params: - level = Specifies the base amount of indentation for the output. Indentation is always + level = Specifies the base amount of indentation for the output. Indentation is always done using tab characters. See_Also: writePrettyJsonString, toString @@ -1096,8 +1096,8 @@ Params: dst = References the string output range to which the result is written. json = Specifies the JSON value that is to be stringified. - level = Specifies the base amount of indentation for the output. Indentation is always - done using tab characters. + level = Specifies the base amount of indentation for the output. Indentation is always + done using tab characters. See_Also: Json.toPrettyString, writeJsonString */ @@ -1289,4 +1289,4 @@ } private template isJsonSerializable(T) { enum isJsonSerializable = is(typeof(T.init.toJson()) == Json) && is(typeof(T.fromJson(Json())) == T); } -package template isStringSerializable(T) { enum isStringSerializable = is(typeof(T.init.toString()) == string) && is(typeof(T.fromString("")) == T); } \ No newline at end of file +package template isStringSerializable(T) { enum isStringSerializable = is(typeof(T.init.toString()) == string) && is(typeof(T.fromString("")) == T); } diff --git a/source/dub/package_.d b/source/dub/package_.d index 8435149..3d4731d 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -892,4 +892,4 @@ } return null; -} \ No newline at end of file +} diff --git a/test/custom-unittest/source/lib.d b/test/custom-unittest/source/lib.d index e489a1c..08101fa 100644 --- a/test/custom-unittest/source/lib.d +++ b/test/custom-unittest/source/lib.d @@ -4,4 +4,4 @@ { import std.stdio; writefln("Library function called."); -} \ No newline at end of file +} diff --git a/test/custom-unittest/test/main.d b/test/custom-unittest/test/main.d index 6697dae..77f637f 100644 --- a/test/custom-unittest/test/main.d +++ b/test/custom-unittest/test/main.d @@ -4,4 +4,4 @@ { import std.stdio; writefln("Running unit tests."); -} \ No newline at end of file +} diff --git a/test/path-subpackage-ref/dub.json b/test/path-subpackage-ref/dub.json index 378acee..4c40d06 100644 --- a/test/path-subpackage-ref/dub.json +++ b/test/path-subpackage-ref/dub.json @@ -1,9 +1,9 @@ { - "name": "test", - "dependencies": { - "test:subpack": "*" - }, - "subPackages": [ - "subpack/" - ] -} \ No newline at end of file + "name": "test", + "dependencies": { + "test:subpack": "*" + }, + "subPackages": [ + "subpack/" + ] +} diff --git a/test/subpackage-ref/dub.json b/test/subpackage-ref/dub.json index 0f4f3cd..b840a09 100644 --- a/test/subpackage-ref/dub.json +++ b/test/subpackage-ref/dub.json @@ -1,11 +1,11 @@ { - "name": "test", - "dependencies": { - "test:subpack": "*" - }, - "subPackages": [ - { - "name": "subpack" - } - ] -} \ No newline at end of file + "name": "test", + "dependencies": { + "test:subpack": "*" + }, + "subPackages": [ + { + "name": "subpack" + } + ] +}