cybrid_api_organization_ruby 0.109.39 → 0.109.41

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_organization_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
  6. data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
  7. data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
  8. data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
  9. data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
  10. data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
  11. data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
  12. data/lib/cybrid_api_organization_ruby/version.rb +2 -2
  13. data/lib/cybrid_api_organization_ruby.rb +1 -1
  14. data/spec/api/organizations_organization_api_spec.rb +1 -1
  15. data/spec/api_client_spec.rb +1 -1
  16. data/spec/configuration_spec.rb +1 -1
  17. data/spec/models/error_response_organization_model_spec.rb +1 -1
  18. data/spec/models/organization_organization_model_spec.rb +1 -1
  19. data/spec/models/patch_organization_organization_model_spec.rb +1 -1
  20. data/spec/spec_helper.rb +1 -1
  21. data/vendor/bundle/ruby/3.2.0/cache/stringio-3.0.9.gem +0 -0
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/gem_make.out +5 -5
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
  27. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{stringio-3.0.8 → stringio-3.0.9}/gem_make.out +18 -18
  28. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/stringio.so +0 -0
  29. data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.8 → stringio-3.0.9}/README.md +1 -1
  30. data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.8 → stringio-3.0.9}/ext/stringio/stringio.c +51 -24
  31. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/lib/stringio.so +0 -0
  32. data/vendor/bundle/ruby/3.2.0/specifications/{stringio-3.0.8.gemspec → stringio-3.0.9.gemspec} +3 -3
  33. metadata +12 -12
  34. data/vendor/bundle/ruby/3.2.0/cache/stringio-3.0.8.gem +0 -0
  35. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/stringio.so +0 -0
  36. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/lib/stringio.so +0 -0
  37. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{stringio-3.0.8 → stringio-3.0.9}/gem.build_complete +0 -0
  38. /data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.8 → stringio-3.0.9}/ext/stringio/Makefile +0 -0
  39. /data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.8 → stringio-3.0.9}/ext/stringio/extconf.rb +0 -0
@@ -12,7 +12,8 @@
12
12
 
13
13
  **********************************************************************/
14
14
 
15
- #define STRINGIO_VERSION "3.0.8"
15
+ static const char *const
16
+ STRINGIO_VERSION = "3.0.9";
16
17
 
17
18
  #include "ruby.h"
18
19
  #include "ruby/io.h"
@@ -603,7 +604,7 @@ strio_to_read(VALUE self)
603
604
  * eof? -> true or false
604
605
  *
605
606
  * Returns +true+ if positioned at end-of-stream, +false+ otherwise;
606
- * see {Position}[rdoc-ref:File@Position].
607
+ * see {Position}[rdoc-ref:IO@Position].
607
608
  *
608
609
  * Raises IOError if the stream is not opened for reading.
609
610
  */
@@ -1142,38 +1143,57 @@ struct getline_arg {
1142
1143
  };
1143
1144
 
1144
1145
  static struct getline_arg *
