Merge: GitHub nitlang
authorJean Privat <jean@pryen.org>
Fri, 21 Aug 2015 23:31:44 +0000 (19:31 -0400)
committerJean Privat <jean@pryen.org>
Fri, 21 Aug 2015 23:31:44 +0000 (19:31 -0400)
Migrate references from https://github.com/privat/nit to https://github.com/nitlang/nit

Pull-Request: #1651
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

21 files changed:
Makefile
contrib/crazy_moles/org.nitlanguage.moles_android.txt
contrib/friendz/org.nitlanguage.friendz_android.txt
contrib/github_merge.nit
contrib/nitrpg/README.md
contrib/nitrpg/nitrpg.user.js
contrib/nitrpg/src/game.nit
contrib/online_ide/www/js/functions.js
contrib/opportunity/README.md
contrib/pep8analysis/www/index.html
contrib/tnitter/src/action.nit
examples/emscripten/fibonacci/www/index.html
examples/mnit_ballz/org.nitlanguage.ballz_android.txt
examples/mnit_dino/org.nitlanguage.dino.txt
examples/mnit_simple/org.nitlanguage.test_all.txt
examples/shoot/org.nitlanguage.shoot_android.txt
lib/github/api.nit
lib/github/cache.nit
lib/github/test_github_curl.nit
lib/graphs/digraph.nit
share/man/nitdoc.md

index c217c35..1eb78c7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,10 +45,10 @@ doc/stdlib/index.html: bin/nitdoc bin/nitls
                --custom-brand "<a href=\"http://nitlanguage.org/\">Nitlanguage.org</a>" \
                --custom-overview-text "<p>Documentation for the standard library of Nit<br/>Version $$(git describe)<br/>Date: $$(git show --format="%cd" | head -1)</p>" \
                --custom-footer-text "Nit standard library. Version $$(git describe)." \
-               --github-upstream "privat:nit:master" \
+               --github-upstream "nitlang:nit:master" \
                --github-base-sha1 "$$(git rev-parse HEAD)" \
                --github-gitdir "." \
-               --source "https://github.com/privat/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
+               --source "https://github.com/nitlang/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
                --piwik-tracker "pratchett.info.uqam.ca/piwik/" \
                --piwik-site-id "2" \
 
@@ -59,10 +59,10 @@ doc/nitc/index.html: bin/nitdoc bin/nitls
                --custom-brand "<a href=\"http://nitlanguage.org/\">Nitlanguage.org</a>" \
                --custom-overview-text "<p>Documentation for the Nit tools<br/>Version $$(git describe)<br/>Date: $$(git show --format="%cd" | head -1)</p>" \
                --custom-footer-text "Nit tools. Version $$(git describe)." \
-               --github-upstream "privat:nit:master" \
+               --github-upstream "nitlang:nit:master" \
                --github-base-sha1 "$$(git rev-parse HEAD)" \
                --github-gitdir "." \
-               --source "https://github.com/privat/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
+               --source "https://github.com/nitlang/nit/blob/$$(git rev-parse HEAD)/%f#L%l-%L" \
                --piwik-tracker "pratchett.info.uqam.ca/piwik/" \
                --piwik-site-id "3"
 
index e7a88eb..d160073 100644 (file)
@@ -2,7 +2,7 @@ Categories:Nit,Games
 License:Apache2
 Web Site:http://nitlanguage.org
 Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_moles
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
 
 Summary:Wack-a-Mole game
 Description:
index fc0e9dc..904dcc5 100644 (file)
@@ -2,7 +2,7 @@ Categories:Nit,Games
 License:WTFPL
 Web Site:http://nitlanguage.org
 Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/contrib/friendz
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
 
 Summary:Puzzle game
 Description:
index 311b1b7..3a98c10 100644 (file)
@@ -29,10 +29,10 @@ redef class GithubCurl
        # Get a given pull request (PR)
        fun getpr(number: Int): JsonObject
        do
-               var pr = get_and_check("https://api.github.com/repos/privat/nit/pulls/{number}")
+               var pr = get_and_check("https://api.github.com/repos/nitlang/nit/pulls/{number}")
                var prm = pr.json_as_map
                var sha = prm["head"].json_as_map["sha"].to_s
-               var statuses = get_and_check("https://api.github.com/repos/privat/nit/statuses/{sha}")
+               var statuses = get_and_check("https://api.github.com/repos/nitlang/nit/statuses/{sha}")
                prm["statuses"] = statuses
                print "{prm["title"].to_s}: by {prm["user"].json_as_map["login"].to_s} (# {prm["number"].to_s})"
                var mergeable = prm["mergeable"]
