From 0ef73c55d78e1103f464c392bf4ab069cb9b76cc Mon Sep 17 00:00:00 2001 From: Juvenn Woo Date: Wed, 10 Aug 2016 16:34:25 +0800 Subject: [PATCH 1/2] Rename test file names --- Makefile | 4 ++-- tests/LeanACLTest.php => test/ACLTest.php | 0 tests/LeanAPITest.php => test/APITest.php | 0 {tests => test}/ArrayOperationTest.php | 0 tests/LeanBytesTest.php => test/BytesTest.php | 0 tests/LeanClientTest.php => test/ClientTest.php | 0 {tests => test}/CloudTest.php | 0 {tests => test}/DeleteOperationTest.php | 0 tests/LeanFileTest.php => test/FileTest.php | 0 {tests => test}/GeoPointTest.php | 0 {tests => test}/IncrementOperationTest.php | 0 tests/LeanObjectTest.php => test/ObjectTest.php | 0 tests/LeanPushTest.php => test/PushTest.php | 0 tests/LeanQueryTest.php => test/QueryTest.php | 0 {tests => test}/RelationOperationTest.php | 0 tests/LeanRelationTest.php => test/RelationTest.php | 0 tests/LeanRoleTest.php => test/RoleTest.php | 0 {tests => test}/SetOperationTest.php | 0 {tests => test}/StorageTest.php | 0 tests/LeanUserTest.php => test/UserTest.php | 0 {tests => test}/engine/LeanEngineTest.php | 0 {tests => test}/engine/index.php | 0 22 files changed, 2 insertions(+), 2 deletions(-) rename tests/LeanACLTest.php => test/ACLTest.php (100%) rename tests/LeanAPITest.php => test/APITest.php (100%) rename {tests => test}/ArrayOperationTest.php (100%) rename tests/LeanBytesTest.php => test/BytesTest.php (100%) rename tests/LeanClientTest.php => test/ClientTest.php (100%) rename {tests => test}/CloudTest.php (100%) rename {tests => test}/DeleteOperationTest.php (100%) rename tests/LeanFileTest.php => test/FileTest.php (100%) rename {tests => test}/GeoPointTest.php (100%) rename {tests => test}/IncrementOperationTest.php (100%) rename tests/LeanObjectTest.php => test/ObjectTest.php (100%) rename tests/LeanPushTest.php => test/PushTest.php (100%) rename tests/LeanQueryTest.php => test/QueryTest.php (100%) rename {tests => test}/RelationOperationTest.php (100%) rename tests/LeanRelationTest.php => test/RelationTest.php (100%) rename tests/LeanRoleTest.php => test/RoleTest.php (100%) rename {tests => test}/SetOperationTest.php (100%) rename {tests => test}/StorageTest.php (100%) rename tests/LeanUserTest.php => test/UserTest.php (100%) rename {tests => test}/engine/LeanEngineTest.php (100%) rename {tests => test}/engine/index.php (100%) diff --git a/Makefile b/Makefile index 769508f..1521619 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ test: - vendor/bin/phpunit + vendor/bin/phpunit test release: ./release.sh $V @@ -8,6 +8,6 @@ doc: vendor/bin/apigen generate --source src --destination docs test_engine: - php -S ${LC_APP_HOST}:${LC_APP_PORT} tests/engine/index.php + php -S ${LC_APP_HOST}:${LC_APP_PORT} test/engine/index.php .PHONY: test doc test_engine diff --git a/tests/LeanACLTest.php b/test/ACLTest.php similarity index 100% rename from tests/LeanACLTest.php rename to test/ACLTest.php diff --git a/tests/LeanAPITest.php b/test/APITest.php similarity index 100% rename from tests/LeanAPITest.php rename to test/APITest.php diff --git a/tests/ArrayOperationTest.php b/test/ArrayOperationTest.php similarity index 100% rename from tests/ArrayOperationTest.php rename to test/ArrayOperationTest.php diff --git a/tests/LeanBytesTest.php b/test/BytesTest.php similarity index 100% rename from tests/LeanBytesTest.php rename to test/BytesTest.php diff --git a/tests/LeanClientTest.php b/test/ClientTest.php similarity index 100% rename from tests/LeanClientTest.php rename to test/ClientTest.php diff --git a/tests/CloudTest.php b/test/CloudTest.php similarity index 100% rename from tests/CloudTest.php rename to test/CloudTest.php diff --git a/tests/DeleteOperationTest.php b/test/DeleteOperationTest.php similarity index 100% rename from tests/DeleteOperationTest.php rename to test/DeleteOperationTest.php diff --git a/tests/LeanFileTest.php b/test/FileTest.php similarity index 100% rename from tests/LeanFileTest.php rename to test/FileTest.php diff --git a/tests/GeoPointTest.php b/test/GeoPointTest.php similarity index 100% rename from tests/GeoPointTest.php rename to test/GeoPointTest.php diff --git a/tests/IncrementOperationTest.php b/test/IncrementOperationTest.php similarity index 100% rename from tests/IncrementOperationTest.php rename to test/IncrementOperationTest.php diff --git a/tests/LeanObjectTest.php b/test/ObjectTest.php similarity index 100% rename from tests/LeanObjectTest.php rename to test/ObjectTest.php diff --git a/tests/LeanPushTest.php b/test/PushTest.php similarity index 100% rename from tests/LeanPushTest.php rename to test/PushTest.php diff --git a/tests/LeanQueryTest.php b/test/QueryTest.php similarity index 100% rename from tests/LeanQueryTest.php rename to test/QueryTest.php diff --git a/tests/RelationOperationTest.php b/test/RelationOperationTest.php similarity index 100% rename from tests/RelationOperationTest.php rename to test/RelationOperationTest.php diff --git a/tests/LeanRelationTest.php b/test/RelationTest.php similarity index 100% rename from tests/LeanRelationTest.php rename to test/RelationTest.php diff --git a/tests/LeanRoleTest.php b/test/RoleTest.php similarity index 100% rename from tests/LeanRoleTest.php rename to test/RoleTest.php diff --git a/tests/SetOperationTest.php b/test/SetOperationTest.php similarity index 100% rename from tests/SetOperationTest.php rename to test/SetOperationTest.php diff --git a/tests/StorageTest.php b/test/StorageTest.php similarity index 100% rename from tests/StorageTest.php rename to test/StorageTest.php diff --git a/tests/LeanUserTest.php b/test/UserTest.php similarity index 100% rename from tests/LeanUserTest.php rename to test/UserTest.php diff --git a/tests/engine/LeanEngineTest.php b/test/engine/LeanEngineTest.php similarity index 100% rename from tests/engine/LeanEngineTest.php rename to test/engine/LeanEngineTest.php diff --git a/tests/engine/index.php b/test/engine/index.php similarity index 100% rename from tests/engine/index.php rename to test/engine/index.php From 6c98f9798e9fdca4e768a8d88459883013ab8956 Mon Sep 17 00:00:00 2001 From: Juvenn Woo Date: Wed, 10 Aug 2016 16:48:28 +0800 Subject: [PATCH 2/2] Ready to release 0.4.0 --- Changelog.md | 15 +++++++++++++++ release.sh | 2 +- src/LeanCloud/Client.php | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 5fee0f2..5c82a38 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,4 +1,19 @@ +0.4.0 发布日期:2016-08-10 +---- + +**不兼容改动** + +为了与其它语言 SDK 类型名保持一致,将主要类型名称的 Lean 前缀去掉。如 +果升级,请注意同步修改代码。 + +以下是去掉 `Lean` 前缀的类型列表: + +``` +LeanACL LeanBytes LeanClient LeanFile LeanObject LeanPush +LeanQuery LeanRelation LeanRole LeanUser +``` + 0.3.0 发布日期:2016-06-30 ---- diff --git a/release.sh b/release.sh index 6eb87a1..e61e46d 100755 --- a/release.sh +++ b/release.sh @@ -24,7 +24,7 @@ mv Changelog.md.0 Changelog.md # portable solution in perl perl -pi -e "s/const VERSION = .*\;/const VERSION = \'$version\'\;/" \ - src/LeanCloud/LeanClient.php + src/LeanCloud/Client.php echo "Done! Ready to commit and release $version!" diff --git a/src/LeanCloud/Client.php b/src/LeanCloud/Client.php index a9f6c50..06338f9 100644 --- a/src/LeanCloud/Client.php +++ b/src/LeanCloud/Client.php @@ -23,7 +23,7 @@ class Client { /** * Client version */ - const VERSION = '0.3.0'; + const VERSION = '0.4.0'; /** * API Endpoints for Regions