Skip to content

Commit

Permalink
Bump serde_yaml from 0.8.26 to 0.9.2 (#34)
Browse files Browse the repository at this point in the history
* Bump serde_yaml from 0.8.26 to 0.9.2

Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.8.26 to 0.9.2.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](dtolnay/serde-yaml@0.8.26...0.9.2)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add fixes against breaking changes

* Fix examples/example.yaml

* Fix README.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ken Matsui <[email protected]>
  • Loading branch information
dependabot[bot] and ken-matsui authored Aug 1, 2022
1 parent 1defe9b commit 3fc1002
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 52 deletions.
36 changes: 14 additions & 22 deletions 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
Expand Up @@ -14,7 +14,7 @@ documentation = "https://docs.rs/jyt"
clap = { version = "3.2", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
serde_yaml = "0.8"
serde_yaml = "0.9"
toml = { version = "0.5", features = ["preserve_order"] }
thiserror = "1.0"

Expand Down
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,15 @@ SUBCOMMANDS:

```yaml
$ cat ./examples/example.json | jyt json-to-yaml
---
title: TOML Example
owner:
name: Tom Preston-Werner
database:
server: 192.168.1.1
ports:
- 8000
- 8001
- 8002
- 8000
- 8001
- 8002
connection_max: 5000
enabled: true
```
Expand Down Expand Up @@ -178,16 +177,15 @@ $ cat ./examples/example.toml | jyt tj

```yaml
$ cat ./examples/example.toml | jyt ty
---
title: TOML Example
owner:
name: Tom Preston-Werner
database:
server: 192.168.1.1
ports:
- 8000
- 8001
- 8002
- 8000
- 8001
- 8002
connection_max: 5000
enabled: true
```
Expand All @@ -207,16 +205,15 @@ $ echo $?

```bash
$ cat ./examples/example.toml | wapm run jyt -- toml2yaml
---
title: TOML Example
owner:
name: Tom Preston-Werner
database:
server: 192.168.1.1
ports:
- 8000
- 8001
- 8002
- 8000
- 8001
- 8002
connection_max: 5000
enabled: true
```
Expand Down
7 changes: 3 additions & 4 deletions examples/example.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: TOML Example
owner:
name: Tom Preston-Werner
database:
server: 192.168.1.1
ports:
- 8000
- 8001
- 8002
- 8000
- 8001
- 8002
connection_max: 5000
enabled: true
23 changes: 10 additions & 13 deletions src/c_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,15 @@ pub(crate) mod tests {
}
}"#;

pub(crate) static YAML: &str = r#"---
title: TOML Example
pub(crate) static YAML: &str = r#"title: TOML Example
owner:
name: Tom Preston-Werner
database:
server: 192.168.1.1
ports:
- 8000
- 8001
- 8002
- 8000
- 8001
- 8002
connection_max: 5000
enabled: true
"#;
Expand Down Expand Up @@ -181,16 +180,15 @@ enabled = true

int main() {
const char* input =
"---\n"
"title: TOML Example\n"
"owner:\n"
" name: Tom Preston-Werner\n"
"database:\n"
" server: 192.168.1.1\n"
" ports:\n"
" - 8000\n"
" - 8001\n"
" - 8002\n"
" - 8000\n"
" - 8001\n"
" - 8002\n"
" connection_max: 5000\n"
" enabled: true\n";
char* output = to_json(Yaml, input);
Expand All @@ -211,16 +209,15 @@ enabled = true

int main() {
const char* input =
"---\n"
"title: TOML Example\n"
"owner:\n"
" name: Tom Preston-Werner\n"
"database:\n"
" server: 192.168.1.1\n"
" ports:\n"
" - 8000\n"
" - 8001\n"
" - 8002\n"
" - 8000\n"
" - 8001\n"
" - 8002\n"
" connection_max: 5000\n"
" enabled: true\n";
char* output = to_toml(Yaml, input);
Expand Down

0 comments on commit 3fc1002

Please sign in to comment.