@@ -56,8 +56,8 @@ redef class GithubCurl
                var number = pr["number"].as(Int)
                var user = pr["user"].json_as_map["login"].as(String)
                var comments = new Array[nullable Object]
-               comments.add_all(get_and_check("https://api.github.com/repos/privat/nit/issues/{number}/comments").json_as_a)
-               comments.add_all(get_and_check("https://api.github.com/repos/privat/nit/pulls/{number}/comments").json_as_a)
+               comments.add_all(get_and_check("https://api.github.com/repos/nitlang/nit/issues/{number}/comments").json_as_a)
+               comments.add_all(get_and_check("https://api.github.com/repos/nitlang/nit/pulls/{number}/comments").json_as_a)
                var logins = new Array[String]
                for c in comments do
                        var cm = c.json_as_map
@@ -90,11 +90,11 @@ if auth == "" then
        print "    git config --add github.oauthtoken MYOAUTHTOKEN"
 end
 
-var curl = new GithubCurl(auth, "Merge-o-matic (privat/nit)")
+var curl = new GithubCurl(auth, "Merge-o-matic (nitlang/nit)")
 
 if args.length != 1 then
        # Without args, list `ok_will_merge`
-       var x = curl.get_and_check("https://api.github.com/repos/privat/nit/issues?labels=ok_will_merge")
+       var x = curl.get_and_check("https://api.github.com/repos/nitlang/nit/issues?labels=ok_will_merge")
        for y in x.json_as_a do
                var number = y.json_as_map["number"].as(Int)
                curl.getpr(number)
index c91c77e..a83264e 100644 (file)
@@ -81,4 +81,4 @@ Incomming features contain (but are not limited to):
 * Shop: exchange Nitcoins against glorifying items
 
 You can suggest new achievements or ideas in the
