cybrid_api_organization_ruby 0.129.1073 → 0.129.1075

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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  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/subscription_deliveries_organization_api.rb +1 -1
  7. data/lib/cybrid_api_organization_ruby/api/subscription_events_organization_api.rb +1 -1
  8. data/lib/cybrid_api_organization_ruby/api/subscriptions_organization_api.rb +1 -1
  9. data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
  10. data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
  11. data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
  12. data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
  13. data/lib/cybrid_api_organization_ruby/models/organization_list_organization_model.rb +1 -1
  14. data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
  15. data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
  16. data/lib/cybrid_api_organization_ruby/models/patch_subscription_organization_model.rb +1 -1
  17. data/lib/cybrid_api_organization_ruby/models/post_subscription_delivery_organization_model.rb +1 -1
  18. data/lib/cybrid_api_organization_ruby/models/post_subscription_organization_model.rb +1 -1
  19. data/lib/cybrid_api_organization_ruby/models/subscription_delivery_list_organization_model.rb +1 -1
  20. data/lib/cybrid_api_organization_ruby/models/subscription_delivery_organization_model.rb +1 -1
  21. data/lib/cybrid_api_organization_ruby/models/subscription_environment_organization_model.rb +1 -1
  22. data/lib/cybrid_api_organization_ruby/models/subscription_event_list_organization_model.rb +1 -1
  23. data/lib/cybrid_api_organization_ruby/models/subscription_event_organization_model.rb +1 -1
  24. data/lib/cybrid_api_organization_ruby/models/subscription_list_organization_model.rb +1 -1
  25. data/lib/cybrid_api_organization_ruby/models/subscription_organization_model.rb +1 -1
  26. data/lib/cybrid_api_organization_ruby/models/subscription_state_organization_model.rb +1 -1
  27. data/lib/cybrid_api_organization_ruby/models/subscription_type_organization_model.rb +1 -1
  28. data/lib/cybrid_api_organization_ruby/version.rb +2 -2
  29. data/lib/cybrid_api_organization_ruby.rb +1 -1
  30. data/spec/api/organizations_organization_api_spec.rb +1 -1
  31. data/spec/api/subscription_deliveries_organization_api_spec.rb +1 -1
  32. data/spec/api/subscription_events_organization_api_spec.rb +1 -1
  33. data/spec/api/subscriptions_organization_api_spec.rb +1 -1
  34. data/spec/api_client_spec.rb +1 -1
  35. data/spec/configuration_spec.rb +1 -1
  36. data/spec/models/error_response_organization_model_spec.rb +1 -1
  37. data/spec/models/organization_list_organization_model_spec.rb +1 -1
  38. data/spec/models/organization_organization_model_spec.rb +1 -1
  39. data/spec/models/patch_organization_organization_model_spec.rb +1 -1
  40. data/spec/models/patch_subscription_organization_model_spec.rb +1 -1
  41. data/spec/models/post_subscription_delivery_organization_model_spec.rb +1 -1
  42. data/spec/models/post_subscription_organization_model_spec.rb +1 -1
  43. data/spec/models/subscription_delivery_list_organization_model_spec.rb +1 -1
  44. data/spec/models/subscription_delivery_organization_model_spec.rb +1 -1
  45. data/spec/models/subscription_environment_organization_model_spec.rb +1 -1
  46. data/spec/models/subscription_event_list_organization_model_spec.rb +1 -1
  47. data/spec/models/subscription_event_organization_model_spec.rb +1 -1
  48. data/spec/models/subscription_list_organization_model_spec.rb +1 -1
  49. data/spec/models/subscription_organization_model_spec.rb +1 -1
  50. data/spec/models/subscription_state_organization_model_spec.rb +1 -1
  51. data/spec/models/subscription_type_organization_model_spec.rb +1 -1
  52. data/spec/spec_helper.rb +1 -1
  53. data/vendor/bundle/ruby/4.0.0/cache/io-console-0.9.3.gem +0 -0
  54. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/byebug-13.0.0/gem_make.out +5 -5
  55. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/date-3.5.1/gem_make.out +5 -5
  56. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/{io-console-0.9.2 → io-console-0.9.3}/gem_make.out +19 -18
  57. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.3/io/console.so +0 -0
  58. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/{io-console-0.9.2 → io-console-0.9.3}/mkmf.log +4 -0
  59. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  60. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/psych-5.5.0/gem_make.out +5 -5
  61. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/racc-1.8.1/gem_make.out +5 -5
  62. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/stringio-3.2.0/gem_make.out +5 -5
  63. data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/ext/io/console/Makefile +2 -2
  64. data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/ext/io/console/console.c +98 -13
  65. data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/ext/io/console/extconf.rb +15 -1
  66. data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/lib/io/console/size.rb +4 -2
  67. data/vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/lib/io/console.so +0 -0
  68. data/vendor/bundle/ruby/4.0.0/specifications/{io-console-0.9.2.gemspec → io-console-0.9.3.gemspec} +3 -3
  69. metadata +17 -17
  70. data/vendor/bundle/ruby/4.0.0/cache/io-console-0.9.2.gem +0 -0
  71. data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.2/io/console.so +0 -0
  72. data/vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/lib/io/console.so +0 -0
  73. /data/vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/{io-console-0.9.2 → io-console-0.9.3}/gem.build_complete +0 -0
  74. /data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/.document +0 -0
  75. /data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/BSDL +0 -0
  76. /data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/COPYING +0 -0
  77. /data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/README.md +0 -0
  78. /data/vendor/bundle/ruby/4.0.0/gems/{io-console-0.9.2 → io-console-0.9.3}/ext/io/console/win32_vk.inc +0 -0
