Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
fixed missing autoload in command folder
Browse files Browse the repository at this point in the history
changed tag string changer to a regex result changer
  • Loading branch information
prisis committed Nov 5, 2018
1 parent ffbc3a0 commit c0de347
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ coverage.xml
composer.phar
composer.lock
yarn.lock
/build/command/composer.lock

/build/logs
/build/command/vendor
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
global:
- TEST="./vendor/bin/phpunit --verbose"
- COMPOSER_UP="composer update --no-interaction --prefer-dist --no-progress --profile --no-suggest"
- secure: "d6pfTs4EDyq5g/3P8oET82fSFMlqbLonkNO8JN+BWlKgmVX4rWaE1fDwRAaAB1TByIgg46A+cvDbbCYo6H19yVbZyYRsDFMIYLwgR4ozj4fdYWsiffrEx/NGwKVSWzSMDEqAmslrQ647Q4XiwISiQbbtii/5HaG6EYAikACOM0Jggm1IkR/W8jEQh5muFvyMzczz3xsxFVcIe4/9nz0ARR2eKM0aiPJKhvQREl62/Lr8eeILxRq7Mwaf1Dfq/CkfldCNjW7kOBK/+f4S40AQagYMrn8E0lyPfj/zlPhAkp/dqmKFDnTg7/cwOsfGTyH7SI6eiWU70TUKn8SoqxUlL7qS0iepO3Usc4k/wTfTOaJkeRD5ZDN+/A5n99VWshw02IKBwqR+DqV1IFpVrpxoT6c76kyt9XbkijlgG4nxU24aSKgqGZciPwrPnIu0UN92o6OuhsHswIGnSSSs07xELIoXUT7Ynu/MUkAHsrsquSQQAcbOqQOrkSgaEsmUza+I5k2bZqfYuYq0wYBFCPLUV1EXZM13bB4bVK6FKhdBDItfjGUtAvOr51yiOBLRR3TywDhmvqT2RHjtG3NiwVjzK4KmunhJdumqRqOphKx4KfSK69gNOJ5jczV21Sk09Il1ddyK8hVI9QLVncwVnoQWEwUrfYijhS7WOWTesOPE4qQ="
- secure: "yNc9OxDAmHaQM06Qs7p4IthL1xmpFDHBX1NvTEFAtY01GQOPhmJ0gbkJbbx02xHS0IJKP2GGANXl0YlQylXllKGosj7NhZm72z/+UiZm3kucuF7jNYomBf01Zn3gKjYUEME9e/wT3w5BZwl2hS4bTNmysjJVJQmRQdcxs4pOU6EmhMSmfMbmPnBxnbnCxA+jMlYFoSB/AUEaM3qhBrsqFapNSzrrc7qocJv+lD+CtaewqvNCEwpGnWPgTCUdbMOvI5f8Na+xsKAhnBZoS4lNHxsAKkK2cYmfIoL9I6F8iKfqzWvTLgENaEVVgz477FkUVSCeYkTsx5EmNJOeAJkBmwZPaV0fYB8E4YzfnlBkurAgqUItsedKHeDsK0dSv0t5Hr4FxQLVkBbQrpBWKhDC/1+a6nSFcke0g/JSZ1dwAS0OfS0PSrO4SWtVa0NEOBMW0izBswjoDzWhgHRSX29jGAbhB0WBHUMoxDsR8Kp3xbr8ytgef5DhDF3Udgd/iV//QByV++nz+42Z0JH2WY4chKcbSBJdLZ8dD0ajEyfoA2Pe3GYrXCnE2SKXsBSL1Md+DDbrg0gJPziPZszQ+LO89X4tAvAi0SewzKeqqAIBVUI8suQrNXti+1KRBHbAGxhpZ/MgjAIyS1+qIrnK3axVuG0uNrQ70940ls4CJjhJW0Q="

cache:
yarn: true
Expand Down
4 changes: 2 additions & 2 deletions build/command/CommitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public function handle(): int
return 1;
}

$tag = \ltrim($gitGetLastTagProcess->getOutput(), 'v') + 0.1;
\preg_match_all('/\.?(\d+)/', \ltrim($gitGetLastTagProcess->getOutput(), 'v'), $result);

$gitCreateTagProcess = new Process(\sprintf('git tag -a %s -m \'%s\'', $tag, 'updated mime-db to ' . $mimeDbVersion));
$gitCreateTagProcess = new Process(\sprintf('git tag -a %s -m \'%s\'', $result[1][0] . '.' . ($result[1][1] + 1) . '.0', 'updated mime-db to ' . $mimeDbVersion));
$gitCreateTagProcess->run();

if (! $gitCreateTagProcess->isSuccessful()) {
Expand Down
1 change: 1 addition & 0 deletions build/command/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"autoload": {
"psr-4": {
"Narrowspark\\MimeType\\": "../../src",
"Narrowspark\\MimeType\\Build\\Command\\": ""
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/MimeTypesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MimeTypesList
/**
* A map of file extensions and their mime types.
*
* Last generated: Sun, 04 Nov 2018 17:04:04 GMT
* Last generated: Mon, 05 Nov 2018 22:14:13 GMT
*
* @see http://www.iana.org/assignments/media-types/media-types.xhtml
* @see http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
Expand Down

0 comments on commit c0de347

Please sign in to comment.