dependabot-composer 0.129.0 → 0.129.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85f89592f0105d36e2a0af3e401bf8c6b6a0465a44447ca795e33888caff121d
4
- data.tar.gz: 5ba0b5381c03c55b7d0349b618d911b01735849982d25a382d64913de1bea2ee
3
+ metadata.gz: 931d14a3a9a222959c3a3598607123335f9157a313fa40f7db9c83dc08a4b2bb
4
+ data.tar.gz: d5c0645abff9d914bdd61b2befca8c86a56740a1241d580d5f1c71db96940151
5
5
  SHA512:
6
- metadata.gz: f18dac57235c942d30d13d8609cc71cf5e329985ebf0ea627133c3c7d2be3d11b32995acca3c3d03f5dacf0217cf7970d3c383e2cada76c46defd11feed47b12
7
- data.tar.gz: 59738a520d69310ac306f182becfc00a95261fce1dbe2c80d86d4e10826344da4a485d6743e41e7b4b18510ef4fd9bcd210b7727571a705ba4bc5f7123836f04
6
+ metadata.gz: 27bb2ffe07e40f9321d9ee1beecca7d923d65de4f685f91011c3027d5aa4dd87b07a86bfeff5ef5c305250a8cb65d12f4b421e726517df8292ffe193459b3097
7
+ data.tar.gz: 3e7752f61e212b3e97daaaef8ef9fc85b22689eabe0245746ee948e8995b3b8dc6da0baf089bc1e2f2a418d35d4430958bc3e579601561f0ec15325023913390
@@ -78,16 +78,16 @@
78
78
  },
79
79
  {
80
80
  "name": "composer/composer",
81
- "version": "1.10.16",
81
+ "version": "1.10.19",
82
82
  "source": {
83
83
  "type": "git",
84
84
  "url": "https://github.com/composer/composer.git",
85
- "reference": "217f0272673c72087862c40cf91ac07eb438d778"
85
+ "reference": "196601d50c08c3fae389a417a7689367fcf37cef"
86
86
  },
87
87
  "dist": {
88
88
  "type": "zip",
89
- "url": "https://api.github.com/repos/composer/composer/zipball/217f0272673c72087862c40cf91ac07eb438d778",
90
- "reference": "217f0272673c72087862c40cf91ac07eb438d778",
89
+ "url": "https://api.github.com/repos/composer/composer/zipball/196601d50c08c3fae389a417a7689367fcf37cef",
90
+ "reference": "196601d50c08c3fae389a417a7689367fcf37cef",
91
91
  "shasum": ""
92
92
  },
93
93
  "require": {
@@ -96,7 +96,7 @@
96
96
  "composer/spdx-licenses": "^1.2",
97
97
  "composer/xdebug-handler": "^1.1",
98
98
  "justinrainbow/json-schema": "^5.2.10",
99
- "php": "^5.3.2 || ^7.0",
99
+ "php": "^5.3.2 || ^7.0 || ^8.0",
100
100
  "psr/log": "^1.0",
101
101
  "seld/jsonlint": "^1.4",
102
102
  "seld/phar-utils": "^1.0",
@@ -168,7 +168,7 @@
168
168
  "type": "tidelift"
169
169
  }
170
170
  ],
171
- "time": "2020-10-24T07:55:59+00:00"
171
+ "time": "2020-12-04T08:14:16+00:00"
172
172
  },
173
173
  {
174
174
  "name": "composer/semver",
@@ -247,16 +247,16 @@
247
247
  },
248
248
  {
249
249
  "name": "composer/spdx-licenses",
250
- "version": "1.5.4",
250
+ "version": "1.5.5",
251
251
  "source": {
252
252
  "type": "git",
253
253
  "url": "https://github.com/composer/spdx-licenses.git",
254
- "reference": "6946f785871e2314c60b4524851f3702ea4f2223"
254
+ "reference": "de30328a7af8680efdc03e396aad24befd513200"
255
255
  },
256
256
  "dist": {
257
257
  "type": "zip",
258
- "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/6946f785871e2314c60b4524851f3702ea4f2223",
259
- "reference": "6946f785871e2314c60b4524851f3702ea4f2223",
258
+ "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/de30328a7af8680efdc03e396aad24befd513200",
259
+ "reference": "de30328a7af8680efdc03e396aad24befd513200",
260
260
  "shasum": ""
261
261
  },
262
262
  "require": {
@@ -268,7 +268,7 @@
268
268
  "type": "library",
269
269
  "extra": {
270
270
  "branch-alias": {
271
- "dev-master": "1.x-dev"
271
+ "dev-main": "1.x-dev"
272
272
  }
273
273
  },
274
274
  "autoload": {
@@ -317,7 +317,7 @@
317
317
  "type": "tidelift"
318
318
  }
319
319
  ],
320
- "time": "2020-07-15T15:35:07+00:00"
320
+ "time": "2020-12-03T16:04:16+00:00"
321
321
  },
322
322
  {
323
323
  "name": "composer/xdebug-handler",
@@ -541,16 +541,16 @@
541
541
  },
542
542
  {
543
543
  "name": "seld/jsonlint",
544
- "version": "1.8.2",
544
+ "version": "1.8.3",
545
545
  "source": {
546
546
  "type": "git",
547
547
  "url": "https://github.com/Seldaek/jsonlint.git",
548
- "reference": "590cfec960b77fd55e39b7d9246659e95dd6d337"
548
+ "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57"
549
549
  },
550
550
  "dist": {
551
551
  "type": "zip",
552
- "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/590cfec960b77fd55e39b7d9246659e95dd6d337",
553
- "reference": "590cfec960b77fd55e39b7d9246659e95dd6d337",
552
+ "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/9ad6ce79c342fbd44df10ea95511a1b24dee5b57",
553
+ "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57",
554
554
  "shasum": ""
555
555
  },
556
556
  "require": {
@@ -596,7 +596,7 @@
596
596
  "type": "tidelift"
597
597
  }
598
598
  ],
599
- "time": "2020-08-25T06:56:57+00:00"
599
+ "time": "2020-11-11T09:19:24+00:00"
600
600
  },
