Skip to content

Commit

Permalink
Merge pull request #84 from samgozman/xxx-updates
Browse files Browse the repository at this point in the history
Update rust to 1.72.0, dependencies and exmaples
  • Loading branch information
samgozman authored Sep 8, 2023
2 parents e7b1fc0 + e05678f commit 6b3dc75
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions-rs/[email protected]
with:
toolchain: 1.68.0
toolchain: 1.72.0
components: rustfmt

- name: Run rustfmt
Expand All @@ -33,7 +33,7 @@ jobs:
- uses: actions-rs/[email protected]
with:
components: clippy
toolchain: 1.68.0
toolchain: 1.72.0
- name: Run clippy
run: cargo clippy --locked --all-targets --all-features --workspace -- -D warnings
timeout-minutes: 10
Expand All @@ -51,7 +51,7 @@ jobs:
- uses: actions-rs/[email protected]
with:
name: test-${{matrix.os}}
toolchain: 1.68.0
toolchain: 1.72.0

- name: Run unit tests
run: cargo test --locked --all-targets --workspace --all-features
Expand Down
60 changes: 23 additions & 37 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rvp"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
license = "MIT"
readme = "README.md"
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/samgozman/rvp"
authors = ["Sam Gozman <[email protected]>"]
description = "Remote Value Parser - CLI tool for parsing string values from static web pages"
keywords = ["rvp", "parser", "cli"]
rust-version = "1.68.0"
rust-version = "1.72.0"
include = ["src/**/*", "LICENSE", "README.md"]

[[bin]]
Expand All @@ -21,17 +21,17 @@ lto = true
strip = true

[dependencies]
clap = { version = "4.3.23", features = ["derive"] }
anyhow = "1.0.72"
clap = { version = "4.4.2", features = ["derive"] }
anyhow = "1.0.75"
paste = "1.0.14"
tokio = { version = "1.32.0", features = ["test-util", "macros", "rt-multi-thread"] }
validator = { version = "0.16.1", features = ["derive"] }
reqwest = "0.11.20"
scraper = "0.17.1"
inquire = "0.6.2"
serde = { version = "1.0.183", features = ["derive"] }
toml = "0.7.6"
serde = { version = "1.0.188", features = ["derive"] }
toml = "0.7.7"
serde_json = "1.0.105"
rand = "0.8.5"
comfy-table = "6.2.0"
comfy-table = "7.0.1"
regex = "1.9.5"
2 changes: 1 addition & 1 deletion examples/stock.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Gather stock information from different sources"
url = "https://finviz.com/quote.ashx?t=%%"

[[resources.selectors]]
path = "body > div.content > div.ticker-wrapper tbody > tr > td > table.fullview-title > tbody > tr:nth-child(2) > td > a > b"
path = "body > div.content > div.ticker-wrapper.gradient-fade > div.fv-container > table > tbody > tr > td > div > table:nth-child(1) > tbody > tr > td > table.fullview-title > tbody > tr.text-blue-500 > td > h1 > span > a > b"
name = "Name"
parsed_type = "String"

Expand Down

0 comments on commit 6b3dc75

Please sign in to comment.