{"action":"created","issue":{"url":"https://api.github.com/repos/browscap/browscap/issues/614","labels_url":"https://api.github.com/repos/browscap/browscap/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/browscap/browscap/issues/614/comments","events_url":"https://api.github.com/repos/browscap/browscap/issues/614/events","html_url":"https://github.com/browscap/browscap/pull/614","id":67085395,"number":614,"title":"Reduce the size of the \"lite\" files significantly","user":{"login":"asgrim","id":496145,"avatar_url":"https://avatars.githubusercontent.com/u/496145?v=3","gravatar_id":"","url":"https://api.github.com/users/asgrim","html_url":"https://github.com/asgrim","followers_url":"https://api.github.com/users/asgrim/followers","following_url":"https://api.github.com/users/asgrim/following{/other_user}","gists_url":"https://api.github.com/users/asgrim/gists{/gist_id}","starred_url":"https://api.github.com/users/asgrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asgrim/subscriptions","organizations_url":"https://api.github.com/users/asgrim/orgs","repos_url":"https://api.github.com/users/asgrim/repos","events_url":"https://api.github.com/users/asgrim/events{/privacy}","received_events_url":"https://api.github.com/users/asgrim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/browscap/browscap/labels/enhancement","name":"enhancement","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"asgrim","id":496145,"avatar_url":"https://avatars.githubusercontent.com/u/496145?v=3","gravatar_id":"","url":"https://api.github.com/users/asgrim","html_url":"https://github.com/asgrim","followers_url":"https://api.github.com/users/asgrim/followers","following_url":"https://api.github.com/users/asgrim/following{/other_user}","gists_url":"https://api.github.com/users/asgrim/gists{/gist_id}","starred_url":"https://api.github.com/users/asgrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asgrim/subscriptions","organizations_url":"https://api.github.com/users/asgrim/orgs","repos_url":"https://api.github.com/users/asgrim/repos","events_url":"https://api.github.com/users/asgrim/events{/privacy}","received_events_url":"https://api.github.com/users/asgrim/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/browscap/browscap/milestones/5","html_url":"https://github.com/browscap/browscap/milestones/Wishlist","labels_url":"https://api.github.com/repos/browscap/browscap/milestones/5/labels","id":545196,"number":5,"title":"Wishlist","description":"","creator":{"login":"asgrim","id":496145,"avatar_url":"https://avatars.githubusercontent.com/u/496145?v=3","gravatar_id":"","url":"https://api.github.com/users/asgrim","html_url":"https://github.com/asgrim","followers_url":"https://api.github.com/users/asgrim/followers","following_url":"https://api.github.com/users/asgrim/following{/other_user}","gists_url":"https://api.github.com/users/asgrim/gists{/gist_id}","starred_url":"https://api.github.com/users/asgrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asgrim/subscriptions","organizations_url":"https://api.github.com/users/asgrim/orgs","repos_url":"https://api.github.com/users/asgrim/repos","events_url":"https://api.github.com/users/asgrim/events{/privacy}","received_events_url":"https://api.github.com/users/asgrim/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":14,"state":"open","created_at":"2014-01-23T11:06:16Z","updated_at":"2015-05-07T19:44:07Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-04-08T09:10:48Z","updated_at":"2015-05-10T23:11:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/browscap/browscap/pulls/614","html_url":"https://github.com/browscap/browscap/pull/614","diff_url":"https://github.com/browscap/browscap/pull/614.diff","patch_url":"https://github.com/browscap/browscap/pull/614.patch"},"body":"I have examined the issue causing such large files, and it seems to come from the fact there are so many platform variations that causes exponential file size increase. This PR takes two steps that enormously reduce the file size (and in fact, I think perhaps it may have been *too* aggressive and we can probably increase the file size a bit):\r\n\r\n* Removed the \"lite\" flag from a lot of browsers - some are \"modern\" but mobile only, some where truly unworthy of being included in the lite files. I think I've been a little aggressive on this part, so it may be worth reviewing all the browsers to see what we could add in to make a little more comprehensive file, without sacrificing too much filesize.\r\n* Added a way to exclude entire platforms from the output (in lite mode) - now there is only \"general\" detection (e.g. we can detect `*Mac OS X*` but not the specific version e.g. `*Mac OS X 10_4*` in the lite file). This should allow sufficient platform detection for lite versions, but without the extra detail that the specific platform versions give. In doing so I've added the `isOutputSection()` method to the `FilterInterface` that checks the \"lite\" flag.\r\n\r\nYou can try out the lite versions on these temporary URLs:\r\n* http://browscap.org/6002-lite-test/lite_php_browscap.ini\r\n* http://browscap.org/6002-lite-test/lite_asp_browscap.ini\r\n\r\nComments and suggestions are welcome. Merging this would resolve #543 "},"comment":{"url":"https://api.github.com/repos/browscap/browscap/issues/comments/100714258","html_url":"https://github.com/browscap/browscap/pull/614#issuecomment-100714258","issue_url":"https://api.github.com/repos/browscap/browscap/issues/614","id":100714258,"user":{"login":"asgrim","id":496145,"avatar_url":"https://avatars.githubusercontent.com/u/496145?v=3","gravatar_id":"","url":"https://api.github.com/users/asgrim","html_url":"https://github.com/asgrim","followers_url":"https://api.github.com/users/asgrim/followers","following_url":"https://api.github.com/users/asgrim/following{/other_user}","gists_url":"https://api.github.com/users/asgrim/gists{/gist_id}","starred_url":"https://api.github.com/users/asgrim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asgrim/subscriptions","organizations_url":"https://api.github.com/users/asgrim/orgs","repos_url":"https://api.github.com/users/asgrim/repos","events_url":"https://api.github.com/users/asgrim/events{/privacy}","received_events_url":"https://api.github.com/users/asgrim/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T23:11:34Z","updated_at":"2015-05-10T23:11:34Z","body":"@mimmi20 tests added, so coverage remains the same after the latest Scrutinizer check. Any other feedback please? Thanks!"}}