Do you wish to register an account?
Browse Source

Update dependencies to latest versions

develop
Timothy Warren 1 month ago
parent
commit
4f6a92cd45
39 changed files with 136 additions and 32 deletions
  1. +0
    -8
      .travis.yml
  2. +3
    -0
      CHANGELOG.md
  3. +0
    -12
      Jenkinsfile
  4. +6
    -6
      composer.json
  5. +1
    -1
      src/AnimeClient/constants.php
  6. +60
    -5
      tests/AnimeClient/API/Kitsu/Transformer/__snapshots__/MangaListTransformerTest__testTransform__1.yml
  7. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set Full webp URL__1.txt
  8. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set Partial webp URL__1.txt
  9. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set bmp with gif fallback__1.txt
  10. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set jpeg2000__1.txt
  11. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set png placeholder image__1.txt
  12. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set simple image with attributes__1.txt
  13. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set svg with png fallback and lots of attributes__1.txt
  14. +1
    -0
      tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set webp placeholder image__1.txt
  15. +2
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__1.txt
  16. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__10.txt
  17. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__11.txt
  18. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__12.txt
  19. +5
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__13.txt
  20. +2
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__14.txt
  21. +2
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__15.txt
  22. +4
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__16.txt
  23. +8
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__17.txt
  24. +8
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__18.txt
  25. +5
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__19.txt
  26. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__2.txt
  27. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__20.txt
  28. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__21.txt
  29. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__22.txt
  30. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__23.txt
  31. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__24.txt
  32. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__25.txt
  33. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__3.txt
  34. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__4.txt
  35. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__5.txt
  36. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__6.txt
  37. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__7.txt
  38. +1
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__8.txt
  39. +6
    -0
      tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__9.txt

+ 0
- 8
.travis.yml View File

@@ -4,7 +4,6 @@ install:
- composer install --ignore-platform-reqs

php:
- 7.3
- 7.4
- nightly

@@ -12,13 +11,6 @@ script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c build

#after_script:
# - CODECLIMATE_REPO_TOKEN=2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058 vendor/bin/test-reporter

matrix:
allow_failures:
- php: nightly

#addons:
# code_climate:
# repo_token: 2cbddcebcb9256b3402867282e119dbe61de0b31039325356af3c7d72ed6d058

+ 3
- 0
CHANGELOG.md View File

@@ -1,5 +1,8 @@
# Changelog

## Version 5
* Updated PHP requirement to 7.4

## Version 4.2
* Updated dependencies
* Updated PHP requirement to 7.3


+ 0
- 12
Jenkinsfile View File

