Skip to content

Commit 61c6035

Browse files
committed
Set correct version in composer require
1 parent 778f2da commit 61c6035

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You should now have the file `composer.phar` in your project directory.
2424
Run in your project root:
2525

2626
```
27-
php composer.phar require maxmind-db/reader:~1.0
27+
php composer.phar require maxmind-db/reader:^1.12.1
2828
```
2929

3030
You should now have the files `composer.json` and `composer.lock` as well as

dev-bin/release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ tag="v$version"
3030

3131
rm -fr vendor
3232

33+
perl -pi -e "s{(?<=php composer\.phar require maxmind\/minfraud:).+}{^$version}g" README.md
3334
perl -pi -e "s/(?<=#define PHP_MAXMINDDB_VERSION \")\d+\.\d+\.\d+(?=\")/$version/" ext/php_maxminddb.h
3435
perl -pi -e "s/(?<=\"ext-maxminddb\": \"<)\d+.\d+.\d+(?=,)/$version/" composer.json
3536
perl -pi -e "s/(?<=<(?:api)>)\d+\.\d+\.\d+(?=<)/$version/" package.xml

0 commit comments

Comments
 (0)