Skip to content

Commit

Permalink
prepare release 3.0.1 (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
uklimaschewski authored Oct 12, 2022
1 parent facc8db commit 4e88fa9
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 9 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,30 @@ You can download the binaries, source code and JavaDoc jars from
You will find there also copy/paste templates for including EvalEx in your project with build
systems like Maven or Gradle.

### Maven

To include it in your Maven project, add the dependency to your pom. For example:

```xml
<dependencies>
<dependency>
<groupId>com.ezylang</groupId>
<artifactId>EvalEx</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
```

### Gradle

If you're using gradle add the dependencies to your project's app build.gradle:

```gradle
dependencies {
compile 'com.ezylang:EvalEx:3.0.1'
}
```

## Examples

### A simple example, that shows how it works in general:
Expand Down Expand Up @@ -140,6 +164,14 @@ BigDecimal result = expression.evaluate().getNumberValue();
System.out.println(result); // prints 44.85
```

## EvalEx-big-math

[Big-math](https://github.com/eobermuhlner/big-math) is a library by Eric Obermühlner. It provides
advanced Java BigDecimal math functions using an arbitrary precision.

[EvalEx-big-math](https://github.com/ezylang/EvalEx-big-math) adds the advanced math functions from
big-math to EvalEx.

## Author and License

Copyright 2012-2022 by Udo Klimaschewski
Expand Down
7 changes: 7 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor
Gemfile
Gemfile.lock
9 changes: 9 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ https://ezylang.github.io/EvalEx/
## Using _JustTheDocs_ template:

https://just-the-docs.github.io/just-the-docs/

## Install Jekyll locally (for testing the site locally)

https://jekyllrb.com/docs/installation/

## Testing locally

https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll

6 changes: 3 additions & 3 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ remote_theme: just-the-docs/just-the-docs
title: EvalEx Documentation
aux_links:
"View on GitHub":
- "//github.com/ezylang/EvalEx"
- "https://github.com/ezylang/EvalEx"
"Download from Maven Central":
- "//search.maven.org/search?q=a:%22EvalEx%22"
- "https://search.maven.org/search?q=a:%22EvalEx%22"
"Release Notes":
- "//github.com/ezylang/EvalEx/releases"
- "https://github.com/ezylang/EvalEx/releases"
footer_content: "Copyright &copy; 2012-2022 Udo Klimaschewski"
2 changes: 1 addition & 1 deletion docs/concepts/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ See chapter [Data Access](../customization/data_access.html) for details.
Adding custom operators is now easier, but has changed significantly.
See chapter [Custom Operators](../customization/custom_operators.html) for details.

### Custom function
### Custom functions

Adding custom functions is now easier, but has changed significantly.
See chapter [Custom Functions](../customization/custom_functions.html) for details.
48 changes: 47 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ nav_order: 1
EvalEx is a handy expression evaluator for Java, that allows to parse and evaluate expression
strings.

_Version 3 of EvalEx is a complete rewrite of the popular expression evaluator. See [Major Changes](https://ezylang.github.io/EvalEx/concepts/changes.html) for an overview of the changes._
_Version 3 of EvalEx is a complete rewrite of the popular expression evaluator.
See [Major Changes](https://ezylang.github.io/EvalEx/concepts/changes.html) for an overview of the
changes._

## Key Features:

Expand All @@ -29,6 +31,42 @@ _Version 3 of EvalEx is a complete rewrite of the popular expression evaluator.
x-y)
- Lazy evaluation of function parameters (see the IF function) and support of sub-expressions.

## Discussion

For announcements, questions and ideas visit
the [Discussions area](https://github.com/ezylang/EvalEx/discussions).

## Download / Including

You can download the binaries, source code and JavaDoc jars from
[Maven Central](https://search.maven.org/search?q=a:%22EvalEx%22).\
You will find there also copy/paste templates for including EvalEx in your project with build
systems like Maven or Gradle.

### Maven

To include it in your Maven project, add the dependency to your pom. For example:

```xml
<dependencies>
<dependency>
<groupId>com.ezylang</groupId>
<artifactId>EvalEx</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
```

### Gradle

If you're using gradle add the dependencies to your project's app build.gradle:

```gradle
dependencies {
compile 'com.ezylang:EvalEx:3.0.1'
}
```

## Examples

A simple example, that shows how it works in general:
Expand Down Expand Up @@ -115,6 +153,14 @@ BigDecimal result = expression.evaluate().getNumberValue();
System.out.println(result); // prints 44.85
```

## EvalEx-big-math

[Big-math](https://github.com/eobermuhlner/big-math) is a library by Eric Obermühlner. It provides
advanced Java BigDecimal math functions using an arbitrary precision.

[EvalEx-big-math](https://github.com/ezylang/EvalEx-big-math) adds the advanced math functions from
big-math to EvalEx.

## Author and License

Copyright 2012-2022 by Udo Klimaschewski
Expand Down
4 changes: 2 additions & 2 deletions docs/references/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Available through the _ExpressionConfiguration.StandardOperatorsDictionary_ cons

### Arithmetic operators

| Name | Value |
| Name | Description |
|------|-----------------------------------------|
| - | The prefix minus operator, like in "-2" |
| + | The prefix minus operator, like in "+2" |
Expand All @@ -24,7 +24,7 @@ Available through the _ExpressionConfiguration.StandardOperatorsDictionary_ cons

### Boolean operators

| Name | Value |
| Name | Description |
|--------------|-------------------------------------|
| =, == | The equals operator |
| !=, <> | The not equals operator |
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.ezylang</groupId>
<artifactId>EvalEx</artifactId>
<version>3.0.1-SNAPSHOT</version>
<version>3.0.1</version>

<name>EvalEx</name>

Expand Down Expand Up @@ -94,7 +94,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.6.1</version>
<version>4.8.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit 4e88fa9

Please sign in to comment.