@@ -10,18 +10,6 @@ pipeline {
sh 'php composer.phar install --ignore-platform-reqs'
}
}
stage('PHP 7.3') {
agent {
docker {
image 'php:7.3-alpine'
args '-u root --privileged'
}
}
steps {
sh 'apk add --no-cache git'
sh 'php ./vendor/bin/phpunit --colors=never'
}
}
stage('PHP 7.4') {
agent {
docker {


+ 6
- 6
composer.json View File

@@ -30,7 +30,7 @@
"config": {
"lock": false,
"platform": {
"php": "7.3"
"php": "7.4"
}
},
"require": {
@@ -50,7 +50,7 @@
"laminas/laminas-httphandlerrunner": "^1.0",
"maximebf/consolekit": "^1.0",
"monolog/monolog": "^2.0.1",
"php": "^7.3",
"php": "^7.4 || ^8",
"psr/container": "~1.0",
"psr/http-message": "~1.0",
"psr/log": "~1.0",
@@ -60,14 +60,14 @@
"consolidation/robo": "^2.0.0",
"filp/whoops": "^2.1",
"pdepend/pdepend": "^2.2",
"phploc/phploc": "^5.0",
"phploc/phploc": "^6.0.2",
"phpmd/phpmd": "^2.8",
"phpstan/phpstan": "^0.12.0",
"phpunit/phpunit": "^8.4.3",
"phpunit/phpunit": "^9.1.1",
"roave/security-advisories": "dev-master",
"robmorgan/phinx": "^0.10.6",
"sebastian/phpcpd": "^4.1.0",
"spatie/phpunit-snapshot-assertions": "^2.2.1",
"sebastian/phpcpd": "^5.0.2",
"spatie/phpunit-snapshot-assertions": "^4.1.0",
"squizlabs/php_codesniffer": "^3.2.2",
"symfony/var-dumper": "^5",
"theseer/phpdox": "*"


+ 1
- 1
src/AnimeClient/constants.php View File

@@ -24,7 +24,7 @@ const ERROR_MESSAGE_METHOD = 'errorPage';
const NOT_FOUND_METHOD = 'notFound';
const SESSION_SEGMENT = 'Aviat\AnimeClient\Auth';
const SRC_DIR = __DIR__;
const USER_AGENT = "Tim's Anime Client/4.2";
const USER_AGENT = "Tim's Anime Client/5";

// Regex patterns
const ALPHA_SLUG_PATTERN = '[a-z_]+';


+ 60
- 5
tests/AnimeClient/API/Kitsu/Transformer/__snapshots__/MangaListTransformerTest__testTransform__1.yml View File

@@ -1,5 +1,60 @@
- null
- null
- null
- null
- null
-
empty: false
id: '15084773'
mal_id: '26769'
chapters: { read: 67, total: '-' }
volumes: { read: '-', total: '-' }
manga: { empty: false, genres: [Comedy, Romance, School, 'Slice of Life', Thriller], id: '20286', image: 'https://media.kitsu.io/manga/poster_images/20286/small.jpg?1434293999', slug: bokura-wa-minna-kawaisou, title: 'Bokura wa Minna Kawaisou', titles: { }, type: Manga, url: 'https://kitsu.io/manga/bokura-wa-minna-kawaisou' }
reading_status: current
notes: ''
rereading: false
reread: 0
user_rating: 9
-
empty: false
id: '15085607'
mal_id: '16'
chapters: { read: 17, total: 120 }
volumes: { read: '-', total: 14 }
manga: { empty: false, genres: [Comedy, Ecchi, Harem, Romance, Sports], id: '47', image: 'https://media.kitsu.io/manga/poster_images/47/small.jpg?1434249493', slug: love-hina, title: 'Love Hina', titles: { }, type: Manga, url: 'https://kitsu.io/manga/love-hina' }
reading_status: current
notes: ''
rereading: false
reread: 0
user_rating: 7
-
empty: false
id: '15084529'
mal_id: '35003'
chapters: { read: 16, total: '-' }
volumes: { read: '-', total: '-' }
manga: { empty: false, genres: [Comedy, Ecchi, 'Gender Bender', Romance, School, Sports, Supernatural], id: '11777', image: 'https://media.kitsu.io/manga/poster_images/11777/small.jpg?1438784325', slug: yamada-kun-to-7-nin-no-majo, title: 'Yamada-kun to 7-nin no Majo', titles: ['Yamada-kun and the Seven Witches'], type: Manga, url: 'https://kitsu.io/manga/yamada-kun-to-7-nin-no-majo' }
reading_status: current
notes: ''
rereading: false
reread: 0
user_rating: 9
-
empty: false
id: '15312827'
mal_id: '78523'
chapters: { read: 68, total: '-' }
volumes: { read: '-', total: '-' }
manga: { empty: false, genres: [Romance, School, 'Slice of Life'], id: '27175', image: 'https://media.kitsu.io/manga/poster_images/27175/small.jpg?1464379411', slug: relife, title: ReLIFE, titles: { }, type: Manga, url: 'https://kitsu.io/manga/relife' }
reading_status: current
notes: ''
rereading: false
reread: 0
user_rating: '-'
-
empty: false
id: '15084769'
mal_id: '60815'
chapters: { read: 43, total: '-' }
volumes: { read: '-', total: '-' }
manga: { empty: false, genres: [Comedy, School, 'Slice of Life'], id: '25491', image: 'https://media.kitsu.io/manga/poster_images/25491/small.jpg?1434305043', slug: joshikausei, title: Joshikausei, titles: { }, type: Manga, url: 'https://kitsu.io/manga/joshikausei' }
reading_status: current
notes: ''
rereading: false
reread: 0
user_rating: 8

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set Full webp URL__1.txt View File

@@ -0,0 +1 @@
<picture loading="lazy"><source srcset="https://www.example.com/image.webp" type="image/webp" /><source srcset="https://www.example.com/image.jpg" type="image/jpeg" /><img src="https://www.example.com/image.jpg" alt="" loading="lazy" /></picture>

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set Partial webp URL__1.txt View File

@@ -0,0 +1 @@
<picture loading="lazy"><source srcset="https://localhost/assets/images/anime/15424.webp" type="image/webp" /><source srcset="https://localhost/assets/images/anime/15424.jpg" type="image/jpeg" /><img src="https://localhost/assets/images/anime/15424.jpg" alt="" loading="lazy" /></picture>

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set bmp with gif fallback__1.txt View File

@@ -0,0 +1 @@
<picture loading="lazy"><source srcset="https://localhost/assets/images/avatar/25.bmp" type="image/bmp" /><source srcset="https://localhost/assets/images/avatar/25.gif" type="image/gif" /><img src="https://localhost/assets/images/avatar/25.gif" alt="" loading="lazy" /></picture>

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set jpeg2000__1.txt View File

@@ -0,0 +1 @@
<picture loading="lazy"><source srcset="https://localhost/assets/images/foo.jpf" type="image/jpx" /><source srcset="https://localhost/assets/images/foo.jpg" type="image/jpeg" /><img src="https://localhost/assets/images/foo.jpg" alt="" loading="lazy" /></picture>

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set png placeholder image__1.txt View File

@@ -0,0 +1 @@
<img src="https://localhost/assets/images/placeholder.png" alt="placeholder.png" loading="lazy" />

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set simple image with attributes__1.txt View File

@@ -0,0 +1 @@
<img src="https://localhost/assets/images/foo.jpg" alt="should exist" width="200" height="200" loading="lazy" />

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set svg with png fallback and lots of attributes__1.txt View File

@@ -0,0 +1 @@
<picture width="200" height="300" loading="lazy"><source srcset="https://localhost/assets/images/example.svg" type="image/svg+xml" /><source srcset="https://localhost/assets/images/example.png" type="image/png" /><img src="https://localhost/assets/images/example.png" alt="Example text" loading="lazy" /></picture>

+ 1
- 0
tests/AnimeClient/Helper/__snapshots__/PictureHelperTest__testPictureHelper with data set webp placeholder image__1.txt View File

@@ -0,0 +1 @@
<picture loading="lazy"><source srcset="https://localhost/assets/images/placeholder.webp" type="image/webp" /><source srcset="https://localhost/assets/images/placeholder.png" type="image/png" /><img src="https://localhost/assets/images/placeholder.png" alt="" loading="lazy" /></picture>

+ 2
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__1.txt View File

@@ -0,0 +1,2 @@
<label><input type="radio" name="enabled" value="1" /> Yes</label>
<label><input type="radio" name="enabled" value="0" checked /> No</label>

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__10.txt View File

@@ -0,0 +1 @@
<input id="connection" type="text" name="connection" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__11.txt View File

@@ -0,0 +1 @@
<input id="kitsu_username" type="text" name="kitsu_username" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__12.txt View File

@@ -0,0 +1 @@
<input id="whose_list" type="text" name="whose_list" value="" />

+ 5
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__13.txt View File

@@ -0,0 +1,5 @@
<select id="theme" name="theme">
<option value="auto">Automatically match OS theme</option>
<option value="light">Original Light Theme</option>
<option value="dark">Dark Theme</option>
</select>

+ 2
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__14.txt View File

@@ -0,0 +1,2 @@
<label><input type="radio" name="show_anime_collection" value="1" /> Yes</label>
<label><input type="radio" name="show_anime_collection" value="0" checked /> No</label>

+ 2
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__15.txt View File

@@ -0,0 +1,2 @@
<label><input type="radio" name="show_manga_collection" value="1" /> Yes</label>
<label><input type="radio" name="show_manga_collection" value="0" checked /> No</label>

+ 4
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__16.txt View File

@@ -0,0 +1,4 @@
<select id="default_list" name="default_list">
<option value="anime">Anime</option>
<option value="manga">Manga</option>
</select>

+ 8
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__17.txt View File

@@ -0,0 +1,8 @@
<select id="default_anime_list_path" name="default_anime_list_path">
<option value="watching">Watching</option>
<option value="plan_to_watch">Plan to Watch</option>
<option value="on_hold">On Hold</option>
<option value="dropped">Dropped</option>
<option value="completed">Completed</option>
<option value="all">All</option>
</select>

+ 8
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__18.txt View File

@@ -0,0 +1,8 @@
<select id="default_manga_list_path" name="default_manga_list_path">
<option value="reading">Reading</option>
<option value="plan_to_read">Plan to Read</option>
<option value="on_hold">On Hold</option>
<option value="dropped">Dropped</option>
<option value="completed">Completed</option>
<option value="all">All</option>
</select>

+ 5
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__19.txt View File

@@ -0,0 +1,5 @@
<select id="type" name="type">
<option value="mysql">MySQL</option>
<option value="pgsql">PostgreSQL</option>
<option value="sqlite">SQLite</option>
</select>

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__2.txt View File

@@ -0,0 +1 @@
<input id="client_id" type="text" name="client_id" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__20.txt View File

@@ -0,0 +1 @@
<input id="host" type="text" name="host" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__21.txt View File

@@ -0,0 +1 @@
<input id="user" type="text" name="user" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__22.txt View File

@@ -0,0 +1 @@
<input id="pass" type="text" name="pass" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__23.txt View File

@@ -0,0 +1 @@
<input id="port" type="text" name="port" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__24.txt View File

@@ -0,0 +1 @@
<input id="database" type="text" name="database" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__25.txt View File

@@ -0,0 +1 @@
<input id="file" type="text" name="file" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__3.txt View File

@@ -0,0 +1 @@
<input id="client_secret" type="text" name="client_secret" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__4.txt View File

@@ -0,0 +1 @@
<input id="username" type="text" name="username" value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__5.txt View File

@@ -0,0 +1 @@
<input id="access_token" type="text" name="access_token" readonly value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__6.txt View File

@@ -0,0 +1 @@
<input id="access_token_expires" type="text" name="access_token_expires" readonly value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__7.txt View File

@@ -0,0 +1 @@
<input id="refresh_token" type="text" name="refresh_token" readonly value="" />

+ 1
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__8.txt View File

@@ -0,0 +1 @@
<input type="hidden" name="special_hidden_flag" value="foo_bar" />

+ 6
- 0
tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__9.txt View File

@@ -0,0 +1,6 @@
<select id="driver" name="driver">
<option value="apcu">APCu</option>
<option value="memcached">Memcached</option>
<option value="redis">Redis</option>
<option value="null">No Cache</option>
</select>

Loading…
Cancel
Save