cybrid_api_id_ruby 0.71.63 → 0.71.65

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 (53) 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_client.rb +1 -1
  9. data/lib/cybrid_api_id_ruby/api_error.rb +1 -1
  10. data/lib/cybrid_api_id_ruby/configuration.rb +1 -1
  11. data/lib/cybrid_api_id_ruby/models/application_idp_model.rb +1 -1
  12. data/lib/cybrid_api_id_ruby/models/application_list_idp_model.rb +1 -1
  13. data/lib/cybrid_api_id_ruby/models/application_with_secret_all_of_idp_model.rb +1 -1
  14. data/lib/cybrid_api_id_ruby/models/application_with_secret_idp_model.rb +1 -1
  15. data/lib/cybrid_api_id_ruby/models/customer_token_idp_model.rb +1 -1
  16. data/lib/cybrid_api_id_ruby/models/post_bank_application_idp_model.rb +1 -1
  17. data/lib/cybrid_api_id_ruby/models/post_customer_token_idp_model.rb +1 -1
  18. data/lib/cybrid_api_id_ruby/models/post_organization_application_idp_model.rb +1 -1
  19. data/lib/cybrid_api_id_ruby/version.rb +2 -2
  20. data/lib/cybrid_api_id_ruby.rb +1 -1
  21. data/spec/api/bank_applications_idp_api_spec.rb +1 -1
  22. data/spec/api/customer_tokens_idp_api_spec.rb +1 -1
  23. data/spec/api/organization_applications_idp_api_spec.rb +1 -1
  24. data/spec/api_client_spec.rb +1 -1
  25. data/spec/configuration_spec.rb +1 -1
  26. data/spec/models/application_idp_model_spec.rb +1 -1
  27. data/spec/models/application_list_idp_model_spec.rb +1 -1
  28. data/spec/models/application_with_secret_all_of_idp_model_spec.rb +1 -1
  29. data/spec/models/application_with_secret_idp_model_spec.rb +1 -1
  30. data/spec/models/customer_token_idp_model_spec.rb +1 -1
  31. data/spec/models/post_bank_application_idp_model_spec.rb +1 -1
  32. data/spec/models/post_customer_token_idp_model_spec.rb +1 -1
  33. data/spec/models/post_organization_application_idp_model_spec.rb +1 -1
  34. data/spec/spec_helper.rb +1 -1
  35. data/vendor/bundle/ruby/3.2.0/cache/stringio-3.0.7.gem +0 -0
  36. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  37. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/gem_make.out +5 -5
  38. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  39. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.0/gem_make.out +5 -5
  40. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{stringio-3.0.6 → stringio-3.0.7}/gem_make.out +18 -19
  41. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.7/stringio.so +0 -0
  42. data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.6 → stringio-3.0.7}/ext/stringio/Makefile +1 -1
  43. data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.6 → stringio-3.0.7}/ext/stringio/extconf.rb +0 -1
  44. data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.6 → stringio-3.0.7}/ext/stringio/stringio.c +10 -86
  45. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.7/lib/stringio.so +0 -0
  46. data/vendor/bundle/ruby/3.2.0/specifications/{stringio-3.0.6.gemspec → stringio-3.0.7.gemspec} +5 -5
  47. metadata +12 -13
  48. data/vendor/bundle/ruby/3.2.0/cache/stringio-3.0.6.gem +0 -0
  49. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.6/mkmf.log +0 -36
  50. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.6/stringio.so +0 -0
  51. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.6/lib/stringio.so +0 -0
  52. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{stringio-3.0.6 → stringio-3.0.7}/gem.build_complete +0 -0
  53. /data/vendor/bundle/ruby/3.2.0/gems/{stringio-3.0.6 → stringio-3.0.7}/README.md +0 -0
@@ -88,7 +88,7 @@ CCDLFLAGS = -fPIC
88
88
  CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
89
89
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
90
90
  DEFS =
91
- CPPFLAGS = -DHAVE_RB_IO_EXTRACT_MODEENC $(DEFS) $(cppflags)
91
+ CPPFLAGS = $(DEFS) $(cppflags)
92
92
  CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
