Compare commits

...

3 Commits

@ -0,0 +1,33 @@
From c3cd77fbb9e374e3133648048a6f0fa560296993 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Sat, 14 Sep 2024 17:21:08 +0200
Subject: [PATCH] port from pulldown-cmark 0.9 to 0.11
---
src/markdown_deps.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/markdown_deps.rs b/src/markdown_deps.rs
index d39b0de..64d590a 100644
--- a/src/markdown_deps.rs
+++ b/src/markdown_deps.rs
@@ -1,6 +1,6 @@
#![cfg(feature = "markdown_deps_updated")]
use pulldown_cmark::CodeBlockKind::Fenced;
-use pulldown_cmark::{Event, Parser, Tag};
+use pulldown_cmark::{Event, Parser, Tag, TagEnd};
use semver::{Version, VersionReq};
use toml::Value;
@@ -78,7 +78,7 @@ fn find_toml_blocks(text: &str) -> Vec<CodeBlock> {
block.content.push_str(&code);
}
}
- Event::End(Tag::CodeBlock(_)) => {
+ Event::End(TagEnd::CodeBlock) => {
if let Some(block) = current_block.take() {
code_blocks.push(block);
}
--
2.46.0

@ -1,4 +1,4 @@
# Generated by rust2rpm 25
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
@ -12,6 +12,13 @@ Summary: Simple crate for ensuring that version numbers in README files a
License: MIT
URL: https://crates.io/crates/version-sync
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * bump pulldown-cmark dependency from 0.9 to 0.11:
# https://github.com/mgeisler/version-sync/commit/cc74ef5
# * bump toml dependency from 0.7.8 to 0.8:
# https://github.com/mgeisler/version-sync/commit/63ae792
Patch: version-sync-fix-metadata.diff
Patch: 0001-port-from-pulldown-cmark-0.9-to-0.11.patch
BuildRequires: cargo-rpm-macros >= 24

@ -0,0 +1,20 @@
--- version-sync-0.9.5/Cargo.toml 1970-01-01T00:00:01+00:00
+++ version-sync-0.9.5/Cargo.toml 2024-09-14T15:17:25.471687+00:00
@@ -32,7 +32,7 @@
default-features = false
[dependencies.pulldown-cmark]
-version = "0.9.1"
+version = "0.11"
optional = true
default-features = false
@@ -60,7 +60,7 @@
default-features = false
[dependencies.toml]
-version = "0.7.8"
+version = "0.8"
optional = true
[dependencies.url]
Loading…
Cancel
Save