136 Commits (e85ade310720bb72a57966a0071edff0025df531)

Author SHA1 Message Date
Jordi Boggiano 55a6a1c3d4 Add support for nested arrays in the json manipulator, fixes #3296 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano 7131607ad1 Fix regression in handling github-oauth settings in auth.json 10 years ago
Jordi Boggiano 534bd64cd1 Add support for manipulating empty json files 10 years ago
Jordi Boggiano af6ef235e1 Update json schema 10 years ago
Jordi Boggiano 4392be4d29 Fix some more inconsistencies in json manipulation 10 years ago
Jordi Boggiano d742ffca4f Fix removal of missing keys 10 years ago
Jordi Boggiano 0df9c803a5 Merge pull request #2718 from sndpl/issue/2613
Fix for #2613
11 years ago
Jordi Boggiano 41afc8324e Workaround for json schema bug, fixes #2726 11 years ago
Sandy Pleyte 3a2815b778 Added extra unit test from the example in the ticket. 11 years ago
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. 11 years ago
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. 11 years ago
Jordi Boggiano 99f5b5a238 Fix backtracking issue in json manipulations, fixes #2583 11 years ago
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Jordi Boggiano 46e82cb38d Retry json file writing 3 times before failing, fixes #2286 11 years ago
bronze1man 9a1f4e4458 fix some files mode bug 755->644 11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Jordi Boggiano df7114869b Fix handling of multilines in previous commit 11 years ago
Jordi Boggiano 20ef3e3c5b Clarify usage of addcslashes 11 years ago
Jordi Boggiano 3b48a1fea6 Fix JsonManipulator handling of package links, fixes #1465 11 years ago
Jordi Boggiano 3bd6af690d Allow JsonManipulator::addMainKey to update top level keys as well 11 years ago
Jordi Boggiano 3d953384fa Fix indenting detection in JsonManipulator, fixes #1788 11 years ago
Jordi Boggiano 02f6a32d08 Fix undef var issue when removing a json config key 11 years ago
Jordi Boggiano c7ed20e9d8 Fix minor issues in json code 12 years ago
Jordi Boggiano 27898c4c31 Suppress errors from mkdir calls that are checked for failure 12 years ago
Jordi Boggiano e348642aa7 Fix json manipulator handling of escaped backslashes, fixes #1588 12 years ago
deguif 1b5229dc04 Fixed phpdoc 12 years ago
Jordi Boggiano a7c950cddd Add support for github-oauth in config command 12 years ago
Jordi Boggiano dea4bdf8f0 Expand {} into a new line before manipulating json, fixes #1481 12 years ago
Jordi Boggiano 24963fb4c8 Fix handling of arrays in json manipulator 12 years ago
Jordi Boggiano c0e5736ae7 Add support for one-file-per-provider composer repositories 12 years ago
Jordi Boggiano dc033e33d6 Pick longest match always 12 years ago
Jordi Boggiano 5cb9a6ead7 Write in the json directly without reformatting the whole file - skip validation since that is not really the job of the config command 12 years ago
Jordi Boggiano a54bf6269e Improve error messages when network failures occur 12 years ago
Adel d3b9f5c33f Fix phpdocs 12 years ago
Jordi Boggiano db16f68fbf Tweak exception messages 12 years ago
Robert Schönthal 0cd453449b minor changes to JsonFile::parseJson for Drivers 12 years ago
Robert Schönthal c517ac6404 fixed issue #347 added file to json validation exception 12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano 31330a739f Fix CS 12 years ago
Jordi Boggiano 8ffe3c2e26 Cosmetic fixes 12 years ago
Jordi Boggiano 27f8019dbd Refactor init & require commands 12 years ago
Jordi Boggiano f5e0918104 Add JsonManipulator class for doing raw manipulation of json strings 12 years ago
Jordi Boggiano b33496c853 Merge remote-tracking branch 'jeremyFreeAgent/master'
Conflicts:
	doc/03-cli.md
