mechanomeld 0.1.2-aarch64-linux → 0.1.3-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d42272b336f68fed23ee1d15e02e99c08d7556463faa4f4225336b1b74fe24b
4
- data.tar.gz: eeafc5c2d01ea793db19ac3fe0c29ae1732bbcfaf14a8ec92d28ec53a565880c
3
+ metadata.gz: 263bc88b0ede409672a1e3c01793a41198ce6061d52a091349cc86454bc8285f
4
+ data.tar.gz: de34a739c48a0e7e81e2b381b3da327ac03df3e86f194aeb041255363705b74d
5
5
  SHA512:
6
- metadata.gz: 4420b5375a0f668904af90f71577377c6498d92f1a0e8c17363f3215ae3a7475a934178f1cc854a1618dd080408c6e00c8a9298cd46f8f7eb383ec1330f50aa0
7
- data.tar.gz: fdddaff7404b565263d62a72c5ef4f51d8baf2b23cc8f00853fa20735d71b96b6c6e03a5d3cbe8dedb754a12a53a4b734d1cddc4ce78c5f746ba975095dd0fec
6
+ metadata.gz: '05479a4338538dde5580f91ab9d1cefbf81763e6e08c7ad65906cbf825a2a080bc1c35abc8f5e36f19de3cabd2bf1ded154a256e72841bfcd7d4ddd71176b43e'
7
+ data.tar.gz: efe99639a8fe689644024a46d363508b213a46a8d47b00db8570f3df7e6e2a851928f3d2558cb486394a91a95e7735e840cbf7db78e1be09b6817bfd8f82cffe
data/CHANGELOG.md CHANGED
@@ -5,23 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
- ## [0.1.2] - 2026-09-28
8
+ ## [0.1.3] - 2026-10-01
9
9
 
10
10
  ### Added
11
11
 
12
- - Document#diff(from_heads, to_heads = heads) returns Automerge's patches between two versions of a document, as Hashes (9c9bf6d)
12
+ - Document#up_to_date_with?(heads), the plain-language name for includes_heads?, which stays as an alias (9c1baa6)
13
13
 
14
- ## [0.1.1] - 2026-09-25
14
+ ## [0.1.2] - 2026-09-28
15
15
 
16
16
  ### Added
17
17
 
18
- - Document#load_incremental applies saved Automerge bytes into an existing document (d60a3eb)
19
- - Document.load_repo reads a document from automerge-repo's NodeFSStorageAdapter directory (d60a3eb)
20
- - Document#heads returns the document's change hashes as hex, matching JavaScript's Automerge.getHeads (d60a3eb)
21
- - Document#includes_heads?(heads) reports whether a document is at or past a set of heads (d60a3eb)
22
- - Mechanomeld::SyncState, the per-peer sync state, with encode and decode for persistence (eea3a51)
23
- - Document#generate_sync_message and #receive_sync_message, Automerge's per-document sync protocol (eea3a51)
24
-
25
- ### Changed
26
-
27
- - releases also publish an x86_64-linux-musl platform gem (159dd59)
18
+ - Document#diff(from_heads, to_heads = heads) returns Automerge's patches between two versions of a document, as Hashes (9c9bf6d)
data/README.md CHANGED
@@ -40,11 +40,11 @@ doc = Mechanomeld::Document.load_repo("automerge-repo-data", "4NtRZtd6yUtzf8qmEp
40
40
 
41
41
  ### Heads
42
42
 
43
- `Document#heads` is the document's version: the change hashes JavaScript's `Automerge.getHeads(doc)` returns, as lowercase hex, so the two sides compare with `==`. `Document#includes_heads?(heads)` is true when every hash in `heads` is a change the document already contains, so `heads` is the same version or an older one.
43
+ `Document#heads` is the document's version: the change hashes JavaScript's `Automerge.getHeads(doc)` returns, as lowercase hex, so the two sides compare with `==`. `Document#up_to_date_with?(heads)` is true when the document is at the version `heads` names, or a later one: every hash in `heads` is a change the document already contains. `includes_heads?` is the same method under its older name.
44
44
 
45
45
  ```ruby
46
- doc.heads # => ["9d434616e7af865757bad75cdebe4151bccf7e29214a71f2a65150846c2a4275"]
47
- doc.includes_heads?(heads) # => true when the document is at or past `heads`
46
+ doc.heads # => ["9d434616e7af865757bad75cdebe4151bccf7e29214a71f2a65150846c2a4275"]
47
+ doc.up_to_date_with?(heads) # => true when the document is at or past `heads`
48
48
  ```
49
49
 
50
50
  Both take hex. automerge-repo's `handle.heads()` returns base58 URL heads, which are not accepted; send `Automerge.getHeads(handle.doc())` from JavaScript instead. A hash that is not 32 bytes of hex raises `Mechanomeld::Error`; a well-formed hash the document does not have is simply not included. Like `save`, both commit any pending change first.
Binary file
Binary file
Binary file
Binary file
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Mechanomeld
4
4
  # Native methods (new, load, load_incremental, get, keys, length, put, delete, commit,
5
- # rollback, save, heads, includes_heads?, diff, generate_sync_message,
5
+ # rollback, save, heads, up_to_date_with?, diff, generate_sync_message,
6
6
  # receive_sync_message) are defined in ext/mechanomeld/src/document.rs.
7
7
  class Document
8
8
  def self.from(hash, actor_id: nil)
@@ -40,6 +40,8 @@ module Mechanomeld
40
40
  end
41
41
  alias_method :to_hash, :to_h
42
42
 
43
+ alias_method :includes_heads?, :up_to_date_with?
44
+
43
45
  def change(message: nil, timestamp: nil)
44
46
  yield self
45
47
  commit(message: message, timestamp: timestamp)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mechanomeld
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mechanomeld
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Jim Gay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-28 00:00:00.000000000 Z
11
+ date: 2026-10-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A native extension wrapping the Rust automerge crate so Ruby can load,
14
14
  read, create, and save Automerge documents shared with JavaScript.