@@ -3,24 +3,24 @@ current directory: /home/circleci/project/build/public-clients/api-platform-orga
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
6
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-2lbv7f sitelibdir\=./.gem.20260911-3707-2lbv7f clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-die8xj sitelibdir\=./.gem.20260914-3695-die8xj clean
7
7
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
8
8
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
9
9
 
10
10
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
11
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-2lbv7f sitelibdir\=./.gem.20260911-3707-2lbv7f
11
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-die8xj sitelibdir\=./.gem.20260914-3695-die8xj
12
12
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
13
13
  compiling cparse.c
14
14
  linking shared-object racc/cparse.so
15
15
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
16
16
 
17
17
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
18
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-2lbv7f sitelibdir\=./.gem.20260911-3707-2lbv7f install
18
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-die8xj sitelibdir\=./.gem.20260914-3695-die8xj install
19
19
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
20
- /usr/bin/install -c -m 0755 cparse.so ./.gem.20260911-3707-2lbv7f/racc
20
+ /usr/bin/install -c -m 0755 cparse.so ./.gem.20260914-3695-die8xj/racc
21
21
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
22
22
 
23
23
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
24
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-2lbv7f sitelibdir\=./.gem.20260911-3707-2lbv7f clean
24
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-die8xj sitelibdir\=./.gem.20260914-3695-die8xj clean
25
25
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
26
26
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse'
@@ -4,24 +4,24 @@ checking for rb_io_mode_t in ruby/io.h... yes
4
4
  creating Makefile
5
5
 
6
6
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio
7
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-ornhne sitelibdir\=./.gem.20260911-3707-ornhne clean
7
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-hfapxb sitelibdir\=./.gem.20260914-3695-hfapxb clean
8
8
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
9
9
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
10
10
 
11
11
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio
12
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-ornhne sitelibdir\=./.gem.20260911-3707-ornhne
12
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-hfapxb sitelibdir\=./.gem.20260914-3695-hfapxb
13
13
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
14
14
  compiling stringio.c
15
15
  linking shared-object stringio.so
16
16
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
17
17
 
18
18
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio
19
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-ornhne sitelibdir\=./.gem.20260911-3707-ornhne install
19
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-hfapxb sitelibdir\=./.gem.20260914-3695-hfapxb install
20
20
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
21
- /usr/bin/install -c -m 0755 stringio.so ./.gem.20260911-3707-ornhne
21
+ /usr/bin/install -c -m 0755 stringio.so ./.gem.20260914-3695-hfapxb
22
22
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
23
23
 
24
24
  current directory: /home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio
25
- make DESTDIR\= sitearchdir\=./.gem.20260911-3707-ornhne sitelibdir\=./.gem.20260911-3707-ornhne clean
25
+ make DESTDIR\= sitearchdir\=./.gem.20260914-3695-hfapxb sitelibdir\=./.gem.20260914-3695-hfapxb clean
26
26
  make[1]: Entering directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
