From 24f1e97377f03912136051371d98dcc20c81d7d3 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Thu, 4 Dec 2014 19:14:51 -0500 Subject: [PATCH] lib: introduce github group * rename github_api in github_curl * move github_curl to github group Signed-off-by: Alexandre Terrasa --- contrib/github_merge.nit | 2 +- .../src/github_search_for_jni.nit | 2 +- lib/github/github.nit | 18 ++++++++++++++++++ lib/{github_api.nit => github/github_curl.nit} | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 lib/github/github.nit rename lib/{github_api.nit => github/github_curl.nit} (99%) diff --git a/contrib/github_merge.nit b/contrib/github_merge.nit index 0d5e052..89433b8 100644 --- a/contrib/github_merge.nit +++ b/contrib/github_merge.nit @@ -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 diff --git a/contrib/github_search_for_jni/src/github_search_for_jni.nit b/contrib/github_search_for_jni/src/github_search_for_jni.nit index 35b19b2..8029b2e 100644 --- a/contrib/github_search_for_jni/src/github_search_for_jni.nit +++ b/contrib/github_search_for_jni/src/github_search_for_jni.nit @@ -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 index 0000000..759b921 --- /dev/null +++ b/lib/github/github.nit @@ -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 diff --git a/lib/github_api.nit b/lib/github/github_curl.nit similarity index 99% rename from lib/github_api.nit rename to lib/github/github_curl.nit index f5a24a5..6e2067b 100644 --- a/lib/github_api.nit +++ b/lib/github/github_curl.nit @@ -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 -- 1.7.9.5