{"id":20026325,"url":"https://github.com/yandex-qatools/uri-differ","last_synced_at":"2025-05-05T02:31:20.663Z","repository":{"id":19790331,"uuid":"23049606","full_name":"yandex-qatools/uri-differ","owner":"yandex-qatools","description":"Simple lib to find diffs between two URIs","archived":false,"fork":false,"pushed_at":"2017-01-19T09:02:30.000Z","size":44,"stargazers_count":11,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T15:49:35.335Z","etag":null,"topics":["diff","uri"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yandex-qatools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-17T20:20:39.000Z","updated_at":"2022-10-23T02:31:54.000Z","dependencies_parsed_at":"2022-08-26T20:12:44.944Z","dependency_job_id":null,"html_url":"https://github.com/yandex-qatools/uri-differ","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-qatools%2Furi-differ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-qatools%2Furi-differ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-qatools%2Furi-differ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-qatools%2Furi-differ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yandex-qatools","download_url":"https://codeload.github.com/yandex-qatools/uri-differ/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252427825,"owners_count":21746285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","uri"],"created_at":"2024-11-13T09:06:18.951Z","updated_at":"2025-05-05T02:31:17.165Z","avatar_url":"https://github.com/yandex-qatools.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"URI Differ\n===========\n\n[![release](http://github-release-version.herokuapp.com/github/yandex-qatools/uri-differ/release.svg?style=flat)](https://github.com/yandex-qatools/uri-differ/releases/latest)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/ru.lanwen.diff/uri-differ-lib/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/ru.lanwen.diff/uri-differ-lib)\n\n\nSimple lib to find diffs between URI and represent it in pretty way.\n\n##Quick start: \n  \n### Use maven:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eru.lanwen.diff\u003c/groupId\u003e\n    \u003cartifactId\u003euri-differ-lib\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```  \n\n### Add some code:  \n\nGet changes:  \n```java\nUriDiff changes = UriDiffer.diff()\n    .expected(\"http://ya.ru\").actual(\"http://yandex.ru\").changes();\n```\n\nPrint them: \n```java\nString report = changes.report();\n```\n\nUse any report generator with implementing `ReportView`:\n```java\nString report = changes.report(DefaultUrlDiffView.withDefaultView());\n```\n\nWhat it returns:  \n\n| Expected  | Actual | Report |\n| ------------------------ | -------------------- | ---------------------------- |\n| `httpf://ya.ru`            | `httpfs://ya.ru`       | `httpf[+s]://ya.ru`            |\n| `httpfd://ya.ru`           | `http://ya.ru`         | `http[-fd]://ya.ru`            |  \n| `httpfd://ya.ru`           | `httpgt://ya.ru`       | `http[fd-\u003egt]://ya.ru`         |  \n| `httpf://ya.ru`            | `http://ya.ru`         | `http[-f]://ya.ru`             |  \n| `httpf://ya.ru`            | `httpg://ya.ru`        | `http[f-\u003eg]://ya.ru`           |  \n| `htspf://ya.ru`            | `httpg://ya.ru`        | `ht[s-\u003et]p[f-\u003eg]://ya.ru`      |  \n| `htspf://ya.ru`            | `httpg://ya.ru/h`      | `ht[s-\u003et]p[f-\u003eg]://ya.ru[+/h]` |  \n| `http://ya.ru`             | `http://yandex.ru`     | `http://[ya-\u003eyandex].ru`       |  \n| `http://yandex.ru`         | `http://yandex.com.tr` | `http://yandex.[ru-\u003ecom.tr]`   |  \n| `http://yandex.com`        | `http://yandex.com.tr` | `http://yandex.com.[+tr]`      |  \n| `http://yandex.com.tr`     | `http://yandex.com`    | `http://yandex.com.[-tr]`      |  \n| `http://yandex.com.tr.fr`  | `http://yandex.com`    | `http://yandex.com.[-tr.fr]`   |  \n| `/path?q=1`                | `/changed?q=2`         | `/[path-\u003echanged]?[q=1-\u003eq=2]`  |  \n\n##Use filters:\n\n```java\nUriDiffer.diff()\n    .expected(\"http://ya.ru\").actual(\"https://yandex.ru/?ncrnd=2342\")\n    .filter(scheme(), param(\"ncrnd\")).changes();\n```\n\n### Scheme filter:\n\nTo ignore any scheme, add filter `SchemeFilter.scheme()`.   \nYou can also specify which schemes are allowed: `SchemeFilter.scheme(\"http\", \"https\")`.\n\n### Parameter filter:\n\nTo ignore parameter with some name, just add `AnyParamValueFilter.param(\"param_name\")`.  \nYou can also specify which values only can be ignored: `AnyParamValueFilter.param(\"param_name\").ignore(\"val1\", \"val2\")`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyandex-qatools%2Furi-differ","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyandex-qatools%2Furi-differ","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyandex-qatools%2Furi-differ/lists"}