27
27
  make[1]: Leaving directory '/home/circleci/project/build/public-clients/api-platform-organization/ruby/vendor/bundle/ruby/4.0.0/gems/stringio-3.2.0/ext/stringio'
@@ -167,8 +167,8 @@ TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
167
167
  CLEANLIBS = $(TARGET_SO)
168
168
  CLEANOBJS = $(OBJS) *.bak
169
169
  TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.-.io.time
170
-
171
- VK_HEADER =
170
+ ###
171
+ all: # the default target
172
172
 
173
173
  all: $(DLLIB)
174
174
  static: $(STATIC_LIB)
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  static const char *const
7
- IO_CONSOLE_VERSION = "0.9.2";
7
+ IO_CONSOLE_VERSION = "0.9.3";
8
8
 
9
9
  #include "ruby.h"
10
10
  #include "ruby/io.h"
@@ -178,6 +178,22 @@ typedef struct {
178
178
  # define NIL_OR_UNDEF_P(obj) (NIL_P(obj) || UNDEF_P(obj))
179
179
  #endif
180
180
 
181
+ static int
182
+ to_vtime(VALUE vtime)
183
+ {
184
+ VALUE v10 = INT2FIX(10);
185
+ vtime = rb_funcall3(vtime, '*', 1, &v10);
186
+ return NUM2INT(vtime);
187
+ }
188
+
189
+ static unsigned char
190
+ clamp_uchar(int n)
191
+ {
192
+ if ((unsigned int)n >= UCHAR_MAX) n = UCHAR_MAX;
193
+ else if (n < 0) n = 0;
194
+ return (unsigned char)n;
195
+ }
196
+
181
197
  static rawmode_arg_t *
182
198
  rawmode_opt(int *argcp, VALUE *argv, int min_argc, int max_argc, rawmode_arg_t *opts)
183
199
  {
@@ -209,13 +225,11 @@ rawmode_opt(int *argcp, VALUE *argv, int min_argc, int max_argc, rawmode_arg_t *
209
225
  opts->vtime = 0;
210
226
  opts->intr = 0;
211
227
  if (!NIL_OR_UNDEF_P(vmin)) {
212
- opts->vmin = NUM2INT(vmin);
228
+ opts->vmin = clamp_uchar(NUM2INT(vmin));
213
229
  optp = opts;
214
230
  }
215
231
  if (!NIL_OR_UNDEF_P(vtime)) {
216
- VALUE v10 = INT2FIX(10);
217
- vtime = rb_funcall3(vtime, '*', 1, &v10);
218
- opts->vtime = NUM2INT(vtime);
232
+ opts->vtime = clamp_uchar(to_vtime(vtime));
219
233
  optp = opts;
220
234
  }
221
235
  switch (intr) {
@@ -762,6 +776,13 @@ conmode_init_copy(VALUE obj, VALUE obj2)
762
776
  return obj;
763
777
  }
764
778
 
779
+ static VALUE
780
+ conmode_get_echo(VALUE obj)
781
+ {
782
+ conmode *t = rb_check_typeddata(obj, &conmode_type);
783
+ return echo_p(t) ? Qtrue : Qfalse;
784
+ }
785
+
765
786
  static VALUE
766
787
  conmode_set_echo(VALUE obj, VALUE f)
767
788
  {
@@ -794,6 +815,58 @@ conmode_raw_new(int argc, VALUE *argv, VALUE obj)
794
815
  return conmode_new(rb_obj_class(obj), &t);
795
816
  }
796
817
 
818
+ static VALUE
819
+ conmode_get_min(VALUE obj)
820
+ {
821
+ conmode *t = rb_check_typeddata(obj, &conmode_type);
822
+ #ifdef VMIN
823
+ return INT2FIX(t->c_cc[VMIN]);
824
+ #else
825
+ (void)t;
826
+ return Qnil;
827
+ #endif
828
+ }
829
+
830
+ static VALUE
831
+ conmode_set_min(VALUE obj, VALUE min)
832
+ {
833
+ conmode *t = rb_check_typeddata(obj, &conmode_type);
834
+ int vmin = NIL_P(min) ? 1 : clamp_uchar(NUM2INT(min));
835
+ #ifdef VMIN
836
+ t->c_cc[VMIN] = vmin;
837
+ #else
838
+ (void)t;
839
+ (void)vmin;
840
+ #endif
841
+ return min;
842
+ }
843
+
844
+ static VALUE
845
+ conmode_get_time(VALUE obj)
846
+ {
847
+ conmode *t = rb_check_typeddata(obj, &conmode_type);
848
+ #ifdef VTIME
849
+ return rb_rational_new(INT2FIX(t->c_cc[VTIME]), INT2FIX(10));
850
+ #else
851
+ (void)t;
852
+ return Qnil;
853
+ #endif
854
+ }
855
+
856
+ static VALUE
857
+ conmode_set_time(VALUE obj, VALUE time)
858
+ {
859
+ conmode *t = rb_check_typeddata(obj, &conmode_type);
860
+ int vtime = NIL_P(time) ? 0 : clamp_uchar(to_vtime(time));
861
+ #ifdef VTIME
862
+ t->c_cc[VTIME] = vtime;
863
+ #else
864
+ (void)t;
865
+ (void)vtime;
866
+ #endif
867
+ return time;
868
+ }
869
+
797
870
  #ifdef _WIN32
798
871
  /*
799
872
  * call-seq:
@@ -2135,10 +2208,17 @@ puts_call(VALUE io)
2135
2208
  return rb_io_write(io, rb_default_rs);
2136
2209
  }
2137
2210
 
2211
+ static VALUE
2212
+ funcall_with_rs(VALUE obj, ID mid)
2213
+ {
2214
+ const VALUE rs = rb_default_rs; /* rvalue in TruffleRuby */
2215
+ return rb_funcallv(obj, mid, 1, &rs);
2216
+ }
2217
+
2138
2218
  static VALUE
2139
2219
  gets_call(VALUE io)
2140
2220
  {
2141
- return rb_funcallv(io, id_gets, 0, 0);
2221
+ return funcall_with_rs(io, id_gets);
2142
2222
  }
2143
2223
 
2144
2224
  static VALUE
@@ -2161,8 +2241,7 @@ static VALUE
2161
2241
  str_chomp(VALUE str)
2162
2242
  {
2163
2243
  if (!NIL_P(str)) {
2164
- const VALUE rs = rb_default_rs; /* rvalue in TruffleRuby */
2165
- rb_funcallv(str, id_chomp_bang, 1, &rs);
2244
+ funcall_with_rs(str, id_chomp_bang);
2166
2245
  }
2167
2246
  return str;
2168
2247
  }
@@ -2223,7 +2302,7 @@ io_getpass(int argc, VALUE *argv, VALUE io)
2223
2302
  * call-seq:
2224
2303
  * io.ttyname -> string or nil
2225
2304
  *
2226
- * Returns name of associated terminal (tty) if +io+ is not a tty.
2305
+ * Returns name of associated terminal (tty) if +io+ is a tty.
2227
2306
  * Returns +nil+ otherwise.
2228
2307
  */
2229
2308
  static VALUE
@@ -2238,17 +2317,17 @@ console_ttyname(VALUE io)
2238
2317
  char termname[1024], *tn = termname;
2239
2318
  size_t size = sizeof(termname);
2240
2319
  int e;
2241
- if (ttyname_r(fd, tn, size) == 0)
2320
+ if ((e = ttyname_r(fd, tn, size)) == 0)
2242
2321
  return rb_interned_str_cstr(tn);
2243
- if ((e = errno) == ERANGE) {
2322
+ if (e == ERANGE) {
2244
2323
  VALUE s = rb_str_new(0, size);
2245
2324
  while (1) {
2246
2325
  tn = RSTRING_PTR(s);
2247
2326
  size = rb_str_capacity(s);
2248
- if (ttyname_r(fd, tn, size) == 0) {
2327
+ if ((e = ttyname_r(fd, tn, size)) == 0) {
2249
2328
  return rb_str_to_interned_str(rb_str_resize(s, strlen(tn)));
2250
2329
  }
2251
- if ((e = errno) != ERANGE) break;
2330
+ if (e != ERANGE) break;
2252
2331
  if ((size *= 2) >= INT_MAX/2) break;
2253
2332
  rb_str_resize(s, size);
2254
2333
  }
@@ -2502,9 +2581,15 @@ InitVM_console(void)
2502
2581
  rb_define_alloc_func(cConmode, conmode_alloc);
2503
2582
  rb_undef_method(cConmode, "initialize");
2504
2583
  rb_define_method(cConmode, "initialize_copy", conmode_init_copy, 1);
2584
+ rb_define_method(cConmode, "echo?", conmode_get_echo, 0);
2585
+ rb_define_method(cConmode, "echo", conmode_get_echo, 0);
2505
2586
  rb_define_method(cConmode, "echo=", conmode_set_echo, 1);
2506
2587
  rb_define_method(cConmode, "raw!", conmode_set_raw, -1);
2507
2588
  rb_define_method(cConmode, "raw", conmode_raw_new, -1);
2589
+ rb_define_method(cConmode, "min", conmode_get_min, 0);
2590
+ rb_define_method(cConmode, "min=", conmode_set_min, 1);
2591
+ rb_define_method(cConmode, "time", conmode_get_time, 0);
2592
+ rb_define_method(cConmode, "time=", conmode_set_time, 1);
2508
2593
  #ifdef _WIN32
2509
2594
  rb_define_method(cConmode, "virtual_terminal_processing?", conmode_virtual_terminal_processing_p, 0);
2510
2595
  rb_define_method(cConmode, "virtual_terminal_processing=", conmode_set_virtual_terminal_processing, 1);
@@ -52,8 +52,22 @@ when true
52
52
  have_const("RB_WARN_CATEGORY_DEPRECATED")
53
53
  win32 or have_func("ttyname_r") or have_func("ttyname")
54
54
  have_func("rb_prepend_module") # not exported by TruffleRuby
55
+ vk_tool = find_executable("gperf")
55
56
  create_makefile("io/console") {|conf|
56
- conf << "\n""VK_HEADER = #{vk_header}\n"
57
+ conf << "###\n" "all: # the default target\n"
58
+ if vk_header
59
+ conf << <<~MK
60
+ VK_HEADER = #{vk_header}
61
+ console.#$OBJEXT: $(VK_HEADER)
62
+ MK
63
+ end
64
+ if vk_tool and vk_mk = (File.read("#$srcdir/win32_vk.mk") rescue nil)
65
+ unless conf.any? {|c| /^ *top_srcdir *=/.match?(c)}
66
+ conf << "top_srcdir = $(srcdir)/../../..\n"
67
+ end
68
+ conf.concat(depend_rules(vk_mk))
69
+ end
70
+ conf
57
71
  }
58
72
  when nil
59
73
  File.write("Makefile", dummy_makefile($srcdir).join(""))
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: false
2
2
  # fallback to console window size
3
3
  def IO.default_console_size
4
+ lines = ENV["LINES"].to_i
5
+ columns = ENV["COLUMNS"].to_i
4
6
  [
5
- ENV["LINES"].to_i.nonzero? || 25,
6
- ENV["COLUMNS"].to_i.nonzero? || 80,
7
+ lines.positive? ? lines : 25,
8
+ columns.positive? ? columns : 80,
7
9
  ]
8
10
  end
9
11
 
@@ -1,16 +1,16 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: io-console 0.9.2 ruby lib
2
+ # stub: io-console 0.9.3 ruby lib
3
3
  # stub: ext/io/console/extconf.rb
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "io-console".freeze
7
- s.version = "0.9.2".freeze
7
+ s.version = "0.9.3".freeze
8
8
 
9
9
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
10
10
  s.metadata = { "changelog_uri" => "https://github.com/ruby/io-console/releases", "source_code_url" => "https://github.com/ruby/io-console" } if s.respond_to? :metadata=
11
11
  s.require_paths = ["lib".freeze]
12
12
  s.authors = ["Nobu Nakada".freeze]
13
- s.date = "2026-08-10"
13
+ s.date = "2026-09-14"
14
14
  s.description = "add console capabilities to IO instances.".freeze
15
15
  s.email = "nobu@ruby-lang.org".freeze
16
16
  s.extensions = ["ext/io/console/extconf.rb".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybrid_api_organization_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.129.1073
4
+ version: 0.129.1075
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cybrid
@@ -148,7 +148,7 @@ files:
148
148
  - vendor/bundle/ruby/4.0.0/cache/diff-lcs-1.6.2.gem
149
149
  - vendor/bundle/ruby/4.0.0/cache/ethon-0.18.0.gem
150
150
  - vendor/bundle/ruby/4.0.0/cache/ffi-1.17.4-x86_64-linux-gnu.gem
151
- - vendor/bundle/ruby/4.0.0/cache/io-console-0.9.2.gem
151
+ - vendor/bundle/ruby/4.0.0/cache/io-console-0.9.3.gem
152
152
  - vendor/bundle/ruby/4.0.0/cache/jaro_winkler-1.5.6.gem
153
153
  - vendor/bundle/ruby/4.0.0/cache/logger-1.7.0.gem
154
154
  - vendor/bundle/ruby/4.0.0/cache/method_source-1.1.0.gem
@@ -178,10 +178,10 @@ files:
178
178
  - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/date-3.5.1/gem.build_complete
179
179
  - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/date-3.5.1/gem_make.out
180
180
  - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/date-3.5.1/mkmf.log
181
- - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.2/gem.build_complete
182
- - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.2/gem_make.out
183
- - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.2/io/console.so
184
- - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.2/mkmf.log
181
+ - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.3/gem.build_complete
182
+ - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.3/gem_make.out
183
+ - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.3/io/console.so
184
+ - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/io-console-0.9.3/mkmf.log
185
185
  - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/jaro_winkler-1.5.6/gem.build_complete
186
186
  - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/jaro_winkler-1.5.6/gem_make.out
187
187
  - vendor/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/jaro_winkler-1.5.6/jaro_winkler/jaro_winkler_ext.so
@@ -730,16 +730,16 @@ files:
730
730
  - vendor/bundle/ruby/4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu/sig/ffi/struct_layout.rbs
731
731
  - vendor/bundle/ruby/4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu/sig/ffi/struct_layout_builder.rbs
732
732
  - vendor/bundle/ruby/4.0.0/gems/ffi-1.17.4-x86_64-linux-gnu/sig/ffi/type.rbs
733
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/.document
734
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/BSDL
735
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/COPYING
736
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/README.md
737
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/ext/io/console/Makefile
738
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/ext/io/console/console.c
739
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/ext/io/console/extconf.rb
740
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/ext/io/console/win32_vk.inc
741
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/lib/io/console.so
742
- - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.2/lib/io/console/size.rb
733
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/.document
734
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/BSDL
735
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/COPYING
736
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/README.md
737
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/ext/io/console/Makefile
738
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/ext/io/console/console.c
739
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/ext/io/console/extconf.rb
740
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/ext/io/console/win32_vk.inc
741
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/lib/io/console.so
742
+ - vendor/bundle/ruby/4.0.0/gems/io-console-0.9.3/lib/io/console/size.rb
743
743
  - vendor/bundle/ruby/4.0.0/gems/jaro_winkler-1.5.6/LICENSE.txt
744
744
  - vendor/bundle/ruby/4.0.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile
745
745
  - vendor/bundle/ruby/4.0.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/adj_matrix.c
@@ -2192,7 +2192,7 @@ files:
2192
2192
  - vendor/bundle/ruby/4.0.0/specifications/diff-lcs-1.6.2.gemspec
2193
2193
  - vendor/bundle/ruby/4.0.0/specifications/ethon-0.18.0.gemspec
2194
2194
  - vendor/bundle/ruby/4.0.0/specifications/ffi-1.17.4-x86_64-linux-gnu.gemspec
2195
- - vendor/bundle/ruby/4.0.0/specifications/io-console-0.9.2.gemspec
2195
+ - vendor/bundle/ruby/4.0.0/specifications/io-console-0.9.3.gemspec
2196
2196
  - vendor/bundle/ruby/4.0.0/specifications/jaro_winkler-1.5.6.gemspec
2197
2197
  - vendor/bundle/ruby/4.0.0/specifications/logger-1.7.0.gemspec
2198
2198
  - vendor/bundle/ruby/4.0.0/specifications/method_source-1.1.0.gemspec