Skip to content

Commit

Permalink
Merge pull request #196 from maxmind/greg/release
Browse files Browse the repository at this point in the history
Release 2.13.0
  • Loading branch information
faktas2 committed Aug 8, 2022
2 parents 721ba99 + 6a41d8f commit 35b9023
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
@@ -1,12 +1,13 @@
CHANGELOG
=========

2.13.0
2.13.0 (2022-08-05)
-------------------

* The model class names are no longer constructed by concatenating strings.
This change was made to improve support for tools like PHP-Scoper.
Reported by Andrew Mead. GitHub #194.
* Box 4.0.1 is now used to generate the `geoip2.phar` file.

2.12.2 (2021-11-30)
-------------------
Expand Down
17 changes: 14 additions & 3 deletions dev-bin/release.sh
Expand Up @@ -44,10 +44,15 @@ php composer.phar update --no-dev

perl -pi -e "s/(?<=const VERSION = ').+?(?=';)/$tag/g" src/WebService/Client.php

if [ ! -f box.phar ]; then
wget -O box.phar "https://github.com/box-project/box/releases/download/3.13.0/box.phar"

box_phar_hash='d862951a7acca5641bdd3d3e289e675f3c46810c7994aebfe0c9188a80f6cac1 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"
fi

echo "$box_phar_hash" | sha256sum -c

php box.phar compile

phar_test=$(./dev-bin/phar-test.php)
Expand Down Expand Up @@ -88,7 +93,13 @@ if [ -n "$(git status --porcelain)" ]; then
fi

# Using Composer is possible, but they don't recommend it.
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.1.2/phpDocumentor.phar
phpdocumentor_phar_hash='4a93d278fd4581f17760903134d85fcde3d40d93f739c8c648f3ed02c9c3e7bb 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
fi

echo "$phpdocumentor_phar_hash" | sha256sum -c

# Use cache dir in /tmp as otherwise cache files get into the output directory.
cachedir="/tmp/phpdoc-$$-$RANDOM"
Expand Down
2 changes: 1 addition & 1 deletion src/WebService/Client.php
Expand Up @@ -63,7 +63,7 @@ class Client implements ProviderInterface
*/
private static $basePath = '/geoip/v2.1';

public const VERSION = 'v2.12.2';
public const VERSION = 'v2.13.0';

/**
* Constructor.
Expand Down

0 comments on commit 35b9023

Please sign in to comment.