From: Alexis Laferrière Date: Wed, 23 Apr 2014 01:43:04 +0000 (-0400) Subject: lib: rename simple_json_reader as json::static X-Git-Tag: v0.6.6~81^2~8 X-Git-Url: http://nitlanguage.org lib: rename simple_json_reader as json::static Signed-off-by: Alexis Laferrière --- diff --git a/lib/simple_json_reader/.gitattributes b/lib/json/.gitattributes similarity index 100% rename from lib/simple_json_reader/.gitattributes rename to lib/json/.gitattributes diff --git a/lib/simple_json_reader/.gitignore b/lib/json/.gitignore similarity index 100% rename from lib/simple_json_reader/.gitignore rename to lib/json/.gitignore diff --git a/lib/simple_json_reader/Makefile b/lib/json/Makefile similarity index 100% rename from lib/simple_json_reader/Makefile rename to lib/json/Makefile diff --git a/lib/simple_json_reader/json_lexer.nit b/lib/json/json_lexer.nit similarity index 100% rename from lib/simple_json_reader/json_lexer.nit rename to lib/json/json_lexer.nit diff --git a/lib/simple_json_reader/json_parser.nit b/lib/json/json_parser.nit similarity index 100% rename from lib/simple_json_reader/json_parser.nit rename to lib/json/json_parser.nit diff --git a/lib/simple_json_reader/simple_json_reader.nit b/lib/json/static.nit similarity index 99% rename from lib/simple_json_reader/simple_json_reader.nit rename to lib/json/static.nit index 751506c..0be7cfc 100644 --- a/lib/simple_json_reader/simple_json_reader.nit +++ b/lib/json/static.nit @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -module simple_json_reader +module static import json_parser import json_lexer diff --git a/tests/sav/test_simple_json_reader.res b/tests/sav/test_json_static.nit similarity index 100% rename from tests/sav/test_simple_json_reader.res rename to tests/sav/test_json_static.nit diff --git a/tests/test_simple_json_reader.nit b/tests/test_json_static.nit similarity index 56% rename from tests/test_simple_json_reader.nit rename to tests/test_json_static.nit index f38cbaa..b510725 100644 --- a/tests/test_simple_json_reader.nit +++ b/tests/test_json_static.nit @@ -1,4 +1,20 @@ -import simple_json_reader +# This file is part of NIT ( http://www.nitlanguage.org ). +# +# Copyright 2014 Alexis Laferrière +# +# 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. + +import json::static redef class HashMap[K,V] redef fun to_s do return ""