Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechen116 committed Oct 12, 2023
1 parent 98e336f commit 61654b9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 355 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
distribution: 'temurin'
- uses: gradle/gradle-build-action@v2
- run: gradle wrapper
- run: ./gradlew test
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ Simple encode & decode:

```java
Sqids sqids=Sqids.builder().build();
String id = sqids.encode(Arrays.asList(1L,2L,3L)); // "86Rf07"
List<Long> numbers = sqids.decode(id); // [1, 2, 3]
String id=sqids.encode(Arrays.asList(1L,2L,3L)); // "86Rf07"
List<Long> numbers=sqids.decode(id); // [1, 2, 3]
```

> **Note**
Expand All @@ -61,8 +61,8 @@ Enforce a *minimum* length for IDs:
Sqids sqids=Sqids.builder()
.minLength(10)
.build();
String id = sqids.encode(Arrays.asList(1L,2L,3L)); // "86Rf07xd4z"
List<Long> numbers = sqids.decode(id); // [1, 2, 3]
String id=sqids.encode(Arrays.asList(1L,2L,3L)); // "86Rf07xd4z"
List<Long> numbers=sqids.decode(id); // [1, 2, 3]
```

Randomize IDs by providing a custom alphabet:
Expand All @@ -71,8 +71,8 @@ Randomize IDs by providing a custom alphabet:
Sqids sqids=Sqids.builder()
.alphabet("FxnXM1kBN6cuhsAvjW3Co7l2RePyY8DwaU04Tzt9fHQrqSVKdpimLGIJOgb5ZE")
.build();
String id = sqids.encode(Arrays.asList(1L,2L,3L)); // "B4aajs"
List<Long> numbers = sqids.decode(id); // [1, 2, 3]
String id=sqids.encode(Arrays.asList(1L,2L,3L)); // "B4aajs"
List<Long> numbers=sqids.decode(id); // [1, 2, 3]
```

Prevent specific words from appearing anywhere in the auto-generated IDs:
Expand All @@ -81,8 +81,8 @@ Prevent specific words from appearing anywhere in the auto-generated IDs:
Sqids sqids=Sqids.builder()
.blockList(new HashSet<>(Arrays.asList("86Rf07")))
.build();
String id = sqids.encode(Arrays.asList(1L,2L,3L)); // "se8ojk"
List<Long> numbers = sqids.decode(id); // [1, 2, 3]
String id=sqids.encode(Arrays.asList(1L,2L,3L)); // "se8ojk"
List<Long> numbers=sqids.decode(id); // [1, 2, 3]
```

## 📝 License
Expand Down
7 changes: 0 additions & 7 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

248 changes: 0 additions & 248 deletions gradlew

This file was deleted.

92 changes: 0 additions & 92 deletions gradlew.bat

This file was deleted.

0 comments on commit 61654b9

Please sign in to comment.