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 +4 -4
- data/README.md +13 -0
- data/lib/gesttalt.rb +3 -1
- data/lib/gesttalt_ext/gesttalt_ext.so +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b046efc1f9abec70d131312f42bea16e02cb33d11fe2f0dd4845581360f046e
|
|
4
|
+
data.tar.gz: d7aa834f3efdb8998103b7d6b02e2ebecbceb6fcfe26d2f43b9031e5e601e813
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 -
|
|
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
|