File tree 5 files changed +19
-8
lines changed
main/java/com/regexsolver/api
test/java/com/regexsolver/api
5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ they were sets.
18
18
<dependency >
19
19
<groupId >com.regexsolver.api</groupId >
20
20
<artifactId >RegexSolver</artifactId >
21
- <version >1.0.0 </version >
21
+ <version >1.0.1 </version >
22
22
</dependency >
23
23
```
24
24
25
25
### Gradle
26
26
27
27
``` groovy
28
- implementation "com.regexsolver.api:RegexSolver:1.0.0 "
28
+ implementation "com.regexsolver.api:RegexSolver:1.0.1 "
29
29
```
30
30
31
31
## Usage
@@ -35,7 +35,7 @@ In order to use the library you need to generate an API Token on our [Developer
35
35
``` java
36
36
public class Main {
37
37
public static void main (String [] args ) throws IOException , ApiError {
38
- RegexSolverApiWrapper . initialize(/* Your API token here -> */ " " );
38
+ RegexSolver . initialize(/* Your API token here -> */ " " );
39
39
40
40
Term term1 = Term . Regex . of(" (abc|de|fg){2,}" );
41
41
Term term2 = Term . Regex . of(" de.*" );
Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.regexsolver.api</groupId >
8
8
<artifactId >RegexSolver</artifactId >
9
- <version >1.0.0 </version >
9
+ <version >1.0.1 </version >
10
10
11
11
<url >https://regexsolver.com</url >
12
12
<organization >
Original file line number Diff line number Diff line change
1
+ package com .regexsolver .api ;
2
+
3
+ public final class RegexSolver {
4
+ public static void initialize (String token ) {
5
+ RegexSolverApiWrapper .initialize (token );
6
+ }
7
+
8
+ public static void initialize (String token , String baseUrl ) {
9
+ RegexSolverApiWrapper .initialize (token , baseUrl );
10
+ }
11
+ }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ final class RegexSolverApiWrapper {
27
27
28
28
private final static String DEFAULT_BASE_URL = "https://api.regexsolver.com/" ;
29
29
30
- private final static String USER_AGENT = "RegexSolver Java / 1.0.0 " ;
30
+ private final static String USER_AGENT = "RegexSolver Java / 1.0.1 " ;
31
31
32
32
private RegexApi api ;
33
33
@@ -39,11 +39,11 @@ private RegexSolverApiWrapper() {
39
39
initializeInternal (null , DEFAULT_BASE_URL );
40
40
}
41
41
42
- public static void initialize (String token ) {
42
+ static void initialize (String token ) {
43
43
getInstance ().initializeInternal (token , DEFAULT_BASE_URL );
44
44
}
45
45
46
- public static void initialize (String token , String baseUrl ) {
46
+ static void initialize (String token , String baseUrl ) {
47
47
getInstance ().initializeInternal (token , baseUrl );
48
48
}
49
49
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void setUp() throws Exception {
24
24
server = new MockWebServer ();
25
25
server .start ();
26
26
27
- RegexSolverApiWrapper .initialize ("TOKEN" , server .url ("/" ).toString ());
27
+ RegexSolver .initialize ("TOKEN" , server .url ("/" ).toString ());
28
28
}
29
29
30
30
@ After
You can’t perform that action at this time.
0 commit comments