Skip to content

Commit

Permalink
chore: Prepare 0.10.0 (davidcole1340#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptondereau authored Dec 22, 2022
1 parent 11e0998 commit 7ed31eb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.10.0
- feat: Add PHP 8.2 support by @ptondereau [#212]

[#212]: https://github.com/davidcole1340/ext-php-rs/pull/212

## Version 0.9.0

- ci+docs: honour PHP_CONFIG & rebuild automatically when env vars change by @julius [#210]
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repository = "https://github.com/davidcole1340/ext-php-rs"
homepage = "https://github.com/davidcole1340/ext-php-rs"
license = "MIT OR Apache-2.0"
keywords = ["php", "ffi", "zend"]
version = "0.9.0"
version = "0.10.0"
authors = ["David Cole <[email protected]>"]
edition = "2018"
categories = ["api-bindings"]
Expand All @@ -17,7 +17,7 @@ parking_lot = "0.12.1"
cfg-if = "1.0"
once_cell = "1.8.0"
anyhow = { version = "1", optional = true }
ext-php-rs-derive = { version = "=0.9.0", path = "./crates/macros" }
ext-php-rs-derive = { version = "=0.10.0", path = "./crates/macros" }

[dev-dependencies]
skeptic = "0.13"
Expand Down
2 changes: 1 addition & 1 deletion crates/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Derive macros for ext-php-rs."
repository = "https://github.com/davidcole1340/ext-php-rs"
homepage = "https://github.com/davidcole1340/ext-php-rs"
license = "MIT OR Apache-2.0"
version = "0.9.0"
version = "0.10.0"
authors = ["David Cole <[email protected]>"]
edition = "2018"

Expand Down
9 changes: 4 additions & 5 deletions crates/macros/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,9 @@ mod tests {

#[test]
fn test_rename_php_methods() {
for &(original, camel, snake) in &[("get_name", "getName", "get_name")] {
assert_eq!(original, RenameRule::None.rename(original));
assert_eq!(camel, RenameRule::Camel.rename(original));
assert_eq!(snake, RenameRule::Snake.rename(original));
}
let &(original, camel, snake) = &("get_name", "getName", "get_name");
assert_eq!(original, RenameRule::None.rename(original));
assert_eq!(camel, RenameRule::Camel.rename(original));
assert_eq!(snake, RenameRule::Snake.rename(original));
}
}

0 comments on commit 7ed31eb

Please sign in to comment.