Skip to content

Commit 6ec22d3

Browse files
committed
Fix semver bugs.
1 parent 345c439 commit 6ec22d3

File tree

12 files changed

+81
-149
lines changed

12 files changed

+81
-149
lines changed

exts/jphp-semver-ext/api-docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
---
44

55
## jphp-semver-ext
6-
> version 1.0.0, created by JPPM.
6+
> version 1.1.0, created by JPPM.
77
88
Library for working with versions using SemVer standard.
99

1010
### Install
1111
```
12-
jppm add jphp-semver-ext@1.0.0
12+
jppm add jphp-semver-ext@1.1.0
1313
```
1414

1515
### API

exts/jphp-semver-ext/api-docs/README.ru.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
---
44

55
## jphp-semver-ext
6-
> версия 1.0.0, создано с помощью JPPM.
6+
> версия 1.1.0, создано с помощью JPPM.
77
88
Library for working with versions using SemVer standard.
99

1010
### Установка
1111
```
12-
jppm add jphp-semver-ext@1.0.0
12+
jppm add jphp-semver-ext@1.1.0
1313
```
1414

1515
### АПИ

exts/jphp-semver-ext/api-docs/classes/semver/SemVersion.md

+13-33
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ Class SemVersion
1212
#### Methods
1313

1414
- `->`[`__construct()`](#method-__construct) - _SemVersion constructor._
15+
- `->`[`isStable()`](#method-isstable)
1516
- `->`[`getMajorNum()`](#method-getmajornum)
1617
- `->`[`getMinorNum()`](#method-getminornum)
1718
- `->`[`getPatchNum()`](#method-getpatchnum)
1819
- `->`[`getPreReleaseString()`](#method-getprereleasestring)
19-
- `->`[`getBuildString()`](#method-getbuildstring)
2020
- `->`[`toNormal()`](#method-tonormal)
2121
- `->`[`__toString()`](#method-__tostring)
2222
- `->`[`incMajorNum()`](#method-incmajornum)
2323
- `->`[`incMinorNum()`](#method-incminornum)
2424
- `->`[`incPatchNum()`](#method-incpatchnum)
25-
- `->`[`incBuildString()`](#method-incbuildstring)
26-
- `->`[`incPreRelease()`](#method-incprerelease)
2725
- `->`[`satisfies()`](#method-satisfies)
2826

2927
---
@@ -39,6 +37,15 @@ SemVersion constructor.
3937

4038
---
4139

40+
<a name="method-isstable"></a>
41+
42+
### isStable()
43+
```php
44+
isStable(): bool
45+
```
46+
47+
---
48+
4249
<a name="method-getmajornum"></a>
4350

4451
### getMajorNum()
@@ -75,15 +82,6 @@ getPreReleaseString(): string
7582

7683
---
7784

78-
<a name="method-getbuildstring"></a>
79-
80-
### getBuildString()
81-
```php
82-
getBuildString(): string
83-
```
84-
85-
---
86-
8785
<a name="method-tonormal"></a>
8886

8987
### toNormal()
@@ -106,7 +104,7 @@ __toString(): string
106104

107105
### incMajorNum()
108106
```php
109-
incMajorNum(string $preRelease): semver\SemVersion
107+
incMajorNum(): semver\SemVersion
110108
```
111109

112110
---
@@ -115,7 +113,7 @@ incMajorNum(string $preRelease): semver\SemVersion
115113

116114
### incMinorNum()
117115
```php
118-
incMinorNum(string $preRelease): semver\SemVersion
116+
incMinorNum(): semver\SemVersion
119117
```
120118

121119
---
@@ -124,25 +122,7 @@ incMinorNum(string $preRelease): semver\SemVersion
124122

125123
### incPatchNum()
126124
```php
127-
incPatchNum(string $preRelease): semver\SemVersion
128-
```
129-
130-
---
131-
132-
<a name="method-incbuildstring"></a>
133-
134-
### incBuildString()
135-
```php
136-
incBuildString(): semver\SemVersion
137-
```
138-
139-
---
140-
141-
<a name="method-incprerelease"></a>
142-
143-
### incPreRelease()
144-
```php
145-
incPreRelease(): semver\SemVersion
125+
incPatchNum(): semver\SemVersion
146126
```
147127

148128
---

exts/jphp-semver-ext/api-docs/classes/semver/SemVersion.ru.md

+13-33
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ Class SemVersion
1212
#### Методы
1313

1414
- `->`[`__construct()`](#method-__construct) - _SemVersion constructor._
15+
- `->`[`isStable()`](#method-isstable)
1516
- `->`[`getMajorNum()`](#method-getmajornum)
1617
- `->`[`getMinorNum()`](#method-getminornum)
1718
- `->`[`getPatchNum()`](#method-getpatchnum)
1819
- `->`[`getPreReleaseString()`](#method-getprereleasestring)
19-
- `->`[`getBuildString()`](#method-getbuildstring)
2020
- `->`[`toNormal()`](#method-tonormal)
2121
- `->`[`__toString()`](#method-__tostring)
2222
- `->`[`incMajorNum()`](#method-incmajornum)
2323
- `->`[`incMinorNum()`](#method-incminornum)
2424
- `->`[`incPatchNum()`](#method-incpatchnum)
25-
- `->`[`incBuildString()`](#method-incbuildstring)
26-
- `->`[`incPreRelease()`](#method-incprerelease)
2725
- `->`[`satisfies()`](#method-satisfies)
2826

2927
---
@@ -39,6 +37,15 @@ SemVersion constructor.
3937

4038
---
4139

40+
<a name="method-isstable"></a>
41+
42+
### isStable()
43+
```php
44+
isStable(): bool
45+
```
46+
47+
---
48+
4249
<a name="method-getmajornum"></a>
4350

4451
### getMajorNum()
@@ -75,15 +82,6 @@ getPreReleaseString(): string
7582

7683
---
7784

78-
<a name="method-getbuildstring"></a>
79-
80-
### getBuildString()
81-
```php
82-
getBuildString(): string
83-
```
84-
85-
---
86-
8785
<a name="method-tonormal"></a>
8886

8987
### toNormal()
@@ -106,7 +104,7 @@ __toString(): string
106104

107105
### incMajorNum()
108106
```php
109-
incMajorNum(string $preRelease): semver\SemVersion
107+
incMajorNum(): semver\SemVersion
110108
```
111109

112110
---
@@ -115,7 +113,7 @@ incMajorNum(string $preRelease): semver\SemVersion
115113

116114
### incMinorNum()
117115
```php
118-
incMinorNum(string $preRelease): semver\SemVersion
116+
incMinorNum(): semver\SemVersion
119117
```
120118

121119
---
@@ -124,25 +122,7 @@ incMinorNum(string $preRelease): semver\SemVersion
124122

125123
### incPatchNum()
126124
```php
127-
incPatchNum(string $preRelease): semver\SemVersion
128-
```
129-
130-
---
131-
132-
<a name="method-incbuildstring"></a>
133-
134-
### incBuildString()
135-
```php
136-
incBuildString(): semver\SemVersion
137-
```
138-
139-
---
140-
141-
<a name="method-incprerelease"></a>
142-
143-
### incPreRelease()
144-
```php
145-
incPreRelease(): semver\SemVersion
125+
incPatchNum(): semver\SemVersion
146126
```
147127

148128
---

exts/jphp-semver-ext/build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
dependencies {
22
provided project(":jphp-runtime")
33

4-
compile 'com.github.zafarkhaja:java-semver:0.9.0'
5-
4+
compile 'com.vdurmont:semver4j:2.2.0'
65

76
testCompile 'junit:junit:4.+'
87
testCompile project(':exts/jphp-zend-ext')

exts/jphp-semver-ext/package.php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
name: jphp-semver-ext
3-
version: 1.0.0
3+
version: 1.1.0
44
description: Library for working with versions using SemVer standard.
55

66

0 commit comments

Comments
 (0)