93
93
  ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
94
94
  dldflags = -Wl,--compress-debug-sections=zlib
@@ -1,4 +1,3 @@
1
1
  # frozen_string_literal: false
2
2
  require 'mkmf'
3
- have_func("rb_io_extract_modeenc", "ruby/io.h")
4
3
  create_makefile('stringio')
@@ -12,7 +12,7 @@
12
12
 
13
13
  **********************************************************************/
14
14
 
15
- #define STRINGIO_VERSION "3.0.6"
15
+ #define STRINGIO_VERSION "3.0.7"
16
16
 
17
17
  #include "ruby.h"
18
18
  #include "ruby/io.h"
@@ -32,86 +32,6 @@
32
32
  # define rb_class_new_instance_kw(argc, argv, klass, kw_splat) rb_class_new_instance(argc, argv, klass)
33
33
  #endif
34
34
 
35
- #ifndef HAVE_RB_IO_EXTRACT_MODEENC
36
- #define rb_io_extract_modeenc strio_extract_modeenc
37
- static void
38
- strio_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
39
- int *oflags_p, int *fmode_p, struct rb_io_enc_t *convconfig_p)
40
- {
41
- VALUE mode = *vmode_p;
42
- VALUE intmode;
43
- int fmode;
44
- int has_enc = 0, has_vmode = 0;
45
-
46
- convconfig_p->enc = convconfig_p->enc2 = 0;
47
-
48
- vmode_handle:
49
- if (NIL_P(mode)) {
50
- fmode = FMODE_READABLE;
51
- }
52
- else if (!NIL_P(intmode = rb_check_to_integer(mode, "to_int"))) {
53
- int flags = NUM2INT(intmode);
54
- fmode = rb_io_oflags_fmode(flags);
55
- }
56
- else {
57
- const char *m = StringValueCStr(mode), *n, *e;
58
- fmode = rb_io_modestr_fmode(m);
59
- n = strchr(m, ':');
60
- if (n) {
61
- long len;
62
- char encname[ENCODING_MAXNAMELEN+1];
63
- has_enc = 1;
64
- if (fmode & FMODE_SETENC_BY_BOM) {
65
- n = strchr(n, '|');
66
- }
67
- e = strchr(++n, ':');
68
- len = e ? e - n : (long)strlen(n);
69
- if (len > 0 && len <= ENCODING_MAXNAMELEN) {
70
- rb_encoding *enc;
71
- if (e) {
72
- memcpy(encname, n, len);
73
- encname[len] = '\0';
74
- n = encname;
75
- }
76
- enc = rb_enc_find(n);
77
- if (e)
78
- convconfig_p->enc2 = enc;
79
- else
80
- convconfig_p->enc = enc;
81
- }
82
- if (e && (len = strlen(++e)) > 0 && len <= ENCODING_MAXNAMELEN) {
83
- convconfig_p->enc = rb_enc_find(e);
84
- }
85
- }
86
- }
87
-
88
- if (!NIL_P(opthash)) {
89
- rb_encoding *extenc = 0, *intenc = 0;
90
- VALUE v;
91
- if (!has_vmode) {
92
- ID id_mode;
93
- CONST_ID(id_mode, "mode");
94
- v = rb_hash_aref(opthash, ID2SYM(id_mode));
95
- if (!NIL_P(v)) {
96
- if (!NIL_P(mode)) {
97
- rb_raise(rb_eArgError, "mode specified twice");
98
- }
99
- has_vmode = 1;
100
- mode = v;
101
- goto vmode_handle;
102
- }
103
- }
104
-
105
- if (rb_io_extract_encoding_option(opthash, &extenc, &intenc, &fmode)) {
106
- if (has_enc) {
107
- rb_raise(rb_eArgError, "encoding specified twice");
108
- }
109
- }
110
- }
111
- *fmode_p = fmode;
112
- }
113
- #endif
114
-
115
35
  struct StringIO {
116
36
  VALUE string;
117
37
  rb_encoding *enc;
@@ -356,7 +276,7 @@ strio_init(int argc, VALUE *argv, struct StringIO *ptr, VALUE self)
356
276
  {
357
277
  VALUE string, vmode, opt;
358
278
  int oflags;
359
- struct rb_io_enc_t convconfig;
279
+ rb_io_enc_t convconfig;
360
280
 
361
281
  argc = rb_scan_args(argc, argv, "02:", &string, &vmode, &opt);
362
282
  rb_io_extract_modeenc(&vmode, 0, opt, &oflags, &ptr->flags, &convconfig);
@@ -698,15 +618,19 @@ strio_eof(VALUE self)
698
618
  static VALUE
699
619
  strio_copy(VALUE copy, VALUE orig)
700
620
  {
701
- struct StringIO *ptr;
621
+ struct StringIO *ptr, *old_ptr;
622
+ VALUE old_string = Qundef;
702
623
 
703
624
  orig = rb_convert_type(orig, T_DATA, "StringIO", "to_strio");
704
625
  if (copy == orig) return copy;
705
626
  ptr = StringIO(orig);
706
- if (check_strio(copy)) {
707
- strio_free(DATA_PTR(copy));
627
+ old_ptr = check_strio(copy);
628
+ if (old_ptr) {
629
+ old_string = old_ptr->string;
630
+ strio_free(old_ptr);
708
631
  }
709
632
  DATA_PTR(copy) = ptr;
633
+ RB_OBJ_WRITTEN(copy, old_string, ptr->string);
710
634
  RBASIC(copy)->flags &= ~STRIO_READWRITE;
711
635
  RBASIC(copy)->flags |= RBASIC(orig)->flags & STRIO_READWRITE;
712
636
  ++ptr->count;
@@ -1819,7 +1743,7 @@ strio_set_encoding(int argc, VALUE *argv, VALUE self)
1819
1743
  else {
1820
1744
  enc = rb_find_encoding(ext_enc);
1821
1745
  if (!enc) {
1822
- struct rb_io_enc_t convconfig;
1746
+ rb_io_enc_t convconfig;
1823
1747
  int oflags, fmode;
1824
1748
  VALUE vmode = rb_str_append(rb_str_new_cstr("r:"), ext_enc);
1825
1749
  rb_io_extract_modeenc(&vmode, 0, Qnil, &oflags, &fmode, &convconfig);
@@ -1,22 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: stringio 3.0.6 ruby lib
2
+ # stub: stringio 3.0.7 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.6"
7
+ s.version = "3.0.7"
8
8
 
9
- s.required_rubygems_version = Gem::Requirement.new(">= 2.6".freeze) if s.respond_to? :required_rubygems_version=
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-04-14"
12
+ s.date = "2023-06-02"
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]
16
16
  s.files = ["ext/stringio/extconf.rb".freeze]
17
17
  s.homepage = "https://github.com/ruby/stringio".freeze
18
18
  s.licenses = ["Ruby".freeze, "BSD-2-Clause".freeze]
19
- s.required_ruby_version = Gem::Requirement.new(">= 2.5".freeze)
19
+ s.required_ruby_version = Gem::Requirement.new(">= 2.7".freeze)
20
20
  s.rubygems_version = "3.4.12".freeze
21
21
  s.summary = "Pseudo IO on String".freeze
22
22
 
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.71.63
4
+ version: 0.71.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cybrid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -136,7 +136,7 @@ files:
136
136
  - vendor/bundle/ruby/3.2.0/cache/rspec-support-3.12.0.gem
137
137
  - vendor/bundle/ruby/3.2.0/cache/rubocop-0.66.0.gem
138
138
  - vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.13.0.gem
139
- - vendor/bundle/ruby/3.2.0/cache/stringio-3.0.6.gem
139
+ - vendor/bundle/ruby/3.2.0/cache/stringio-3.0.7.gem
140
140
  - vendor/bundle/ruby/3.2.0/cache/typhoeus-1.4.0.gem
141
141
  - vendor/bundle/ruby/3.2.0/cache/unicode-display_width-1.5.0.gem
142
142
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so
@@ -153,10 +153,9 @@ files:
153
153
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.0/gem_make.out
154
154
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.0/mkmf.log
155
155
  - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.0/psych.so
156
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.6/gem.build_complete
157
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.6/gem_make.out
158
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.6/mkmf.log
159
- - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.6/stringio.so
156
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.7/gem.build_complete
157
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.7/gem_make.out
158
+ - vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.7/stringio.so
160
159
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/LICENSE.MIT
161
160
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/README.YARD.md
162
161
  - vendor/bundle/ruby/3.2.0/gems/ast-2.4.2/lib/ast.rb
@@ -2412,11 +2411,11 @@ files:
2412
2411
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/time.rb
2413
2412
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/timer.rb
2414
2413
  - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/version.rb
2415
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.6/README.md
2416
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.6/ext/stringio/Makefile
2417
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.6/ext/stringio/extconf.rb
2418
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.6/ext/stringio/stringio.c
2419
- - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.6/lib/stringio.so
2414
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.7/README.md
2415
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.7/ext/stringio/Makefile
2416
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.7/ext/stringio/extconf.rb
2417
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.7/ext/stringio/stringio.c
2418
+ - vendor/bundle/ruby/3.2.0/gems/stringio-3.0.7/lib/stringio.so
2420
2419
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.gitignore
2421
2420
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.rspec
2422
2421
  - vendor/bundle/ruby/3.2.0/gems/typhoeus-1.4.0/.travis.yml
@@ -2544,7 +2543,7 @@ files:
2544
2543
  - vendor/bundle/ruby/3.2.0/specifications/rspec-support-3.12.0.gemspec
2545
2544
  - vendor/bundle/ruby/3.2.0/specifications/rubocop-0.66.0.gemspec
2546
2545
  - vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.13.0.gemspec
2547
- - vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.6.gemspec
2546
+ - vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.7.gemspec
2548
2547
  - vendor/bundle/ruby/3.2.0/specifications/typhoeus-1.4.0.gemspec
2549
2548
  - vendor/bundle/ruby/3.2.0/specifications/unicode-display_width-1.5.0.gemspec
2550
2549
  homepage: https://github.com/Cybrid-app/cybrid-api-id-ruby/
@@ -1,36 +0,0 @@
1
- have_func: checking for rb_io_extract_modeenc() in ruby/io.h... -------------------- yes
2
-
3
- LD_LIBRARY_PATH=.:/usr/local/lib "gcc -o conftest -I/usr/local/include/ruby-3.2.0/x86_64-linux -I/usr/local/include/ruby-3.2.0/ruby/backward -I/usr/local/include/ruby-3.2.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby -lm -lpthread -lc"
4
- checked program was:
5
- /* begin */
6
- 1: #include "ruby.h"
7
- 2:
8
- 3: int main(int argc, char **argv)
9
- 4: {
10
- 5: return !!argv[argc];
11
- 6: }
12
- /* end */
13
-
14
- LD_LIBRARY_PATH=.:/usr/local/lib "gcc -o conftest -I/usr/local/include/ruby-3.2.0/x86_64-linux -I/usr/local/include/ruby-3.2.0/ruby/backward -I/usr/local/include/ruby-3.2.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby -lm -lpthread -lc"
15
- checked program was:
16
- /* begin */
17
- 1: #include "ruby.h"
18
- 2:
19
- 3: #include <ruby/io.h>
20
- 4:
21
- 5: /*top*/
22
- 6: extern int t(void);
23
- 7: int main(int argc, char **argv)
24
- 8: {
25
- 9: if (argc > 1000000) {
26
- 10: int (* volatile tp)(void)=(int (*)(void))&t;
27
- 11: printf("%d", (*tp)());
28
- 12: }
29
- 13:
30
- 14: return !!argv[argc];
31
- 15: }
32
- 16: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_io_extract_modeenc; return !p; }
33
- /* end */
34
-
35
- --------------------
36
-