gesttalt 0.7.5-x86_64-linux → 0.7.7-x86_64-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: 646a3a701954af4121cf6a72a3e6d65b26ad9eda5d7654a40c36bca023f6696f
4
- data.tar.gz: 40409ea4e23b8f9fe754757f1de8abe9c406dee408f804b84976fdb66bb9b00a
3
+ metadata.gz: 0b046efc1f9abec70d131312f42bea16e02cb33d11fe2f0dd4845581360f046e
4
+ data.tar.gz: d7aa834f3efdb8998103b7d6b02e2ebecbceb6fcfe26d2f43b9031e5e601e813
5
5
  SHA512:
6
- metadata.gz: 95a99869ebf2426ca8c9a37e8ed0be1eeafa0da24a8bfec4d8df43dc4476bef8954274e861ebe8117ec6dc2805e6926236270b8ae1b5ef98b5680e0bf4a4e775
7
- data.tar.gz: 156134d5cbd628447173aeb79aa5c6738adc85428a5049b9224c3995f2abc70ec515b5ee205446b71722c32c43abd95fc6b97bab76ed599f53a7d361bc3ee828
6
+ metadata.gz: 13fb201e0e18850db52df5f7fea99e6201d312176eb141fd8e89f625cf8c6305d8b64187494b1ef124b6d9a515d5c32715901db672519991287d95feaf78bc03
7
+ data.tar.gz: cfc4d7d7b66d94b9b2e786cd1ac171d174c9bbbeae3709796dfb745879d18c4a582f1540f0f8d0c0c7cba65f66a060a65d30391abf9620668ee5d7fe2e284d0c
data/README.md CHANGED
@@ -19,12 +19,25 @@ timestamp = 1735148400
19
19
  path = Gesttalt::Snippets.create(project_dir, timestamp, "Example snippet", "const x = 1;", "example.zig")
20
20
  puts path
21
21
 
22
+ snippets = Gesttalt::Snippets.list(project_dir)
22
23
  snippet = Gesttalt::Snippets.read(project_dir, timestamp)
23
24
  puts snippet["description"]
24
25
 
25
26
  Gesttalt::Snippets.update(project_dir, timestamp, "Updated", nil, nil)
26
27
 
27
28
  Gesttalt::Snippets.delete(project_dir, timestamp)
29
+
30
+ post_path = Gesttalt::Posts.create(project_dir, "hello-world", "Hello", "My first post", "zig, oauth2", nil)
31
+ posts = Gesttalt::Posts.list(project_dir)
32
+ post = Gesttalt::Posts.read(project_dir, "hello-world")
33
+ Gesttalt::Posts.update(project_dir, "hello-world", "Updated title", nil, nil, nil, nil)
34
+ Gesttalt::Posts.delete(project_dir, "hello-world")
35
+
36
+ note_path = Gesttalt::Notes.create(project_dir, timestamp, nil, "Quick update")
37
+ notes = Gesttalt::Notes.list(project_dir)
38
+ note = Gesttalt::Notes.read(project_dir, timestamp.to_s)
39
+ Gesttalt::Notes.update(project_dir, timestamp.to_s, nil, false, "Edited")
40
+ Gesttalt::Notes.delete(project_dir, timestamp.to_s)
28
41
  ```
29
42
 
30
43
  ## Development
data/lib/gesttalt.rb CHANGED
@@ -1,7 +1,9 @@
1
- # Gesttalt - Snippets CRUD bindings powered by Zig
1
+ # Gesttalt - Content CRUD bindings powered by Zig
2
2
  #
3
3
  # @example Basic usage
4
4
  # require 'gesttalt'
5
5
  # Gesttalt::Snippets.create(".", 1735148400, "Example snippet", "const x = 1;", "example.zig")
6
+ # Gesttalt::Posts.create(".", "hello-world", "Hello", "My first post", nil, nil)
7
+ # Gesttalt::Notes.create(".", 1735148400, nil, "Quick update")
6
8
  #
7
9
  require "gesttalt_ext"
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gesttalt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.7
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Pedro Pinera Buendia