601
601
  {
602
602
  "name": "seld/phar-utils",
@@ -644,16 +644,16 @@
644
644
  },
645
645
  {
646
646
  "name": "symfony/console",
647
- "version": "v5.2.0",
647
+ "version": "v5.2.1",
648
648
  "source": {
649
649
  "type": "git",
650
650
  "url": "https://github.com/symfony/console.git",
651
- "reference": "3e0564fb08d44a98bd5f1960204c958e57bd586b"
651
+ "reference": "47c02526c532fb381374dab26df05e7313978976"
652
652
  },
653
653
  "dist": {
654
654
  "type": "zip",
655
- "url": "https://api.github.com/repos/symfony/console/zipball/3e0564fb08d44a98bd5f1960204c958e57bd586b",
656
- "reference": "3e0564fb08d44a98bd5f1960204c958e57bd586b",
655
+ "url": "https://api.github.com/repos/symfony/console/zipball/47c02526c532fb381374dab26df05e7313978976",
656
+ "reference": "47c02526c532fb381374dab26df05e7313978976",
657
657
  "shasum": ""
658
658
  },
659
659
  "require": {
@@ -734,20 +734,20 @@
734
734
  "type": "tidelift"
735
735
  }
736
736
  ],
737
- "time": "2020-11-28T11:24:18+00:00"
737
+ "time": "2020-12-18T08:03:05+00:00"
738
738
  },
739
739
  {
740
740
  "name": "symfony/filesystem",
741
- "version": "v5.2.0",
741
+ "version": "v5.2.1",
742
742
  "source": {
743
743
  "type": "git",
744
744
  "url": "https://github.com/symfony/filesystem.git",
745
- "reference": "bb92ba7f38b037e531908590a858a04d85c0e238"
745
+ "reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d"
746
746
  },
747
747
  "dist": {
748
748
  "type": "zip",
749
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/bb92ba7f38b037e531908590a858a04d85c0e238",
750
- "reference": "bb92ba7f38b037e531908590a858a04d85c0e238",
749
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
750
+ "reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
751
751
  "shasum": ""
752
752
  },
753
753
  "require": {
@@ -793,20 +793,20 @@
793
793
  "type": "tidelift"
794
794
  }
795
795
  ],
796
- "time": "2020-11-12T09:58:18+00:00"
796
+ "time": "2020-11-30T17:05:38+00:00"
797
797
  },
798
798
  {
799
799
  "name": "symfony/finder",
800
- "version": "v5.2.0",
800
+ "version": "v5.2.1",
801
801
  "source": {
802
802
  "type": "git",
803
803
  "url": "https://github.com/symfony/finder.git",
804
- "reference": "fd8305521692f27eae3263895d1ef1571c71a78d"
804
+ "reference": "0b9231a5922fd7287ba5b411893c0ecd2733e5ba"
805
805
  },
806
806
  "dist": {
807
807
  "type": "zip",
808
- "url": "https://api.github.com/repos/symfony/finder/zipball/fd8305521692f27eae3263895d1ef1571c71a78d",
809
- "reference": "fd8305521692f27eae3263895d1ef1571c71a78d",
808
+ "url": "https://api.github.com/repos/symfony/finder/zipball/0b9231a5922fd7287ba5b411893c0ecd2733e5ba",
809
+ "reference": "0b9231a5922fd7287ba5b411893c0ecd2733e5ba",
810
810
  "shasum": ""
811
811
  },
812
812
  "require": {
@@ -851,7 +851,7 @@
851
851
  "type": "tidelift"
852
852
  }
853
853
  ],
854
- "time": "2020-11-18T09:42:36+00:00"
854
+ "time": "2020-12-08T17:02:38+00:00"
855
855
  },
856
856
  {
857
857
  "name": "symfony/polyfill-ctype",
@@ -1323,16 +1323,16 @@
1323
1323
  },
1324
1324
  {
1325
1325
  "name": "symfony/process",
1326
- "version": "v5.2.0",
1326
+ "version": "v5.2.1",
1327
1327
  "source": {
1328
1328
  "type": "git",
1329
1329
  "url": "https://github.com/symfony/process.git",
1330
- "reference": "240e74140d4d956265048f3025c0aecbbc302d54"
1330
+ "reference": "bd8815b8b6705298beaa384f04fabd459c10bedd"
1331
1331
  },
1332
1332
  "dist": {
1333
1333
  "type": "zip",
1334
- "url": "https://api.github.com/repos/symfony/process/zipball/240e74140d4d956265048f3025c0aecbbc302d54",
1335
- "reference": "240e74140d4d956265048f3025c0aecbbc302d54",
1334
+ "url": "https://api.github.com/repos/symfony/process/zipball/bd8815b8b6705298beaa384f04fabd459c10bedd",
1335
+ "reference": "bd8815b8b6705298beaa384f04fabd459c10bedd",
1336
1336
  "shasum": ""
1337
1337
  },
1338
1338
  "require": {
@@ -1378,7 +1378,7 @@
1378
1378
  "type": "tidelift"
1379
1379
  }
1380
1380
  ],
1381
- "time": "2020-11-02T15:47:15+00:00"
1381
+ "time": "2020-12-08T17:03:37+00:00"
1382
1382
  },
1383
1383
  {
1384
1384
  "name": "symfony/service-contracts",
@@ -1458,16 +1458,16 @@
1458
1458
  },
1459
1459
  {
1460
1460
  "name": "symfony/string",
1461
- "version": "v5.2.0",
1461
+ "version": "v5.2.1",
1462
1462
  "source": {
1463
1463
  "type": "git",
1464
1464
  "url": "https://github.com/symfony/string.git",
1465
- "reference": "40e975edadd4e32cd16f3753b3bad65d9ac48242"
1465
+ "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed"
1466
1466
  },
1467
1467
  "dist": {
1468
1468
  "type": "zip",
1469
- "url": "https://api.github.com/repos/symfony/string/zipball/40e975edadd4e32cd16f3753b3bad65d9ac48242",
1470
- "reference": "40e975edadd4e32cd16f3753b3bad65d9ac48242",
1469
+ "url": "https://api.github.com/repos/symfony/string/zipball/5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
1470
+ "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
1471
1471
  "shasum": ""
1472
1472
  },
1473
1473
  "require": {
@@ -1534,7 +1534,7 @@
1534
1534
  "type": "tidelift"
1535
1535
  }
1536
1536
  ],
1537
- "time": "2020-10-24T12:08:07+00:00"
1537
+ "time": "2020-12-05T07:33:16+00:00"
1538
1538
  }
1539
1539
  ],
1540
1540
  "packages-dev": [
@@ -1687,16 +1687,16 @@
1687
1687
  },
1688
1688
  {
1689
1689
  "name": "friendsofphp/php-cs-fixer",
1690
- "version": "v2.17.0",
1690
+ "version": "v2.17.2",
1691
1691
  "source": {
1692
1692
  "type": "git",
1693
1693
  "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
1694
- "reference": "5274ce3d3200a2b374baa42143cb9dfcdcc2fa52"
1694
+ "reference": "aaee4f3d16a996fc0b570be0c69d3b80c909c507"
1695
1695
  },
1696
1696
  "dist": {
1697
1697
  "type": "zip",
1698
- "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/5274ce3d3200a2b374baa42143cb9dfcdcc2fa52",
1699
- "reference": "5274ce3d3200a2b374baa42143cb9dfcdcc2fa52",
1698
+ "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/aaee4f3d16a996fc0b570be0c69d3b80c909c507",
1699
+ "reference": "aaee4f3d16a996fc0b570be0c69d3b80c909c507",
1700
1700
  "shasum": ""
1701
1701
  },
1702
1702
  "require": {
@@ -1726,9 +1726,11 @@
1726
1726
  "php-cs-fixer/accessible-object": "^1.0",
1727
1727
  "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
1728
1728
  "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
1729
- "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1",
1729
+ "phpspec/prophecy-phpunit": "^1.1 || ^2.0",
1730
+ "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.4.4 <9.5",
1730
1731
  "phpunitgoodpractices/polyfill": "^1.5",
1731
1732
  "phpunitgoodpractices/traits": "^1.9.1",
1733
+ "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1",
1732
1734
  "symfony/phpunit-bridge": "^5.1",
1733
1735
  "symfony/yaml": "^3.0 || ^4.0 || ^5.0"
1734
1736
  },
@@ -1743,11 +1745,6 @@
1743
1745
  "php-cs-fixer"
1744
1746
  ],
1745
1747
  "type": "application",
1746
- "extra": {
1747
- "branch-alias": {
1748
- "dev-master": "2.17-dev"
1749
- }
1750
- },
1751
1748
  "autoload": {
1752
1749
  "psr-4": {
1753
1750
  "PhpCsFixer\\": "src/"
@@ -1786,7 +1783,7 @@
1786
1783
  "type": "github"
1787
1784
  }
1788
1785
  ],
1789
- "time": "2020-12-07T20:43:00+00:00"
1786
+ "time": "2020-12-17T16:41:55+00:00"
1790
1787
  },
1791
1788
  {
1792
1789
  "name": "php-cs-fixer/diff",
@@ -1841,16 +1838,16 @@
1841
1838
  },
1842
1839
  {
1843
1840
  "name": "phpstan/phpstan",
1844
- "version": "0.12.59",
1841
+ "version": "0.12.63",
1845
1842
  "source": {
1846
1843
  "type": "git",
1847
1844
  "url": "https://github.com/phpstan/phpstan.git",
1848
- "reference": "cf4107257c8ca2ad967efdd6a00f12b21acbb779"
1845
+ "reference": "c97ec4754bd53099a06c24847bd2870b99966b6a"
1849
1846
  },
1850
1847
  "dist": {
1851
1848
  "type": "zip",
1852
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cf4107257c8ca2ad967efdd6a00f12b21acbb779",
1853
- "reference": "cf4107257c8ca2ad967efdd6a00f12b21acbb779",
1849
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c97ec4754bd53099a06c24847bd2870b99966b6a",
1850
+ "reference": "c97ec4754bd53099a06c24847bd2870b99966b6a",
1854
1851
  "shasum": ""
1855
1852
  },
1856
1853
  "require": {
@@ -1893,7 +1890,7 @@
1893
1890
  "type": "tidelift"
1894
1891
  }
1895
1892
  ],
1896
- "time": "2020-12-07T14:46:03+00:00"
1893
+ "time": "2020-12-15T16:37:16+00:00"
1897
1894
  },
1898
1895
  {
1899
1896
  "name": "psr/event-dispatcher",
@@ -2007,16 +2004,16 @@
2007
2004
  },
2008
2005
  {
2009
2006
  "name": "symfony/event-dispatcher",
2010
- "version": "v5.2.0",
2007
+ "version": "v5.2.1",
2011
2008
  "source": {
2012
2009
  "type": "git",
2013
2010
  "url": "https://github.com/symfony/event-dispatcher.git",
2014
- "reference": "aa13a09811e6d2ad43f8fb336bebdb7691d85d3c"
2011
+ "reference": "1c93f7a1dff592c252574c79a8635a8a80856042"
2015
2012
  },
2016
2013
  "dist": {
2017
2014
  "type": "zip",
2018
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/aa13a09811e6d2ad43f8fb336bebdb7691d85d3c",
2019
- "reference": "aa13a09811e6d2ad43f8fb336bebdb7691d85d3c",
2015
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1c93f7a1dff592c252574c79a8635a8a80856042",
2016
+ "reference": "1c93f7a1dff592c252574c79a8635a8a80856042",
2020
2017
  "shasum": ""
2021
2018
  },
2022
2019
  "require": {
@@ -2085,7 +2082,7 @@
2085
2082
  "type": "tidelift"
2086
2083
  }
2087
2084
  ],
2088
- "time": "2020-11-01T16:14:45+00:00"
2085
+ "time": "2020-12-18T08:03:05+00:00"
2089
2086
  },
2090
2087
  {
2091
2088
  "name": "symfony/event-dispatcher-contracts",
@@ -2165,7 +2162,7 @@
2165
2162
  },
