cybrid_api_organization_ruby 0.56.5 → 0.56.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +5 -5
- data/cybrid_api_organization_ruby.gemspec +1 -1
- data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
- data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/version.rb +2 -2
- data/lib/cybrid_api_organization_ruby.rb +1 -1
- data/spec/api/organizations_organization_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/error_response_organization_model_spec.rb +1 -1
- data/spec/models/organization_organization_model_spec.rb +1 -1
- data/spec/models/patch_organization_organization_model_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.1.0/cache/psych-5.0.0.gem +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/byebug-11.1.3/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/ffi-1.15.5/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/jaro_winkler-1.5.4/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/{psych-4.0.6 → psych-5.0.0}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/{psych-4.0.6 → psych-5.0.0}/gem_make.out +17 -14
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/{psych-4.0.6 → psych-5.0.0}/mkmf.log +31 -5
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/psych-5.0.0/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/stringio-3.0.2/gem_make.out +4 -4
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/.gitignore +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/Gemfile +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/LICENSE +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/Mavenfile +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/README.md +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/Rakefile +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/bin/console +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/bin/setup +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/Makefile +22 -7
- data/vendor/bundle/ruby/3.1.0/gems/psych-5.0.0/ext/psych/depend +17 -0
- data/vendor/bundle/ruby/3.1.0/gems/psych-5.0.0/ext/psych/extconf.rb +53 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/psych-5.0.0/ext/psych/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_parser.c +19 -33
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/psych-5.0.0/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/class_loader.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/psych-5.0.0/lib/psych/exception.rb +28 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes/node.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/parser.rb +13 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/scalar_scanner.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/visitors/to_ruby.rb +2 -2
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/visitors/yaml_tree.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/lib/psych.rb +1 -1
- data/vendor/bundle/ruby/3.1.0/gems/psych-5.0.0/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/{psych-4.0.6 → psych-5.0.0}/psych.gemspec +0 -3
- data/vendor/bundle/ruby/3.1.0/specifications/{psych-4.0.6.gemspec → psych-5.0.0.gemspec} +3 -3
- metadata +75 -87
- data/vendor/bundle/ruby/3.1.0/cache/psych-4.0.6.gem +0 -0
- data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0/psych-4.0.6/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/depend +0 -5
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/extconf.rb +0 -43
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/psych.so +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/LICENSE +0 -19
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/api.c +0 -1393
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/config.h +0 -80
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/dumper.c +0 -394
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/emitter.c +0 -2358
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/loader.c +0 -544
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/parser.c +0 -1375
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/reader.c +0 -469
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/scanner.c +0 -3598
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/writer.c +0 -141
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/yaml.h +0 -1985
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/ext/psych/yaml/yaml_private.h +0 -688
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/lib/psych/exception.rb +0 -14
- data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/lib/psych.so +0 -0
@@ -1,141 +0,0 @@
|
|
1
|
-
|
2
|
-
#include "yaml_private.h"
|
3
|
-
|
4
|
-
/*
|
5
|
-
* Declarations.
|
6
|
-
*/
|
7
|
-
|
8
|
-
static int
|
9
|
-
yaml_emitter_set_writer_error(yaml_emitter_t *emitter, const char *problem);
|
10
|
-
|
11
|
-
YAML_DECLARE(int)
|
12
|
-
yaml_emitter_flush(yaml_emitter_t *emitter);
|
13
|
-
|
14
|
-
/*
|
15
|
-
* Set the writer error and return 0.
|
16
|
-
*/
|
17
|
-
|
18
|
-
static int
|
19
|
-
yaml_emitter_set_writer_error(yaml_emitter_t *emitter, const char *problem)
|
20
|
-
{
|
21
|
-
emitter->error = YAML_WRITER_ERROR;
|
22
|
-
emitter->problem = problem;
|
23
|
-
|
24
|
-
return 0;
|
25
|
-
}
|
26
|
-
|
27
|
-
/*
|
28
|
-
* Flush the output buffer.
|
29
|
-
*/
|
30
|
-
|
31
|
-
YAML_DECLARE(int)
|
32
|
-
yaml_emitter_flush(yaml_emitter_t *emitter)
|
33
|
-
{
|
34
|
-
int low, high;
|
35
|
-
|
36
|
-
assert(emitter); /* Non-NULL emitter object is expected. */
|
37
|
-
assert(emitter->write_handler); /* Write handler must be set. */
|
38
|
-
assert(emitter->encoding); /* Output encoding must be set. */
|
39
|
-
|
40
|
-
emitter->buffer.last = emitter->buffer.pointer;
|
41
|
-
emitter->buffer.pointer = emitter->buffer.start;
|
42
|
-
|
43
|
-
/* Check if the buffer is empty. */
|
44
|
-
|
45
|
-
if (emitter->buffer.start == emitter->buffer.last) {
|
46
|
-
return 1;
|
47
|
-
}
|
48
|
-
|
49
|
-
/* If the output encoding is UTF-8, we don't need to recode the buffer. */
|
50
|
-
|
51
|
-
if (emitter->encoding == YAML_UTF8_ENCODING)
|
52
|
-
{
|
53
|
-
if (emitter->write_handler(emitter->write_handler_data,
|
54
|
-
emitter->buffer.start,
|
55
|
-
emitter->buffer.last - emitter->buffer.start)) {
|
56
|
-
emitter->buffer.last = emitter->buffer.start;
|
57
|
-
emitter->buffer.pointer = emitter->buffer.start;
|
58
|
-
return 1;
|
59
|
-
}
|
60
|
-
else {
|
61
|
-
return yaml_emitter_set_writer_error(emitter, "write error");
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
/* Recode the buffer into the raw buffer. */
|
66
|
-
|
67
|
-
low = (emitter->encoding == YAML_UTF16LE_ENCODING ? 0 : 1);
|
68
|
-
high = (emitter->encoding == YAML_UTF16LE_ENCODING ? 1 : 0);
|
69
|
-
|
70
|
-
while (emitter->buffer.pointer != emitter->buffer.last)
|
71
|
-
{
|
72
|
-
unsigned char octet;
|
73
|
-
unsigned int width;
|
74
|
-
unsigned int value;
|
75
|
-
size_t k;
|
76
|
-
|
77
|
-
/*
|
78
|
-
* See the "reader.c" code for more details on UTF-8 encoding. Note
|
79
|
-
* that we assume that the buffer contains a valid UTF-8 sequence.
|
80
|
-
*/
|
81
|
-
|
82
|
-
/* Read the next UTF-8 character. */
|
83
|
-
|
84
|
-
octet = emitter->buffer.pointer[0];
|
85
|
-
|
86
|
-
width = (octet & 0x80) == 0x00 ? 1 :
|
87
|
-
(octet & 0xE0) == 0xC0 ? 2 :
|
88
|
-
(octet & 0xF0) == 0xE0 ? 3 :
|
89
|
-
(octet & 0xF8) == 0xF0 ? 4 : 0;
|
90
|
-
|
91
|
-
value = (octet & 0x80) == 0x00 ? octet & 0x7F :
|
92
|
-
(octet & 0xE0) == 0xC0 ? octet & 0x1F :
|
93
|
-
(octet & 0xF0) == 0xE0 ? octet & 0x0F :
|
94
|
-
(octet & 0xF8) == 0xF0 ? octet & 0x07 : 0;
|
95
|
-
|
96
|
-
for (k = 1; k < width; k ++) {
|
97
|
-
octet = emitter->buffer.pointer[k];
|
98
|
-
value = (value << 6) + (octet & 0x3F);
|
99
|
-
}
|
100
|
-
|
101
|
-
emitter->buffer.pointer += width;
|
102
|
-
|
103
|
-
/* Write the character. */
|
104
|
-
|
105
|
-
if (value < 0x10000)
|
106
|
-
{
|
107
|
-
emitter->raw_buffer.last[high] = value >> 8;
|
108
|
-
emitter->raw_buffer.last[low] = value & 0xFF;
|
109
|
-
|
110
|
-
emitter->raw_buffer.last += 2;
|
111
|
-
}
|
112
|
-
else
|
113
|
-
{
|
114
|
-
/* Write the character using a surrogate pair (check "reader.c"). */
|
115
|
-
|
116
|
-
value -= 0x10000;
|
117
|
-
emitter->raw_buffer.last[high] = 0xD8 + (value >> 18);
|
118
|
-
emitter->raw_buffer.last[low] = (value >> 10) & 0xFF;
|
119
|
-
emitter->raw_buffer.last[high+2] = 0xDC + ((value >> 8) & 0xFF);
|
120
|
-
emitter->raw_buffer.last[low+2] = value & 0xFF;
|
121
|
-
|
122
|
-
emitter->raw_buffer.last += 4;
|
123
|
-
}
|
124
|
-
}
|
125
|
-
|
126
|
-
/* Write the raw buffer. */
|
127
|
-
|
128
|
-
if (emitter->write_handler(emitter->write_handler_data,
|
129
|
-
emitter->raw_buffer.start,
|
130
|
-
emitter->raw_buffer.last - emitter->raw_buffer.start)) {
|
131
|
-
emitter->buffer.last = emitter->buffer.start;
|
132
|
-
emitter->buffer.pointer = emitter->buffer.start;
|
133
|
-
emitter->raw_buffer.last = emitter->raw_buffer.start;
|
134
|
-
emitter->raw_buffer.pointer = emitter->raw_buffer.start;
|
135
|
-
return 1;
|
136
|
-
}
|
137
|
-
else {
|
138
|
-
return yaml_emitter_set_writer_error(emitter, "write error");
|
139
|
-
}
|
140
|
-
}
|
141
|
-
|