Skip to content

Commit

Permalink
chore(release): prepare for v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 26, 2023
1 parent ec7a81e commit a44ae94
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 3 deletions.
70 changes: 70 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,76 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.13.0] - 2023-08-26

### Added

- Support handling spaces in filenames (#107)

Now you can replace the whitespaces with either underscore or encoded space (`%20`) character in the filenames.

For example:

```toml
[server]
handle_spaces = "replace"
```

```sh
$ curl -F "file=@test file.txt" <server_address>

<server_address>/test_file.txt
```

Or you can use encoded spaces:

```toml
[server]
handle_spaces = "encode"
```

```sh
$ curl -F "file=@test file.txt" <server_address>

<server_address>/test%20file.txt
```

Please note that `random_url` should not be configured to use the original file names.

### Changed

- Improve random_url config handling (#122)

`[paste].random_url.enabled` is deprecated. You can now disable random URLs by commenting out `[paste].random_url`.

```toml
# enabled
random_url = { type = "petname", words = 2, separator = "-" }

# disabled
# random_url = { type = "petname", words = 2, separator = "-" }
```

- Replace unmaintained actions (#116)
- Bump Shuttle to `0.24.0`
- Bump dependencies

### Fixed

- Don't log invalid token in release builds (#112)

Before, invalid tokens were logged as follows:

```
[2023-08-13T19:24:30Z WARN rustypaste::auth] authorization failure for a.b.c.d (header: invalid_token)
```

Now, we print the token only in debug mode. In release mode, the log entry will look like this:

```
[2023-08-13T19:24:30Z WARN rustypaste::auth] authorization failure for a.b.c.d
```

## [0.12.1] - 2023-08-11

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustypaste"
version = "0.12.1"
version = "0.13.0"
edition = "2021"
description = "A minimal file upload/pastebin service"
authors = ["Orhun Parmaksız <[email protected]>"]
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ Here you can read the blog post about how it is deployed on Shuttle: [https://bl
- supports overriding and blacklisting
- supports forcing to download via `?download=true`
- no duplicate uploads (optional)
- listing files
- custom landing page
- Single binary
- [binary releases](https://github.com/orhun/rustypaste/releases)
- Simple configuration
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ expose_list = false
# "super_secret_token1",
# "super_secret_token2",
#]
handle_spaces = "replace" # or "replace"
handle_spaces = "replace" # or "encode"

[landing_page]
text = """
Expand Down

0 comments on commit a44ae94

Please sign in to comment.