Skip to content

Commit

Permalink
bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ddboline committed Sep 21, 2024
1 parent 0104fe3 commit 74714d8
Show file tree
Hide file tree
Showing 20 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "garmin_rust"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand All @@ -25,7 +25,7 @@ garmin_models = {path="garmin_models"}
garmin_utils = {path="garmin_utils"}
log = "0.4"
stack-string = { git = "https://github.com/ddboline/stack-string-rs.git", features=["postgres_types"], tag="0.9.3" }
tempdir = "0.3"
tempfile = "3.12"
tokio = {version="1.38", features=["rt", "macros", "rt-multi-thread"]}

[workspace]
Expand Down
2 changes: 1 addition & 1 deletion fitbit_bot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fitbit_bot"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand Down
6 changes: 3 additions & 3 deletions fitbit_lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fitbit_lib"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand All @@ -12,7 +12,7 @@ avro-rs = {version = "0.13", features = ["snappy"]}
base64 = "0.22"
bytes = "1.0"
crossbeam-utils = "0.8"
derive_more = "0.99"
derive_more = {version="1.0", features=["full"]}
fitparser = {git="https://github.com/ddboline/fitparse-rs.git", branch="time-0.3-0.5.2"}
futures = "0.3"
garmin_lib = {path = "../garmin_lib"}
Expand All @@ -23,7 +23,7 @@ itertools = "0.13"
log = "0.4"
maplit = "1.0"
once_cell = "1.0"
polars = {version="0.41", features=["temporal", "parquet", "lazy"]}
polars = {version="0.43", features=["temporal", "parquet", "lazy"]}
postgres_query = {git = "https://github.com/ddboline/rust-postgres-query", tag = "0.3.8", features=["deadpool"]}
rand = "0.8"
rayon = "1.5"
Expand Down
2 changes: 1 addition & 1 deletion fitbit_lib/src/fitbit_archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ fn write_fitbit_heartrate_parquet(
let existing_entries = df.shape().0;
let updated_df = df
.vstack(&new_df)?
.unique(None, UniqueKeepStrategy::First, None)?;
.unique_stable(None, UniqueKeepStrategy::First, None)?;
let new_entries = updated_df.shape().0;
let updated_count = new_entries - existing_entries;
if updated_count == 0 {
Expand Down
6 changes: 3 additions & 3 deletions garmin_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "garmin_cli"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand All @@ -10,7 +10,7 @@ edition = "2018"
anyhow = "1.0"
aws-config = {version="1.0", features=["behavior-version-latest"]}
clap = {version="4.0", features=["derive"]}
derive_more = "0.99"
derive_more = {version="1.0", features=["full"]}
fitbit_lib = {path="../fitbit_lib"}
futures = "0.3"
garmin_lib = {path="../garmin_lib"}
Expand All @@ -27,7 +27,7 @@ regex = "1.4"
serde_json = "1.0"
smallvec = "1.6"
strava_lib = {path="../strava_lib"}
tempdir = "0.3"
tempfile = "3.12"
time = {version="0.3", features=["serde-human-readable", "macros", "formatting", "parsing"]}
time-tz = {version="2.0", features=["system"]}
tokio = {version="1.38", features=["rt", "macros", "rt-multi-thread"]}
Expand Down
4 changes: 2 additions & 2 deletions garmin_cli/src/garmin_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::{
sync::Arc,
};
use stdout_channel::StdoutChannel;
use tempdir::TempDir;
use tempfile::TempDir;
use time::Date;
use tokio::task::spawn_blocking;

Expand Down Expand Up @@ -350,7 +350,7 @@ impl GarminCli {
stdout: &StdoutChannel<StackString>,
config: &GarminConfig,
) -> Result<Vec<DateTimeWrapper>, Error> {
let tempdir = TempDir::new("garmin_zip")?;
let tempdir = TempDir::new()?;
let ziptmpdir = tempdir.path();

let mut filenames = filenames
Expand Down
4 changes: 2 additions & 2 deletions garmin_cli/src/garmin_cli_opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use log::info;
use refinery::embed_migrations;
use stack_string::{format_sstr, StackString};
use std::{collections::BTreeSet, ffi::OsStr, path::PathBuf};
use tempdir::TempDir;
use tempfile::TempDir;
use time::{macros::format_description, Date, Duration, OffsetDateTime};
use time_tz::OffsetDateTimeExt;
use tokio::{
Expand Down Expand Up @@ -602,7 +602,7 @@ impl GarminCliOpts {
cli.config.download_directory.join(format_sstr!("{date}"))
};
if connect_wellness_file.exists() {
let tempdir = TempDir::new("garmin_zip")?;
let tempdir = TempDir::new()?;
let ziptmpdir = tempdir.path().to_path_buf();
let wellness_files = spawn_blocking(move || {
extract_zip_from_garmin_connect_multiple(&connect_wellness_file, &ziptmpdir)
Expand Down
2 changes: 1 addition & 1 deletion garmin_connect_lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "garmin_connect_lib"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand Down
8 changes: 4 additions & 4 deletions garmin_http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "garmin_http"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand All @@ -9,7 +9,7 @@ anyhow = "1.0"
authorized_users = { git = "https://github.com/ddboline/auth_server_rust.git", tag="0.11.15"}
base64 = "0.22"
cookie = {version="0.18", features=["percent-encode"]}
derive_more = "0.99"
derive_more = {version="1.0", features=["full"]}
dioxus = "0.5"
dioxus-core = "0.5"
dioxus-ssr = "0.5"
Expand All @@ -21,7 +21,7 @@ garmin_models = {path="../garmin_models"}
garmin_parser = {path="../garmin_parser"}
garmin_reports = {path="../garmin_reports"}
garmin_utils = {path="../garmin_utils"}
handlebars = "5.1"
handlebars = "6.1"
itertools = "0.13"
log = "0.4"
maplit = "1.0"
Expand All @@ -37,7 +37,7 @@ serde_json = "1.0"
serde_yaml = "0.9"
stack-string = { git = "https://github.com/ddboline/stack-string-rs.git", features=["postgres_types", "rweb-openapi"], tag="0.9.3" }
strava_lib = {path="../strava_lib/"}
tempdir = "0.3"
tempfile = "3.12"
thiserror = "1.0"
time = {version="0.3", features=["serde-human-readable", "macros", "formatting", "parsing"]}
time-tz = {version="2.0", features=["system"]}
Expand Down
4 changes: 2 additions & 2 deletions garmin_http/src/garmin_rust_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use rweb_helper::{
use serde::{Deserialize, Serialize};
use stack_string::{format_sstr, StackString};
use std::convert::Infallible;
use tempdir::TempDir;
use tempfile::TempDir;
use tokio::{fs::File, io::AsyncWriteExt, task::spawn_blocking};
use tokio_stream::StreamExt;

Expand Down Expand Up @@ -298,7 +298,7 @@ async fn garmin_upload_body(
state: AppState,
session: Session,
) -> HttpResult<StackString> {
let tempdir = TempDir::new("garmin")?;
let tempdir = TempDir::new()?;
let tempdir_str = tempdir.path().to_string_lossy();
let mut fname = StackString::new();

Expand Down
4 changes: 2 additions & 2 deletions garmin_lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "garmin_lib"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

[dependencies]
anyhow = "1.0"
bytes = "1.0"
derive_more = "0.99"
derive_more = {version="1.0", features=["full"]}
dirs = "5.0"
dotenv = "0.15"
envy = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions garmin_lib/src/garmin_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
use stack_string::StackString;
use std::{
convert::{TryFrom, TryInto},
ops::Deref,
ops,
path::{Path, PathBuf},
sync::Arc,
};
Expand Down Expand Up @@ -229,7 +229,7 @@ impl GarminConfig {
}
}

impl Deref for GarminConfig {
impl ops::Deref for GarminConfig {
type Target = GarminConfigInner;

fn deref(&self) -> &Self::Target {
Expand Down
2 changes: 1 addition & 1 deletion garmin_models/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "garmin_models"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion garmin_parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "garmin_parser"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions garmin_reports/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "garmin_reports"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0"
derive_more = "0.99"
derive_more = {version="1.0", features=["full"]}
futures = "0.3"
garmin_lib = {path="../garmin_lib"}
garmin_models = {path="../garmin_models"}
Expand Down
4 changes: 2 additions & 2 deletions garmin_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "garmin_utils"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2021"

Expand All @@ -23,7 +23,7 @@ serde = {version="1.0", features=["derive"]}
smallvec = "1.6"
stack-string = { git = "https://github.com/ddboline/stack-string-rs.git", features=["postgres_types"], tag="0.9.3" }
subprocess = "0.2"
tempdir = "0.3"
tempfile = "3.12"
time = {version="0.3", features=["serde-human-readable", "macros", "formatting", "parsing"]}
time-tz = {version="2.0", features=["system"]}
tokio = {version="1.38", features=["rt", "macros", "rt-multi-thread"]}
Expand Down
4 changes: 2 additions & 2 deletions garmin_utils/src/garmin_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ pub fn get_random_string() -> StackString {
mod tests {
use anyhow::Error;
use std::path::Path;
use tempdir::TempDir;
use tempfile::TempDir;

use crate::garmin_util::extract_zip;

#[test]
fn test_extract_zip() -> Result<(), Error> {
let d = TempDir::new("zip_test")?;
let d = TempDir::new()?;
let p = d.path();

let zip_path = Path::new("../tests/data/test.zip");
Expand Down
4 changes: 2 additions & 2 deletions race_result_analysis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "race_result_analysis"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand All @@ -15,7 +15,7 @@ garmin_models = {path="../garmin_models"}
garmin_utils = {path="../garmin_utils"}
itertools = "0.13"
log = "0.4"
ndarray = "0.15"
ndarray = "0.16"
parking_lot = "0.12"
postgres_query = {git = "https://github.com/ddboline/rust-postgres-query", tag = "0.3.8", features=["deadpool"]}
rusfun = { git = "https://github.com/ddboline/rusfun.git" }
Expand Down
4 changes: 2 additions & 2 deletions src/import_garmin_connect_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use anyhow::Error;
use clap::Parser;
use std::{collections::BTreeSet, path::PathBuf};
use tempdir::TempDir;
use tempfile::TempDir;

use fitbit_lib::fitbit_heartrate::{
import_garmin_heartrate_file, import_garmin_json_file, FitbitHeartRate,
Expand Down Expand Up @@ -57,7 +57,7 @@ async fn main() -> Result<(), Error> {
}
}
JsonImportOpts::Heartrates { file } => {
let tempdir = TempDir::new("garmin_zip")?;
let tempdir = TempDir::new()?;
let ziptmpdir = tempdir.path();
let files = extract_zip_from_garmin_connect_multiple(&file, ziptmpdir)?;
for file in files {
Expand Down
2 changes: 1 addition & 1 deletion strava_lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "strava_lib"
version = "0.14.19"
version = "0.14.20"
authors = ["Daniel Boline <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit 74714d8

Please sign in to comment.