lib: introduce github group
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 5 Dec 2014 00:14:51 +0000 (19:14 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 03:06:16 +0000 (22:06 -0500)
* rename github_api in github_curl
* move github_curl to github group

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/github_merge.nit
contrib/github_search_for_jni/src/github_search_for_jni.nit
lib/github/github.nit [new file with mode: 0644]
lib/github/github_curl.nit [moved from lib/github_api.nit with 99% similarity]

index 0d5e052..89433b8 100644 (file)
@@ -15,7 +15,7 @@
 # Query the Github PR API to perform a merge
 module github_merge
 
-import github_api
+import github::github_curl
 import template
 
 redef class Object
index 35b19b2..8029b2e 100644 (file)
@@ -17,7 +17,7 @@
 # Script to scan Github for repositories possibly using JNI.
 module github_search_for_jni
 
-import github_api
+import github::github_curl
 
 # The proprieties introduced by this redef are to be used only on a JSON object
 # representing a Github repository.
diff --git a/lib/github/github.nit b/lib/github/github.nit
new file mode 100644 (file)
index 0000000..759b921
--- /dev/null
@@ -0,0 +1,18 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Github API related features.
+module github
+
+import github_curl
similarity index 99%
rename from lib/github_api.nit
rename to lib/github/github_curl.nit
index f5a24a5..6e2067b 100644 (file)
@@ -14,7 +14,7 @@
 
 # Curl extention to access the Github API
 # See https://developer.github.com/v3/ for details
-module github_api
+module github_curl
 
 import curl
 import json::static