1145
- prepare_getline_args(struct getline_arg *arg, int argc, VALUE *argv)
1146
+ prepare_getline_args(struct StringIO *ptr, struct getline_arg *arg, int argc, VALUE *argv)
1146
1147
  {
1147
- VALUE str, lim, opts;
1148
+ VALUE rs, lim, opts;
1148
1149
  long limit = -1;
1149
1150
  int respect_chomp;
1150
1151
 
1151
- argc = rb_scan_args(argc, argv, "02:", &str, &lim, &opts);
1152
- respect_chomp = argc == 0 || !NIL_P(str);
1152
+ argc = rb_scan_args(argc, argv, "02:", &rs, &lim, &opts);
1153
+ respect_chomp = argc == 0 || !NIL_P(rs);
1153
1154
  switch (argc) {
1154
1155
  case 0:
1155
- str = rb_rs;
1156
+ rs = rb_rs;
1156
1157
  break;
1157
1158
 
1158
1159
  case 1:
1159
- if (!NIL_P(str) && !RB_TYPE_P(str, T_STRING)) {
1160
- VALUE tmp = rb_check_string_type(str);
1160
+ if (!NIL_P(rs) && !RB_TYPE_P(rs, T_STRING)) {
1161
+ VALUE tmp = rb_check_string_type(rs);
1161
1162
  if (NIL_P(tmp)) {
1162
- limit = NUM2LONG(str);
1163
- str = rb_rs;
1163
+ limit = NUM2LONG(rs);
1164
+ rs = rb_rs;
1164
1165
  }
1165
1166
  else {
1166
- str = tmp;
1167
+ rs = tmp;
1167
1168
  }
1168
1169
  }
1169
1170
  break;
1170
1171
 
1171
1172
  case 2:
1172
- if (!NIL_P(str)) StringValue(str);
1173
+ if (!NIL_P(rs)) StringValue(rs);
1173
1174
  if (!NIL_P(lim)) limit = NUM2LONG(lim);
1174
1175
  break;
1175
1176
  }
1176
- arg->rs = str;
1177
+ if (!NIL_P(rs)) {
1178
+ rb_encoding *enc_rs, *enc_io;
1179
+ enc_rs = rb_enc_get(rs);
1180
+ enc_io = get_enc(ptr);
1181
+ if (enc_rs != enc_io &&
1182
+ (rb_enc_str_coderange(rs) != ENC_CODERANGE_7BIT ||
1183
+ (RSTRING_LEN(rs) > 0 && !rb_enc_asciicompat(enc_io)))) {
1184
+ if (rs == rb_rs) {
1185
+ rs = rb_enc_str_new(0, 0, enc_io);
1186
+ rb_str_buf_cat_ascii(rs, "\n");
1187
+ rs = rs;
1188
+ }
1189
+ else {
1190
+ rb_raise(rb_eArgError, "encoding mismatch: %s IO with %s RS",
1191
+ rb_enc_name(enc_io),
1192
+ rb_enc_name(enc_rs));
1193
+ }
1194
+ }
1195
+ }
1196
+ arg->rs = rs;
1177
1197
  arg->limit = limit;
1178
1198
  arg->chomp = 0;
1179
1199
  if (!NIL_P(opts)) {
@@ -1301,15 +1321,15 @@ strio_getline(struct getline_arg *arg, struct StringIO *ptr)
1301
1321
  static VALUE
1302
1322
  strio_gets(int argc, VALUE *argv, VALUE self)
1303
1323
  {
1324
+ struct StringIO *ptr = readable(self);
1304
1325
  struct getline_arg arg;
1305
1326
  VALUE str;
1306
1327
 
1307
- if (prepare_getline_args(&arg, argc, argv)->limit == 0) {
1308
- struct StringIO *ptr = readable(self);
1328
+ if (prepare_getline_args(ptr, &arg, argc, argv)->limit == 0) {
1309
1329
  return rb_enc_str_new(0, 0, get_enc(ptr));
1310
1330
  }
1311
1331
 
1312
- str = strio_getline(&arg, readable(self));
1332
+ str = strio_getline(&arg, ptr);
1313
1333
  rb_lastline_set(str);
1314
1334
  return str;
1315
1335
  }
@@ -1346,16 +1366,16 @@ static VALUE
1346
1366
  strio_each(int argc, VALUE *argv, VALUE self)
1347
1367
  {
1348
1368
  VALUE line;
1369
+ struct StringIO *ptr = readable(self);
1349
1370
  struct getline_arg arg;
1350
1371
 
1351
- StringIO(self);
1352
1372
  RETURN_ENUMERATOR(self, argc, argv);
1353
1373
 
1354
- if (prepare_getline_args(&arg, argc, argv)->limit == 0) {
1374
+ if (prepare_getline_args(ptr, &arg, argc, argv)->limit == 0) {
1355
1375
  rb_raise(rb_eArgError, "invalid limit: 0 for each_line");
1356
1376
  }
1357
1377
 
1358
- while (!NIL_P(line = strio_getline(&arg, readable(self)))) {
1378
+ while (!NIL_P(line = strio_getline(&arg, ptr))) {
1359
1379
  rb_yield(line);
1360
1380
  }
1361
1381
  return self;
@@ -1373,15 +1393,15 @@ static VALUE
1373
1393
  strio_readlines(int argc, VALUE *argv, VALUE self)
1374
1394
  {
1375
1395
  VALUE ary, line;
1396
+ struct StringIO *ptr = readable(self);
1376
1397
  struct getline_arg arg;
1377
1398
 
1378
- StringIO(self);
1379
- ary = rb_ary_new();
1380
- if (prepare_getline_args(&arg, argc, argv)->limit == 0) {
1399
+ if (prepare_getline_args(ptr, &arg, argc, argv)->limit == 0) {
1381
1400
  rb_raise(rb_eArgError, "invalid limit: 0 for readlines");
1382
1401
  }
1383
1402
 
1384
- while (!NIL_P(line = strio_getline(&arg, readable(self)))) {
1403
+ ary = rb_ary_new();
1404
+ while (!NIL_P(line = strio_getline(&arg, ptr))) {
1385
1405
  rb_ary_push(ary, line);
1386
1406
  }
1387
1407
  return ary;
@@ -1602,6 +1622,13 @@ strio_pread(int argc, VALUE *argv, VALUE self)
1602
1622
  rb_raise(rb_eArgError, "negative string size (or size too big): %" PRIsVALUE, rb_len);
1603
1623
  }
1604
1624
 
1625
+ if (len == 0) {
1626
+ if (NIL_P(rb_buf)) {
1627
+ return rb_str_new("", 0);
1628
+ }
1629
+ return rb_buf;
1630
+ }
1631
+
1605
1632
  if (offset < 0) {
1606
1633
  rb_syserr_fail_str(EINVAL, rb_sprintf("pread: Invalid offset argument: %" PRIsVALUE, rb_offset));
1607
1634
  }
@@ -1,15 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: stringio 3.0.8 ruby lib
2
+ # stub: stringio 3.0.9 ruby lib
3
3
  # stub: ext/stringio/extconf.rb
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "stringio".freeze
7
- s.version = "3.0.8"
7
+ s.version = "3.0.9"
8
8
 
9
9
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
10
10
  s.require_paths = ["lib".freeze]
11
11
  s.authors = ["Nobu Nakada".freeze, "Charles Oliver Nutter".freeze]
12
- s.date = "2023-08-10"
12
+ s.date = "2023-11-08"
13
13
  s.description = "Pseudo `IO` class from/to `String`.".freeze
14
14
  s.email = ["nobu@ruby-lang.org".freeze, "headius@headius.com".freeze]
15
15
  s.extensions = ["ext/stringio/extconf.rb".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybrid_api_organization_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.109.39
4
+ version: 0.109.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cybrid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-07 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -117,7 +117,7 @@ files:
117
117
  - vendor/bundle/ruby/3.2.0/cache/rspec-support-3.12.1.gem
118
118
  - vendor/bundle/ruby/3.2.0/cache/rubocop-0.66.0.gem
119
119
  - vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.13.0.gem
120
- - vendor/bundle/ruby/3.2.0/cache/stringio-3.0.8.gem
120
+ - vendor/bundle/ruby/3.2.0/cache/stringio-3.0.9.gem
121
121
  - vendor/bundle/ruby/3.2.0/cache/typhoeus-1.4.0.gem
122
122
  - vendor/bundle/ruby/3.2.0/cache/unicode-display_width-1.5.0.gem
123
123
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so
@@ -137,9 +137,9 @@ files:
137
137
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem.build_complete
138
138
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out
139
139
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/racc/cparse.so
140
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/gem.build_complete
141
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/gem_make.out
142
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/stringio.so
140
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/gem.build_complete
141
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/gem_make.out
142
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/stringio.so
143
143
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/LICENSE.MIT
144
144
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/README.YARD.md
145
145
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/lib/ast.rb
@@ -2473,11 +2473,11 @@ files:
2473
2473
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/time.rb
2474
2474
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/timer.rb
2475
2475
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/version.rb
2476
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/README.md
2477
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/ext/stringio/Makefile
2478
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/ext/stringio/extconf.rb
2479
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/ext/stringio/stringio.c
2480
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/lib/stringio.so
2476
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/README.md
2477
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/ext/stringio/Makefile
2478
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/ext/stringio/extconf.rb
2479
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/ext/stringio/stringio.c
2480
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/lib/stringio.so
2481
2481
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.gitignore
2482
2482
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.rspec
2483
2483
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.travis.yml
@@ -2606,7 +2606,7 @@ files:
2606
2606
  - vendor/bundle/ruby/3.2.0/specifications/rspec-support-3.12.1.gemspec
2607
2607
  - vendor/bundle/ruby/3.2.0/specifications/rubocop-0.66.0.gemspec
2608
2608
  - vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.13.0.gemspec
2609
- - vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.8.gemspec
2609
+ - vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.9.gemspec
2610
2610
  - vendor/bundle/ruby/3.2.0/specifications/typhoeus-1.4.0.gemspec
2611
2611
  - vendor/bundle/ruby/3.2.0/specifications/unicode-display_width-1.5.0.gemspec
2612
2612
  homepage: https://github.com/Cybrid-app/cybrid-api-organization-ruby/