12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano f516c1de48 Add license info for code snippet we reused 12 years ago
Jordi Boggiano a30e6109bf Fix 5.4.0 interop in formatting of empty array/objects 12 years ago
Jordi Boggiano 69864aeb13 Make check more explicit 12 years ago
Jordi Boggiano 3bdee3aabe Detect and report UTF8 encoding errors in json files 12 years ago
Jordi Boggiano b14366ed08 Fix exception when a json file can not be downloaded 12 years ago
Jérémy Romey 260d7d434f Add a command for adding package to composer.json
Updated doc for require command
12 years ago
Jordi Boggiano 7f65dd7409 Use RemoteFilesystem everywhere we do http requests 12 years ago
Martin Hasoň 947d429c61 Removed definition of global constants reserved for PHP >=5.4 and fixed tests 13 years ago
Jordi Boggiano 7ceca9b789 Suppress relaxed schema and build it on the fly in php, refs #151 13 years ago
Jordi Boggiano 82dd1c1f7f Add relaxed schema for application packages that do not need to be distributed 13 years ago
Jordi Boggiano bd54e43d37 Rework JsonFile API slightly, avoid tokenizing in php if the syntax is valid 13 years ago
digitalkaoz 6929c42848 added schema/syntax validation for composer.json 13 years ago
Martin Hasoň e621495c4d Added support for JSON_UNESCAPED_SLASHES 13 years ago
Jordi Boggiano d1d9c715c9 Add newline at the end of formatted jsons 13 years ago
Jordi Boggiano 33fcb959ea Refactor JsonFile::encode to match json_encode 13 years ago
Martin Hasoň ff0f833b3e Added support for JSON_UNESCAPED_UNICODE and fixed parsing string 13 years ago
Jordi Boggiano 256bfedea1 Merge remote-tracking branch 'jalliot/proxy2'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/PearRepository.php
13 years ago
Martin Hasoň e46e1fb981 Changed method to static - JsonFile::encode 13 years ago
Martin Hasoň 76a2be5ae0 Fixed detection of missing comma and added detection of missing colon in json 13 years ago
Jordan Alliot 054faef5eb New context at each call and possibility to add more options and params to the context 13 years ago
Jordan Alliot 9c27e38654 Moved proxy handling to a new class so that it can be reused in other parts of Composer 13 years ago
Jakub Zalas dcdb761e17 Used strict comparision. 13 years ago
Jakub Zalas c680ec7e51 Fixed json encoding when quoted value contained trailing backslash.
Condition checking if current character is inside a quoted string did not consider the case when backslash before quote is escaped with another backslash.
13 years ago
Jordi Boggiano bfe28905d0 Fix formatting and make pretty-printing optional 13 years ago
Justin Rainbow 447230d77a Extracting JsonFile additions for prettifying JSON 13 years ago
Fabien Potencier 90f2a9f406 Use JSON_PRETTY_PRINT option when dumping JSON to help debugging 13 years ago
Jordi Boggiano 293c45fabe Fix unescaped backslash issue 13 years ago
Jordi Boggiano 066a0db752 Add detection for unescaped backslashes 13 years ago
Jordi Boggiano f5aa3e6c79 Add detection for extra commas in arrays 13 years ago
Jordi Boggiano c129d570e8 Add more json validation rules 13 years ago
Fabien Potencier 1450ebd837 Fix bug in an exception, added unit tests 13 years ago
Jordi Boggiano 17286e993c Add exception when json files can not be read 13 years ago
Jordi Boggiano be769ea1ac Add user-agent header to json fetches, fixes #39 13 years ago
Jordi Boggiano 1a9de17a88 Detect and report common mistakes in json syntax, refs #36 13 years ago
Jordi Boggiano cad0967788 json_decode returns null on error, not false 13 years ago
Jordi Boggiano 9210500714 Handle false and empty decoded json values as valid 13 years ago
Jordi Boggiano 18e28a2a9f Make sure .composer dir is created before writing in it 13 years ago
everzet 1cca62dc97 move json parsing instructions into single class object 13 years ago
everzet 1fcb833902 added Json parsing abstraction 13 years ago