Skip to content

Commit

Permalink
Release 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Feb 16, 2023
1 parent fc7b566 commit 122d6b5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
All notable changes of SVRUnit releases are documented in this file
using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.

## [unreleased]
## [1.6.0]

### Added

Expand Down
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ Now that you know this, let's get started!
* [7.1.4 Shopware 6](#714-shopware-6)
* [7.2 Filters](#72-filters)
* [7.3 Groups](#73-groups)
* [7.4 Rules](#74-rules)
* [7.4.1 Nesting Depth](#741-nesting-depth)
* [7.5 Case Styles](#75-case-styles)
* [7.4 Case Styles](#74-case-styles)
* [7.5 Rules](#75-rules)
* [7.5.1 Nesting Depth](#751-nesting-depth)
* [7.6 PHP ENV Variables](#76-php-env-variables)
* [7.7 Exchange Formats](#77-exchange-formats)
* [7.7.1 CSV](#771-csv)
Expand Down Expand Up @@ -594,31 +594,7 @@ A CSV format, has a separate column for groups, and the import should also work
The HTML format on the other hand, shows a matching style in the table, so you know that the
translations all belong to this group.

### 7.4 Rules

You can add additional rules to extend the validation of your Translation-Sets.
Please see the list below for all supported rules.

```xml

<set>
<rules>
...
</rules>
</set>
```

#### 7.4.1 Nesting Depth

The nesting-depth rule allows you to throw an error once the maximum depth is reached within a nested storage type.
This helps you to keep your depth in control.

```xml

<nestingDepth>3</nestingDepth>
```

### 7.5 Case Styles
### 7.4 Case Styles

To keep consistency across all your translation keys, it's possible to set a list of allowed case styles.
The **validate** command, will automatically test, if all your translation keys match at least one of the provided styles.
Expand Down Expand Up @@ -664,6 +640,30 @@ Pascal case is only checked on level 1, and not on 0 and 2.
</set>
```

### 7.5 Rules

You can add additional rules to extend the validation of your Translation-Sets.
Please see the list below for all supported rules.

```xml

<set>
<rules>
...
</rules>
</set>
```

#### 7.5.1 Nesting Depth

The nesting-depth rule allows you to throw an error once the maximum depth is reached within a nested storage type.
This helps you to keep your depth in control.

```xml

<nestingDepth>3</nestingDepth>
```

### 7.6 PHP ENV Variables

The XML configuration allows you to create custom ENV variables.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boxblinkracer/phpunuhi",
"version": "1.5.0",
"version": "1.6.0",
"license": "MIT",
"description": "Easy tool to work with translation files for validation, exports, imports and more.",
"homepage": "https://github.com/boxblinkracer/phpunuhi",
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/svrunit/tests/version.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
commands:
- name: "Version is correct"
command: "(($EXEC)) --version --configuration=./tests/svrunit/formats/json/phpunuhi.xml"
expected: "PHPUnuhi 1.5.0"
expected: "PHPUnuhi 1.6.0"
- name: "Version is correct (command header)"
command: "(($EXEC)) status --configuration=./tests/svrunit/formats/json/phpunuhi.xml"
expected: "PHPUnuhi Framework, v1.5.0"
expected: "PHPUnuhi Framework, v1.6.0"

0 comments on commit 122d6b5

Please sign in to comment.