-[NitRPG RoadMap Issue](https://github.com/privat/nit/issues/1161).
+[NitRPG RoadMap Issue](https://github.com/nitlang/nit/issues/1161).
index 4440ea9..e372fc1 100644 (file)
@@ -2,7 +2,7 @@
 // @name        Github.com - Add RPG tab
 // @namespace   nitlanguage/github/rpg
 // @description Adds a "Github RPG" Tab at the end of the tabs.
-// @include     https://github.com/privat/nit*
+// @include     https://github.com/nitlang/nit*
 // @version     1
 // @grant       none
 // ==/UserScript==
@@ -12,7 +12,7 @@
 
 /* TODO:
  * Link to the player page (if logged and is a player)
- * Link to other games (not just `privat/nit` but other)
+ * Link to other games (not just `nitlang/nit` but other)
 */
 
 // The nav bar with tabs
@@ -20,7 +20,7 @@ var nav = document.getElementsByClassName('repo-nav');
 
 // The new tab
 var html = '<li class="tooltipped tooltipped-w" aria-label="Github RPG">\
-    <a href="http://nitlanguage.org/rpg/games/privat/nit" aria-label="RPG" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_settings /privat/nit/settings">\
+    <a href="http://nitlanguage.org/rpg/games/nitlang/nit" aria-label="RPG" class="js-selected-navigation-item sunken-menu-item" data-selected-links="repo_settings /nitlang/nit/settings">\
           <span class="octicon octicon-ruby"></span> <span class="full-word">Github RPG</span>\
           <img alt="" class="mini-loader" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16">\
 </a></li>';
index a8175a8..a109949 100644 (file)
@@ -67,7 +67,7 @@ class Game
 
        # Returns the repo `full_name`.
        #
-       # Example: `"privat/nit"`
+       # Example: `"nitlang/nit"`
        redef fun key do return repo.full_name
 
        # We need a `GithubAPI` client to load Github data.
index 816f70d..688da9b 100644 (file)
@@ -50,11 +50,11 @@ function load_nit_lib() {
        if (!lib_files_loaded)
        {
                // We get the 'nit' folder content on github.
-               $.get("https://api.github.com/repos/privat/nit/contents/?access_token=" + github_acces_token, function(data) {
+               $.get("https://api.github.com/repos/nitlang/nit/contents/?access_token=" + github_acces_token, function(data) {
                        for (var i = 0; i < data.length; i++) {
                                if (data[i].name == "lib") {
                                        // We get the list of all files in the 'lib' folder.
-                                       $.get("https://api.github.com/repos/privat/nit/git/trees/" + data[i].sha + "?recursive=1&access_token=" + github_acces_token, function(data) {
+                                       $.get("https://api.github.com/repos/nitlang/nit/git/trees/" + data[i].sha + "?recursive=1&access_token=" + github_acces_token, function(data) {
                                                for (var i = 0; i < data.tree.length; i++) {
                                                        if (data.tree[i].type == "blob") {
                                                                lib_files_number++;
index 32eb786..a328f69 100644 (file)
@@ -1,6 +1,6 @@
 Opportunity is a web-application written in Nit to plan meetups with people in real-life (or on the internet, why not !).
 
-It runs on Nit's official web server: Nitcorn, available along with the compiler for the language on Github <https://github.com/privat/nit>.
+It runs on Nit's official web server: Nitcorn, available along with the compiler for the language on Github <https://github.com/nitlang/nit>.
 
 # Compile and execute
 
index 03a90a6..6f7598a 100644 (file)
       </ul>
 
       <ul class="nav navbar-nav pull-right">
-        <li><a href="https://github.com/privat/nit/tree/master/contrib/pep8analysis/">Source and manual</a></li>
+        <li><a href="https://github.com/nitlang/nit/tree/master/contrib/pep8analysis/">Source and manual</a></li>
         <li><a href="https://code.google.com/p/pep8-1/">Pep/8 project</a></li>
       </ul>
     </div>
index d054b49..d95cfe3 100644 (file)
@@ -53,7 +53,7 @@ class Tnitter
 
     <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
       <ul class="nav navbar-nav">
-        <li><a href="https://github.com/privat/nit/">Nit repository</a></li>
+        <li><a href="https://github.com/nitlang/nit/">Nit repository</a></li>
       </ul>
 
       <ul class="nav navbar-nav pull-right">
index e0195f6..a632465 100644 (file)
@@ -54,8 +54,8 @@
 
 <div class="container">
        <h1>Fibonacci calculator</h1>
-       <a href="https://github.com/privat/nit/blob/master/examples/fibonacci.nit">Nit source</a><br>
-       <a href="https://github.com/privat/nit/blob/master/examples/emscripten/fibonacci/www/index.html">HTML source</a>
+       <a href="https://github.com/nitlang/nit/blob/master/examples/fibonacci.nit">Nit source</a><br>
+       <a href="https://github.com/nitlang/nit/blob/master/examples/emscripten/fibonacci/www/index.html">HTML source</a>
 
        <h2>Status</h2>
        <p id="loading">Loading...</p>
index 3cc279c..c7a110a 100644 (file)
@@ -2,7 +2,7 @@ Categories:Nit
 License:Apache2
 Web Site:http://nitlanguage.org
 Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_ballz
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
 
 Summary:A Sensor Demo
 Description:
index ac9df86..df5e48d 100644 (file)
@@ -2,7 +2,7 @@ Categories:Nit,Games
 License:Apache2
 Web Site:http://nitlanguage.org
 Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_dino
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
 
 Summary:Tactical arcade game
 Description:
index 314259b..eefae90 100644 (file)
@@ -2,7 +2,7 @@ Categories:Nit
 License:Apache2
 Web Site:http://nitlanguage.org
 Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/mnit_simple
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
 
 Summary:Simple Demo for MNit
 Description:
index 404a703..d43de74 100644 (file)
@@ -2,7 +2,7 @@ Categories:Nit,Games
 License:Apache2
 Web Site:http://nitlanguage.org
 Source Code:http://nitlanguage.org/nit.git/tree/HEAD:/examples/shoot
-Issue Tracker:https://github.com/privat/nit/issues
+Issue Tracker:https://github.com/nitlang/nit/issues
 
 Summary:A shoot'em up in space
 Description:
index 0d5a67a..6acaeea 100644 (file)
@@ -37,7 +37,7 @@ import github_curl
 # The API client allows you to get Github API entities.
 #
 # ~~~
-# var repo = api.load_repo("privat/nit")
+# var repo = api.load_repo("nitlang/nit")
 # assert repo != null
 # assert repo.name == "nit"
 #
@@ -94,7 +94,7 @@ class GithubAPI
        # See other `load_*` methods to use more expressive types.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var obj = api.get("repos/privat/nit")
+       #     var obj = api.get("repos/nitlang/nit")
        #     assert obj isa JsonObject
        #     assert obj["name"] == "nit"
        #
@@ -162,9 +162,9 @@ class GithubAPI
        # Loads the `Repo` from the API or returns `null` if the repo cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo.name == "nit"
-       #     assert repo.owner.login == "privat"
+       #     assert repo.owner.login == "nitlang"
        #     assert repo.default_branch.name == "master"
        fun load_repo(full_name: String): nullable Repo do
                var repo = new Repo(self, full_name)
@@ -176,7 +176,7 @@ class GithubAPI
        # Returns `null` if the branch cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var branch = api.load_branch(repo, "master")
        #     assert branch.name == "master"
@@ -191,7 +191,7 @@ class GithubAPI
        # Returns `null` if the commit cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var commit = api.load_commit(repo, "64ce1f")
        #     assert commit isa Commit
@@ -205,7 +205,7 @@ class GithubAPI
        # Returns `null` if the issue cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var issue = api.load_issue(repo, 1)
        #     assert issue.title == "Doc"
@@ -219,7 +219,7 @@ class GithubAPI
        # Returns `null` if the pull request cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var pull = api.load_pull(repo, 1)
        #     assert pull.title == "Doc"
@@ -234,7 +234,7 @@ class GithubAPI
        # Returns `null` if the label cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var labl = api.load_label(repo, "ok_will_merge")
        #     assert labl != null
@@ -248,7 +248,7 @@ class GithubAPI
        # Returns `null` if the milestone cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var stone = api.load_milestone(repo, 4)
        #     assert stone.title == "v1.0prealpha"
@@ -262,7 +262,7 @@ class GithubAPI
        # Returns `null` if the event cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo isa Repo
        #     var event = api.load_issue_event(repo, 199674194)
        #     assert event.actor.login == "privat"
@@ -279,7 +279,7 @@ class GithubAPI
        # Returns `null` if the comment cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var comment = api.load_commit_comment(repo, 8982707)
        #     assert comment.user.login == "Morriar"
@@ -295,7 +295,7 @@ class GithubAPI
        # Returns `null` if the comment cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var comment = api.load_issue_comment(repo, 6020149)
        #     assert comment.user.login == "privat"
@@ -311,7 +311,7 @@ class GithubAPI
        # Returns `null` if the comment cannot be found.
        #
        #     var api = new GithubAPI(get_github_oauth)
-       #     var repo = api.load_repo("privat/nit")
+       #     var repo = api.load_repo("nitlang/nit")
        #     assert repo != null
        #     var comment = api.load_review_comment(repo, 21010363)
        #     assert comment.path == "src/modelize/modelize_property.nit"
index e4d41c3..61a06cc 100644 (file)
@@ -26,7 +26,7 @@
 # var api = new GithubAPI(get_github_oauth)
 # api.enable_cache = true
 #
-# var name = "privat/nit"
+# var name = "nitlang/nit"
 # assert not api.has_cache(name)
 # var repo = api.load_repo(name) # load from GitHub
 # #assert api.has_cache(name) FIXME bring back this assert
index e15f684..e0369ed 100644 (file)
@@ -29,7 +29,7 @@ class TestGithubCurl
        end
 
        fun test_get_repo do
-               var uri = "https://api.github.com/repos/privat/nit"
+               var uri = "https://api.github.com/repos/nitlang/nit"
                var res = testee.get_and_check(uri)
 
                assert res isa JsonObject
index 00807d3..8f45495 100644 (file)
@@ -99,7 +99,7 @@
 # # Then call "dot -Tpng -o graph.png"
 # ~~~
 #
-# ![A graph drawing produced by Graphviz](https://github.com/privat/nit/blob/master/lib/graph.png)
+# ![A graph drawing produced by Graphviz](https://github.com/nitlang/nit/blob/master/lib/graph.png)
 #
 # Other methods
 # =============
index b73e217..4cc009f 100644 (file)
@@ -48,7 +48,7 @@ Use `%f` for filename, `%l` for first line, and `%L` for last line.
 
 For instance, the [standard library] use the following value to link to files in GitHub:
 
-    "https://github.com/privat/nit/blob/$(git rev-parse HEAD)/%f#L%l-%L"
+    "https://github.com/nitlang/nit/blob/$(git rev-parse HEAD)/%f#L%l-%L"
 
 Here, the `git rev-parse HEAD` is used to link to the current snapshot revision of the file.