cybrid_api_id_ruby 0.109.39 → 0.109.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_id_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_id_ruby/api/bank_applications_idp_api.rb +1 -1
  6. data/lib/cybrid_api_id_ruby/api/customer_tokens_idp_api.rb +1 -1
  7. data/lib/cybrid_api_id_ruby/api/organization_applications_idp_api.rb +1 -1
  8. data/lib/cybrid_api_id_ruby/api/users_idp_api.rb +1 -1
  9. data/lib/cybrid_api_id_ruby/api_client.rb +1 -1
  10. data/lib/cybrid_api_id_ruby/api_error.rb +1 -1
  11. data/lib/cybrid_api_id_ruby/configuration.rb +1 -1
  12. data/lib/cybrid_api_id_ruby/models/application_idp_model.rb +1 -1
  13. data/lib/cybrid_api_id_ruby/models/application_list_idp_model.rb +1 -1
  14. data/lib/cybrid_api_id_ruby/models/application_with_secret_all_of_idp_model.rb +1 -1
  15. data/lib/cybrid_api_id_ruby/models/application_with_secret_idp_model.rb +1 -1
  16. data/lib/cybrid_api_id_ruby/models/customer_token_idp_model.rb +1 -1
  17. data/lib/cybrid_api_id_ruby/models/error_response_idp_model.rb +1 -1
  18. data/lib/cybrid_api_id_ruby/models/post_bank_application_idp_model.rb +1 -1
  19. data/lib/cybrid_api_id_ruby/models/post_customer_token_idp_model.rb +1 -1
  20. data/lib/cybrid_api_id_ruby/models/post_organization_application_idp_model.rb +1 -1
  21. data/lib/cybrid_api_id_ruby/models/post_user_idp_model.rb +1 -1
  22. data/lib/cybrid_api_id_ruby/models/user_idp_model.rb +1 -1
  23. data/lib/cybrid_api_id_ruby/models/user_list_idp_model.rb +1 -1
  24. data/lib/cybrid_api_id_ruby/version.rb +2 -2
  25. data/lib/cybrid_api_id_ruby.rb +1 -1
  26. data/spec/api/bank_applications_idp_api_spec.rb +1 -1
  27. data/spec/api/customer_tokens_idp_api_spec.rb +1 -1
  28. data/spec/api/organization_applications_idp_api_spec.rb +1 -1
  29. data/spec/api/users_idp_api_spec.rb +1 -1
  30. data/spec/api_client_spec.rb +1 -1
  31. data/spec/configuration_spec.rb +1 -1
  32. data/spec/models/application_idp_model_spec.rb +1 -1
  33. data/spec/models/application_list_idp_model_spec.rb +1 -1
  34. data/spec/models/application_with_secret_all_of_idp_model_spec.rb +1 -1
  35. data/spec/models/application_with_secret_idp_model_spec.rb +1 -1
  36. data/spec/models/customer_token_idp_model_spec.rb +1 -1
  37. data/spec/models/error_response_idp_model_spec.rb +1 -1
  38. data/spec/models/post_bank_application_idp_model_spec.rb +1 -1
  39. data/spec/models/post_customer_token_idp_model_spec.rb +1 -1
  40. data/spec/models/post_organization_application_idp_model_spec.rb +1 -1
  41. data/spec/models/post_user_idp_model_spec.rb +1 -1
  42. data/spec/models/user_idp_model_spec.rb +1 -1
  43. data/spec/models/user_list_idp_model_spec.rb +1 -1
  44. data/spec/spec_helper.rb +1 -1
  45. data/vendor/bundle/ruby/3.2.0/cache/stringio-3.0.9.gem +0 -0
  46. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  47. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
  48. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  49. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/gem_make.out +5 -5
  50. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
  51. 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
  52. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/stringio.so +0 -0
  53. data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.8 → stringio-3.0.9}/README.md +1 -1
  54. data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.8 → stringio-3.0.9}/ext/stringio/stringio.c +51 -24
  55. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/lib/stringio.so +0 -0
  56. data/vendor/bundle/ruby/3.2.0/specifications/{stringio-3.0.8.gemspec → stringio-3.0.9.gemspec} +3 -3
  57. metadata +12 -12
  58. data/vendor/bundle/ruby/3.2.0/cache/stringio-3.0.8.gem +0 -0
  59. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/stringio.so +0 -0
  60. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/lib/stringio.so +0 -0
  61. /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
  62. /data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.8 → stringio-3.0.9}/ext/stringio/Makefile +0 -0
  63. /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_id_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
@@ -153,7 +153,7 @@ files:
153
153
  - vendor/bundle/ruby/3.2.0/cache/rspec-support-3.12.1.gem
154
154
  - vendor/bundle/ruby/3.2.0/cache/rubocop-0.66.0.gem
155
155
  - vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.13.0.gem
156
- - vendor/bundle/ruby/3.2.0/cache/stringio-3.0.8.gem
156
+ - vendor/bundle/ruby/3.2.0/cache/stringio-3.0.9.gem
157
157
  - vendor/bundle/ruby/3.2.0/cache/typhoeus-1.4.0.gem
158
158
  - vendor/bundle/ruby/3.2.0/cache/unicode-display_width-1.5.0.gem
159
159
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so
@@ -173,9 +173,9 @@ files:
173
173
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem.build_complete
174
174
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out
175
175
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/racc/cparse.so
176
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/gem.build_complete
177
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/gem_make.out
178
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.8/stringio.so
176
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/gem.build_complete
177
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/gem_make.out
178
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.9/stringio.so
179
179
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/LICENSE.MIT
180
180
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/README.YARD.md
181
181
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/lib/ast.rb
@@ -2509,11 +2509,11 @@ files:
2509
2509
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/time.rb
2510
2510
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/timer.rb
2511
2511
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/version.rb
2512
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/README.md
2513
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/ext/stringio/Makefile
2514
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/ext/stringio/extconf.rb
2515
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/ext/stringio/stringio.c
2516
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.8/lib/stringio.so
2512
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/README.md
2513
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/ext/stringio/Makefile
2514
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/ext/stringio/extconf.rb
2515
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/ext/stringio/stringio.c
2516
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.9/lib/stringio.so
2517
2517
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.gitignore
2518
2518
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.rspec
2519
2519
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.travis.yml
@@ -2642,7 +2642,7 @@ files:
2642
2642
  - vendor/bundle/ruby/3.2.0/specifications/rspec-support-3.12.1.gemspec
2643
2643
  - vendor/bundle/ruby/3.2.0/specifications/rubocop-0.66.0.gemspec
2644
2644
  - vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.13.0.gemspec
2645
- - vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.8.gemspec
2645
+ - vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.9.gemspec
2646
2646
  - vendor/bundle/ruby/3.2.0/specifications/typhoeus-1.4.0.gemspec
2647
2647
  - vendor/bundle/ruby/3.2.0/specifications/unicode-display_width-1.5.0.gemspec
2648
2648
  homepage: https://github.com/Cybrid-app/cybrid-api-id-ruby/