From ff55d584097034aaea2db240f5b2b2717b2990f3 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 1 Feb 2022 12:40:49 +0100 Subject: [PATCH] release v0.1.0 --- .github/workflows/release.yml | 39 + README.md | 21 +- docs/Makefile | 2 +- docs/latest | 2 +- docs/v0.0/ion.html | 10 +- docs/v0.1/.htaccess | 11 + docs/v0.1/.nojekyll | 0 docs/v0.1/AUTHORS | 1 + docs/v0.1/LICENSE | 23 + docs/v0.1/VERSION | 1 + docs/v0.1/favicon.ico | Bin 0 -> 152126 bytes docs/v0.1/index.css | 332 +++++ docs/v0.1/index.html | 77 ++ docs/v0.1/index.js | 61 + docs/v0.1/ion.html | 459 +++++++ docs/v0.1/ion.stub.php | 1106 +++++++++++++++++ docs/v0.1/ion/: Contributing.html | 128 ++ docs/v0.1/ion/: Security.html | 126 ++ docs/v0.1/ion/Catalog.html | 189 +++ docs/v0.1/ion/Catalog/__construct.html | 93 ++ docs/v0.1/ion/Catalog/add.html | 97 ++ docs/v0.1/ion/Catalog/find.html | 103 ++ docs/v0.1/ion/Catalog/findBest.html | 103 ++ docs/v0.1/ion/Catalog/remove.html | 101 ++ docs/v0.1/ion/Decimal.html | 227 ++++ docs/v0.1/ion/Decimal/Context.html | 207 +++ docs/v0.1/ion/Decimal/Context/Dec128.html | 105 ++ docs/v0.1/ion/Decimal/Context/Dec32.html | 105 ++ docs/v0.1/ion/Decimal/Context/Dec64.html | 105 ++ docs/v0.1/ion/Decimal/Context/DecMax.html | 108 ++ docs/v0.1/ion/Decimal/Context/Rounding.html | 139 +++ .../v0.1/ion/Decimal/Context/__construct.html | 121 ++ docs/v0.1/ion/Decimal/__construct.html | 101 ++ docs/v0.1/ion/Decimal/equals.html | 103 ++ docs/v0.1/ion/Decimal/isInt.html | 99 ++ docs/v0.1/ion/Decimal/toInt.html | 99 ++ docs/v0.1/ion/Decimal/toString.html | 95 ++ docs/v0.1/ion/Exception.html | 107 ++ docs/v0.1/ion/LOB.html | 135 ++ docs/v0.1/ion/LOB/__construct.html | 91 ++ docs/v0.1/ion/Reader.html | 551 ++++++++ docs/v0.1/ion/Reader/Buffer.html | 187 +++ docs/v0.1/ion/Reader/Buffer/Reader.html | 120 ++ .../ion/Reader/Buffer/Reader/__construct.html | 111 ++ docs/v0.1/ion/Reader/Buffer/getBuffer.html | 101 ++ docs/v0.1/ion/Reader/Options.html | 197 +++ docs/v0.1/ion/Reader/Options/__construct.html | 114 ++ docs/v0.1/ion/Reader/Reader.html | 153 +++ docs/v0.1/ion/Reader/Stream.html | 215 ++++ docs/v0.1/ion/Reader/Stream/Reader.html | 124 ++ .../ion/Reader/Stream/Reader/__construct.html | 111 ++ docs/v0.1/ion/Reader/Stream/getStream.html | 105 ++ docs/v0.1/ion/Reader/Stream/resetStream.html | 105 ++ .../Reader/Stream/resetStreamWithLength.html | 108 ++ docs/v0.1/ion/Reader/countAnnotations.html | 147 +++ docs/v0.1/ion/Reader/getAnnotation.html | 151 +++ docs/v0.1/ion/Reader/getAnnotationSymbol.html | 151 +++ .../v0.1/ion/Reader/getAnnotationSymbols.html | 147 +++ docs/v0.1/ion/Reader/getAnnotations.html | 147 +++ docs/v0.1/ion/Reader/getDepth.html | 147 +++ docs/v0.1/ion/Reader/getFieldName.html | 147 +++ docs/v0.1/ion/Reader/getFieldNameSymbol.html | 147 +++ docs/v0.1/ion/Reader/getPosition.html | 147 +++ docs/v0.1/ion/Reader/getType.html | 147 +++ docs/v0.1/ion/Reader/getValueLength.html | 147 +++ docs/v0.1/ion/Reader/getValueOffset.html | 147 +++ docs/v0.1/ion/Reader/hasAnnotation.html | 151 +++ docs/v0.1/ion/Reader/hasAnnotations.html | 147 +++ docs/v0.1/ion/Reader/isInStruct.html | 147 +++ docs/v0.1/ion/Reader/isNull.html | 147 +++ docs/v0.1/ion/Reader/readBool.html | 147 +++ docs/v0.1/ion/Reader/readDecimal.html | 147 +++ docs/v0.1/ion/Reader/readFloat.html | 147 +++ docs/v0.1/ion/Reader/readInt.html | 147 +++ docs/v0.1/ion/Reader/readLob.html | 147 +++ docs/v0.1/ion/Reader/readLobPart.html | 154 +++ docs/v0.1/ion/Reader/readNull.html | 147 +++ docs/v0.1/ion/Reader/readString.html | 147 +++ docs/v0.1/ion/Reader/readStringPart.html | 154 +++ docs/v0.1/ion/Reader/readSymbol.html | 147 +++ docs/v0.1/ion/Reader/readTimestamp.html | 147 +++ docs/v0.1/ion/Reader/seek.html | 152 +++ docs/v0.1/ion/Serializer.html | 144 +++ docs/v0.1/ion/Serializer/PHP.html | 123 ++ docs/v0.1/ion/Serializer/PHP/__construct.html | 104 ++ docs/v0.1/ion/Serializer/serialize.html | 91 ++ docs/v0.1/ion/Symbol.html | 248 ++++ docs/v0.1/ion/Symbol/Enum.html | 147 +++ docs/v0.1/ion/Symbol/Enum/toSID.html | 103 ++ docs/v0.1/ion/Symbol/Enum/toString.html | 103 ++ docs/v0.1/ion/Symbol/Enum/toSymbol.html | 103 ++ docs/v0.1/ion/Symbol/ImportLocation.html | 129 ++ .../Symbol/ImportLocation/__construct.html | 102 ++ docs/v0.1/ion/Symbol/PHP.html | 160 +++ docs/v0.1/ion/Symbol/PHP/asTable.html | 98 ++ docs/v0.1/ion/Symbol/System.html | 157 +++ docs/v0.1/ion/Symbol/System/asTable.html | 98 ++ docs/v0.1/ion/Symbol/Table.html | 195 +++ docs/v0.1/ion/Symbol/Table/Local.html | 151 +++ .../ion/Symbol/Table/Local/__construct.html | 107 ++ docs/v0.1/ion/Symbol/Table/Local/import.html | 115 ++ docs/v0.1/ion/Symbol/Table/Shared.html | 139 +++ .../ion/Symbol/Table/Shared/__construct.html | 113 ++ docs/v0.1/ion/Symbol/Table/add.html | 113 ++ docs/v0.1/ion/Symbol/Table/find.html | 113 ++ docs/v0.1/ion/Symbol/Table/findLocal.html | 113 ++ docs/v0.1/ion/Symbol/Table/getMaxId.html | 109 ++ docs/v0.1/ion/Symbol/__construct.html | 106 ++ docs/v0.1/ion/Symbol/equals.html | 113 ++ docs/v0.1/ion/Symbol/toString.html | 99 ++ docs/v0.1/ion/Timestamp.html | 166 +++ docs/v0.1/ion/Timestamp/Format.html | 126 ++ docs/v0.1/ion/Timestamp/Precision.html | 126 ++ docs/v0.1/ion/Timestamp/__construct.html | 99 ++ docs/v0.1/ion/Type.html | 168 +++ docs/v0.1/ion/Unserializer.html | 144 +++ docs/v0.1/ion/Unserializer/PHP.html | 123 ++ .../ion/Unserializer/PHP/__construct.html | 104 ++ docs/v0.1/ion/Unserializer/unserialize.html | 91 ++ docs/v0.1/ion/Writer.html | 460 +++++++ docs/v0.1/ion/Writer/Buffer.html | 187 +++ docs/v0.1/ion/Writer/Buffer/Writer.html | 122 ++ .../ion/Writer/Buffer/Writer/__construct.html | 108 ++ docs/v0.1/ion/Writer/Buffer/getBuffer.html | 99 ++ docs/v0.1/ion/Writer/Buffer/resetBuffer.html | 99 ++ docs/v0.1/ion/Writer/Options.html | 193 +++ docs/v0.1/ion/Writer/Options/__construct.html | 120 ++ docs/v0.1/ion/Writer/Stream.html | 173 +++ docs/v0.1/ion/Writer/Stream/Writer.html | 120 ++ .../ion/Writer/Stream/Writer/__construct.html | 111 ++ docs/v0.1/ion/Writer/Stream/getStream.html | 101 ++ docs/v0.1/ion/Writer/Writer.html | 135 ++ docs/v0.1/ion/Writer/appendLob.html | 137 ++ docs/v0.1/ion/Writer/finish.html | 133 ++ docs/v0.1/ion/Writer/finishContainer.html | 133 ++ docs/v0.1/ion/Writer/finishLob.html | 133 ++ docs/v0.1/ion/Writer/flush.html | 133 ++ docs/v0.1/ion/Writer/getDepth.html | 133 ++ docs/v0.1/ion/Writer/startContainer.html | 137 ++ docs/v0.1/ion/Writer/startLob.html | 137 ++ docs/v0.1/ion/Writer/writeAnnotation.html | 136 ++ docs/v0.1/ion/Writer/writeBLob.html | 137 ++ docs/v0.1/ion/Writer/writeBool.html | 137 ++ docs/v0.1/ion/Writer/writeCLob.html | 137 ++ docs/v0.1/ion/Writer/writeDecimal.html | 137 ++ docs/v0.1/ion/Writer/writeFieldName.html | 137 ++ docs/v0.1/ion/Writer/writeFloat.html | 137 ++ docs/v0.1/ion/Writer/writeInt.html | 137 ++ docs/v0.1/ion/Writer/writeNull.html | 133 ++ docs/v0.1/ion/Writer/writeString.html | 137 ++ docs/v0.1/ion/Writer/writeSymbol.html | 137 ++ docs/v0.1/ion/Writer/writeTimestamp.html | 137 ++ docs/v0.1/ion/Writer/writeTypedNull.html | 137 ++ docs/v0.1/ion/serialize.html | 127 ++ docs/v0.1/ion/unserialize.html | 118 ++ package.xml | 2 +- 156 files changed, 21246 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 docs/v0.1/.htaccess create mode 100644 docs/v0.1/.nojekyll create mode 100644 docs/v0.1/AUTHORS create mode 100644 docs/v0.1/LICENSE create mode 100644 docs/v0.1/VERSION create mode 100644 docs/v0.1/favicon.ico create mode 100644 docs/v0.1/index.css create mode 100644 docs/v0.1/index.html create mode 100644 docs/v0.1/index.js create mode 100644 docs/v0.1/ion.html create mode 100644 docs/v0.1/ion.stub.php create mode 100644 docs/v0.1/ion/: Contributing.html create mode 100644 docs/v0.1/ion/: Security.html create mode 100644 docs/v0.1/ion/Catalog.html create mode 100644 docs/v0.1/ion/Catalog/__construct.html create mode 100644 docs/v0.1/ion/Catalog/add.html create mode 100644 docs/v0.1/ion/Catalog/find.html create mode 100644 docs/v0.1/ion/Catalog/findBest.html create mode 100644 docs/v0.1/ion/Catalog/remove.html create mode 100644 docs/v0.1/ion/Decimal.html create mode 100644 docs/v0.1/ion/Decimal/Context.html create mode 100644 docs/v0.1/ion/Decimal/Context/Dec128.html create mode 100644 docs/v0.1/ion/Decimal/Context/Dec32.html create mode 100644 docs/v0.1/ion/Decimal/Context/Dec64.html create mode 100644 docs/v0.1/ion/Decimal/Context/DecMax.html create mode 100644 docs/v0.1/ion/Decimal/Context/Rounding.html create mode 100644 docs/v0.1/ion/Decimal/Context/__construct.html create mode 100644 docs/v0.1/ion/Decimal/__construct.html create mode 100644 docs/v0.1/ion/Decimal/equals.html create mode 100644 docs/v0.1/ion/Decimal/isInt.html create mode 100644 docs/v0.1/ion/Decimal/toInt.html create mode 100644 docs/v0.1/ion/Decimal/toString.html create mode 100644 docs/v0.1/ion/Exception.html create mode 100644 docs/v0.1/ion/LOB.html create mode 100644 docs/v0.1/ion/LOB/__construct.html create mode 100644 docs/v0.1/ion/Reader.html create mode 100644 docs/v0.1/ion/Reader/Buffer.html create mode 100644 docs/v0.1/ion/Reader/Buffer/Reader.html create mode 100644 docs/v0.1/ion/Reader/Buffer/Reader/__construct.html create mode 100644 docs/v0.1/ion/Reader/Buffer/getBuffer.html create mode 100644 docs/v0.1/ion/Reader/Options.html create mode 100644 docs/v0.1/ion/Reader/Options/__construct.html create mode 100644 docs/v0.1/ion/Reader/Reader.html create mode 100644 docs/v0.1/ion/Reader/Stream.html create mode 100644 docs/v0.1/ion/Reader/Stream/Reader.html create mode 100644 docs/v0.1/ion/Reader/Stream/Reader/__construct.html create mode 100644 docs/v0.1/ion/Reader/Stream/getStream.html create mode 100644 docs/v0.1/ion/Reader/Stream/resetStream.html create mode 100644 docs/v0.1/ion/Reader/Stream/resetStreamWithLength.html create mode 100644 docs/v0.1/ion/Reader/countAnnotations.html create mode 100644 docs/v0.1/ion/Reader/getAnnotation.html create mode 100644 docs/v0.1/ion/Reader/getAnnotationSymbol.html create mode 100644 docs/v0.1/ion/Reader/getAnnotationSymbols.html create mode 100644 docs/v0.1/ion/Reader/getAnnotations.html create mode 100644 docs/v0.1/ion/Reader/getDepth.html create mode 100644 docs/v0.1/ion/Reader/getFieldName.html create mode 100644 docs/v0.1/ion/Reader/getFieldNameSymbol.html create mode 100644 docs/v0.1/ion/Reader/getPosition.html create mode 100644 docs/v0.1/ion/Reader/getType.html create mode 100644 docs/v0.1/ion/Reader/getValueLength.html create mode 100644 docs/v0.1/ion/Reader/getValueOffset.html create mode 100644 docs/v0.1/ion/Reader/hasAnnotation.html create mode 100644 docs/v0.1/ion/Reader/hasAnnotations.html create mode 100644 docs/v0.1/ion/Reader/isInStruct.html create mode 100644 docs/v0.1/ion/Reader/isNull.html create mode 100644 docs/v0.1/ion/Reader/readBool.html create mode 100644 docs/v0.1/ion/Reader/readDecimal.html create mode 100644 docs/v0.1/ion/Reader/readFloat.html create mode 100644 docs/v0.1/ion/Reader/readInt.html create mode 100644 docs/v0.1/ion/Reader/readLob.html create mode 100644 docs/v0.1/ion/Reader/readLobPart.html create mode 100644 docs/v0.1/ion/Reader/readNull.html create mode 100644 docs/v0.1/ion/Reader/readString.html create mode 100644 docs/v0.1/ion/Reader/readStringPart.html create mode 100644 docs/v0.1/ion/Reader/readSymbol.html create mode 100644 docs/v0.1/ion/Reader/readTimestamp.html create mode 100644 docs/v0.1/ion/Reader/seek.html create mode 100644 docs/v0.1/ion/Serializer.html create mode 100644 docs/v0.1/ion/Serializer/PHP.html create mode 100644 docs/v0.1/ion/Serializer/PHP/__construct.html create mode 100644 docs/v0.1/ion/Serializer/serialize.html create mode 100644 docs/v0.1/ion/Symbol.html create mode 100644 docs/v0.1/ion/Symbol/Enum.html create mode 100644 docs/v0.1/ion/Symbol/Enum/toSID.html create mode 100644 docs/v0.1/ion/Symbol/Enum/toString.html create mode 100644 docs/v0.1/ion/Symbol/Enum/toSymbol.html create mode 100644 docs/v0.1/ion/Symbol/ImportLocation.html create mode 100644 docs/v0.1/ion/Symbol/ImportLocation/__construct.html create mode 100644 docs/v0.1/ion/Symbol/PHP.html create mode 100644 docs/v0.1/ion/Symbol/PHP/asTable.html create mode 100644 docs/v0.1/ion/Symbol/System.html create mode 100644 docs/v0.1/ion/Symbol/System/asTable.html create mode 100644 docs/v0.1/ion/Symbol/Table.html create mode 100644 docs/v0.1/ion/Symbol/Table/Local.html create mode 100644 docs/v0.1/ion/Symbol/Table/Local/__construct.html create mode 100644 docs/v0.1/ion/Symbol/Table/Local/import.html create mode 100644 docs/v0.1/ion/Symbol/Table/Shared.html create mode 100644 docs/v0.1/ion/Symbol/Table/Shared/__construct.html create mode 100644 docs/v0.1/ion/Symbol/Table/add.html create mode 100644 docs/v0.1/ion/Symbol/Table/find.html create mode 100644 docs/v0.1/ion/Symbol/Table/findLocal.html create mode 100644 docs/v0.1/ion/Symbol/Table/getMaxId.html create mode 100644 docs/v0.1/ion/Symbol/__construct.html create mode 100644 docs/v0.1/ion/Symbol/equals.html create mode 100644 docs/v0.1/ion/Symbol/toString.html create mode 100644 docs/v0.1/ion/Timestamp.html create mode 100644 docs/v0.1/ion/Timestamp/Format.html create mode 100644 docs/v0.1/ion/Timestamp/Precision.html create mode 100644 docs/v0.1/ion/Timestamp/__construct.html create mode 100644 docs/v0.1/ion/Type.html create mode 100644 docs/v0.1/ion/Unserializer.html create mode 100644 docs/v0.1/ion/Unserializer/PHP.html create mode 100644 docs/v0.1/ion/Unserializer/PHP/__construct.html create mode 100644 docs/v0.1/ion/Unserializer/unserialize.html create mode 100644 docs/v0.1/ion/Writer.html create mode 100644 docs/v0.1/ion/Writer/Buffer.html create mode 100644 docs/v0.1/ion/Writer/Buffer/Writer.html create mode 100644 docs/v0.1/ion/Writer/Buffer/Writer/__construct.html create mode 100644 docs/v0.1/ion/Writer/Buffer/getBuffer.html create mode 100644 docs/v0.1/ion/Writer/Buffer/resetBuffer.html create mode 100644 docs/v0.1/ion/Writer/Options.html create mode 100644 docs/v0.1/ion/Writer/Options/__construct.html create mode 100644 docs/v0.1/ion/Writer/Stream.html create mode 100644 docs/v0.1/ion/Writer/Stream/Writer.html create mode 100644 docs/v0.1/ion/Writer/Stream/Writer/__construct.html create mode 100644 docs/v0.1/ion/Writer/Stream/getStream.html create mode 100644 docs/v0.1/ion/Writer/Writer.html create mode 100644 docs/v0.1/ion/Writer/appendLob.html create mode 100644 docs/v0.1/ion/Writer/finish.html create mode 100644 docs/v0.1/ion/Writer/finishContainer.html create mode 100644 docs/v0.1/ion/Writer/finishLob.html create mode 100644 docs/v0.1/ion/Writer/flush.html create mode 100644 docs/v0.1/ion/Writer/getDepth.html create mode 100644 docs/v0.1/ion/Writer/startContainer.html create mode 100644 docs/v0.1/ion/Writer/startLob.html create mode 100644 docs/v0.1/ion/Writer/writeAnnotation.html create mode 100644 docs/v0.1/ion/Writer/writeBLob.html create mode 100644 docs/v0.1/ion/Writer/writeBool.html create mode 100644 docs/v0.1/ion/Writer/writeCLob.html create mode 100644 docs/v0.1/ion/Writer/writeDecimal.html create mode 100644 docs/v0.1/ion/Writer/writeFieldName.html create mode 100644 docs/v0.1/ion/Writer/writeFloat.html create mode 100644 docs/v0.1/ion/Writer/writeInt.html create mode 100644 docs/v0.1/ion/Writer/writeNull.html create mode 100644 docs/v0.1/ion/Writer/writeString.html create mode 100644 docs/v0.1/ion/Writer/writeSymbol.html create mode 100644 docs/v0.1/ion/Writer/writeTimestamp.html create mode 100644 docs/v0.1/ion/Writer/writeTypedNull.html create mode 100644 docs/v0.1/ion/serialize.html create mode 100644 docs/v0.1/ion/unserialize.html diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..98b913d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: release +on: + push: + tags: "v**" + +jobs: + pharext: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Install + run: | + sudo apt-get install -y \ + php-cli \ + php-phar \ + php-posix + - name: Composer + run: composer require m6w6/pharext + - name: Pharext + run: ./vendor/bin/pharext -vps . --release ${GITHUB_REF_NAME:1} + - name: Release + uses: actions/github-script@v5 + with: + script: | + const release = await github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: process.env.GITHUB_REF_NAME, + body: context.payload.head_commit.message + }); + const phar_file = "ion-" + process.env.GITHUB_REF_NAME.substring(1) + ".ext.phar"; + const asset = await github.rest.repos.uploadReleaseAsset({ + owner: context.repo.owner, + repo: context.repo.repo, + release_id: release.data.id, + body: context.payload.head_commit.message, + data: require("fs").readFileSync(phar_file) + }); + diff --git a/README.md b/README.md index 905b958..dc46f31 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,26 @@ see [spdx.org](https://spdx.org/licenses/BSD-2-Clause.html). ## Installation: -[PECL](https://pecl.php.net) and [PHARext](https://pharext.org) is WIP. +### PECL + + pecl install ion + + +### PHARext + +Watch out for [PECL replicates](https://replicator.pharext.org?ion) +and pharext packages attached to [releases](./releases). + +### Checkout + + git clone github.com:awesomized/ext-ion + + cd ext-ion + + /path/to/phpize + ./configure --with-php-config=/path/to/php-config + make + sudo make install ### Dependencies: #### Required: diff --git a/docs/Makefile b/docs/Makefile index b135b25..adc1b33 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,6 +1,6 @@ PHP ?= php COMPOSER ?= composer -TAG := $(shell (git describe --tags --exact-match --match=v[1-9]* 2>/dev/null || echo v0.0) | cut -d. -f-2) +TAG := $(shell (git describe --tags --exact-match --match=v[0-9]* 2>/dev/null || echo v0.0) | cut -d. -f-2) # --- diff --git a/docs/latest b/docs/latest index 92f146b..374f2a8 120000 --- a/docs/latest +++ b/docs/latest @@ -1 +1 @@ -v0.0/ \ No newline at end of file +v0.1/ \ No newline at end of file diff --git a/docs/v0.0/ion.html b/docs/v0.0/ion.html index 673d7a4..db3733b 100644 --- a/docs/v0.0/ion.html +++ b/docs/v0.0/ion.html @@ -265,7 +265,15 @@ See the Amazon ION specification.

License:

BSD-2-Clause; see spdx.org.

Installation: -

PECL and PHARext is WIP.

Dependencies: +

PECL +


+pecl install ion
+

PHARext +

Watch out for PECL replicates +and pharext packages attached to releases.

Checkout +


+git clone github.com:awesomized/ext-ion

cd ext-ion

/path/to/phpize
./configure --with-php-config=/path/to/php-config
make
sudo make install
+

Dependencies:

Required: