Jordi Boggiano
135783299a
Add support for editing top level properties and extra values, replaces #2415 , fixes #1411 , fixes #2384
2016-04-27 14:04:01 +01:00
Daniel Iancu
3bdb0ee5fd
Fix addMainKey method of JsonManipulator with content having $n
...
This will store correctly passwords having a dolloar sign followed by a digit in the auth.json file.
If the content variable has "$n" (where n consists of digits) it will match as a replacement reference for preg_replace and thus it will get stripped because there's no such parenthesized pattern.
2016-04-20 22:34:39 +03:00
Jordi Boggiano
edebbef98a
Add test and fix for very large repos, moar possessive quantifiers, fixes #5104
2016-03-24 16:04:52 +00:00
Jordi Boggiano
48420a2411
Update deps and bump json-schema requirement, fixes #4756
2016-01-09 16:52:06 +00:00
Thiago Carvalho
320533bcf9
Fixes #4610
2015-11-21 08:58:52 +01:00
Remi Collet
a6c6537529
skip no more needed with jsonc 1.3.9
2015-11-04 09:11:01 +01:00
Jordi Boggiano
ce08582671
Fix CS
2015-09-28 10:53:24 +01:00
Remi Collet
9b9cbfe111
fix for changes in justinrainbow/json-schema 1.4.4
2015-07-16 12:03:35 +02:00
Remi Collet
c014e0882f
ignore this test with 'jsonc'
2015-07-16 12:03:35 +02:00
Jordi Boggiano
27aac31970
Fix tests for autocrlf=true checkouts, fixes #4049
2015-05-28 14:43:52 +01:00
Possum
29ca21f30e
PHP version checks tweaking
2015-05-05 20:18:24 +02:00
Jordi Boggiano
21e92b869e
Merge pull request #4000 from SpacePossum/json_testing
...
On Json tests failures show more test failure details
2015-05-05 17:41:44 +01:00
Possum
d7f7418243
some more test failure details
2015-05-05 18:13:16 +02:00
Possum
2e99b9fdf5
Use https where possible
2015-05-04 19:37:57 +02:00
Jordi Boggiano
ab02867015
Use natural sort to sort packages, refs #3872
2015-05-01 16:16:02 +01:00
Jordi Boggiano
081e26f4d7
Merge remote-tracking branch 'localheinz/feature/sort-packages'
2015-05-01 16:08:57 +01:00
Jordi Boggiano
00ca2a91a3
Fix typo
2015-04-30 00:08:45 +01:00
Jordi Boggiano
a5dfaafa02
Add a fixture for the schema validation
2015-04-29 23:45:30 +01:00
Jordi Boggiano
fa398e14c7
Fix indent detection in json files when an empty line starts the object
2015-04-29 22:42:57 +01:00
Jordi Boggiano
32a479a1e7
Fix subkey manipulation when the main key does not exist yet
2015-04-29 22:42:41 +01:00
Andreas Möller
32538a21a2
Enhancement: Sort packages by importance, then alphabetically
2015-03-25 14:10:20 +01:00
Rob Bast
d02eb8760b
strict check, testcase(s)
2015-02-10 12:55:49 +01:00
Jordi Boggiano
6c971c3028
Fix regex matching and add more tests for addSubNode, refs #3721 , fixes #3716
2015-02-09 19:11:32 +00:00
Rob Bast
fb54429941
solve edge case for `composer remove vendor/pkg`
2015-02-09 17:21:20 +01:00
Jordi Boggiano
bef89604e2
Fix parsing of strings, fixes #3543
2014-12-13 14:31:58 +00:00
Andreas Möller
6ddd8d4ec7
Enhancement: Add sort-packages option which allows sorting of packages
2014-12-13 00:24:14 +01:00
Jordi Boggiano
94926218e8
CS fixes
2014-10-17 18:57:27 +01:00
Jordi Boggiano
109f4ffd5e
Normalize json across all php versions, fixes #3226
2014-10-04 17:02:42 +01:00
Jordi Boggiano
ed54e8346d
Fix json test, fixes #3326
2014-10-04 12:33:28 +01:00
Jordi Boggiano
55a6a1c3d4
Add support for nested arrays in the json manipulator, fixes #3296
2014-09-24 18:32:10 +01:00
Jordi Boggiano
8881cec174
Simplify version ranges (hopefully includes hhvm), refs #3049
2014-06-29 12:27:27 +02:00
Jordi Boggiano
3874a11238
Update json test
2014-06-22 11:01:05 +02:00
Jordi Boggiano
ac497feaba
CS fixes
2014-06-10 16:13:12 +02:00
Jordi Boggiano
7131607ad1
Fix regression in handling github-oauth settings in auth.json
2014-05-27 16:26:24 +02:00
Jordi Boggiano
4392be4d29
Fix some more inconsistencies in json manipulation
2014-04-10 16:11:43 +02:00
Jordi Boggiano
d742ffca4f
Fix removal of missing keys
2014-04-10 15:55:05 +02:00
Jordi Boggiano
604a65cc31
Fix indenting, refs #2788
2014-03-06 10:26:16 +01:00
Sylvain Filteau
92e283973f
Skip test requiring mbstring when it's not installed
2014-03-05 20:30:09 -05:00
Sandy Pleyte
3a2815b778
Added extra unit test from the example in the ticket.
2014-02-19 14:17:23 +01:00
Sandy Pleyte
f92f2f45a9
Fix for #2613 , when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash.
2014-02-18 09:01:12 +01:00
Sandy Pleyte
7a902ed96d
Fix for #2613 , when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash.
2014-02-17 13:54:35 +01:00
Zbigniew
94635c0d14
[tests] Unit tests for JsonValidationException class
2014-01-30 17:39:13 +00:00
Jordi Boggiano
99f5b5a238
Fix backtracking issue in json manipulations, fixes #2583
2014-01-12 21:13:00 +01:00
Jordi Boggiano
3b48a1fea6
Fix JsonManipulator handling of package links, fixes #1465
2013-05-12 22:54:53 +02:00
Jordi Boggiano
3bd6af690d
Allow JsonManipulator::addMainKey to update top level keys as well
2013-05-12 13:24:18 +02:00
Jordi Boggiano
3d953384fa
Fix indenting detection in JsonManipulator, fixes #1788
2013-04-11 10:34:26 +02:00
Jordi Boggiano
b4d691e46d
Add test for escape sequences
2013-02-18 22:13:54 +01:00
Jordi Boggiano
e348642aa7
Fix json manipulator handling of escaped backslashes, fixes #1588
2013-02-18 17:27:43 +01:00
Jordi Boggiano
a7c950cddd
Add support for github-oauth in config command
2013-01-16 16:19:22 +01:00
Jordi Boggiano
dea4bdf8f0
Expand {} into a new line before manipulating json, fixes #1481
2013-01-13 17:06:35 +01:00