Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
cksac committed Sep 25, 2024
1 parent 1de36a5 commit 8e9b02e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Default:

```toml
[dependencies]
fake = { version = "2.9.2", features = ["derive"] }
fake = { version = "2.10.0", features = ["derive"] }
```

Available features:
Expand Down
2 changes: 1 addition & 1 deletion dummy_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dummy"
version = "0.7.0"
version = "0.8.0"
authors = ["cksac <[email protected]>"]
description = "Macros implementation of #[derive(Dummy)]"
keywords = ["faker", "data", "random"]
Expand Down
4 changes: 2 additions & 2 deletions fake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fake"
version = "2.9.2"
version = "2.10.0"
authors = ["cksac <[email protected]>"]
description = "An easy to use library for generating fake data like name, number, address, lorem, dates, etc."
keywords = ["faker", "data", "generator", "random"]
Expand All @@ -15,7 +15,7 @@ rust-version = "1.63"
all-features = true

[dependencies]
dummy = { version = "0.7", path = "../dummy_derive", optional = true }
dummy = { version = "0.8", path = "../dummy_derive", optional = true }
rand = "0.8"
random_color = { version = "0.8", optional = true }
deunicode = "1.4"
Expand Down
2 changes: 1 addition & 1 deletion fake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Default:

```toml
[dependencies]
fake = { version = "2.9.2", features = ["derive"] }
fake = { version = "2.10.0", features = ["derive"] }
```

Available features:
Expand Down
1 change: 0 additions & 1 deletion fake/src/impls/glam/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ impl Dummy<Faker> for Mat3 {
}
}


impl Dummy<Faker> for Mat4 {
fn dummy_with_rng<R: rand::Rng + ?Sized>(_f: &Faker, rng: &mut R) -> Self {
let col_1: Vec4 = Faker.fake_with_rng(rng);
Expand Down
15 changes: 14 additions & 1 deletion fake/tests/derive_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ mod field_options {

assert_eq!(o, MyEnum::Two { x: 89, y: 0, z: 1 });
}

#[test]
#[allow(dead_code)]
fn with_skip_variant() {
#[derive(Eq, PartialEq, Debug, Dummy)]
enum MyEnum {
One,
#[dummy(skip)]
Two,
}
let o: MyEnum = Faker.fake_with_rng(&mut rng());
assert_eq!(o, MyEnum::One);
}
}

mod unit_struct {
Expand Down Expand Up @@ -355,7 +368,7 @@ mod test_generic {

let o: MyEnum<u8, f32> = Faker.fake_with_rng(&mut rng());

assert_eq!(o, MyEnum::F2(0.8961542));
assert_eq!(o, MyEnum::F2(0.56344515));
}

#[test]
Expand Down

0 comments on commit 8e9b02e

Please sign in to comment.