Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.0 #219

Merged
merged 5 commits into from
Dec 4, 2023
Merged

3.0.0 #219

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _site
.gh-pages
.idea
.php_cs.cache
.phpunit.cache/
.phpunit.result.cache
GeoLite2-City.mmdb
box.phar
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CHANGELOG
=========

3.0.0
-------------------
3.0.0 (2023-12-04)
------------------

* IMPORTANT: PHP 8.1 or greater is now required.
* BREAKING: Read-only properties are now used for the model and record
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"maxmind-db/reader": "~1.8",
"maxmind-db/reader": "^1.11.1",
"maxmind/web-service-common": "~0.8",
"php": ">=8.1",
"ext-json": "*"
Expand Down
20 changes: 12 additions & 8 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ php composer.phar update --no-dev
perl -pi -e "s/(?<=const VERSION = ').+?(?=';)/$tag/g" src/WebService/Client.php


box_phar_hash='d862951a7acca5641bdd3d3e289e675f3c46810c7994aebfe0c9188a80f6cac1 box.phar'
box_phar_hash='c24c400c424a68041d7af146c71943bf1acc0c5abafa45297c503b832b9c6b16 box.phar'

if ! echo "$box_phar_hash" | sha256sum -c; then
wget -O box.phar "https://github.com/box-project/box/releases/download/4.0.1/box.phar"
wget -O box.phar "https://github.com/box-project/box/releases/download/4.5.1/box.phar"
fi

echo "$box_phar_hash" | sha256sum -c
Expand Down Expand Up @@ -93,10 +93,10 @@ if [ -n "$(git status --porcelain)" ]; then
fi

# Using Composer is possible, but they don't recommend it.
phpdocumentor_phar_hash='4a93d278fd4581f17760903134d85fcde3d40d93f739c8c648f3ed02c9c3e7bb phpDocumentor.phar'
phpdocumentor_phar_hash='bad7e4b8c99e73391bb3183a127593ecd1cd66ae42b4a33efe495d193e257f04 phpDocumentor.phar'

if ! echo "$phpdocumentor_phar_hash" | sha256sum -c; then
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.3.1/phpDocumentor.phar
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.4.3/phpDocumentor.phar
fi

echo "$phpdocumentor_phar_hash" | sha256sum -c
Expand All @@ -106,12 +106,16 @@ cachedir="/tmp/phpdoc-$$-$RANDOM"
rm -rf "$cachedir"

php phpDocumentor.phar \
--visibility=public \
--cache-folder="$cachedir" \
--title="GeoIP2 PHP API $tag" \
run \
-d "$PWD/../src" \
-d "$PWD/.maxminddb/src" \
--visibility public \
--cache-folder "$cachedir" \
--title "GeoIP2 PHP API $tag" \
-t "doc/$tag"
# This used to work but doesn't as of 4.5.1. They say that they are working
# on fixing it. Neither the config file nor the relative path fix work as
# suggested either.
# -d "$PWD/.maxminddb/src" \

rm -rf "$cachedir"

Expand Down
2 changes: 1 addition & 1 deletion src/WebService/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Client implements ProviderInterface
private WsClient $client;
private static string $basePath = '/geoip/v2.1';

public const VERSION = 'v2.13.0';
public const VERSION = 'v3.0.0';

/**
* Constructor.
Expand Down