taskchampion-rb 0.9.2 → 0.9.3

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.
@@ -12,7 +12,7 @@ crate-type = ["cdylib"]
12
12
  [dependencies]
13
13
  magnus = { version = "0.7", features = ["rb-sys"] }
14
14
  rb-sys = "0.9.103"
15
- taskchampion = "2.0"
15
+ taskchampion = { version = "2.0", default-features = false, features = ["server-sync", "server-gcp"] }
16
16
  chrono = "0.4"
17
17
  uuid = "1.0"
18
18
 
@@ -303,6 +303,15 @@ impl Task {
303
303
  Ok(())
304
304
  }
305
305
 
306
+ fn set_modified(&self, modified: Value, operations: &crate::operations::Operations) -> Result<(), Error> {
307
+ let mut task = self.0.get_mut()?;
308
+ let modified_datetime = ruby_to_datetime(modified)?;
309
+ operations.with_inner_mut(|ops| {
310
+ task.set_modified(modified_datetime, ops)
311
+ })?;
312
+ Ok(())
313
+ }
314
+
306
315
  fn set_value(&self, property: String, value: Value, operations: &crate::operations::Operations) -> Result<(), Error> {
307
316
  if property.trim().is_empty() {
308
317
  return Err(Error::new(
@@ -480,6 +489,7 @@ pub fn init(module: &RModule) -> Result<(), Error> {
480
489
  class.define_method("add_annotation_with_timestamp", method!(Task::add_annotation_with_timestamp, 3))?;
481
490
  class.define_method("set_due", method!(Task::set_due, 2))?;
482
491
  class.define_method("set_entry", method!(Task::set_entry, 2))?;
492
+ class.define_method("set_modified", method!(Task::set_modified, 2))?;
483
493
  class.define_method("set_value", method!(Task::set_value, 3))?;
484
494
  class.define_method("set_timestamp", method!(Task::set_timestamp, 3))?;
485
495
  class.define_method("get_timestamp", method!(Task::get_timestamp, 1))?;
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Taskchampion
4
- VERSION = "0.9.2"
4
+ VERSION = "0.9.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taskchampion-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Case
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-23 00:00:00.000000000 Z
11
+ date: 2026-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys
@@ -41,10 +41,10 @@ files:
41
41
  - Cargo.toml
42
42
  - README.md
43
43
  - Rakefile
44
- - TaskchampionRbErrors.md
45
44
  - docs/ANNOTATION_IMPLEMENTATION.md
46
45
  - docs/API_REFERENCE.md
47
46
  - docs/THREAD_SAFETY.md
47
+ - docs/TaskchampionRbErrors.md
48
48
  - docs/breakthrough.md
49
49
  - docs/date_conversion_analysis.md
50
50
  - docs/description.md