2166
2163
  {
2167
2164
  "name": "symfony/options-resolver",
2168
- "version": "v5.2.0",
2165
+ "version": "v5.2.1",
2169
2166
  "source": {
2170
2167
  "type": "git",
2171
2168
  "url": "https://github.com/symfony/options-resolver.git",
@@ -2369,7 +2366,7 @@
2369
2366
  },
2370
2367
  {
2371
2368
  "name": "symfony/stopwatch",
2372
- "version": "v5.2.0",
2369
+ "version": "v5.2.1",
2373
2370
  "source": {
2374
2371
  "type": "git",
2375
2372
  "url": "https://github.com/symfony/stopwatch.git",
@@ -60,11 +60,6 @@
60
60
  "ssl",
61
61
  "tls"
62
62
  ],
63
- "support": {
64
- "irc": "irc://irc.freenode.org/composer",
65
- "issues": "https://github.com/composer/ca-bundle/issues",
66
- "source": "https://github.com/composer/ca-bundle/tree/1.2.8"
67
- },
68
63
  "funding": [
69
64
  {
70
65
  "url": "https://packagist.com",
@@ -157,11 +152,6 @@
157
152
  "dependency",
158
153
  "package"
159
154
  ],
160
- "support": {
161
- "irc": "irc://irc.freenode.org/composer",
162
- "issues": "https://github.com/composer/composer/issues",
163
- "source": "https://github.com/composer/composer/tree/2.0.8"
164
- },
165
155
  "funding": [
166
156
  {
167
157
  "url": "https://packagist.com",
@@ -238,11 +228,6 @@
238
228
  "validation",
239
229
  "versioning"
240
230
  ],
241
- "support": {
242
- "irc": "irc://irc.freenode.org/composer",
243
- "issues": "https://github.com/composer/semver/issues",
244
- "source": "https://github.com/composer/semver/tree/3.2.4"
245
- },
246
231
  "funding": [
247
232
  {
248
233
  "url": "https://packagist.com",
@@ -317,11 +302,6 @@
317
302
  "spdx",
318
303
  "validator"
319
304
  ],
320
- "support": {
321
- "irc": "irc://irc.freenode.org/composer",
322
- "issues": "https://github.com/composer/spdx-licenses/issues",
323
- "source": "https://github.com/composer/spdx-licenses/tree/1.5.5"
324
- },
325
305
  "funding": [
326
306
  {
327
307
  "url": "https://packagist.com",
@@ -380,11 +360,6 @@
380
360
  "Xdebug",
381
361
  "performance"
382
362
  ],
383
- "support": {
384
- "irc": "irc://irc.freenode.org/composer",
385
- "issues": "https://github.com/composer/xdebug-handler/issues",
386
- "source": "https://github.com/composer/xdebug-handler/tree/1.4.5"
387
- },
388
363
  "funding": [
389
364
  {
390
365
  "url": "https://packagist.com",
@@ -465,10 +440,6 @@
465
440
  "json",
466
441
  "schema"
467
442
  ],
468
- "support": {
469
- "issues": "https://github.com/justinrainbow/json-schema/issues",
470
- "source": "https://github.com/justinrainbow/json-schema/tree/5.2.10"
471
- },
472
443
  "time": "2020-05-27T16:41:55+00:00"
473
444
  },
474
445
  {
@@ -518,10 +489,6 @@
518
489
  "container-interop",
519
490
  "psr"
520
491
  ],
521
- "support": {
522
- "issues": "https://github.com/php-fig/container/issues",
523
- "source": "https://github.com/php-fig/container/tree/master"
524
- },
525
492
  "time": "2017-02-14T16:28:37+00:00"
526
493
  },
527
494
  {
@@ -569,9 +536,6 @@
569
536
  "psr",
570
537
  "psr-3"
571
538
  ],
572
- "support": {
573
- "source": "https://github.com/php-fig/log/tree/1.1.3"
574
- },
575
539
  "time": "2020-03-23T09:12:05+00:00"
576
540
  },
577
541
  {
@@ -618,10 +582,6 @@
618
582
  "promise",
619
583
  "promises"
620
584
  ],
621
- "support": {
622
- "issues": "https://github.com/reactphp/promise/issues",
623
- "source": "https://github.com/reactphp/promise/tree/v2.8.0"
624
- },
625
585
  "time": "2020-05-12T15:16:56+00:00"
626
586
  },
627
587
  {
@@ -671,10 +631,6 @@
671
631
  "parser",
672
632
  "validator"
673
633
  ],
674
- "support": {
675
- "issues": "https://github.com/Seldaek/jsonlint/issues",
676
- "source": "https://github.com/Seldaek/jsonlint/tree/1.8.3"
677
- },
678
634
  "funding": [
679
635
  {
680
636
  "url": "https://github.com/Seldaek",
@@ -729,24 +685,20 @@
729
685
  "keywords": [
730
686
  "phar"
731
687
  ],
732
- "support": {
733
- "issues": "https://github.com/Seldaek/phar-utils/issues",
734
- "source": "https://github.com/Seldaek/phar-utils/tree/master"
735
- },
736
688
  "time": "2020-07-07T18:42:57+00:00"
737
689
  },
738
690
  {
739
691
  "name": "symfony/console",
740
- "version": "v5.2.0",
692
+ "version": "v5.2.1",
741
693
  "source": {
742
694
  "type": "git",
743
695
  "url": "https://github.com/symfony/console.git",
744
- "reference": "3e0564fb08d44a98bd5f1960204c958e57bd586b"
696
+ "reference": "47c02526c532fb381374dab26df05e7313978976"
745
697
  },
746
698
  "dist": {
747
699
  "type": "zip",
748
- "url": "https://api.github.com/repos/symfony/console/zipball/3e0564fb08d44a98bd5f1960204c958e57bd586b",
749
- "reference": "3e0564fb08d44a98bd5f1960204c958e57bd586b",
700
+ "url": "https://api.github.com/repos/symfony/console/zipball/47c02526c532fb381374dab26df05e7313978976",
701
+ "reference": "47c02526c532fb381374dab26df05e7313978976",
750
702
  "shasum": ""
751
703
  },
752
704
  "require": {
@@ -813,9 +765,6 @@
813
765
  "console",
814
766
  "terminal"
815
767
  ],
816
- "support": {
817
- "source": "https://github.com/symfony/console/tree/v5.2.0"
818
- },
819
768
  "funding": [
820
769
  {
821
770
  "url": "https://symfony.com/sponsor",
@@ -830,20 +779,20 @@
830
779
  "type": "tidelift"
831
780
  }
832
781
  ],
833
- "time": "2020-11-28T11:24:18+00:00"
782
+ "time": "2020-12-18T08:03:05+00:00"
834
783
  },
835
784
  {
836
785
  "name": "symfony/filesystem",
837
- "version": "v5.2.0",
786
+ "version": "v5.2.1",
838
787
  "source": {
839
788
  "type": "git",
840
789
  "url": "https://github.com/symfony/filesystem.git",
841
- "reference": "bb92ba7f38b037e531908590a858a04d85c0e238"
790
+ "reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d"
842
791
  },
843
792
  "dist": {
844
793
  "type": "zip",
845
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/bb92ba7f38b037e531908590a858a04d85c0e238",
846
- "reference": "bb92ba7f38b037e531908590a858a04d85c0e238",
794
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
795
+ "reference": "fa8f8cab6b65e2d99a118e082935344c5ba8c60d",
847
796
  "shasum": ""
848
797
  },
849
798
  "require": {
@@ -875,9 +824,6 @@
875
824
  ],
876
825
  "description": "Symfony Filesystem Component",
877
826
  "homepage": "https://symfony.com",
878
- "support": {
879
- "source": "https://github.com/symfony/filesystem/tree/v5.2.0"
880
- },
881
827
  "funding": [
882
828
  {
883
829
  "url": "https://symfony.com/sponsor",
@@ -892,20 +838,20 @@
892
838
  "type": "tidelift"
893
839
  }
894
840
  ],
895
- "time": "2020-11-12T09:58:18+00:00"
841
+ "time": "2020-11-30T17:05:38+00:00"
896
842
  },
897
843
  {
898
844
  "name": "symfony/finder",
899
- "version": "v5.2.0",
845
+ "version": "v5.2.1",
900
846
  "source": {
901
847
  "type": "git",
902
848
  "url": "https://github.com/symfony/finder.git",
903
- "reference": "fd8305521692f27eae3263895d1ef1571c71a78d"
849
+ "reference": "0b9231a5922fd7287ba5b411893c0ecd2733e5ba"
904
850
  },
905
851
  "dist": {
906
852
  "type": "zip",
907
- "url": "https://api.github.com/repos/symfony/finder/zipball/fd8305521692f27eae3263895d1ef1571c71a78d",
908
- "reference": "fd8305521692f27eae3263895d1ef1571c71a78d",
853
+ "url": "https://api.github.com/repos/symfony/finder/zipball/0b9231a5922fd7287ba5b411893c0ecd2733e5ba",
854
+ "reference": "0b9231a5922fd7287ba5b411893c0ecd2733e5ba",
909
855
  "shasum": ""
910
856
  },
911
857
  "require": {
@@ -936,9 +882,6 @@
936
882
  ],
937
883
  "description": "Symfony Finder Component",
938
884
  "homepage": "https://symfony.com",
939
- "support": {
940
- "source": "https://github.com/symfony/finder/tree/v5.2.0"
941
- },
942
885
  "funding": [
943
886
  {
944
887
  "url": "https://symfony.com/sponsor",
@@ -953,7 +896,7 @@
953
896
  "type": "tidelift"
954
897
  }
955
898
  ],
956
- "time": "2020-11-18T09:42:36+00:00"
899
+ "time": "2020-12-08T17:02:38+00:00"
957
900
  },
958
901
  {
959
902
  "name": "symfony/polyfill-ctype",
@@ -1015,9 +958,6 @@
1015
958
  "polyfill",
1016
959
  "portable"
1017
960
  ],
1018
- "support": {
1019
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0"
1020
- },
1021
961
  "funding": [
1022
962
  {
1023
963
  "url": "https://symfony.com/sponsor",
@@ -1096,9 +1036,6 @@
1096
1036
  "portable",
1097
1037
  "shim"
1098
1038
  ],
1099
- "support": {
1100
- "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.20.0"
1101
- },
1102
1039
  "funding": [
1103
1040
  {
1104
1041
  "url": "https://symfony.com/sponsor",
@@ -1180,9 +1117,6 @@
1180
1117
  "portable",
1181
1118
  "shim"
1182
1119
  ],
1183
- "support": {
1184
- "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.20.0"
1185
- },
1186
1120
  "funding": [
1187
1121
  {
1188
1122
  "url": "https://symfony.com/sponsor",
@@ -1260,9 +1194,6 @@
1260
1194
  "portable",
1261
1195
  "shim"
1262
1196
  ],
1263
- "support": {
1264
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.20.0"
1265
- },
1266
1197
  "funding": [
1267
1198
  {
1268
1199
  "url": "https://symfony.com/sponsor",
@@ -1339,9 +1270,6 @@
1339
1270
  "portable",
1340
1271
  "shim"
1341
1272
  ],
1342
- "support": {
1343
- "source": "https://github.com/symfony/polyfill-php73/tree/v1.20.0"
1344
- },
1345
1273
  "funding": [
1346
1274
  {
1347
1275
  "url": "https://symfony.com/sponsor",
@@ -1422,9 +1350,6 @@
1422
1350
  "portable",
1423
1351
  "shim"
1424
1352
  ],
1425
- "support": {
1426
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.20.0"
1427
- },
1428
1353
  "funding": [
1429
1354
  {
1430
1355
  "url": "https://symfony.com/sponsor",
@@ -1443,16 +1368,16 @@
1443
1368
  },
1444
1369
  {
1445
1370
  "name": "symfony/process",
1446
- "version": "v5.2.0",
1371
+ "version": "v5.2.1",
1447
1372
  "source": {
1448
1373
  "type": "git",
1449
1374
  "url": "https://github.com/symfony/process.git",
1450
- "reference": "240e74140d4d956265048f3025c0aecbbc302d54"
1375
+ "reference": "bd8815b8b6705298beaa384f04fabd459c10bedd"
1451
1376
  },
1452
1377
  "dist": {
1453
1378
  "type": "zip",
1454
- "url": "https://api.github.com/repos/symfony/process/zipball/240e74140d4d956265048f3025c0aecbbc302d54",
1455
- "reference": "240e74140d4d956265048f3025c0aecbbc302d54",
1379
+ "url": "https://api.github.com/repos/symfony/process/zipball/bd8815b8b6705298beaa384f04fabd459c10bedd",
1380
+ "reference": "bd8815b8b6705298beaa384f04fabd459c10bedd",
1456
1381
  "shasum": ""
1457
1382
  },
1458
1383
  "require": {
@@ -1484,9 +1409,6 @@
1484
1409
  ],
1485
1410
  "description": "Symfony Process Component",
1486
1411
  "homepage": "https://symfony.com",
1487
- "support": {
1488
- "source": "https://github.com/symfony/process/tree/v5.2.0"
1489
- },
1490
1412
  "funding": [
1491
1413
  {
1492
1414
  "url": "https://symfony.com/sponsor",
@@ -1501,7 +1423,7 @@
1501
1423
  "type": "tidelift"
1502
1424
  }
1503
1425
  ],
1504
- "time": "2020-11-02T15:47:15+00:00"
1426
+ "time": "2020-12-08T17:03:37+00:00"
1505
1427
  },
1506
1428
  {
1507
1429
  "name": "symfony/service-contracts",
@@ -1563,9 +1485,6 @@
1563
1485
  "interoperability",
1564
1486
  "standards"
1565
1487
  ],
1566
- "support": {
1567
- "source": "https://github.com/symfony/service-contracts/tree/master"
1568
- },
1569
1488
  "funding": [
1570
1489
  {
1571
1490
  "url": "https://symfony.com/sponsor",
@@ -1584,16 +1503,16 @@
1584
1503
  },
1585
1504
  {
1586
1505
  "name": "symfony/string",
1587
- "version": "v5.2.0",
1506
+ "version": "v5.2.1",
1588
1507
  "source": {
1589
1508
  "type": "git",
1590
1509
  "url": "https://github.com/symfony/string.git",
1591
- "reference": "40e975edadd4e32cd16f3753b3bad65d9ac48242"
1510
+ "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed"
1592
1511
  },
1593
1512
  "dist": {
1594
1513
  "type": "zip",
1595
- "url": "https://api.github.com/repos/symfony/string/zipball/40e975edadd4e32cd16f3753b3bad65d9ac48242",
1596
- "reference": "40e975edadd4e32cd16f3753b3bad65d9ac48242",
1514
+ "url": "https://api.github.com/repos/symfony/string/zipball/5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
1515
+ "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed",
1597
1516
  "shasum": ""
1598
1517
  },
1599
1518
  "require": {
@@ -1646,9 +1565,6 @@
1646
1565
  "utf-8",
1647
1566
  "utf8"
1648
1567
  ],
1649
- "support": {
1650
- "source": "https://github.com/symfony/string/tree/v5.2.0"
1651
- },
1652
1568
  "funding": [
1653
1569
  {
1654
1570
  "url": "https://symfony.com/sponsor",
@@ -1663,7 +1579,7 @@
1663
1579
  "type": "tidelift"
1664
1580
  }
1665
1581
  ],
1666
- "time": "2020-10-24T12:08:07+00:00"
1582
+ "time": "2020-12-05T07:33:16+00:00"
1667
1583
  }
1668
1584
  ],
1669
1585
  "packages-dev": [
@@ -1736,10 +1652,6 @@
1736
1652
  "docblock",
1737
1653
  "parser"
1738
1654
  ],
1739
- "support": {
1740
- "issues": "https://github.com/doctrine/annotations/issues",
1741
- "source": "https://github.com/doctrine/annotations/tree/1.11.1"
1742
- },
1743
1655
  "time": "2020-10-26T10:28:16+00:00"
1744
1656
  },
1745
1657
  {
@@ -1802,10 +1714,6 @@
1802
1714
  "parser",
1803
1715
  "php"
1804
1716
  ],
1805
- "support": {
1806
- "issues": "https://github.com/doctrine/lexer/issues",
1807
- "source": "https://github.com/doctrine/lexer/tree/1.2.1"
1808
- },
1809
1717
  "funding": [
1810
1718
  {
1811
1719
  "url": "https://www.doctrine-project.org/sponsorship.html",
@@ -1824,16 +1732,16 @@
1824
1732
  },
1825
1733
  {
1826
1734
  "name": "friendsofphp/php-cs-fixer",
1827
- "version": "v2.17.1",
1735
+ "version": "v2.17.2",
1828
1736
  "source": {
1829
1737
  "type": "git",
1830
1738
  "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
1831
- "reference": "5198b7308ed63f26799387fd7f3901c3db6bd7fd"
1739
+ "reference": "aaee4f3d16a996fc0b570be0c69d3b80c909c507"
1832
1740
  },
1833
1741
  "dist": {
1834
1742
  "type": "zip",
1835
- "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/5198b7308ed63f26799387fd7f3901c3db6bd7fd",
1836
- "reference": "5198b7308ed63f26799387fd7f3901c3db6bd7fd",
1743
+ "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/aaee4f3d16a996fc0b570be0c69d3b80c909c507",
1744
+ "reference": "aaee4f3d16a996fc0b570be0c69d3b80c909c507",
1837
1745
  "shasum": ""
1838
1746
  },
1839
1747
  "require": {
@@ -1863,9 +1771,11 @@
1863
1771
  "php-cs-fixer/accessible-object": "^1.0",
1864
1772
  "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
1865
1773
  "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
1866
- "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1",
1774
+ "phpspec/prophecy-phpunit": "^1.1 || ^2.0",
1775
+ "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.4.4 <9.5",
1867
1776
  "phpunitgoodpractices/polyfill": "^1.5",
1868
1777
  "phpunitgoodpractices/traits": "^1.9.1",
1778
+ "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1",
1869
1779
  "symfony/phpunit-bridge": "^5.1",
1870
1780
  "symfony/yaml": "^3.0 || ^4.0 || ^5.0"
1871
1781
  },
@@ -1912,17 +1822,13 @@
1912
1822
  }
1913
1823
  ],
1914
1824
  "description": "A tool to automatically fix PHP code style",
1915
- "support": {
1916
- "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
1917
- "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.17.1"
1918
- },
1919
1825
  "funding": [
1920
1826
  {
1921
1827
  "url": "https://github.com/keradus",
1922
1828
  "type": "github"
1923
1829
  }
1924
1830
  ],
1925
- "time": "2020-12-08T13:47:02+00:00"
1831
+ "time": "2020-12-17T16:41:55+00:00"
1926
1832
  },
1927
1833
  {
1928
1834
  "name": "php-cs-fixer/diff",
@@ -1973,24 +1879,20 @@
1973
1879
  "keywords": [
1974
1880
  "diff"
1975
1881
  ],
1976
- "support": {
1977
- "issues": "https://github.com/PHP-CS-Fixer/diff/issues",
1978
- "source": "https://github.com/PHP-CS-Fixer/diff/tree/v1.3.1"
1979
- },
1980
1882
  "time": "2020-10-14T08:39:05+00:00"
1981
1883
  },
1982
1884
  {
1983
1885
  "name": "phpstan/phpstan",
1984
- "version": "0.12.59",
1886
+ "version": "0.12.63",
1985
1887
  "source": {
1986
1888
  "type": "git",
1987
1889
  "url": "https://github.com/phpstan/phpstan.git",
1988
- "reference": "cf4107257c8ca2ad967efdd6a00f12b21acbb779"
1890
+ "reference": "c97ec4754bd53099a06c24847bd2870b99966b6a"
1989
1891
  },
1990
1892
  "dist": {
1991
1893
  "type": "zip",
1992
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cf4107257c8ca2ad967efdd6a00f12b21acbb779",
1993
- "reference": "cf4107257c8ca2ad967efdd6a00f12b21acbb779",
1894
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c97ec4754bd53099a06c24847bd2870b99966b6a",
1895
+ "reference": "c97ec4754bd53099a06c24847bd2870b99966b6a",
1994
1896
  "shasum": ""
1995
1897
  },
1996
1898
  "require": {
@@ -2019,10 +1921,6 @@
2019
1921
  "MIT"
2020
1922
  ],
2021
1923
  "description": "PHPStan - PHP Static Analysis Tool",
2022
- "support": {
2023
- "issues": "https://github.com/phpstan/phpstan/issues",
2024
- "source": "https://github.com/phpstan/phpstan/tree/0.12.59"
2025
- },
2026
1924
  "funding": [
2027
1925
  {
2028
1926
  "url": "https://github.com/ondrejmirtes",
@@ -2037,7 +1935,7 @@
2037
1935
  "type": "tidelift"
2038
1936
  }
2039
1937
  ],
2040
- "time": "2020-12-07T14:46:03+00:00"
1938
+ "time": "2020-12-15T16:37:16+00:00"
2041
1939
  },
2042
1940
  {
2043
1941
  "name": "psr/event-dispatcher",
@@ -2083,10 +1981,6 @@
2083
1981
  "psr",
2084
1982
  "psr-14"
2085
1983
  ],
2086
- "support": {
2087
- "issues": "https://github.com/php-fig/event-dispatcher/issues",
2088
- "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0"
2089
- },
2090
1984
  "time": "2019-01-08T18:20:26+00:00"
2091
1985
  },
2092
1986
  {
@@ -2137,9 +2031,6 @@
2137
2031
  ],
2138
2032
  "description": "A generic function and convention to trigger deprecation notices",
2139
2033
  "homepage": "https://symfony.com",
2140
- "support": {
2141
- "source": "https://github.com/symfony/deprecation-contracts/tree/master"
2142
- },
2143
2034
  "funding": [
2144
2035
  {
2145
2036
  "url": "https://symfony.com/sponsor",
@@ -2158,16 +2049,16 @@
2158
2049
  },
2159
2050
  {
2160
2051
  "name": "symfony/event-dispatcher",
2161
- "version": "v5.2.0",
2052
+ "version": "v5.2.1",
2162
2053
  "source": {
2163
2054
  "type": "git",
2164
2055
  "url": "https://github.com/symfony/event-dispatcher.git",
2165
- "reference": "aa13a09811e6d2ad43f8fb336bebdb7691d85d3c"
2056
+ "reference": "1c93f7a1dff592c252574c79a8635a8a80856042"
2166
2057
  },
2167
2058
  "dist": {
2168
2059
  "type": "zip",
2169
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/aa13a09811e6d2ad43f8fb336bebdb7691d85d3c",
2170
- "reference": "aa13a09811e6d2ad43f8fb336bebdb7691d85d3c",
2060
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1c93f7a1dff592c252574c79a8635a8a80856042",
2061
+ "reference": "1c93f7a1dff592c252574c79a8635a8a80856042",
2171
2062
  "shasum": ""
2172
2063
  },
2173
2064
  "require": {
@@ -2222,9 +2113,6 @@
2222
2113
  ],
2223
2114
  "description": "Symfony EventDispatcher Component",
2224
2115
  "homepage": "https://symfony.com",
2225
- "support": {
2226
- "source": "https://github.com/symfony/event-dispatcher/tree/v5.2.0"
2227
- },
2228
2116
  "funding": [
2229
2117
  {
2230
2118
  "url": "https://symfony.com/sponsor",
@@ -2239,7 +2127,7 @@
2239
2127
  "type": "tidelift"
2240
2128
  }
2241
2129
  ],
2242
- "time": "2020-11-01T16:14:45+00:00"
2130
+ "time": "2020-12-18T08:03:05+00:00"
2243
2131
  },
2244
2132
  {
2245
2133
  "name": "symfony/event-dispatcher-contracts",
@@ -2301,9 +2189,6 @@
2301
2189
  "interoperability",
2302
2190
  "standards"
2303
2191
  ],
2304
- "support": {
2305
- "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.2.0"
2306
- },
2307
2192
  "funding": [
2308
2193
  {
2309
2194
  "url": "https://symfony.com/sponsor",
@@ -2322,7 +2207,7 @@
2322
2207
  },
2323
2208
  {
2324
2209
  "name": "symfony/options-resolver",
2325
- "version": "v5.2.0",
2210
+ "version": "v5.2.1",
2326
2211
  "source": {
2327
2212
  "type": "git",
2328
2213
  "url": "https://github.com/symfony/options-resolver.git",
@@ -2370,9 +2255,6 @@
2370
2255
  "configuration",
2371
2256
  "options"
2372
2257
  ],
2373
- "support": {
2374
- "source": "https://github.com/symfony/options-resolver/tree/v5.2.0"
2375
- },
2376
2258
  "funding": [
2377
2259
  {
2378
2260
  "url": "https://symfony.com/sponsor",
@@ -2438,9 +2320,6 @@
2438
2320
  "portable",
2439
2321
  "shim"
2440
2322
  ],
2441
- "support": {
2442
- "source": "https://github.com/symfony/polyfill-php70/tree/v1.20.0"
2443
- },
2444
2323
  "funding": [
2445
2324
  {
2446
2325
  "url": "https://symfony.com/sponsor",
@@ -2514,9 +2393,6 @@
2514
2393
  "portable",
2515
2394
  "shim"
2516
2395
  ],
2517
- "support": {
2518
- "source": "https://github.com/symfony/polyfill-php72/tree/v1.20.0"
2519
- },
2520
2396
  "funding": [
2521
2397
  {
2522
2398
  "url": "https://symfony.com/sponsor",
@@ -2535,7 +2411,7 @@
2535
2411
  },
2536
2412
  {
2537
2413
  "name": "symfony/stopwatch",
2538
- "version": "v5.2.0",
2414
+ "version": "v5.2.1",
2539
2415
  "source": {
2540
2416
  "type": "git",
2541
2417
  "url": "https://github.com/symfony/stopwatch.git",
@@ -2576,9 +2452,6 @@
2576
2452
  ],
2577
2453
  "description": "Symfony Stopwatch Component",
2578
2454
  "homepage": "https://symfony.com",
2579
- "support": {
2580
- "source": "https://github.com/symfony/stopwatch/tree/v5.2.0"
2581
- },
2582
2455
  "funding": [
2583
2456
  {
2584
2457
  "url": "https://symfony.com/sponsor",
@@ -2606,5 +2479,5 @@
2606
2479
  "ext-json": "*"
2607
2480
  },
2608
2481
  "platform-dev": [],
2609
- "plugin-api-version": "2.0.0"
2482
+ "plugin-api-version": "1.1.0"
2610
2483
  }
@@ -7,6 +7,7 @@ require "dependabot/composer/file_updater"
7
7
  require "dependabot/composer/version"
8
8
  require "dependabot/composer/requirement"
9
9
  require "dependabot/composer/native_helpers"
10
+ require "dependabot/composer/helpers"
10
11
 
11
12
  # rubocop:disable Metrics/ClassLength
12
13
  module Dependabot
@@ -448,13 +449,7 @@ module Dependabot
448
449
  end
449
450
 
450
451
  def composer_version
451
- @composer_version ||=
452
- begin
453
- return "v2" unless parsed_lockfile["plugin-api-version"]
454
-
455
- version = Version.new(parsed_lockfile["plugin-api-version"])
456
- version.canonical_segments.first == 1 ? "v1" : "v2"
457
- end
452
+ @composer_version ||= Helpers.composer_version(parsed_composer_json, parsed_lockfile)
458
453
  end
459
454
 
460
455
  def credentials_env
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "dependabot/composer/version"
4
+
5
+ module Dependabot
6
+ module Composer
7
+ module Helpers
8
+ # From composers json-schema: https://getcomposer.org/schema.json
9
+ COMPOSER_V2_NAME_REGEX = %r{^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$}.freeze
10
+
11
+ def self.composer_version(composer_json, parsed_lockfile = nil)
12
+ return "v1" if composer_json["name"] && composer_json["name"] !~ COMPOSER_V2_NAME_REGEX
13
+ return "v2" unless parsed_lockfile && parsed_lockfile["plugin-api-version"]
14
+
15
+ version = Composer::Version.new(parsed_lockfile["plugin-api-version"])
16
+ version.canonical_segments.first == 1 ? "v1" : "v2"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -8,6 +8,8 @@ require "dependabot/composer/version"
8
8
  require "dependabot/composer/requirement"
9
9
  require "dependabot/composer/native_helpers"
10
10
  require "dependabot/composer/file_parser"
11
+ require "dependabot/composer/helpers"
12
+
11
13
  module Dependabot
12
14
  module Composer
13
15
  class UpdateChecker
@@ -433,13 +435,8 @@ module Dependabot
433
435
  end
434
436
 
435
437
  def composer_version
436
- @composer_version ||=
437
- begin
438
- return "v2" unless lockfile && parsed_lockfile["plugin-api-version"]
439
-
440
- version = Version.new(parsed_lockfile["plugin-api-version"])
441
- version.canonical_segments.first == 1 ? "v1" : "v2"
442
- end
438
+ parsed_lockfile_or_nil = lockfile ? parsed_lockfile : nil
439
+ @composer_version ||= Helpers.composer_version(parsed_composer_file, parsed_lockfile_or_nil)
443
440
  end
444
441
 
445
442
  def initial_platform
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.129.0
4
+ version: 0.129.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.129.0
19
+ version: 0.129.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.129.0
26
+ version: 0.129.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -202,6 +202,7 @@ files:
202
202
  - lib/dependabot/composer/file_updater.rb
203
203
  - lib/dependabot/composer/file_updater/lockfile_updater.rb
204
204
  - lib/dependabot/composer/file_updater/manifest_updater.rb
205
+ - lib/dependabot/composer/helpers.rb
205
206
  - lib/dependabot/composer/metadata_finder.rb
206
207
  - lib/dependabot/composer/native_helpers.rb
207
208
  - lib/dependabot/composer/requirement.rb