File tree Expand file tree Collapse file tree 5 files changed +19
-8
lines changed
main/java/com/regexsolver/api
test/java/com/regexsolver/api Expand file tree Collapse file tree 5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ they were sets.
1818<dependency >
1919 <groupId >com.regexsolver.api</groupId >
2020 <artifactId >RegexSolver</artifactId >
21- <version >1.0.0 </version >
21+ <version >1.0.1 </version >
2222</dependency >
2323```
2424
2525### Gradle
2626
2727``` groovy
28- implementation "com.regexsolver.api:RegexSolver:1.0.0 "
28+ implementation "com.regexsolver.api:RegexSolver:1.0.1 "
2929```
3030
3131## Usage
@@ -35,7 +35,7 @@ In order to use the library you need to generate an API Token on our [Developer
3535``` java
3636public class Main {
3737 public static void main (String [] args ) throws IOException , ApiError {
38- RegexSolverApiWrapper . initialize(/* Your API token here -> */ " " );
38+ RegexSolver . initialize(/* Your API token here -> */ " " );
3939
4040 Term term1 = Term . Regex . of(" (abc|de|fg){2,}" );
4141 Term term2 = Term . Regex . of(" de.*" );
Original file line number Diff line number Diff line change 66
77 <groupId >com.regexsolver.api</groupId >
88 <artifactId >RegexSolver</artifactId >
9- <version >1.0.0 </version >
9+ <version >1.0.1 </version >
1010
1111 <url >https://regexsolver.com</url >
1212 <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 {
2727
2828 private final static String DEFAULT_BASE_URL = "https://api.regexsolver.com/" ;
2929
30- private final static String USER_AGENT = "RegexSolver Java / 1.0.0 " ;
30+ private final static String USER_AGENT = "RegexSolver Java / 1.0.1 " ;
3131
3232 private RegexApi api ;
3333
@@ -39,11 +39,11 @@ private RegexSolverApiWrapper() {
3939 initializeInternal (null , DEFAULT_BASE_URL );
4040 }
4141
42- public static void initialize (String token ) {
42+ static void initialize (String token ) {
4343 getInstance ().initializeInternal (token , DEFAULT_BASE_URL );
4444 }
4545
46- public static void initialize (String token , String baseUrl ) {
46+ static void initialize (String token , String baseUrl ) {
4747 getInstance ().initializeInternal (token , baseUrl );
4848 }
4949
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void setUp() throws Exception {
2424 server = new MockWebServer ();
2525 server .start ();
2626
27- RegexSolverApiWrapper .initialize ("TOKEN" , server .url ("/" ).toString ());
27+ RegexSolver .initialize ("TOKEN" , server .url ("/" ).toString ());
2828 }
2929
3030 @ After
You can’t perform that action at this time.
0 commit comments