From b95afd06dfda0764a7c9aa24f9d70a1ae9bdc377 Mon Sep 17 00:00:00 2001 From: Vincent DURMONT Date: Thu, 10 Sep 2015 19:12:54 -0700 Subject: [PATCH] Prepare for realease --- CHANGELOG.md | 4 ++++ README.md | 10 ++++++++-- pom.xml | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecfa218..5308501 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.1.0 + +* Add support for Ivy requirements (used by gradle) + ## v1.0.1 * Fix a bug that prevented the usage of `Semver#statisfies(String)` with CocoaPods diff --git a/README.md b/README.md index 8627f1b..27fe4eb 100644 --- a/README.md +++ b/README.md @@ -19,14 +19,14 @@ Add the dependency to your project: com.vdurmont semver4j - 1.0.1 + 1.1.0 ``` #### Using gradle ```xml -compile 'com.vdurmont:semver4j:1.0.1' +compile 'com.vdurmont:semver4j:1.1.0' ``` ## Usage @@ -147,6 +147,12 @@ Semver semPOD = new Semver("1.2.3", SemverType.COCOAPODS); semPOD.satisfies("> 1.2.2"); // true semPOD.satisfies("~> 1.2.1"); // true semPOD.satisfies("<= 1.1.1"); // false + +// IVY mode (those are just examples, check Ivy/gradle documentation to see all the cases) +Semver semIVY = new Semver("1.2.3", SemverType.IVY); +semIVY.satisfies("1.2.+"); // true +semIVY.satisfies("(,1.8.9]"); // true +semIVY.satisfies("[0.2,1.4]"); // true ``` ### Modifying the version diff --git a/pom.xml b/pom.xml index 88c2ef1..9456abf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.vdurmont semver4j - 1.0.1-SNAPSHOT + 1.1.0 jar semver4j