Skip to content

Commit

Permalink
Change METADATA-VERSION.txt to METADATA-VERSION.php
Browse files Browse the repository at this point in the history
Prevents people loading the txt file in the vendor directory to see which version of the library is in use.
  • Loading branch information
giggsey committed Apr 29, 2024
1 parent 040824f commit 22f807e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions METADATA-VERSION.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
/**
* This file specifies the revision of the metadata to build from.
* It can be a commit, branch or tag of the https://github.com/google/libphonenumber project
* For more information, look at the phing tasks in build.xml
* @internal
*/
return 'v8.13.35';
5 changes: 0 additions & 5 deletions METADATA-VERSION.txt

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ If you do need to generate the data, the commands are provided by [Phing](https:
$ vendor/bin/phing compile
```

This compile process clones the [libphonenumber](https://github.com/google/libphonenumber) project at the version specified in [METADATA-VERSION.txt](METADATA-VERSION.txt).
This compile task clones the [libphonenumber](https://github.com/google/libphonenumber) project at the version specified in [METADATA-VERSION.php](METADATA-VERSION.php).
10 changes: 1 addition & 9 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@
<property name="git.url" value="https://github.com/google/libphonenumber.git"/>
<property name="git.path" value="libphonenumber-data-dir"/>

<loadfile property="metadata.version" file="METADATA-VERSION.txt">
<filterchain>
<striplinecomments>
<comment value="#" />
</striplinecomments>
<striplinebreaks />
</filterchain>
</loadfile>

<php returnProperty="metadata.version" expression="require 'METADATA-VERSION.php';" />
<property name="data.testCoreData" value="tests/core/data/"/>
<property name="data.coreData" value="src/data/"/>

Expand Down

0 comments on commit 22f807e

Please sign in to comment.