yerba 0.2.1-arm-linux-gnu → 0.2.2-arm-linux-gnu
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/exe/arm-linux-gnu/yerba +0 -0
- data/ext/yerba/include/yerba.h +168 -0
- data/lib/yerba/version.rb +1 -1
- data/rust/Cargo.lock +1 -1
- data/rust/Cargo.toml +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04cb7cb71529f4bb7d91eb8ca7eca30e10600c4d4a05bbedadcbcfba9d5d58b7
|
|
4
|
+
data.tar.gz: 349318fbadfa16672d4d399cac3841da4c3b1aafa744536ac13ebe1d11f12c93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ae3060cfb626644a406af53fb53ac0e05255959afced8f72c141b67ad357a684c47754a0d011743229c08182526cdce9442193daba78d85878359e7520f52aa
|
|
7
|
+
data.tar.gz: 44b9badf93ea8ce0d15b19d6a833cfaf0d598c3d778e3e57d768fa259e700f7e10d24914b18d52c9c3d9a9bebc08a88294722aee4c3cd963c1d937b8eb6d075c
|
|
Binary file
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/* Generated by cbindgen — do not edit manually */
|
|
2
|
+
|
|
3
|
+
#include <stdbool.h>
|
|
4
|
+
#include <stdint.h>
|
|
5
|
+
#include <stddef.h>
|
|
6
|
+
|
|
7
|
+
#ifndef YERBA_H
|
|
8
|
+
#define YERBA_H
|
|
9
|
+
|
|
10
|
+
typedef enum YerbaNodeType {
|
|
11
|
+
YERBA_NODE_TYPE_SCALAR = 0,
|
|
12
|
+
YERBA_NODE_TYPE_MAP = 1,
|
|
13
|
+
YERBA_NODE_TYPE_SEQUENCE = 2,
|
|
14
|
+
YERBA_NODE_TYPE_NOT_FOUND = 3,
|
|
15
|
+
} YerbaNodeType;
|
|
16
|
+
|
|
17
|
+
typedef enum YerbaValueType {
|
|
18
|
+
YERBA_VALUE_TYPE_NULL = 0,
|
|
19
|
+
YERBA_VALUE_TYPE_BOOLEAN = 1,
|
|
20
|
+
YERBA_VALUE_TYPE_INTEGER = 2,
|
|
21
|
+
YERBA_VALUE_TYPE_FLOAT = 3,
|
|
22
|
+
YERBA_VALUE_TYPE_STRING = 4,
|
|
23
|
+
} YerbaValueType;
|
|
24
|
+
|
|
25
|
+
typedef struct Document Document;
|
|
26
|
+
|
|
27
|
+
typedef struct YerbaParseResult {
|
|
28
|
+
struct Document *document;
|
|
29
|
+
char *error;
|
|
30
|
+
} YerbaParseResult;
|
|
31
|
+
|
|
32
|
+
typedef struct YerbaTypedValue {
|
|
33
|
+
char *text;
|
|
34
|
+
enum YerbaValueType value_type;
|
|
35
|
+
} YerbaTypedValue;
|
|
36
|
+
|
|
37
|
+
typedef struct YerbaTypedList {
|
|
38
|
+
char *json;
|
|
39
|
+
uintptr_t length;
|
|
40
|
+
} YerbaTypedList;
|
|
41
|
+
|
|
42
|
+
typedef struct YerbaLocation {
|
|
43
|
+
uintptr_t start_offset;
|
|
44
|
+
uintptr_t end_offset;
|
|
45
|
+
uintptr_t start_line;
|
|
46
|
+
uintptr_t start_column;
|
|
47
|
+
uintptr_t end_line;
|
|
48
|
+
uintptr_t end_column;
|
|
49
|
+
} YerbaLocation;
|
|
50
|
+
|
|
51
|
+
typedef struct YerbaGetResult {
|
|
52
|
+
bool is_list;
|
|
53
|
+
enum YerbaNodeType node_type;
|
|
54
|
+
struct YerbaTypedValue single;
|
|
55
|
+
struct YerbaTypedList list;
|
|
56
|
+
struct YerbaLocation location;
|
|
57
|
+
char *key_name;
|
|
58
|
+
struct YerbaLocation key_location;
|
|
59
|
+
char *error;
|
|
60
|
+
} YerbaGetResult;
|
|
61
|
+
|
|
62
|
+
typedef struct YerbaResult {
|
|
63
|
+
bool success;
|
|
64
|
+
char *error;
|
|
65
|
+
} YerbaResult;
|
|
66
|
+
|
|
67
|
+
struct YerbaParseResult yerba_document_parse_file(const char *path);
|
|
68
|
+
|
|
69
|
+
struct YerbaParseResult yerba_document_parse(const char *content);
|
|
70
|
+
|
|
71
|
+
void yerba_document_free(struct Document *document);
|
|
72
|
+
|
|
73
|
+
struct YerbaGetResult yerba_document_get(const struct Document *document, const char *path);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Caller must free with yerba_string_free.
|
|
77
|
+
*/
|
|
78
|
+
char *yerba_document_get_value(const struct Document *document, const char *path);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Caller must free with yerba_string_free.
|
|
82
|
+
*/
|
|
83
|
+
char *yerba_document_get_values(const struct Document *document, const char *path);
|
|
84
|
+
|
|
85
|
+
int32_t yerba_document_get_quote_style(const struct Document *document, const char *path);
|
|
86
|
+
|
|
87
|
+
struct YerbaResult yerba_document_set_quote_style(struct Document *document,
|
|
88
|
+
const char *path,
|
|
89
|
+
int32_t style);
|
|
90
|
+
|
|
91
|
+
bool yerba_document_evaluate_condition(const struct Document *document,
|
|
92
|
+
const char *parent_path,
|
|
93
|
+
const char *condition);
|
|
94
|
+
|
|
95
|
+
bool yerba_document_exists(const struct Document *document, const char *path);
|
|
96
|
+
|
|
97
|
+
char *yerba_document_find(const struct Document *document,
|
|
98
|
+
const char *path,
|
|
99
|
+
const char *condition,
|
|
100
|
+
const char *select);
|
|
101
|
+
|
|
102
|
+
struct YerbaResult yerba_document_set(struct Document *document,
|
|
103
|
+
const char *path,
|
|
104
|
+
const char *value,
|
|
105
|
+
enum YerbaValueType value_type);
|
|
106
|
+
|
|
107
|
+
struct YerbaResult yerba_document_insert(struct Document *document,
|
|
108
|
+
const char *path,
|
|
109
|
+
const char *value,
|
|
110
|
+
const char *before,
|
|
111
|
+
const char *after,
|
|
112
|
+
int64_t at);
|
|
113
|
+
|
|
114
|
+
struct YerbaResult yerba_document_insert_object(struct Document *document,
|
|
115
|
+
const char *path,
|
|
116
|
+
const char *json,
|
|
117
|
+
const char *before,
|
|
118
|
+
const char *after,
|
|
119
|
+
int64_t at);
|
|
120
|
+
|
|
121
|
+
struct YerbaResult yerba_document_delete(struct Document *document, const char *path);
|
|
122
|
+
|
|
123
|
+
struct YerbaResult yerba_document_remove(struct Document *document,
|
|
124
|
+
const char *path,
|
|
125
|
+
const char *value);
|
|
126
|
+
|
|
127
|
+
struct YerbaResult yerba_document_remove_at(struct Document *document,
|
|
128
|
+
const char *path,
|
|
129
|
+
uintptr_t index);
|
|
130
|
+
|
|
131
|
+
struct YerbaResult yerba_document_rename(struct Document *document,
|
|
132
|
+
const char *source,
|
|
133
|
+
const char *dest);
|
|
134
|
+
|
|
135
|
+
struct YerbaResult yerba_document_sort(struct Document *document,
|
|
136
|
+
const char *path,
|
|
137
|
+
const char *by,
|
|
138
|
+
bool case_sensitive);
|
|
139
|
+
|
|
140
|
+
struct YerbaResult yerba_document_sort_keys(struct Document *document,
|
|
141
|
+
const char *path,
|
|
142
|
+
const char *order);
|
|
143
|
+
|
|
144
|
+
struct YerbaResult yerba_document_quote_style(struct Document *document,
|
|
145
|
+
const char *path,
|
|
146
|
+
const char *key_style,
|
|
147
|
+
const char *value_style);
|
|
148
|
+
|
|
149
|
+
struct YerbaResult yerba_document_blank_lines(struct Document *document,
|
|
150
|
+
const char *path,
|
|
151
|
+
uintptr_t count);
|
|
152
|
+
|
|
153
|
+
char *yerba_document_to_string(const struct Document *document);
|
|
154
|
+
|
|
155
|
+
void yerba_string_free(char *s);
|
|
156
|
+
|
|
157
|
+
void yerba_result_free(struct YerbaResult result);
|
|
158
|
+
|
|
159
|
+
void yerba_get_result_free(struct YerbaGetResult result);
|
|
160
|
+
|
|
161
|
+
struct YerbaTypedList yerba_glob_get(const char *glob_pattern, const char *path);
|
|
162
|
+
|
|
163
|
+
struct YerbaTypedList yerba_glob_find(const char *glob_pattern,
|
|
164
|
+
const char *path,
|
|
165
|
+
const char *condition,
|
|
166
|
+
const char *select);
|
|
167
|
+
|
|
168
|
+
#endif /* YERBA_H */
|
data/lib/yerba/version.rb
CHANGED
data/rust/Cargo.lock
CHANGED
data/rust/Cargo.toml
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yerba
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: arm-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Marco Roth
|
|
@@ -21,8 +21,10 @@ extra_rdoc_files: []
|
|
|
21
21
|
files:
|
|
22
22
|
- LICENSE.txt
|
|
23
23
|
- README.md
|
|
24
|
+
- exe/arm-linux-gnu/yerba
|
|
24
25
|
- exe/yerba
|
|
25
26
|
- ext/yerba/extconf.rb
|
|
27
|
+
- ext/yerba/include/yerba.h
|
|
26
28
|
- ext/yerba/yerba.c
|
|
27
29
|
- lib/yerba.rb
|
|
28
30
|
- lib/yerba/3.2/yerba.so
|