Repository navigation
v0.7.2
Added
- Add
Node#sourcefor accessing CST text directly from Rust by @marcoroth in c909cefDocument#source(selector)navigates to a node and returns its original YAML text in a single FFI call, without serializing the whole documentMap#to_sandSequence#to_susesourcewhen connected to a document, returning the original YAML text with formatting preservedScalar#to_scontinues to return the plain value (e.g.,"Alice"not"\"Alice\"")- Use
scalar.sourceto get the CST text with quotes (e.g.,"\"Alice\"")
- Add stale file detection to
Yerba::Documentby @marcoroth in 6ce421b- Track file mtime on load and check before save to prevent overwriting external changes
Document#stale?returnstrueif the file was modified since it was loadedDocument#save!andDocument#apply!raiseYerba::StaleFileErrorif the file was modified externally@loaded_mtimeis updated after every successful write- Add
Yerba::StaleFileErrorerror class
Commits
Full Changelog: v0.7.1...v0.7.2
Full Changelog: v0.7.1...v0.7.2