Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
543a8c07d0 | ||
|
|
0ce625f29a |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,7 +4,6 @@ _site
|
|||||||
composer.lock
|
composer.lock
|
||||||
composer.phar
|
composer.phar
|
||||||
phpunit.xml
|
phpunit.xml
|
||||||
geoip2.phar
|
|
||||||
geoip2-php.sublime-*
|
geoip2-php.sublime-*
|
||||||
vendor/
|
vendor/
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ php:
|
|||||||
before_install:
|
before_install:
|
||||||
- composer self-update
|
- composer self-update
|
||||||
- composer install --dev -n --prefer-source
|
- composer install --dev -n --prefer-source
|
||||||
- if [ "5.5" == $TRAVIS_PHP_VERSION ]; then pyrus install pear/PHP_CodeSniffer; fi
|
- if [ "hhvm" != "$(phpenv version-name)" ]; then pyrus install pear/PHP_CodeSniffer; fi
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir -p build/logs
|
- mkdir -p build/logs
|
||||||
- if [ "5.5" == $TRAVIS_PHP_VERSION ]; then phpcs --standard=PSR2 src/; fi
|
- if [ "hhvm" != "$(phpenv version-name)" ]; then phpcs --standard=PSR2 src/; fi
|
||||||
- phpunit -c phpunit.xml.dist
|
- phpunit -c phpunit.xml.dist
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
|||||||
@@ -1,13 +1,6 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
0.6.3 (2014-05-12)
|
|
||||||
------------------
|
|
||||||
|
|
||||||
* With the previous Phar builds, some users received `phar error: invalid url
|
|
||||||
or non-existent phar` errors. The correct alias is now used for the Phar,
|
|
||||||
and this should no longer be an issue.
|
|
||||||
|
|
||||||
0.6.2 (2014-05-08)
|
0.6.2 (2014-05-08)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ classes for the different parts of the data such as the city in which the
|
|||||||
IP address is located.
|
IP address is located.
|
||||||
|
|
||||||
If the record is not found, a `\GeoIp2\Exception\AddressNotFoundException`
|
If the record is not found, a `\GeoIp2\Exception\AddressNotFoundException`
|
||||||
is thrown. If the database is invalid or corrupt, a
|
is returned. If the database is invalid or corrupt, a
|
||||||
`\MaxMind\Db\InvalidDatabaseException` will be thrown.
|
`\MaxMind\Db\InvalidDatabaseException` will be thrown.
|
||||||
|
|
||||||
See the API documentation for more details.
|
See the API documentation for more details.
|
||||||
|
|||||||
1
box.json
1
box.json
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"alias": "geoip2.phar",
|
|
||||||
"main": "phar-stub.php",
|
"main": "phar-stub.php",
|
||||||
"output": "geoip2.phar",
|
"output": "geoip2.phar",
|
||||||
"compactors": [
|
"compactors": [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'phar://geoip2.phar/vendor/autoload.php';
|
require_once 'vendor/autoload.php';
|
||||||
|
|
||||||
// The following was taken from Guzzle (MIT license)
|
// The following was taken from Guzzle (MIT license)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user