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/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/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 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